Lines Matching refs:heads

360 	return (c * bios_geom->heads + h) * bios_geom->sectors + s;
375 real_c = sector / (bios_geom->heads * bios_geom->sectors);
376 real_h = (sector / bios_geom->sectors) % bios_geom->heads;
381 real_h = bios_geom->heads - 1;
483 int heads;
514 heads = buf[0x1a] + (buf[0x1b] << 8);
518 if (heads > 255 || heads < 1)
522 bios_geom->heads = heads;
523 bios_geom->cylinders = part->disk->dev->length / (sectors * heads);
575 PedSector cylinders, heads, sectors;
674 heads = cyl_size / head_size;
677 PED_ASSERT (heads > 0, return 0);
678 PED_ASSERT (heads < 256, return 0);
687 if (((C + 1) * heads + H) * sectors + S == A)
690 PED_ASSERT ((c * heads + h) * sectors + s == a, return 0);
691 PED_ASSERT ((C * heads + H) * sectors + S == A, return 0);
694 bios_geom->heads = heads;
1010 || disk->dev->bios_geom.heads != bios_geom.heads
1579 PedSector cyl_size = bios_geom->heads * bios_geom->sectors;
1592 if ( (a->start / bios_geom->sectors) % bios_geom->heads
1593 < (b->start / bios_geom->sectors) % bios_geom->heads)
1632 PedSector cylinder_size = bios_geom->sectors * bios_geom->heads;
1683 PedSector cylinder_size = bios_geom->sectors * bios_geom->heads;
1735 PedSector cylinder_size = bios_geom->sectors * bios_geom->heads;
1850 PedSector cylinder_size = bios_geom->sectors * bios_geom->heads;
1925 PedSector cyl_size = bios_geom->sectors * bios_geom->heads;
1942 head < PED_MIN (5, bios_geom->heads); head++) {
2150 cyl_size = bios_geom.sectors * bios_geom.heads;
2242 PedSector cyl_size = dev->bios_geom.sectors * dev->bios_geom.heads;