Searched refs:geo (Results 1 – 3 of 3) sorted by relevance
/block/partitions/ |
D | ibm.c | 30 static sector_t cchh2blk(struct vtoc_cchh *ptr, struct hd_geometry *geo) in cchh2blk() argument 40 return cyl * geo->heads * geo->sectors + in cchh2blk() 41 head * geo->sectors; in cchh2blk() 48 static sector_t cchhb2blk(struct vtoc_cchhb *ptr, struct hd_geometry *geo) in cchhb2blk() argument 58 return cyl * geo->heads * geo->sectors + in cchhb2blk() 59 head * geo->sectors + in cchhb2blk() 65 struct hd_geometry *geo, in find_label() argument 133 struct hd_geometry *geo, in find_vol1_partitions() argument 154 blk = cchhb2blk(&label->vol.vtoc, geo) + 1; in find_vol1_partitions() 174 offset = cchh2blk(&f1.DS1EXT1.llimit, geo); in find_vol1_partitions() [all …]
|
/block/ |
D | compat_ioctl.c | 54 struct hd_geometry geo; in compat_hdio_getgeo() local 62 memset(&geo, 0, sizeof(geo)); in compat_hdio_getgeo() 67 geo.start = get_start_sect(bdev); in compat_hdio_getgeo() 68 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo() 72 ret = copy_to_user(ugeo, &geo, 4); in compat_hdio_getgeo() 73 ret |= put_user(geo.start, &ugeo->start); in compat_hdio_getgeo()
|
D | ioctl.c | 446 struct hd_geometry geo; in blkdev_getgeo() local 458 memset(&geo, 0, sizeof(geo)); in blkdev_getgeo() 459 geo.start = get_start_sect(bdev); in blkdev_getgeo() 460 ret = disk->fops->getgeo(bdev, &geo); in blkdev_getgeo() 463 if (copy_to_user(argp, &geo, sizeof(geo))) in blkdev_getgeo()
|