Lines Matching refs:geo
31 static sector_t cchh2blk(struct vtoc_cchh *ptr, struct hd_geometry *geo)
41 return cyl * geo->heads * geo->sectors +
42 head * geo->sectors;
49 static sector_t cchhb2blk(struct vtoc_cchhb *ptr, struct hd_geometry *geo)
59 return cyl * geo->heads * geo->sectors +
60 head * geo->sectors +
66 struct hd_geometry *geo,
134 struct hd_geometry *geo,
155 blk = cchhb2blk(&label->vol.vtoc, geo) + 1;
175 offset = cchh2blk(&f1.DS1EXT1.llimit, geo);
176 size = cchh2blk(&f1.DS1EXT1.ulimit, geo) -
177 offset + geo->sectors;
196 struct hd_geometry *geo,
216 * 'size based on geo == size based on nr_sectors' is true, then
221 geo_size = geo->cylinders * geo->heads
222 * geo->sectors * secperblk;
243 struct hd_geometry *geo,
299 struct hd_geometry *geo;
318 geo = kmalloc(sizeof(struct hd_geometry), GFP_KERNEL);
319 if (geo == NULL)
325 geo->start = get_start_sect(bdev);
326 if (disk->fops->getgeo(bdev, geo))
333 if (find_label(state, info, geo, blocksize, &labelsect, name, type,
336 res = find_vol1_partitions(state, geo, blocksize, name,
339 res = find_lnx1_partitions(state, geo, blocksize, name,
343 res = find_cms1_partitions(state, geo, blocksize, name,
368 kfree(geo);