/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | scsicam.c | 51 * scsi_partsize - Parse cylinders/heads/sectors from PC partition table 54 * @geom: output in form of [hds, cylinders, sectors] 110 /* This is for >1023 cylinders */ in scsi_partsize() 168 * number of heads and maximizes the number of cylinders. This 180 unsigned long heads, sectors, cylinders, temp; in setsize() local 182 cylinders = 1024L; /* Set number of cylinders to max */ in setsize() 185 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize() 189 temp = cylinders * heads; /* Compute divisor for sectors */ in setsize() 194 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | scsicam.c | 50 * scsi_partsize - Parse cylinders/heads/sectors from PC partition table 53 * @geom: output in form of [hds, cylinders, sectors] 109 /* This is for >1023 cylinders */ in scsi_partsize() 167 * number of heads and maximizes the number of cylinders. This 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() 193 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize() [all...] |
/kernel/linux/linux-5.10/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() 87 mbd.size == heads * cylinders * 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() 773 geo->cylinders = nftl->cylinders; in nftl_getgeo() [all...] |
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() 94 mbd.size == heads * cylinders * 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() [all...] |
H A D | sm_ftl.h | 56 int cylinders; member
|
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() 717 geo->cylinders = part->cylinders; in rfd_ftl_getgeo()
|
/kernel/linux/linux-6.6/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() 87 mbd.size == heads * cylinders * 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() [all...] |
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() 94 mbd.size == heads * cylinders * 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() [all...] |
H A D | sm_ftl.h | 56 int cylinders; member
|
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()
|
/kernel/linux/linux-5.10/drivers/block/paride/ |
H A D | pd.c | 230 int cylinders; member 722 disk->cylinders = le16_to_cpu(*(__le16 *) (pd_scratch + 2)); in pd_identify() 726 disk->capacity = disk->sectors * disk->heads * disk->cylinders; in pd_identify() 742 disk->cylinders, disk->heads, disk->sectors, in pd_identify() 813 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo() 817 geo->cylinders = disk->cylinders; in pd_getgeo()
|
/kernel/linux/linux-5.10/include/linux/mtd/ |
H A D | inftl.h | 36 unsigned short cylinders; member
|
H A D | nftl.h | 28 unsigned short cylinders; member
|
/kernel/linux/linux-6.6/include/linux/mtd/ |
H A D | inftl.h | 36 unsigned short cylinders; member
|
H A D | nftl.h | 28 unsigned short cylinders; member
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/ |
H A D | virtio_blk.h | 38 __u16 cylinders; member
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | virtio_blk.h | 67 __virtio16 cylinders; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/ |
H A D | virtio_blk.h | 47 __virtio16 cylinders; member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/ |
H A D | virtio_blk.h | 47 __virtio16 cylinders; member
|
/kernel/linux/linux-5.10/drivers/block/rsxx/ |
H A D | dev.c | 86 geo->cylinders = blocks; in rsxx_getgeo() 90 geo->cylinders = 0; in rsxx_getgeo()
|
/kernel/linux/linux-5.10/drivers/block/ |
H A D | sunvdc.c | 127 sector_t cylinders = nsect; in vdc_getgeo() local 131 sector_div(cylinders, geo->heads * geo->sectors); in vdc_getgeo() 132 geo->cylinders = cylinders; in vdc_getgeo() 133 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo() 134 geo->cylinders = 0xffff; in vdc_getgeo()
|
/kernel/linux/linux-6.6/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()
|