/drivers/block/ |
D | hd.c | 122 unsigned int head, sect, cyl, wpcom, lzone, ctl; member 185 hd_info[hdind].sect = ints[3]; in hd_setup() 306 unsigned int sect, in hd_out() argument 329 outb_p(sect, ++port); in hd_out() 383 hd_out(disk, disk->sect, disk->sect, disk->head-1, in reset_hd() 558 hd_out(disk, disk->sect, 0, 0, 0, ATA_CMD_RESTORE, &recal_intr); in do_special_op() 619 sec = block % disk->sect + 1; in hd_request() 620 track = block / disk->sect; in hd_request() 666 geo->sectors = disk->sect; in hd_getgeo() 745 set_capacity(disk, p->head * p->sect * p->cyl); in hd_init() [all …]
|
D | floppy.c | 2031 if (floppy_type[DP->autodetect[probed_format]].sect) { in next_valid_format() 2096 unsigned char track, head, sect, size; in setup_format_params() member 2109 F_SECT_PER_TRACK = _floppy->sect << 2 >> F_SIZECODE; in setup_format_params() 2135 here[count].sect = 0; in setup_format_params() 2140 here[n].sect = count; in setup_format_params() 2142 if (here[n].sect) { /* sector busy, find next free sector */ in setup_format_params() 2146 while (here[n].sect) in setup_format_params() 2153 here[count].sect += FD_SECTBASE(_floppy) - 1; in setup_format_params() 2184 (_floppy->sect << 2) % (1 << FD_SIZECODE(_floppy)) || in do_format() 2247 if (block > _floppy->sect) in request_done() [all …]
|
D | amiflop.c | 711 unsigned char sect; member 745 hdr.magic, hdr.track, hdr.sect, hdr.ord, in amiga_read() 762 raw = decode ((ulong *)(unit[drive].trackbuf + hdr.sect*512), in amiga_read() 764 csum = checksum((ulong *)(unit[drive].trackbuf + hdr.sect*512), 512); in amiga_read() 768 hdr.magic, hdr.track, hdr.sect, hdr.ord, scnt, in amiga_read() 771 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[0], in amiga_read() 772 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[1], in amiga_read() 773 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[2], in amiga_read() 774 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[3]); in amiga_read() 826 hdr.sect = cnt; in putsec() [all …]
|
D | ataflop.c | 649 int sect, nsect; in do_format() local 685 for( sect = 0; sect < nsect; ++sect ) { in do_format() 691 *p++ = (nsect + sect - desc->sect_offset) % nsect + 1; in do_format() 1544 getprm.sect = dtp->spt; in fd_locked_ioctl() 1579 drive, setprm.size, setprm.sect, setprm.stretch); in fd_locked_ioctl() 1606 && dtp->spt == setprm.sect in fd_locked_ioctl() 1639 dtp->spt = setprm.sect; in fd_locked_ioctl() 1640 if (setprm.sect > 14) in fd_locked_ioctl()
|
D | swim.c | 609 fs->secpercyl = g->head * g->sect; in setup_medium() 610 fs->secpertrack = g->sect; in setup_medium() 735 geo->sectors = g->sect; in floppy_getgeo()
|
D | sx8.c | 397 __le16 sect; member 976 port->dev_geom_sect = le16_to_cpu(desc->sect); in carm_handle_array_info()
|
/drivers/ide/ |
D | ide.c | 241 u8 sect; member 272 ide_disks_chs[i].sect = s; in ide_set_disk_chs() 317 drive->sect = drive->bios_sect = ide_disks_chs[i].sect; in ide_dev_apply_params() 321 drive->cyl, drive->head, drive->sect); in ide_dev_apply_params()
|
D | ide-disk.c | 133 unsigned int sect, head, cyl, track; in __ide_do_rw_disk() local 135 track = (int)block / drive->sect; in __ide_do_rw_disk() 136 sect = (int)block % drive->sect + 1; in __ide_do_rw_disk() 140 pr_debug("%s: CHS=%u/%u/%u\n", drive->name, cyl, head, sect); in __ide_do_rw_disk() 143 tf->lbal = sect; in __ide_do_rw_disk() 370 drive->capacity64 = drive->cyl * drive->head * drive->sect; in ide_disk_get_capacity()
|
D | ide-probe.c | 57 id[ATA_ID_CUR_SECTORS] = id[ATA_ID_SECTORS] = drive->sect; in generic_id() 65 if (!drive->cyl || !drive->head || !drive->sect) { in ide_disk_init_chs() 68 drive->sect = drive->bios_sect = id[ATA_ID_SECTORS]; in ide_disk_init_chs() 75 drive->sect = id[ATA_ID_CUR_SECTORS]; in ide_disk_init_chs() 82 drive->sect = id[ATA_ID_SECTORS]; in ide_disk_init_chs() 503 drive->head, drive->sect); in probe_for_drive()
|
D | ide-io.c | 157 tf->nsect = drive->sect; in ide_tf_set_specify_cmd() 158 tf->lbal = drive->sect; in ide_tf_set_specify_cmd() 167 tf->nsect = drive->sect; in ide_tf_set_restore_cmd()
|
D | ide-proc.c | 469 drive->cyl, drive->head, drive->sect); in ide_geometry_proc_show()
|
/drivers/scsi/ |
D | scsicam.c | 40 Sector sect; in scsi_bios_ptable() local 41 void *data = read_dev_sector(bdev, 0, §); in scsi_bios_ptable() 44 put_dev_sector(sect); in scsi_bios_ptable()
|
/drivers/lightnvm/ |
D | sysblk.c | 300 int i, sect, ret = 0; in nvm_write_and_verify() local 328 for (sect = 1; sect < dev->sec_per_pg; sect++) { in nvm_write_and_verify() 329 ppas[sect].ppa = ppas[0].ppa; in nvm_write_and_verify() 330 ppas[sect].g.sec = sect; in nvm_write_and_verify()
|
/drivers/gpu/drm/amd/amdgpu/ |
D | gfx_v6_0.c | 1652 const struct cs_section_def *sect = NULL; in gfx_v6_0_cp_gfx_start() local 1687 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v6_0_cp_gfx_start() 1688 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v6_0_cp_gfx_start() 1689 if (sect->id == SECT_CONTEXT) { in gfx_v6_0_cp_gfx_start() 2663 const struct cs_section_def *sect = NULL; in gfx_v6_0_get_csb_size() local 2674 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v6_0_get_csb_size() 2675 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v6_0_get_csb_size() 2676 if (sect->id == SECT_CONTEXT) in gfx_v6_0_get_csb_size() 2696 const struct cs_section_def *sect = NULL; in gfx_v6_0_get_csb_buffer() local 2711 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v6_0_get_csb_buffer() [all …]
|
D | gfx_v7_0.c | 2467 const struct cs_section_def *sect = NULL; in gfx_v7_0_cp_gfx_start() local 2498 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v7_0_cp_gfx_start() 2499 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v7_0_cp_gfx_start() 2500 if (sect->id == SECT_CONTEXT) { in gfx_v7_0_cp_gfx_start() 4158 const struct cs_section_def *sect = NULL; in gfx_v7_0_get_csb_size() local 4169 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v7_0_get_csb_size() 4170 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v7_0_get_csb_size() 4171 if (sect->id == SECT_CONTEXT) in gfx_v7_0_get_csb_size() 4191 const struct cs_section_def *sect = NULL; in gfx_v7_0_get_csb_buffer() local 4206 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v7_0_get_csb_buffer() [all …]
|
D | gfx_v8_0.c | 1096 const struct cs_section_def *sect = NULL; in gfx_v8_0_get_csb_buffer() local 1111 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v8_0_get_csb_buffer() 1112 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v8_0_get_csb_buffer() 1113 if (sect->id == SECT_CONTEXT) { in gfx_v8_0_get_csb_buffer() 4214 const struct cs_section_def *sect = NULL; in gfx_v8_0_get_csb_size() local 4222 for (sect = vi_cs_data; sect->section != NULL; ++sect) { in gfx_v8_0_get_csb_size() 4223 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v8_0_get_csb_size() 4224 if (sect->id == SECT_CONTEXT) in gfx_v8_0_get_csb_size() 4243 const struct cs_section_def *sect = NULL; in gfx_v8_0_cp_gfx_start() local 4268 for (sect = vi_cs_data; sect->section != NULL; ++sect) { in gfx_v8_0_cp_gfx_start() [all …]
|
/drivers/md/ |
D | raid1.c | 1791 sector_t sect = r1_bio->sector; in fix_sync_read_error() local 1811 if (sync_page_io(rdev, sect, s<<9, in fix_sync_read_error() 1840 if (!rdev_set_badblocks(rdev, sect, s, 0)) in fix_sync_read_error() 1853 sect += s; in fix_sync_read_error() 1867 if (r1_sync_page_io(rdev, sect, s, in fix_sync_read_error() 1882 if (r1_sync_page_io(rdev, sect, s, in fix_sync_read_error() 1888 sect += s; in fix_sync_read_error() 2048 sector_t sect, int sectors) in fix_read_error() argument 2070 rdev->recovery_offset >= sect + s)) && in fix_read_error() 2071 is_badblock(rdev, sect, s, in fix_read_error() [all …]
|
D | raid10.c | 2092 sector_t sect = 0; in fix_recovery_read_error() local 2108 addr = r10_bio->devs[0].addr + sect, in fix_recovery_read_error() 2116 addr = r10_bio->devs[1].addr + sect; in fix_recovery_read_error() 2140 addr = r10_bio->devs[1].addr + sect; in fix_recovery_read_error() 2159 sect += s; in fix_recovery_read_error() 2272 int sect = 0; /* Offset from r10_bio->sector */ in fix_read_error() local 2326 is_badblock(rdev, r10_bio->devs[sl].addr + sect, s, in fix_read_error() 2332 sect, in fix_read_error() 2358 + sect, in fix_read_error() 2387 sect, in fix_read_error() [all …]
|
D | raid5.c | 87 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect) in stripe_hash() argument 89 int hash = (sect >> STRIPE_SHIFT) & HASH_MASK; in stripe_hash() 93 static inline int stripe_hash_locks_hash(sector_t sect) in stripe_hash_locks_hash() argument 95 return (sect >> STRIPE_SHIFT) & STRIPE_HASH_LOCKS_MASK; in stripe_hash_locks_hash()
|
/drivers/mtd/chips/ |
D | cfi_cmdset_0002.c | 2626 struct ppb_lock *sect; in cfi_ppb_unlock() local 2641 sect = kzalloc(MAX_SECTORS * sizeof(struct ppb_lock), GFP_KERNEL); in cfi_ppb_unlock() 2642 if (!sect) in cfi_ppb_unlock() 2665 sect[sectors].chip = &cfi->chips[chipnum]; in cfi_ppb_unlock() 2666 sect[sectors].offset = offset; in cfi_ppb_unlock() 2667 sect[sectors].locked = do_ppb_xxlock( in cfi_ppb_unlock() 2691 kfree(sect); in cfi_ppb_unlock() 2700 kfree(sect); in cfi_ppb_unlock() 2709 if (sect[i].locked) in cfi_ppb_unlock() 2710 do_ppb_xxlock(map, sect[i].chip, sect[i].offset, 0, in cfi_ppb_unlock() [all …]
|
/drivers/ata/ |
D | libata-scsi.c | 1692 u32 sect, head, cyl, track; in ata_scsi_verify_xlat() local 1701 sect = (u32)block % dev->sectors + 1; in ata_scsi_verify_xlat() 1704 (u32)block, track, cyl, head, sect); in ata_scsi_verify_xlat() 1710 if ((cyl >> 16) || (head >> 4) || (sect >> 8) || (!sect)) in ata_scsi_verify_xlat() 1715 tf->lbal = sect; in ata_scsi_verify_xlat() 3667 u16 sect, fp = (u16)-1; in ata_scsi_zbc_in_xlat() local 3698 sect = n_block / 512; in ata_scsi_zbc_in_xlat() 3707 tf->feature = sect & 0xff; in ata_scsi_zbc_in_xlat() 3708 tf->hob_feature = (sect >> 8) & 0xff; in ata_scsi_zbc_in_xlat() 3715 tf->hob_nsect = (sect >> 8) & 0xff; in ata_scsi_zbc_in_xlat() [all …]
|
D | libata-core.c | 716 u32 cyl, head, sect; in ata_tf_read_block() local 720 sect = tf->lbal; in ata_tf_read_block() 722 if (!sect) { in ata_tf_read_block() 728 block = (cyl * dev->heads + head) * dev->sectors + sect - 1; in ata_tf_read_block() 822 u32 sect, head, cyl, track; in ata_build_rw_tf() local 835 sect = (u32)block % dev->sectors + 1; in ata_build_rw_tf() 838 (u32)block, track, cyl, head, sect); in ata_build_rw_tf() 844 if ((cyl >> 16) || (head >> 4) || (sect >> 8) || (!sect)) in ata_build_rw_tf() 848 tf->lbal = sect; in ata_build_rw_tf()
|
/drivers/mtd/ |
D | ftl.c | 980 u_long sect; in ftl_getgeo() local 983 sect = le32_to_cpu(part->header.FormattedSize)/SECTOR_SIZE; in ftl_getgeo() 987 geo->cylinders = sect >> 3; in ftl_getgeo()
|
/drivers/gpu/drm/radeon/ |
D | si.c | 5678 const struct cs_section_def *sect = NULL; in si_get_csb_size() local 5689 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) { in si_get_csb_size() 5690 for (ext = sect->section; ext->extent != NULL; ++ext) { in si_get_csb_size() 5691 if (sect->id == SECT_CONTEXT) in si_get_csb_size() 5710 const struct cs_section_def *sect = NULL; in si_get_csb_buffer() local 5725 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) { in si_get_csb_buffer() 5726 for (ext = sect->section; ext->extent != NULL; ++ext) { in si_get_csb_buffer() 5727 if (sect->id == SECT_CONTEXT) { in si_get_csb_buffer()
|
D | cik.c | 6742 const struct cs_section_def *sect = NULL; in cik_get_csb_size() local 6753 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) { in cik_get_csb_size() 6754 for (ext = sect->section; ext->extent != NULL; ++ext) { in cik_get_csb_size() 6755 if (sect->id == SECT_CONTEXT) in cik_get_csb_size() 6774 const struct cs_section_def *sect = NULL; in cik_get_csb_buffer() local 6789 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) { in cik_get_csb_buffer() 6790 for (ext = sect->section; ext->extent != NULL; ++ext) { in cik_get_csb_buffer() 6791 if (sect->id == SECT_CONTEXT) { in cik_get_csb_buffer()
|