Searched refs:sect_per_track (Results 1 – 4 of 4) sorted by relevance
136 unsigned long sect_per_track; in minfo() local185 sect_per_track = dev.sectors * dev.heads; in minfo()186 if(sect_per_track != 0) { in minfo()209 tot_sectors = dev.tracks * sect_per_track; in minfo()215 dev.tracks * sect_per_track - hidden % sect_per_track) { in minfo()
740 unsigned int sect_per_track; in get_block_geom() local767 sect_per_track = heads * sectors; in get_block_geom()770 hidden = geom.start % sect_per_track; in get_block_geom()782 dev->tracks = (size + dev->hidden % sect_per_track) / sect_per_track; in get_block_geom()788 int sect_per_track; in get_lba_geom() local861 sect_per_track = dev->heads * dev->sectors; in get_lba_geom()862 tracks = (tot_sectors + dev->hidden % sect_per_track) / sect_per_track; in get_lba_geom()1319 unsigned long sect_per_track = used_dev.heads*used_dev.sectors; in mformat() local1320 tot_sectors = used_dev.tracks*sect_per_track - used_dev.hidden%sect_per_track; in mformat()
183 int sect_per_track; in file_geom() local194 sect_per_track = dev->heads * dev->sectors; in file_geom()195 if(sect_per_track == 0) { in file_geom()205 sect_per_track = 1; in file_geom()211 tot_sectors += sect_per_track - 1; /* round size up */ in file_geom()212 dev->tracks = tot_sectors / sect_per_track; in file_geom()
409 unsigned int sect_per_track; in floppyd_geom() local420 sect_per_track = dev->heads * dev->sectors; in floppyd_geom()421 tot_sectors += sect_per_track - 1; /* round size up */ in floppyd_geom()422 dev->tracks = tot_sectors / sect_per_track; in floppyd_geom()