Lines Matching refs:geo
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()
175 size = cchh2blk(&f1.DS1EXT1.ulimit, geo) - in find_vol1_partitions()
176 offset + geo->sectors; in find_vol1_partitions()
195 struct hd_geometry *geo, in find_lnx1_partitions() argument
220 geo_size = geo->cylinders * geo->heads in find_lnx1_partitions()
221 * geo->sectors * secperblk; in find_lnx1_partitions()
242 struct hd_geometry *geo, in find_cms1_partitions() argument
295 struct hd_geometry *geo; in ibm_partition() local
311 geo = kmalloc(sizeof(struct hd_geometry), GFP_KERNEL); in ibm_partition()
312 if (geo == NULL) in ibm_partition()
317 if (ioctl_by_bdev(bdev, HDIO_GETGEO, (unsigned long)geo) != 0) in ibm_partition()
324 if (find_label(state, info, geo, blocksize, &labelsect, name, type, in ibm_partition()
327 res = find_vol1_partitions(state, geo, blocksize, name, in ibm_partition()
330 res = find_lnx1_partitions(state, geo, blocksize, name, in ibm_partition()
334 res = find_cms1_partitions(state, geo, blocksize, name, in ibm_partition()
359 kfree(geo); in ibm_partition()