/linux-6.3-rc2/drivers/scsi/ |
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()
|
A D | storvsc_drv.c | 1596 sector_t cylinders = nsect; in storvsc_get_chs() local 1604 sector_div(cylinders, heads * sectors_pt); in storvsc_get_chs() 1605 if ((sector_t)(cylinders + 1) * heads * sectors_pt < nsect) in storvsc_get_chs() 1606 cylinders = 0xffff; in storvsc_get_chs() 1610 info[2] = (int)cylinders; in storvsc_get_chs()
|
A D | 3w-xxxx.c | 1346 int heads, sectors, cylinders; in tw_scsi_biosparam() local 1352 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam() 1357 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam() 1360 …xxxx: tw_scsi_biosparam(): heads = %d, sectors = %d, cylinders = %d\n", heads, sectors, cylinders); in tw_scsi_biosparam() 1363 geom[2] = cylinders; in tw_scsi_biosparam()
|
A D | megaraid.c | 2793 int cylinders; in megaraid_biosparam() local 2802 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2811 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2817 geom[2] = cylinders; in megaraid_biosparam() 2830 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2836 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2842 geom[2] = cylinders; in megaraid_biosparam()
|
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()
|
/linux-6.3-rc2/drivers/mtd/ |
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()
|
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()
|
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()
|
A D | sm_ftl.h | 56 int cylinders; member
|
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()
|
A D | sm_ftl.c | 645 ftl->cylinders = chs_table[i].cyl; in sm_get_media_info() 653 ftl->cylinders = 985; in sm_get_media_info() 1127 geo->cylinders = ftl->cylinders; in sm_getgeo()
|
/linux-6.3-rc2/arch/x86/boot/ |
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-6.3-rc2/Documentation/scsi/ |
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-6.3-rc2/include/linux/mtd/ |
A D | nftl.h | 28 unsigned short cylinders; member
|
A D | inftl.h | 36 unsigned short cylinders; member
|
/linux-6.3-rc2/drivers/block/ |
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()
|
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-6.3-rc2/drivers/memstick/core/ |
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()
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | virtio_blk.h | 69 __virtio16 cylinders; member
|
A D | hdreg.h | 327 unsigned short cylinders; member
|
/linux-6.3-rc2/arch/m68k/emu/ |
A D | nfblock.c | 84 geo->cylinders = dev->blocks >> (6 - dev->bshift); in nfhd_getgeo()
|
/linux-6.3-rc2/drivers/block/aoe/ |
A D | aoeblk.c | 281 geo->cylinders = d->geo.cylinders; in aoeblk_getgeo()
|
/linux-6.3-rc2/Documentation/userspace-api/ioctl/ |
A D | hdio.rst | 76 cylinders number of cylinders, mod 65536 97 In addition, the cylinders field of the hd_geometry is an
|
/linux-6.3-rc2/drivers/scsi/aic7xxx/ |
A D | aic7xxx_osm.c | 690 int cylinders; in ahc_linux_biosparam() local 703 cylinders = aic_sector_div(capacity, heads, sectors); in ahc_linux_biosparam() 711 if (extended && cylinders >= 1024) { in ahc_linux_biosparam() 714 cylinders = aic_sector_div(capacity, heads, sectors); in ahc_linux_biosparam() 718 geom[2] = cylinders; in ahc_linux_biosparam()
|
/linux-6.3-rc2/drivers/scsi/aacraid/ |
A D | linit.c | 320 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 334 int saved_cylinders = param->cylinders; in aac_biosparm() 363 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 365 if (param->cylinders != saved_cylinders) { in aac_biosparm()
|