• Home
  • Raw
  • Download

Lines Matching refs:geo

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()
176 size = cchh2blk(&f1.DS1EXT1.ulimit, geo) - in find_vol1_partitions()
177 offset + geo->sectors; in find_vol1_partitions()
196 struct hd_geometry *geo, in find_lnx1_partitions() argument
221 geo_size = geo->cylinders * geo->heads in find_lnx1_partitions()
222 * geo->sectors * secperblk; in find_lnx1_partitions()
243 struct hd_geometry *geo, in find_cms1_partitions() argument
298 struct hd_geometry *geo; in ibm_partition() local
317 geo = kmalloc(sizeof(struct hd_geometry), GFP_KERNEL); in ibm_partition()
318 if (geo == NULL) in ibm_partition()
324 geo->start = get_start_sect(bdev); in ibm_partition()
325 if (disk->fops->getgeo(bdev, geo)) in ibm_partition()
332 if (find_label(state, info, geo, blocksize, &labelsect, name, type, in ibm_partition()
335 res = find_vol1_partitions(state, geo, blocksize, name, in ibm_partition()
338 res = find_lnx1_partitions(state, geo, blocksize, name, in ibm_partition()
342 res = find_cms1_partitions(state, geo, blocksize, name, in ibm_partition()
367 kfree(geo); in ibm_partition()