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 i_size' is true, then
221 geo_size = geo->cylinders * geo->heads
222 * geo->sectors * secperblk;
243 struct hd_geometry *geo,
298 struct hd_geometry *geo;
317 geo = kmalloc(sizeof(struct hd_geometry), GFP_KERNEL);
318 if (geo == NULL)
324 geo->start = get_start_sect(bdev);
325 if (disk->fops->getgeo(bdev, geo))
332 if (find_label(state, info, geo, blocksize, &labelsect, name, type,
335 res = find_vol1_partitions(state, geo, blocksize, name,
338 res = find_lnx1_partitions(state, geo, blocksize, name,
342 res = find_cms1_partitions(state, geo, blocksize, name,
367 kfree(geo);