Home
last modified time | relevance | path

Searched refs:sect_per_track (Results 1 – 4 of 4) sorted by relevance

/external/mtools/
Dminfo.c136 unsigned long sect_per_track; in minfo() local
185 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()
Dmformat.c740 unsigned int sect_per_track; in get_block_geom() local
767 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() local
861 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() local
1320 tot_sectors = used_dev.tracks*sect_per_track - used_dev.hidden%sect_per_track; in mformat()
Dplain_io.c183 int sect_per_track; in file_geom() local
194 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()
Dfloppyd_io.c409 unsigned int sect_per_track; in floppyd_geom() local
420 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()