Lines Matching refs:pos
406 Inode::GetPtrOffsetIntoRoot(int pos)
410 + maxRecords * XFS_KEY_SIZE + (pos - 1) * XFS_PTR_SIZE);
415 Inode::GetPtrFromRoot(int pos)
418 ((char*)DIR_DFORK_PTR(Buffer(), CoreInodeSize()) + GetPtrOffsetIntoRoot(pos));
431 Inode::GetPtrOffsetIntoNode(int pos)
436 + (pos - 1) * XFS_PTR_SIZE;
441 Inode::GetPtrFromNode(int pos, void* buffer)
443 size_t offsetIntoNode = GetPtrOffsetIntoNode(pos);
594 Inode::ReadAt(off_t pos, uint8* buffer, size_t* length)
596 TRACE("Inode::ReadAt: pos:(%" B_PRIdOFF "), *length:(%" B_PRIuSIZE ")\n", pos, *length);
604 // set/check boundaries for pos/length
605 if (pos < 0) {
606 ERROR("inode %" B_PRIdINO ": ReadAt failed(pos %" B_PRIdOFF
607 ", length %lu)\n", ID(), pos, *length);
611 if (pos >= Size() || length == 0) {
612 TRACE("inode %" B_PRIdINO ": ReadAt 0 (pos %" B_PRIdOFF
613 ", length %" B_PRIuSIZE ")\n", ID(), pos, *length);
618 uint32 blockNo = BLOCKNO_FROM_POSITION(pos, GetVolume());
619 uint32 offsetIntoBlock = BLOCKOFFSET_FROM_POSITION(pos, this);
634 TRACE("Inode::ReadAt: pos:(%" B_PRIdOFF "), *length:(%" B_PRIuSIZE ")\n", pos, *length);
636 lengthLeftInFile = Size() - pos;
678 pos += lengthToRead;
681 blockNo = BLOCKNO_FROM_POSITION(pos, GetVolume());
682 offsetIntoBlock = BLOCKOFFSET_FROM_POSITION(pos, this);