Home
last modified time | relevance | path

Searched refs:geo (Results 1 – 3 of 3) sorted by relevance

/block/partitions/
Dibm.c30 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/
Dioctl.c333 struct hd_geometry geo; in blkdev_ioctl() local
344 memset(&geo, 0, sizeof(geo)); in blkdev_ioctl()
345 geo.start = get_start_sect(bdev); in blkdev_ioctl()
346 ret = disk->fops->getgeo(bdev, &geo); in blkdev_ioctl()
349 if (copy_to_user((struct hd_geometry __user *)arg, &geo, in blkdev_ioctl()
350 sizeof(geo))) in blkdev_ioctl()
Dcompat_ioctl.c54 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()