Lines Matching refs:offset
186 OSErr DeviceRead(int device, int drive, void* buffer, SInt64 offset, UInt32 reqBytes, UInt32 *actBytes)
194 seek_off = lseek(device, offset, SEEK_SET);
196 plog("# DeviceRead: lseek(%qd) failed with %d\n", offset, errno);
204 plog("CANNOT READ: BLK %ld\n", (long)offset/512);
221 if ( (offset & 0xFFFFFFFF00000000) != 0 )
223 *(SInt64*)&pb.ioWPosOffset = offset;
228 ((IOParam*)&pb)->ioPosOffset = offset;
238 OSErr DeviceWrite(int device, int drive, void* buffer, SInt64 offset, UInt32 reqBytes, UInt32 *actBytes)
246 seek_off = lseek(device, offset, SEEK_SET);
248 plog("# DeviceRead: lseek(%qd) failed with %d\n", offset, errno);
257 plog("CANNOT WRITE: BLK %ld\n", (long)offset/512);
273 if ( (offset & 0xFFFFFFFF00000000) != 0 )
275 *(SInt64*)&pb.ioWPosOffset = offset;
280 ((IOParam*)&pb)->ioPosOffset = offset;