Home
last modified time | relevance | path

Searched refs:sect (Results 1 – 23 of 23) sorted by relevance

/drivers/block/
Dhd.c122 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 …]
Dfloppy.c2035 if (floppy_type[DP->autodetect[probed_format]].sect) { in next_valid_format()
2100 unsigned char track, head, sect, size; in setup_format_params() member
2113 F_SECT_PER_TRACK = _floppy->sect << 2 >> F_SIZECODE; in setup_format_params()
2142 here[count].sect = 0; in setup_format_params()
2147 here[n].sect = count; in setup_format_params()
2149 if (here[n].sect) { /* sector busy, find next free sector */ in setup_format_params()
2153 while (here[n].sect) in setup_format_params()
2160 here[count].sect += FD_SECTBASE(_floppy) - 1; in setup_format_params()
2191 (_floppy->sect << 2) % (1 << FD_SIZECODE(_floppy)) || in do_format()
2254 if (block > _floppy->sect) in request_done()
[all …]
Damiflop.c711 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 …]
Dataflop.c649 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()
Dswim.c609 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()
Dsx8.c397 __le16 sect; member
977 port->dev_geom_sect = le16_to_cpu(desc->sect); in carm_handle_array_info()
/drivers/ide/
Dide.c241 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()
Dide-disk.c133 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()
Dide-probe.c57 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()
Dide-io.c157 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()
Dide-proc.c469 drive->cyl, drive->head, drive->sect); in ide_geometry_proc_show()
/drivers/scsi/
Dscsicam.c40 Sector sect; in scsi_bios_ptable() local
41 void *data = read_dev_sector(bdev, 0, &sect); in scsi_bios_ptable()
44 put_dev_sector(sect); in scsi_bios_ptable()
/drivers/md/
Draid1.c1822 sector_t sect = r1_bio->sector; in fix_sync_read_error() local
1842 if (sync_page_io(rdev, sect, s<<9, in fix_sync_read_error()
1871 if (!rdev_set_badblocks(rdev, sect, s, 0)) in fix_sync_read_error()
1884 sect += s; in fix_sync_read_error()
1898 if (r1_sync_page_io(rdev, sect, s, in fix_sync_read_error()
1913 if (r1_sync_page_io(rdev, sect, s, in fix_sync_read_error()
1919 sect += s; in fix_sync_read_error()
2079 sector_t sect, int sectors) in fix_read_error() argument
2105 rdev->recovery_offset >= sect + s)) && in fix_read_error()
2106 is_badblock(rdev, sect, s, in fix_read_error()
[all …]
Draid10.c2093 sector_t sect = 0; in fix_recovery_read_error() local
2109 addr = r10_bio->devs[0].addr + sect, in fix_recovery_read_error()
2117 addr = r10_bio->devs[1].addr + sect; in fix_recovery_read_error()
2141 addr = r10_bio->devs[1].addr + sect; in fix_recovery_read_error()
2160 sect += s; in fix_recovery_read_error()
2274 int sect = 0; /* Offset from r10_bio->sector */ in fix_read_error() local
2327 is_badblock(rdev, r10_bio->devs[sl].addr + sect, s, in fix_read_error()
2333 sect, in fix_read_error()
2358 + sect, in fix_read_error()
2386 sect, in fix_read_error()
[all …]
Draid5.c87 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/
Dcfi_cmdset_0002.c2653 struct ppb_lock *sect; in cfi_ppb_unlock() local
2668 sect = kzalloc(MAX_SECTORS * sizeof(struct ppb_lock), GFP_KERNEL); in cfi_ppb_unlock()
2669 if (!sect) in cfi_ppb_unlock()
2692 sect[sectors].chip = &cfi->chips[chipnum]; in cfi_ppb_unlock()
2693 sect[sectors].adr = adr; in cfi_ppb_unlock()
2694 sect[sectors].locked = do_ppb_xxlock( in cfi_ppb_unlock()
2720 kfree(sect); in cfi_ppb_unlock()
2729 kfree(sect); in cfi_ppb_unlock()
2738 if (sect[i].locked) in cfi_ppb_unlock()
2739 do_ppb_xxlock(map, sect[i].chip, sect[i].adr, 0, in cfi_ppb_unlock()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Dgfx_v7_0.c2808 const struct cs_section_def *sect = NULL; in gfx_v7_0_cp_gfx_start() local
2839 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v7_0_cp_gfx_start()
2840 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v7_0_cp_gfx_start()
2841 if (sect->id == SECT_CONTEXT) { in gfx_v7_0_cp_gfx_start()
4516 const struct cs_section_def *sect = NULL; in gfx_v7_0_get_csb_size() local
4527 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v7_0_get_csb_size()
4528 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v7_0_get_csb_size()
4529 if (sect->id == SECT_CONTEXT) in gfx_v7_0_get_csb_size()
4549 const struct cs_section_def *sect = NULL; in gfx_v7_0_get_csb_buffer() local
4564 for (sect = adev->gfx.rlc.cs_data; sect->section != NULL; ++sect) { in gfx_v7_0_get_csb_buffer()
[all …]
Dgfx_v8_0.c3187 const struct cs_section_def *sect = NULL; in gfx_v8_0_get_csb_size() local
3195 for (sect = vi_cs_data; sect->section != NULL; ++sect) { in gfx_v8_0_get_csb_size()
3196 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v8_0_get_csb_size()
3197 if (sect->id == SECT_CONTEXT) in gfx_v8_0_get_csb_size()
3216 const struct cs_section_def *sect = NULL; in gfx_v8_0_cp_gfx_start() local
3241 for (sect = vi_cs_data; sect->section != NULL; ++sect) { in gfx_v8_0_cp_gfx_start()
3242 for (ext = sect->section; ext->extent != NULL; ++ext) { in gfx_v8_0_cp_gfx_start()
3243 if (sect->id == SECT_CONTEXT) { in gfx_v8_0_cp_gfx_start()
/drivers/mtd/
Dftl.c984 u_long sect; in ftl_getgeo() local
987 sect = le32_to_cpu(part->header.FormattedSize)/SECTOR_SIZE; in ftl_getgeo()
991 geo->cylinders = sect >> 3; in ftl_getgeo()
/drivers/ata/
Dlibata-core.c712 u32 cyl, head, sect; in ata_tf_read_block() local
716 sect = tf->lbal; in ata_tf_read_block()
718 if (!sect) { in ata_tf_read_block()
721 sect = 1; /* oh well */ in ata_tf_read_block()
724 block = (cyl * dev->heads + head) * dev->sectors + sect - 1; in ata_tf_read_block()
818 u32 sect, head, cyl, track; in ata_build_rw_tf() local
831 sect = (u32)block % dev->sectors + 1; in ata_build_rw_tf()
834 (u32)block, track, cyl, head, sect); in ata_build_rw_tf()
840 if ((cyl >> 16) || (head >> 4) || (sect >> 8) || (!sect)) in ata_build_rw_tf()
844 tf->lbal = sect; in ata_build_rw_tf()
Dlibata-scsi.c1611 u32 sect, head, cyl, track; in ata_scsi_verify_xlat() local
1620 sect = (u32)block % dev->sectors + 1; in ata_scsi_verify_xlat()
1623 (u32)block, track, cyl, head, sect); in ata_scsi_verify_xlat()
1629 if ((cyl >> 16) || (head >> 4) || (sect >> 8) || (!sect)) in ata_scsi_verify_xlat()
1634 tf->lbal = sect; in ata_scsi_verify_xlat()
/drivers/gpu/drm/radeon/
Dsi.c5673 const struct cs_section_def *sect = NULL; in si_get_csb_size() local
5684 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) { in si_get_csb_size()
5685 for (ext = sect->section; ext->extent != NULL; ++ext) { in si_get_csb_size()
5686 if (sect->id == SECT_CONTEXT) in si_get_csb_size()
5705 const struct cs_section_def *sect = NULL; in si_get_csb_buffer() local
5720 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) { in si_get_csb_buffer()
5721 for (ext = sect->section; ext->extent != NULL; ++ext) { in si_get_csb_buffer()
5722 if (sect->id == SECT_CONTEXT) { in si_get_csb_buffer()
Dcik.c7088 const struct cs_section_def *sect = NULL; in cik_get_csb_size() local
7099 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) { in cik_get_csb_size()
7100 for (ext = sect->section; ext->extent != NULL; ++ext) { in cik_get_csb_size()
7101 if (sect->id == SECT_CONTEXT) in cik_get_csb_size()
7120 const struct cs_section_def *sect = NULL; in cik_get_csb_buffer() local
7135 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) { in cik_get_csb_buffer()
7136 for (ext = sect->section; ext->extent != NULL; ++ext) { in cik_get_csb_buffer()
7137 if (sect->id == SECT_CONTEXT) { in cik_get_csb_buffer()