Lines Matching refs:offset

108 zx_status_t VnodeMinfs::LoadIndirectBlocks(blk_t* iarray, uint32_t count, uint32_t offset,
128 txn.Enqueue(vmoid_indirect_, offset + i, ibno + fs_->Info().dat_block, 1);
489 void VnodeMinfs::ReadIndirectVmoBlock(uint32_t offset, uint32_t** entry) {
492 validate_vmo_size(vmo_indirect_->GetVmo(), offset);
493 *entry = reinterpret_cast<uint32_t*>(addr + kMinfsBlockSize * offset);
496 void VnodeMinfs::ClearIndirectVmoBlock(uint32_t offset) {
499 validate_vmo_size(vmo_indirect_->GetVmo(), offset);
500 memset(reinterpret_cast<void*>(addr + kMinfsBlockSize * offset), 0, kMinfsBlockSize);
544 // index of indirect block, and offset of that block within indirect vmo
590 // offset of indirect block within indirect vmo
594 // offset of doubly indirect block within indirect vmo
681 FS_TRACE_ERROR("vn_dir: Could not read dirent at offset: %zd\n", off);
696 // Updates offset information to move to the next direntry in the directory.
1027 // updating the offset information to access the next dirent.
1034 xprintf("Reading dirent at offset %zd\n", args->offs.off);
1265 zx_status_t VnodeMinfs::Write(const void* data, size_t len, size_t offset,
1267 TRACE_DURATION("minfs", "VnodeMinfs::Write", "ino", ino_, "len", len, "off", offset);
1269 xprintf("minfs_write() vn=%p(#%u) len=%zd off=%zd\n", this, ino_, len, offset);
1282 zx_status_t status = GetRequiredBlockCount(offset, len, &reserve_blocks);
1291 status = WriteInternal(state.get(), data, len, offset, out_actual);
1505 // The offset *might* be invalid, if we called Readdir after a directory
1507 // until we get to the direntry at or after the previously identified offset.
1635 // Calculate maximum blocks to reserve for the current directory, based on the size and offset
1636 // of the new direntry (Assuming that the offset is the current size of the directory).