Home
last modified time | relevance | path

Searched refs:cyl (Results 1 – 16 of 16) sorted by relevance

/drivers/block/
Dhd.c125 unsigned int head, sect, cyl, wpcom, lzone, ctl; member
189 hd_info[hdind].cyl = ints[1]; in hd_setup()
298 unsigned int cyl, in hd_out() argument
320 outb_p(cyl, ++port); in hd_out()
321 outb_p(cyl >> 8, ++port); in hd_out()
374 disk->cyl, ATA_CMD_INIT_DEV_PARAMS, &reset_hd); in reset_hd()
585 unsigned int block, nsect, sec, track, head, cyl; in hd_request() local
625 cyl = track / disk->head; in hd_request()
630 cyl, head, sec, nsect, req->buffer); in hd_request()
635 hd_out(disk, nsect, sec, head, cyl, ATA_CMD_PIO_READ, in hd_request()
[all …]
Dida_cmd.h139 __u16 cyl; member
Dsx8.c394 __le16 cyl; member
977 port->dev_geom_cyl = le16_to_cpu(desc->cyl); in carm_handle_array_info()
Dcpqarray.c1747 drv->cylinders = id_ldrive->drv.cyl; in getgeometry()
/drivers/scsi/
Dscsicam.c130 int cyl, ext_cyl, end_head, end_cyl, end_sector; in scsi_partsize() local
142 cyl = p->cyl + ((p->sector & 0xc0) << 2); in scsi_partsize()
143 if (cyl > largest_cyl) { in scsi_partsize()
144 largest_cyl = cyl; in scsi_partsize()
Dscsi_debug.c2003 pp->cyl = start_sec / heads_by_sects; in sdebug_build_parts()
2004 pp->head = (start_sec - (pp->cyl * heads_by_sects)) in sdebug_build_parts()
/drivers/ide/
Dide-disk.c143 unsigned int sect, head, cyl, track; in __ide_do_rw_disk() local
148 cyl = track / drive->head; in __ide_do_rw_disk()
150 pr_debug("%s: CHS=%u/%u/%u\n", drive->name, cyl, head, sect); in __ide_do_rw_disk()
154 tf->lbam = cyl; in __ide_do_rw_disk()
155 tf->lbah = cyl >> 8; in __ide_do_rw_disk()
352 drive->capacity64 = drive->cyl * drive->head * drive->sect; in ide_disk_get_capacity()
657 unsigned int cylsz, cyl; in ide_disk_setup() local
663 cyl = cap0 / cylsz; in ide_disk_setup()
664 if (cyl > 65535) in ide_disk_setup()
665 cyl = 65535; in ide_disk_setup()
[all …]
Dide.c384 unsigned int cyl; member
415 ide_disks_chs[i].cyl = c; in ide_set_disk_chs()
455 drive->cyl = drive->bios_cyl = ide_disks_chs[i].cyl; in ide_dev_apply_params()
461 drive->cyl, drive->head, drive->sect); in ide_dev_apply_params()
Dide-probe.c55 id[ATA_ID_CUR_CYLS] = id[ATA_ID_CYLS] = drive->cyl; in generic_id()
65 if (!drive->cyl || !drive->head || !drive->sect) { in ide_disk_init_chs()
66 drive->cyl = drive->bios_cyl = id[ATA_ID_CYLS]; in ide_disk_init_chs()
73 drive->cyl = id[ATA_ID_CUR_CYLS]; in ide_disk_init_chs()
80 drive->cyl = id[ATA_ID_CYLS]; in ide_disk_init_chs()
608 drive->name, drive->cyl, in probe_for_drive()
Dide-io.c341 tf->lbam = drive->cyl; in ide_tf_set_specify_cmd()
342 tf->lbah = drive->cyl >> 8; in ide_tf_set_specify_cmd()
Dide-proc.c418 drive->cyl, drive->head, drive->sect); in proc_ide_read_geometry()
/drivers/s390/block/
Ddasd_eckd.c251 geo.cyl = private->rdc_data.no_cyl; in define_extent()
253 beg.cyl = trk / geo.head; in define_extent()
255 end.cyl = totrk / geo.head; in define_extent()
262 if (end.cyl + private->attrib.nr_cyl < geo.cyl) in define_extent()
263 end.cyl += private->attrib.nr_cyl; in define_extent()
265 end.cyl = (geo.cyl - 1); in define_extent()
268 data->beg_ext.cyl = beg.cyl; in define_extent()
270 data->end_ext.cyl = end.cyl; in define_extent()
377 geo.cyl = basepriv->rdc_data.no_cyl; in prefix()
379 beg.cyl = trk / geo.head; in prefix()
[all …]
Ddasd_eckd.h56 __u16 cyl; member
64 __u16 cyl; member
69 __u16 cyl; member
75 __u16 cyl; member
81 __u16 cyl; member
/drivers/mtd/
Dssfdc.c59 unsigned short cyl; member
77 static int get_chs(unsigned long size, unsigned short *cyl, unsigned char *head, in get_chs() argument
88 if (cyl) in get_chs()
89 *cyl = chs_table[k].cyl; in get_chs()
/drivers/ata/
Dlibata-scsi.c1566 u32 sect, head, cyl, track; in ata_scsi_verify_xlat() local
1573 cyl = track / dev->heads; in ata_scsi_verify_xlat()
1578 (u32)block, track, cyl, head, sect); in ata_scsi_verify_xlat()
1584 if ((cyl >> 16) || (head >> 4) || (sect >> 8) || (!sect)) in ata_scsi_verify_xlat()
1590 tf->lbam = cyl; in ata_scsi_verify_xlat()
1591 tf->lbah = cyl >> 8; in ata_scsi_verify_xlat()
Dlibata-core.c705 u32 cyl, head, sect; in ata_tf_read_block() local
707 cyl = tf->lbam | (tf->lbah << 8); in ata_tf_read_block()
711 block = (cyl * dev->heads + head) * dev->sectors + sect; in ata_tf_read_block()
805 u32 sect, head, cyl, track; in ata_build_rw_tf() local
816 cyl = track / dev->heads; in ata_build_rw_tf()
821 (u32)block, track, cyl, head, sect); in ata_build_rw_tf()
827 if ((cyl >> 16) || (head >> 4) || (sect >> 8) || (!sect)) in ata_build_rw_tf()
832 tf->lbam = cyl; in ata_build_rw_tf()
833 tf->lbah = cyl >> 8; in ata_build_rw_tf()