Lines Matching defs:hg
496 static int blkif_getgeo(struct block_device *bd, struct hd_geometry *hg)
503 hg->heads = 0xff;
504 hg->sectors = 0x3f;
505 sector_div(cylinders, hg->heads * hg->sectors);
506 hg->cylinders = cylinders;
507 if ((sector_t)(hg->cylinders + 1) * hg->heads * hg->sectors < nsect)
508 hg->cylinders = 0xffff;