Searched refs:sect (Results 1 - 21 of 21) sorted by relevance

/drivers/block/
H A Dhd.c122 unsigned int head, sect, cyl, wpcom, lzone, ctl; member in struct:hd_i_struct
185 hd_info[hdind].sect = ints[3];
306 unsigned int sect,
329 outb_p(sect, ++port);
383 hd_out(disk, disk->sect, disk->sect, disk->head-1,
558 hd_out(disk, disk->sect, 0, 0, 0, ATA_CMD_RESTORE, &recal_intr);
619 sec = block % disk->sect + 1;
620 track = block / disk->sect;
666 geo->sectors = disk->sect;
304 hd_out(struct hd_i_struct *disk, unsigned int nsect, unsigned int sect, unsigned int head, unsigned int cyl, unsigned int cmd, void (*intr_addr)(void)) argument
[all...]
H A Dfloppy.c2031 if (floppy_type[DP->autodetect[probed_format]].sect) {
2096 unsigned char track, head, sect, size; member in struct:fparm
2109 F_SECT_PER_TRACK = _floppy->sect << 2 >> F_SIZECODE;
2135 here[count].sect = 0;
2140 here[n].sect = count;
2142 if (here[n].sect) { /* sector busy, find next free sector */
2146 while (here[n].sect)
2153 here[count].sect += FD_SECTBASE(_floppy) - 1;
2184 (_floppy->sect << 2) % (1 << FD_SIZECODE(_floppy)) ||
2247 if (block > _floppy->sect)
[all...]
H A Dataflop.c649 int sect, nsect; local
685 for( sect = 0; sect < nsect; ++sect ) {
691 *p++ = (nsect + sect - desc->sect_offset) % nsect + 1;
1544 getprm.sect = dtp->spt;
1579 drive, setprm.size, setprm.sect, setprm.stretch);
1606 && dtp->spt == setprm.sect
1639 dtp->spt = setprm.sect;
1640 if (setprm.sect > 1
[all...]
H A Damiflop.c711 unsigned char sect; member in struct:header
745 hdr.magic, hdr.track, hdr.sect, hdr.ord,
762 raw = decode ((ulong *)(unit[drive].trackbuf + hdr.sect*512),
764 csum = checksum((ulong *)(unit[drive].trackbuf + hdr.sect*512), 512);
768 hdr.magic, hdr.track, hdr.sect, hdr.ord, scnt,
771 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[0],
772 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[1],
773 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[2],
774 ((ulong *)(unit[drive].trackbuf+hdr.sect*512))[3]);
826 hdr.sect
[all...]
H A Dswim.c609 fs->secpercyl = g->head * g->sect;
610 fs->secpertrack = g->sect;
735 geo->sectors = g->sect;
H A Dsx8.c397 __le16 sect; member in struct:carm_array_info
977 port->dev_geom_sect = le16_to_cpu(desc->sect);
/drivers/scsi/
H A Dscsicam.c40 Sector sect; local
41 void *data = read_dev_sector(bdev, 0, &sect);
44 put_dev_sector(sect);
/drivers/ide/
H A Dide.c242 u8 sect; member in struct:chs_geom
273 ide_disks_chs[i].sect = s;
318 drive->sect = drive->bios_sect = ide_disks_chs[i].sect;
322 drive->cyl, drive->head, drive->sect);
H A Dide-disk.c133 unsigned int sect, head, cyl, track; local
135 track = (int)block / drive->sect;
136 sect = (int)block % drive->sect + 1;
140 pr_debug("%s: CHS=%u/%u/%u\n", drive->name, cyl, head, sect);
143 tf->lbal = sect;
370 drive->capacity64 = drive->cyl * drive->head * drive->sect;
H A Dide-io.c157 tf->nsect = drive->sect;
158 tf->lbal = drive->sect;
167 tf->nsect = drive->sect;
H A Dide-probe.c57 id[ATA_ID_CUR_SECTORS] = id[ATA_ID_SECTORS] = drive->sect;
65 if (!drive->cyl || !drive->head || !drive->sect) {
68 drive->sect = drive->bios_sect = id[ATA_ID_SECTORS];
75 drive->sect = id[ATA_ID_CUR_SECTORS];
82 drive->sect = id[ATA_ID_SECTORS];
503 drive->head, drive->sect);
H A Dide-proc.c469 drive->cyl, drive->head, drive->sect);
/drivers/mtd/chips/
H A Dcfi_cmdset_0002.c2628 struct ppb_lock *sect; local
2643 sect = kzalloc(MAX_SECTORS * sizeof(struct ppb_lock), GFP_KERNEL);
2644 if (!sect)
2667 sect[sectors].chip = &cfi->chips[chipnum];
2668 sect[sectors].offset = offset;
2669 sect[sectors].locked = do_ppb_xxlock(
2693 kfree(sect);
2702 kfree(sect);
2711 if (sect[i].locked)
2712 do_ppb_xxlock(map, sect[
[all...]
/drivers/md/
H A Draid10.c2184 sector_t sect = 0; local
2200 addr = r10_bio->devs[0].addr + sect,
2208 addr = r10_bio->devs[1].addr + sect;
2232 addr = r10_bio->devs[1].addr + sect;
2251 sect += s;
2365 int sect = 0; /* Offset from r10_bio->sector */ local
2419 is_badblock(rdev, r10_bio->devs[sl].addr + sect, s,
2425 sect,
2450 + sect,
2479 sect,
2959 sector_t sect = local
3037 sector_t sect; local
[all...]
H A Draid1.c1840 sector_t sect = r1_bio->sector; local
1860 if (sync_page_io(rdev, sect, s<<9,
1889 if (!rdev_set_badblocks(rdev, sect, s, 0))
1902 sect += s;
1916 if (r1_sync_page_io(rdev, sect, s,
1931 if (r1_sync_page_io(rdev, sect, s,
1937 sect += s;
2098 sector_t sect, int sectors)
2124 rdev->recovery_offset >= sect + s)) &&
2125 is_badblock(rdev, sect,
2097 fix_read_error(struct r1conf *conf, int read_disk, sector_t sect, int sectors) argument
[all...]
H A Draid5.c86 static inline struct hlist_head *stripe_hash(struct r5conf *conf, sector_t sect) argument
88 int hash = (sect >> STRIPE_SHIFT) & HASH_MASK;
92 static inline int stripe_hash_locks_hash(sector_t sect) argument
94 return (sect >> STRIPE_SHIFT) & STRIPE_HASH_LOCKS_MASK;
/drivers/mtd/
H A Dftl.c984 u_long sect; local
987 sect = le32_to_cpu(part->header.FormattedSize)/SECTOR_SIZE;
991 geo->cylinders = sect >> 3;
/drivers/ata/
H A Dlibata-core.c710 u32 cyl, head, sect; local
714 sect = tf->lbal;
716 if (!sect) {
719 sect = 1; /* oh well */
722 block = (cyl * dev->heads + head) * dev->sectors + sect - 1;
816 u32 sect, head, cyl, track; local
829 sect = (u32)block % dev->sectors + 1;
831 DPRINTK("block %u track %u cyl %u head %u sect %u\n",
832 (u32)block, track, cyl, head, sect);
838 if ((cyl >> 16) || (head >> 4) || (sect >>
[all...]
H A Dlibata-scsi.c1359 tf->lbal = 0x1; /* sect */
1598 u32 sect, head, cyl, track; local
1607 sect = (u32)block % dev->sectors + 1;
1609 DPRINTK("block %u track %u cyl %u head %u sect %u\n",
1610 (u32)block, track, cyl, head, sect);
1616 if ((cyl >> 16) || (head >> 4) || (sect >> 8) || (!sect))
1621 tf->lbal = sect;
/drivers/gpu/drm/radeon/
H A Dsi.c5630 const struct cs_section_def *sect = NULL; local
5641 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) {
5642 for (ext = sect->section; ext->extent != NULL; ++ext) {
5643 if (sect->id == SECT_CONTEXT)
5662 const struct cs_section_def *sect = NULL; local
5677 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) {
[all...]
H A Dcik.c6945 const struct cs_section_def *sect = NULL; local
6956 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) {
6957 for (ext = sect->section; ext->extent != NULL; ++ext) {
6958 if (sect->id == SECT_CONTEXT)
6977 const struct cs_section_def *sect = NULL; local
6992 for (sect = rdev->rlc.cs_data; sect->section != NULL; ++sect) {
[all...]

Completed in 474 milliseconds