Lines Matching defs: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 +
107 struct hd_geometry *geo,
169 struct hd_geometry *geo,
190 blk = cchhb2blk(&label->vol.vtoc, geo) + 1;
210 offset = cchh2blk(&f1.DS1EXT1.llimit, geo);
211 size = cchh2blk(&f1.DS1EXT1.ulimit, geo) -
212 offset + geo->sectors;
231 struct hd_geometry *geo,
251 * 'size based on geo == size based on nr_sectors' is true, then
256 geo_size = geo->cylinders * geo->heads
257 * geo->sectors * secperblk;
278 struct hd_geometry *geo,
334 struct hd_geometry *geo;
353 geo = kmalloc(sizeof(struct hd_geometry), GFP_KERNEL);
354 if (geo == NULL)
360 geo->start = get_start_sect(bdev);
361 if (disk->fops->getgeo(bdev, geo))
368 if (find_label(state, info, geo, blocksize, &labelsect, name, type, label)) {
371 res = find_vol1_partitions(state, geo, blocksize, name,
375 res = find_lnx1_partitions(state, geo, blocksize, name,
380 res = find_cms1_partitions(state, geo, blocksize, name,
406 kfree(geo);