Lines Matching refs:heads
65 uint8_t heads;
179 be16_to_cpu(footer->cyls) * footer->heads * footer->secs_per_cyl;
444 * Calculates the number of cylinders, heads and sectors per cylinder
454 uint8_t* heads, uint8_t* secs_per_cyl)
463 *heads = 16;
468 *heads = (cyls_times_heads + 1023) / 1024;
470 if (*heads < 4)
471 *heads = 4;
473 if (cyls_times_heads >= (*heads * 1024) || *heads > 16) {
475 *heads = 16;
479 if (cyls_times_heads >= (*heads * 1024)) {
481 *heads = 16;
486 *cyls = cyls_times_heads / *heads;
499 uint8_t heads = 0;
519 for (i = 0; total_sectors > (int64_t)cyls * heads * secs_per_cyl; i++) {
521 &cyls, &heads, &secs_per_cyl)) {
525 total_sectors = (int64_t) cyls * heads * secs_per_cyl;
548 footer->heads = heads;