Lines Matching full:heads
30 if(dev->heads && dev->sectors && dev->tracks) in compute_lba_geom_from_tot_sectors()
47 dev->heads = 1; in compute_lba_geom_from_tot_sectors()
52 if(dev->heads == 1) in compute_lba_geom_from_tot_sectors()
56 dev->heads = 2; in compute_lba_geom_from_tot_sectors()
62 dev->heads = 2; in compute_lba_geom_from_tot_sectors()
65 (uint16_t)(dev->tot_sectors / dev->heads / dev->tracks); in compute_lba_geom_from_tot_sectors()
69 /* Heads or sectors not known => fill them in both... */ in compute_lba_geom_from_tot_sectors()
70 if(!dev->sectors || !dev->heads) { in compute_lba_geom_from_tot_sectors()
74 dev->heads = 16; in compute_lba_geom_from_tot_sectors()
76 dev->heads = 32; in compute_lba_geom_from_tot_sectors()
78 dev->heads = 64; in compute_lba_geom_from_tot_sectors()
80 dev->heads = 128; in compute_lba_geom_from_tot_sectors()
82 dev->heads = 255; in compute_lba_geom_from_tot_sectors()
87 sect_per_track = dev->heads * dev->sectors; in compute_lba_geom_from_tot_sectors()