Lines Matching refs:heads
65 uint8_t heads;
183 be16_to_cpu(footer->cyls) * footer->heads * footer->secs_per_cyl;
431 * Calculates the number of cylinders, heads and sectors per cylinder
441 uint8_t* heads, uint8_t* secs_per_cyl)
450 *heads = 16;
455 *heads = (cyls_times_heads + 1023) / 1024;
457 if (*heads < 4)
458 *heads = 4;
460 if (cyls_times_heads >= (*heads * 1024) || *heads > 16) {
462 *heads = 16;
466 if (cyls_times_heads >= (*heads * 1024)) {
468 *heads = 16;
475 *cyls = (cyls_times_heads + *heads - 1) / *heads;
488 uint8_t heads;
507 if (calculate_geometry(total_sectors, &cyls, &heads, &secs_per_cyl))
509 total_sectors = (int64_t) cyls * heads * secs_per_cyl;
532 footer->heads = heads;