/drivers/scsi/ |
D | scsicam.c | 235 unsigned long heads, sectors, cylinders, temp; in setsize() local 237 cylinders = 1024L; /* Set number of cylinders to max */ in setsize() 240 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize() 244 temp = cylinders * heads; /* Compute divisor for sectors */ in setsize() 250 cylinders = capacity / temp; /* Compute number of cylinders */ in setsize() 253 if (cylinders == 0) in setsize() 256 *cyls = (unsigned int) cylinders; /* Stuff return values */ in setsize()
|
D | storvsc_drv.c | 1431 sector_t cylinders = nsect; in storvsc_get_chs() local 1439 sector_div(cylinders, heads * sectors_pt); in storvsc_get_chs() 1440 if ((sector_t)(cylinders + 1) * heads * sectors_pt < nsect) in storvsc_get_chs() 1441 cylinders = 0xffff; in storvsc_get_chs() 1445 info[2] = (int)cylinders; in storvsc_get_chs()
|
D | fdomain.c | 1596 unsigned short cylinders; in fdomain_16x0_biosparam() member 1670 info_array[2] = i.cylinders; in fdomain_16x0_biosparam() 1678 info_array[2] = i.cylinders; in fdomain_16x0_biosparam()
|
D | 3w-xxxx.c | 1338 int heads, sectors, cylinders; in tw_scsi_biosparam() local 1346 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam() 1351 cylinders = sector_div(capacity, heads * sectors); in tw_scsi_biosparam() 1354 …xxxx: tw_scsi_biosparam(): heads = %d, sectors = %d, cylinders = %d\n", heads, sectors, cylinders); in tw_scsi_biosparam() 1357 geom[2] = cylinders; in tw_scsi_biosparam()
|
D | mvumi.c | 2166 sector_t cylinders; in mvumi_bios_param() local 2172 cylinders = capacity; in mvumi_bios_param() 2173 sector_div(cylinders, tmp); in mvumi_bios_param() 2179 cylinders = capacity; in mvumi_bios_param() 2180 sector_div(cylinders, tmp); in mvumi_bios_param() 2184 geom[2] = cylinders; in mvumi_bios_param()
|
D | megaraid.c | 2838 int cylinders; in megaraid_biosparam() local 2848 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2857 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2863 geom[2] = cylinders; in megaraid_biosparam() 2883 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2889 cylinders = (ulong)capacity / (heads * sectors); in megaraid_biosparam() 2895 geom[2] = cylinders; in megaraid_biosparam()
|
/drivers/mtd/ |
D | ssfdc.c | 27 unsigned short cylinders; member 323 ssfdc->cylinders = (unsigned short)(((u32)mtd->size >> SECTOR_SHIFT) / in ssfdcr_add_mtd() 327 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd() 328 (long)ssfdc->cylinders * (long)ssfdc->heads * in ssfdcr_add_mtd() 331 ssfdc->mbd.size = (long)ssfdc->heads * (long)ssfdc->cylinders * in ssfdcr_add_mtd() 413 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo() 417 geo->cylinders = ssfdc->cylinders; in ssfdcr_getgeo()
|
D | nftlcore.c | 80 nftl->cylinders = 1024; in nftl_add_mtd() 83 temp = nftl->cylinders * nftl->heads; in nftl_add_mtd() 87 temp = nftl->cylinders * nftl->sectors; in nftl_add_mtd() 93 nftl->cylinders = nftl->mbd.size / temp; in nftl_add_mtd() 97 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) { in nftl_add_mtd() 106 nftl->cylinders, nftl->heads , nftl->sectors, in nftl_add_mtd() 107 (long)nftl->cylinders * (long)nftl->heads * in nftl_add_mtd() 786 geo->cylinders = nftl->cylinders; in nftl_getgeo()
|
D | inftlcore.c | 87 inftl->cylinders = 1024; in inftl_add_mtd() 90 temp = inftl->cylinders * inftl->heads; in inftl_add_mtd() 94 temp = inftl->cylinders * inftl->sectors; in inftl_add_mtd() 100 inftl->cylinders = inftl->mbd.size / temp; in inftl_add_mtd() 104 if (inftl->mbd.size != inftl->heads * inftl->cylinders * inftl->sectors) { in inftl_add_mtd() 113 inftl->cylinders, inftl->heads , inftl->sectors, in inftl_add_mtd() 114 (long)inftl->cylinders * (long)inftl->heads * in inftl_add_mtd() 935 geo->cylinders = inftl->cylinders; in inftl_getgeo()
|
D | rfd_ftl.c | 84 int cylinders; member 174 part->cylinders = (part->data_sectors_per_block * in scan_header() 177 part->sector_count = part->cylinders * SECTORS_PER_TRACK; in scan_header() 752 geo->cylinders = part->cylinders; in rfd_ftl_getgeo()
|
D | sm_ftl.h | 62 int cylinders; member
|
D | sm_ftl.c | 652 ftl->cylinders = chs_table[i].cyl; in sm_get_media_info() 660 ftl->cylinders = 985; in sm_get_media_info() 1125 geo->cylinders = ftl->cylinders; in sm_getgeo()
|
/drivers/block/paride/ |
D | pd.c | 230 int cylinders; member 694 disk->cylinders = le16_to_cpu(*(__le16 *) (pd_scratch + 2)); in pd_identify() 698 disk->capacity = disk->sectors * disk->heads * disk->cylinders; in pd_identify() 714 disk->cylinders, disk->heads, disk->sectors, in pd_identify() 777 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo() 781 geo->cylinders = disk->cylinders; in pd_getgeo()
|
D | pf.c | 343 geo->cylinders = sector_div(capacity, PF_FD_HDS * PF_FD_SPT); in pf_getgeo() 347 geo->cylinders = sector_div(capacity, PF_HD_HDS * PF_HD_SPT); in pf_getgeo()
|
/drivers/block/ |
D | sunvdc.c | 119 sector_t cylinders = nsect; in vdc_getgeo() local 123 sector_div(cylinders, geo->heads * geo->sectors); in vdc_getgeo() 124 geo->cylinders = cylinders; in vdc_getgeo() 125 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo() 126 geo->cylinders = 0xffff; in vdc_getgeo()
|
D | virtio_blk.c | 326 geometry.cylinders, &geo->cylinders); in virtblk_getgeo() 335 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in virtblk_getgeo()
|
D | xen-blkfront.c | 482 sector_t cylinders = nsect; in blkif_getgeo() local 486 sector_div(cylinders, hg->heads * hg->sectors); in blkif_getgeo() 487 hg->cylinders = cylinders; in blkif_getgeo() 488 if ((sector_t)(hg->cylinders + 1) * hg->heads * hg->sectors < nsect) in blkif_getgeo() 489 hg->cylinders = 0xffff; in blkif_getgeo()
|
/drivers/block/rsxx/ |
D | dev.c | 98 geo->cylinders = blocks; in rsxx_getgeo() 102 geo->cylinders = 0; in rsxx_getgeo()
|
/drivers/memstick/core/ |
D | mspro_block.c | 130 __be16 cylinders; member 148 unsigned short cylinders; member 241 geo->cylinders = msb->cylinders; in mspro_block_bd_getgeo() 485 be16_to_cpu(x_devinfo->cylinders)); in mspro_block_attr_show_devinfo() 1196 msb->cylinders = be16_to_cpu(dev_info->cylinders); in mspro_block_init_disk()
|
/drivers/scsi/dpt/ |
D | sys_info.h | 82 uSHORT cylinders; /* Up to 1024 */ member
|
/drivers/block/aoe/ |
D | aoeblk.c | 306 geo->cylinders = d->geo.cylinders; in aoeblk_getgeo()
|
/drivers/scsi/aic7xxx/ |
D | aic7xxx_osm.c | 701 int cylinders; in ahc_linux_biosparam() local 720 cylinders = aic_sector_div(capacity, heads, sectors); in ahc_linux_biosparam() 728 if (extended && cylinders >= 1024) { in ahc_linux_biosparam() 731 cylinders = aic_sector_div(capacity, heads, sectors); in ahc_linux_biosparam() 735 geom[2] = cylinders; in ahc_linux_biosparam()
|
/drivers/s390/block/ |
D | xpram.c | 242 geo->cylinders = size >> 6; in xpram_getgeo()
|
/drivers/message/fusion/ |
D | mptscsih.c | 2088 sector_t cylinders; in mptscsih_bios_param() local 2095 cylinders = capacity; in mptscsih_bios_param() 2096 sector_div(cylinders,dummy); in mptscsih_bios_param() 2106 cylinders = capacity; in mptscsih_bios_param() 2107 sector_div(cylinders,dummy); in mptscsih_bios_param() 2113 geom[2] = cylinders; in mptscsih_bios_param()
|
/drivers/scsi/aacraid/ |
D | linit.c | 334 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 348 int saved_cylinders = param->cylinders; in aac_biosparm() 377 param->cylinders = cap_to_cyls(capacity, param->heads * param->sectors); in aac_biosparm() 379 if (param->cylinders != saved_cylinders) in aac_biosparm()
|