Home
last modified time | relevance | path

Searched refs:sectorsPerTrack (Results 1 – 3 of 3) sorted by relevance

/haiku/src/tools/anyboot/
H A Danyboot.cpp71 chsAddressFor(uint32_t offset, uint8_t *address, uint32_t sectorsPerTrack,
74 if (offset >= 1024 * sectorsPerTrack * headsPerCylinder) {
87 while (temp * sectorsPerTrack * headsPerCylinder <= offset)
90 offset -= (sectorsPerTrack * headsPerCylinder * cylinders);
93 while (temp * sectorsPerTrack <= offset)
96 sectors = offset - (sectorsPerTrack * heads) + 1;
133 uint32_t sectorsPerTrack = 63; in createPartition()
137 chsAddressFor(partitionOffset, &partition[1], sectorsPerTrack, in createPartition()
140 &partition[5], sectorsPerTrack, headsPerCylinder); in createPartition()
/haiku/src/add-ons/kernel/partitioning_systems/sun/
H A Dsun.cpp66 uint16_t sectorsPerTrack; member
143 off_t sectorsPerTrack = B_BENDIAN_TO_HOST_INT16(vtoc->sectorsPerTrack); in sun_scan_partition() local
144 off_t cylinderSize = kSectorSize * headCount * sectorsPerTrack; in sun_scan_partition()
147 B_PRIdOFF "\n", headCount, sectorsPerTrack, cylinderSize)); in sun_scan_partition()
/haiku/src/system/boot/platform/atari_m68k/
H A Ddevices.cpp827 int sectorsPerTrack = fParameters.sectors_per_track; in ReadBlocks() local
838 track = sect / (sectorsPerTrack * heads); in ReadBlocks()
839 side = (sect / sectorsPerTrack) % heads; in ReadBlocks()
840 sect %= sectorsPerTrack; in ReadBlocks()