/openbmc/qemu/hw/block/ |
H A D | hd-geometry.c | 59 int i, heads, sectors, cylinders; in guess_disk_lchs() local 84 cylinders = nb_sectors / (heads * sectors); in guess_disk_lchs() 85 if (cylinders < 1 || cylinders > 16383) { in guess_disk_lchs() 90 *pcylinders = cylinders; in guess_disk_lchs() 91 trace_hd_geometry_lchs_guess(blk, cylinders, heads, sectors); in guess_disk_lchs() 102 int cylinders; in guess_chs_for_size() local 106 cylinders = nb_sectors / (16 * 63); in guess_chs_for_size() 107 if (cylinders > 16383) { in guess_chs_for_size() 108 cylinders = 16383; in guess_chs_for_size() 109 } else if (cylinders < 2) { in guess_chs_for_size() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | scsicam.c | 179 unsigned long heads, sectors, cylinders, temp; in setsize() local 181 cylinders = 1024L; /* Set number of cylinders to max */ in setsize() 184 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize() 188 temp = cylinders * heads; /* Compute divisor for sectors */ in setsize() 194 cylinders = capacity / temp; /* Compute number of cylinders */ in setsize() 197 if (cylinders == 0) in setsize() 200 *cyls = (unsigned int) cylinders; /* Stuff return values */ in setsize()
|
/openbmc/linux/drivers/mtd/ |
H A D | ssfdc.c | 24 unsigned short cylinders; member 320 ssfdc->cylinders = (unsigned short)(((u32)mtd->size >> SECTOR_SHIFT) / in ssfdcr_add_mtd() 324 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd() 325 (long)ssfdc->cylinders * (long)ssfdc->heads * in ssfdcr_add_mtd() 328 ssfdc->mbd.size = (long)ssfdc->heads * (long)ssfdc->cylinders * in ssfdcr_add_mtd() 411 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo() 415 geo->cylinders = ssfdc->cylinders; in ssfdcr_getgeo()
|
H A D | nftlcore.c | 67 nftl->cylinders = 1024; in nftl_add_mtd() 70 temp = nftl->cylinders * nftl->heads; in nftl_add_mtd() 74 temp = nftl->cylinders * nftl->sectors; in nftl_add_mtd() 80 nftl->cylinders = nftl->mbd.size / temp; in nftl_add_mtd() 84 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) { in nftl_add_mtd() 93 nftl->cylinders, nftl->heads , nftl->sectors, in nftl_add_mtd() 94 (long)nftl->cylinders * (long)nftl->heads * in nftl_add_mtd() 772 geo->cylinders = nftl->cylinders; in nftl_getgeo()
|
H A D | inftlcore.c | 74 inftl->cylinders = 1024; in inftl_add_mtd() 77 temp = inftl->cylinders * inftl->heads; in inftl_add_mtd() 81 temp = inftl->cylinders * inftl->sectors; in inftl_add_mtd() 87 inftl->cylinders = inftl->mbd.size / temp; in inftl_add_mtd() 91 if (inftl->mbd.size != inftl->heads * inftl->cylinders * inftl->sectors) { in inftl_add_mtd() 100 inftl->cylinders, inftl->heads , inftl->sectors, in inftl_add_mtd() 101 (long)inftl->cylinders * (long)inftl->heads * in inftl_add_mtd() 922 geo->cylinders = inftl->cylinders; in inftl_getgeo()
|
H A D | rfd_ftl.c | 85 int cylinders; member 175 part->cylinders = (part->data_sectors_per_block * in scan_header() 178 part->sector_count = part->cylinders * SECTORS_PER_TRACK; in scan_header() 742 geo->cylinders = part->cylinders; in rfd_ftl_getgeo()
|
H A D | sm_ftl.h | 56 int cylinders; member
|
/openbmc/qemu/qapi/ |
H A D | block.json | 26 # tracks across all heads (i.e. cylinders*heads<131072), otherwise 33 # 1024 cylinders/head). The number of cylinders/head is then 36 # @large: The number of cylinders per head is scaled down to 1024 by 41 # cylinders/head.
|
/openbmc/linux/arch/x86/boot/ |
H A D | mtools.conf.in | 11 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=18 filter 15 file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=36 filter
|
/openbmc/u-boot/doc/imx/mkimage/ |
H A D | imximage.txt | 160 for the cylinders. 185 Number of cylinders (1-1048576, default 60032): 239 204 Last cylinder, +cylinders or +size{K,M,G} (3-239, default 239): +100M 209 255 heads, 63 sectors/track, 239 cylinders 210 Units = cylinders of 16065 * 512 = 8225280 bytes
|
/openbmc/qemu/hw/i386/ |
H A D | pc.c | 328 int16_t cylinders, int8_t heads, int8_t sectors) in cmos_init_hd() argument 331 mc146818rtc_set_cmos_data(s, info_ofs, cylinders); in cmos_init_hd() 332 mc146818rtc_set_cmos_data(s, info_ofs + 1, cylinders >> 8); in cmos_init_hd() 337 mc146818rtc_set_cmos_data(s, info_ofs + 6, cylinders); in cmos_init_hd() 338 mc146818rtc_set_cmos_data(s, info_ofs + 7, cylinders >> 8); in cmos_init_hd() 495 int16_t cylinders; in pc_cmos_init_late() local 503 &cylinders, &heads, §ors) >= 0) { in pc_cmos_init_late() 504 cmos_init_hd(s, 0x19, 0x1b, cylinders, heads, sectors); in pc_cmos_init_late() 509 &cylinders, &heads, §ors) >= 0) { in pc_cmos_init_late() 510 cmos_init_hd(s, 0x1a, 0x24, cylinders, head in pc_cmos_init_late() [all...] |
/openbmc/linux/Documentation/scsi/ |
H A D | aha152x.rst | 130 The number of cylinders/heads/sectors is called geometry and is required 147 and a maximum of 1023 cylinders. 151 cylinders by dividing the capacity reported by the disk by 64*32 (1 MB). 154 With respect to the limit of 1023 cylinders using C/H/S you can only
|
/openbmc/qemu/block/ |
H A D | parallels.h | 45 uint32_t cylinders; member
|
H A D | vdi.c | 160 uint32_t cylinders; /* disk geometry, unused here */ member 203 header->cylinders = le32_to_cpu(header->cylinders); in vdi_header_to_cpu() 227 header->cylinders = cpu_to_le32(header->cylinders); in vdi_header_to_le() 254 logout("cylinders 0x%04x\n", header->cylinders); in vdi_header_print()
|
/openbmc/linux/include/linux/mtd/ |
H A D | nftl.h | 28 unsigned short cylinders; member
|
H A D | inftl.h | 36 unsigned short cylinders; member
|
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio_blk.h | 44 __u16 cylinders; member
|
/openbmc/linux/drivers/block/ |
H A D | sunvdc.c | 126 sector_t cylinders = nsect; in vdc_getgeo() local 130 sector_div(cylinders, geo->heads * geo->sectors); in vdc_getgeo() 131 geo->cylinders = cylinders; in vdc_getgeo() 132 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo() 133 geo->cylinders = 0xffff; in vdc_getgeo()
|
/openbmc/linux/drivers/memstick/core/ |
H A D | mspro_block.c | 126 __be16 cylinders; member 144 unsigned short cylinders; member 199 geo->cylinders = msb->cylinders; in mspro_block_bd_getgeo() 410 rc += sysfs_emit_at(buffer, rc, "cylinders: %x\n", be16_to_cpu(x_devinfo->cylinders)); in mspro_block_attr_show_devinfo() 1124 msb->cylinders = be16_to_cpu(dev_info->cylinders); in mspro_block_init_disk()
|
/openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/ |
H A D | 0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch | 152 - geo->cylinders = fd_str.track; 171 - geo->cylinders = totalbytes / (geo->heads * geo->sectors << SECTOR_SHIFT); 351 + geo->cylinders = fd_str.track; 370 + geo->cylinders = totalbytes / (geo->heads * geo->sectors << SECTOR_SHIFT);
|
/openbmc/u-boot/disk/ |
H A D | part_amiga.h | 45 u32 cylinders; member
|
/openbmc/qemu/hw/ide/ |
H A D | ide-bus.c | 95 *cyls = s->cylinders; in ide_get_geometry()
|
/openbmc/linux/include/uapi/linux/ |
H A D | virtio_blk.h | 69 __virtio16 cylinders; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | virtio_blk.h | 67 __virtio16 cylinders; member
|
/openbmc/qemu/include/hw/ide/ |
H A D | ide-dev.h | 60 int cylinders, heads, sectors, chs_trans; member
|