Home
last modified time | relevance | path

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

12

/openbmc/qemu/tests/qtest/
H A Dfdc-test.c121 uint8_t cyl = 0; in send_read_command() local
136 floppy_send(cyl); in send_read_command()
177 uint8_t cyl = 0; in send_read_no_dma_command() local
192 floppy_send(cyl); in send_read_no_dma_command()
255 floppy_send(cyl); in send_seek()
362 int cyl = 0; in test_sense_interrupt() local
372 floppy_send(cyl); in test_sense_interrupt()
384 uint8_t cyl = 1; in test_relative_seek() local
394 floppy_send(cyl); in test_relative_seek()
413 uint8_t cyl; in test_read_id() local
[all …]
H A Dhd-geo-test.c410 uint32_t cyl; member
431 uint8_t status, parttype, head, sector, cyl; in create_qcow2_with_mbr() local
441 g_assert(mbr[i].cyl < 1024); in create_qcow2_with_mbr()
443 sector = mbr[i].sector + ((mbr[i].cyl & 0x300) >> 2); in create_qcow2_with_mbr()
444 cyl = mbr[i].cyl & 0xff; in create_qcow2_with_mbr()
449 buf[offset + 0x3] = cyl; in create_qcow2_with_mbr()
457 cyl = mbr[i].end_cyl & 0xff; in create_qcow2_with_mbr()
462 buf[offset + 0x7] = cyl; in create_qcow2_with_mbr()
/openbmc/linux/block/partitions/
H A Dibm.c33 sector_t cyl; in cchh2blk() local
37 cyl = ptr->hh & 0xFFF0; in cchh2blk()
38 cyl <<= 12; in cchh2blk()
39 cyl |= ptr->cc; in cchh2blk()
41 return cyl * geo->heads * geo->sectors + in cchh2blk()
51 sector_t cyl; in cchhb2blk() local
55 cyl = ptr->hh & 0xFFF0; in cchhb2blk()
56 cyl <<= 12; in cchhb2blk()
57 cyl |= ptr->cc; in cchhb2blk()
59 return cyl * geo->heads * geo->sectors + in cchhb2blk()
/openbmc/linux/drivers/scsi/
H A Dscsicam.c62 int cyl, ext_cyl, end_head, end_cyl, end_sector; in scsi_partsize() local
82 cyl = p->cyl + ((p->sector & 0xc0) << 2); in scsi_partsize()
83 if (cyl > largest_cyl) { in scsi_partsize()
84 largest_cyl = cyl; in scsi_partsize()
/openbmc/linux/drivers/mtd/
H A Dssfdc.c56 unsigned short cyl; member
74 static int get_chs(unsigned long size, unsigned short *cyl, unsigned char *head, in get_chs() argument
85 if (cyl) in get_chs()
86 *cyl = chs_table[k].cyl; in get_chs()
H A Dsm_ftl.h63 unsigned short cyl; member
H A Dsm_ftl.c645 ftl->cylinders = chs_table[i].cyl; in sm_get_media_info()
/openbmc/qemu/pc-bios/s390-ccw/
H A Dbootmap.c110 uint64_t cyl, head, sec; in gen_eckd_block_num() local
111 eckd_format_chs(ptr, ldipl, &cyl, &head, &sec); in gen_eckd_block_num()
112 return eckd_chs_to_block(cyl, head, sec); in gen_eckd_block_num()
115 static bool eckd_valid_chs(uint64_t cyl, uint64_t head, uint64_t sector) in eckd_valid_chs() argument
124 eckd_chs_to_block(cyl, head, sector) >= virtio_get_blocks()) { in eckd_valid_chs()
133 uint64_t cyl, head, sec; in eckd_valid_address() local
134 eckd_format_chs(ptr, ldipl, &cyl, &head, &sec); in eckd_valid_address()
135 return eckd_valid_chs(cyl, head, sec); in eckd_valid_address()
H A Ddasd-ipl.c174 seekData->cyl = 0x00; in ipl1_fixup()
181 searchData->cyl = 0; in ipl1_fixup()
H A Dcio.h353 uint16_t cyl; member
359 uint16_t cyl; member
/openbmc/u-boot/disk/
H A Dpart_dos.h23 unsigned char cyl; /* starting cylinder */ member
/openbmc/linux/include/linux/
H A Dmsdos_partition.h11 u8 cyl; /* starting cylinder */ member
/openbmc/linux/include/linux/mtd/
H A Dnftl.h33 int head,sect,cyl; member
H A Dinftl.h42 int head,sect,cyl; member
/openbmc/u-boot/include/
H A Dpart_efi.h66 u8 cyl; /* starting cylinder */ member
/openbmc/linux/drivers/s390/block/
H A Ddasd_eckd.h142 __u16 cyl; member
150 __u16 cyl; member
155 __u16 cyl; member
H A Ddasd_eckd.c207 geo->cyl = (__u16) cyl; in set_ch_t()
222 u32 cyl; in dasd_eckd_track_from_irb() local
242 cyl |= sense[29]; in dasd_eckd_track_from_irb()
245 cyl |= sense[30]; in dasd_eckd_track_from_irb()
524 data->search_arg.cyl = data->seek_addr.cyl; in locate_record_ext()
701 data->search_arg.cyl = data->seek_addr.cyl; in locate_record()
2854 ect->cyl = address.cyl; in dasd_eckd_build_format()
2869 ect->cyl = address.cyl; in dasd_eckd_build_format()
2883 ect->cyl = address.cyl; in dasd_eckd_build_format()
3457 if (fmt_buffer[pos].cyl != geo.cyl || in dasd_eckd_format_evaluate_tracks()
[all …]
/openbmc/qemu/hw/block/
H A Dhd-geometry.c44 uint8_t cyl; /* starting cylinder */ member
/openbmc/linux/drivers/memstick/core/
H A Dms_block.h267 unsigned short cyl; member
H A Dms_block.c1756 msb->geometry.cylinders = chs_table[i].cyl; in msb_init_card()
/openbmc/linux/arch/s390/include/uapi/asm/
H A Dipl.h130 __u16 cyl; member
/openbmc/linux/drivers/ata/
H A Dlibata-core.c650 u32 cyl, head, sect; in ata_tf_read_block() local
652 cyl = tf->lbam | (tf->lbah << 8); in ata_tf_read_block()
662 block = (cyl * dev->heads + head) * dev->sectors + sect - 1; in ata_tf_read_block()
793 u32 sect, head, cyl, track; in ata_build_rw_tf() local
804 cyl = track / dev->heads; in ata_build_rw_tf()
812 if ((cyl >> 16) || (head >> 4) || (sect >> 8) || (!sect)) in ata_build_rw_tf()
817 tf->lbam = cyl; in ata_build_rw_tf()
818 tf->lbah = cyl >> 8; in ata_build_rw_tf()
H A Dlibata-scsi.c1475 u32 sect, head, cyl, track; in ata_scsi_verify_xlat() local
1482 cyl = track / dev->heads; in ata_scsi_verify_xlat()
1490 if ((cyl >> 16) || (head >> 4) || (sect >> 8) || (!sect)) in ata_scsi_verify_xlat()
1496 tf->lbam = cyl; in ata_scsi_verify_xlat()
1497 tf->lbah = cyl >> 8; in ata_scsi_verify_xlat()
/openbmc/qemu/hw/ide/
H A Dcore.c640 unsigned int cyl, r; in ide_set_sector() local
659 cyl = sector_num / (s->heads * s->sectors); in ide_set_sector()
661 s->hcyl = cyl >> 8; in ide_set_sector()
662 s->lcyl = cyl; in ide_set_sector()
/openbmc/linux/arch/s390/kernel/
H A Dipl.c476 if (!ipb->br_chr.cyl && \
482 ipb->br_chr.cyl, \
524 ipb->br_chr.cyl = args[0]; \

12