Lines Matching refs:offset
71 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;
108 uint32_t offset, uint32_t size)
121 uint32_t partitionOffset = (uint32_t)(offset / kBlockSize);
126 active ? 'b' : '-', offset, offset + size, partitionOffset,
148 written = pwrite(handle, &partitionOffset, 4, offset + 512 - 2 - 4);