| /linux/drivers/mtd/ |
| H A D | ssfdc.c | 23 unsigned short cylinders; member 319 ssfdc->cylinders = (unsigned short)(((u32)mtd->size >> SECTOR_SHIFT) / in ssfdcr_add_mtd() 323 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd() 324 (long)ssfdc->cylinders * (long)ssfdc->heads * in ssfdcr_add_mtd() 327 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() 771 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() 923 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() 741 geo->cylinders = part->cylinders; in rfd_ftl_getgeo()
|
| /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
|
| /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
|
| /linux/include/linux/mtd/ |
| H A D | nftl.h | 28 unsigned short cylinders; member
|
| H A D | inftl.h | 36 unsigned short cylinders; member
|
| /linux/drivers/block/ |
| H A D | sunvdc.c | 125 sector_t cylinders = nsect; in vdc_getgeo() local 129 sector_div(cylinders, geo->heads * geo->sectors); in vdc_getgeo() 130 geo->cylinders = cylinders; in vdc_getgeo() 131 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo() 132 geo->cylinders = 0xffff; in vdc_getgeo()
|
| H A D | xen-blkfront.c | 501 sector_t cylinders = nsect; in blkif_getgeo() local 505 sector_div(cylinders, hg->heads * hg->sectors); in blkif_getgeo() 506 hg->cylinders = cylinders; in blkif_getgeo() 507 if ((sector_t)(hg->cylinders + 1) * hg->heads * hg->sectors < nsect) in blkif_getgeo() 508 hg->cylinders = 0xffff; in blkif_getgeo()
|
| /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() 1126 msb->cylinders = be16_to_cpu(dev_info->cylinders); in mspro_block_init_disk()
|
| /linux/include/uapi/linux/ |
| H A D | virtio_blk.h | 69 __virtio16 cylinders; member
|
| H A D | hdreg.h | 327 unsigned short cylinders; member
|
| /linux/Documentation/userspace-api/ioctl/ |
| H A D | hdio.rst | 76 cylinders number of cylinders, mod 65536 97 In addition, the cylinders field of the hd_geometry is an
|
| /linux/drivers/scsi/aic7xxx/ |
| H A D | aic7xxx_osm.c | 691 int cylinders; in ahc_linux_biosparam() local 704 cylinders = aic_sector_div(capacity, heads, sectors); in ahc_linux_biosparam() 712 if (extended && cylinders >= 1024) { in ahc_linux_biosparam() 715 cylinders = aic_sector_div(capacity, heads, sectors); in ahc_linux_biosparam() 719 geom[2] = cylinders; in ahc_linux_biosparam()
|
| H A D | aic79xx_osm.c | 728 int cylinders; in ahd_linux_biosparam() local 739 cylinders = aic_sector_div(capacity, heads, sectors); in ahd_linux_biosparam() 745 if (extended && cylinders >= 1024) { in ahd_linux_biosparam() 748 cylinders = aic_sector_div(capacity, heads, sectors); in ahd_linux_biosparam() 752 geom[2] = cylinders; in ahd_linux_biosparam()
|
| /linux/drivers/scsi/aacraid/ |
| H A D | linit.c | 319 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 333 int saved_cylinders = param->cylinders; in aac_biosparm() 362 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 364 if (param->cylinders != saved_cylinders) { in aac_biosparm()
|
| /linux/drivers/scsi/ |
| H A D | megaraid.c | 2790 int cylinders; in megaraid_biosparam() local 2799 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2808 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2814 geom[2] = cylinders; in megaraid_biosparam() 2827 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2833 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2839 geom[2] = cylinders; in megaraid_biosparam()
|
| H A D | mvumi.c | 2148 sector_t cylinders; in mvumi_bios_param() local 2154 cylinders = capacity; in mvumi_bios_param() 2155 sector_div(cylinders, tmp); in mvumi_bios_param() 2161 cylinders = capacity; in mvumi_bios_param() 2162 sector_div(cylinders, tmp); in mvumi_bios_param() 2166 geom[2] = cylinders; in mvumi_bios_param()
|
| H A D | 3w-9xxx.c | 1700 int heads, sectors, cylinders; in twa_scsi_biosparam() local 1705 cylinders = sector_div(capacity, heads * sectors); in twa_scsi_biosparam() 1709 cylinders = sector_div(capacity, heads * sectors); in twa_scsi_biosparam() 1714 geom[2] = cylinders; in twa_scsi_biosparam()
|
| H A D | ips.c | 1133 int cylinders; in DEF_SCSI_QCMD() local 1156 cylinders = (unsigned long) capacity / (heads * sectors); in DEF_SCSI_QCMD() 1159 heads, sectors, cylinders); in DEF_SCSI_QCMD() 1163 geom[2] = cylinders; in DEF_SCSI_QCMD() 4078 uint32_t cylinders; in ips_msense() local 4092 cylinders = in ips_msense() 4124 cpu_to_be16((cylinders >> 8) & 0xFFFF); in ips_msense() 4125 mdata.pdata.pg4.CylindersLow = (cylinders & 0xFF); in ips_msense()
|
| /linux/drivers/scsi/leapraid/ |
| H A D | leapraid_os.c | 1776 sector_t cylinders; in leapraid_bios_param() local 1789 cylinders = capacity; in leapraid_bios_param() 1790 sector_div(cylinders, heads * sectors); in leapraid_bios_param() 1794 geom[2] = cylinders; in leapraid_bios_param()
|
| /linux/drivers/block/aoe/ |
| H A D | aoecmd.c | 948 d->geo.cylinders = ssize; in ataid_complete() 949 d->geo.cylinders /= (255 * 63); in ataid_complete() 959 d->geo.cylinders = get_unaligned_le16(&id[54 << 1]); in ataid_complete()
|
| /linux/drivers/s390/block/ |
| H A D | dasd_diag.c | 488 geo->cylinders = (block->blocks << block->s2b_shift) >> 10; in dasd_diag_fill_geometry()
|
| /linux/drivers/scsi/mpi3mr/ |
| H A D | mpi3mr_os.c | 4157 sector_t cylinders; in mpi3mr_bios_param() local 4164 cylinders = capacity; in mpi3mr_bios_param() 4165 sector_div(cylinders, dummy); in mpi3mr_bios_param() 4171 cylinders = capacity; in mpi3mr_bios_param() 4172 sector_div(cylinders, dummy); in mpi3mr_bios_param() 4177 params[2] = cylinders; in mpi3mr_bios_param()
|