Searched refs:geo (Results 1 – 3 of 3) sorted by relevance
/block/partitions/ |
D | ibm.c | 31 static sector_t cchh2blk(struct vtoc_cchh *ptr, struct hd_geometry *geo) in cchh2blk() argument 41 return cyl * geo->heads * geo->sectors + in cchh2blk() 42 head * geo->sectors; in cchh2blk() 49 static sector_t cchhb2blk(struct vtoc_cchhb *ptr, struct hd_geometry *geo) in cchhb2blk() argument 59 return cyl * geo->heads * geo->sectors + in cchhb2blk() 60 head * geo->sectors + in cchhb2blk() 66 struct hd_geometry *geo, in find_label() argument 134 struct hd_geometry *geo, in find_vol1_partitions() argument 155 blk = cchhb2blk(&label->vol.vtoc, geo) + 1; in find_vol1_partitions() 175 offset = cchh2blk(&f1.DS1EXT1.llimit, geo); in find_vol1_partitions() [all …]
|
/block/ |
D | ioctl.c | 381 struct hd_geometry geo; in blkdev_getgeo() local 393 memset(&geo, 0, sizeof(geo)); in blkdev_getgeo() 394 geo.start = get_start_sect(bdev); in blkdev_getgeo() 395 ret = disk->fops->getgeo(bdev, &geo); in blkdev_getgeo() 398 if (copy_to_user(argp, &geo, sizeof(geo))) in blkdev_getgeo() 415 struct hd_geometry geo; in compat_hdio_getgeo() local 423 memset(&geo, 0, sizeof(geo)); in compat_hdio_getgeo() 428 geo.start = get_start_sect(bdev); in compat_hdio_getgeo() 429 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo() 433 ret = copy_to_user(ugeo, &geo, 4); in compat_hdio_getgeo() [all …]
|
D | sed-opal.c | 375 const struct d0_geometry_features *geo = data; in check_geometry() local 377 dev->align = be64_to_cpu(geo->alignment_granularity); in check_geometry() 378 dev->lowest_lba = be64_to_cpu(geo->lowest_aligned_lba); in check_geometry()
|