Home
last modified time | relevance | path

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

/block/partitions/
Dibm.c31 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/
Dcompat_ioctl.c55 struct hd_geometry geo; in compat_hdio_getgeo() local
63 memset(&geo, 0, sizeof(geo)); in compat_hdio_getgeo()
68 geo.start = get_start_sect(bdev); in compat_hdio_getgeo()
69 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo()
73 ret = copy_to_user(ugeo, &geo, 4); in compat_hdio_getgeo()
74 ret |= put_user(geo.start, &ugeo->start); in compat_hdio_getgeo()
Dioctl.c455 struct hd_geometry geo; in blkdev_getgeo() local
467 memset(&geo, 0, sizeof(geo)); in blkdev_getgeo()
468 geo.start = get_start_sect(bdev); in blkdev_getgeo()
469 ret = disk->fops->getgeo(bdev, &geo); in blkdev_getgeo()
472 if (copy_to_user(argp, &geo, sizeof(geo))) in blkdev_getgeo()
Dsed-opal.c379 const struct d0_geometry_features *geo = data; in check_geometry() local
381 dev->align = geo->alignment_granularity; in check_geometry()
382 dev->lowest_lba = geo->lowest_aligned_lba; in check_geometry()