Lines Matching refs:mgr_

20     : PartitionDeviceType(vpm->zxdev()), mgr_(vpm), entry_index_(entry_index) {  in VPartition()
22 memcpy(&info_, &mgr_->Info(), sizeof(block_info_t)); in VPartition()
43 ZX_DEBUG_ASSERT(vslice < mgr_->VSliceMax()); in SliceGetLocked()
55 if (vslice_start >= mgr_->VSliceMax()) { in CheckSlices()
81 *count = mgr_->VSliceMax() - vslice_start; in CheckSlices()
89 ZX_DEBUG_ASSERT(vslice < mgr_->VSliceMax()); in SliceSetLocked()
114 AddBlocksLocked((mgr_->SliceSize() / info_.block_size)); in SliceSetLocked()
128 ZX_DEBUG_ASSERT(vslice < mgr_->VSliceMax()); in SliceFreeLocked()
146 AddBlocksLocked(-(mgr_->SliceSize() / info_.block_size)); in SliceFreeLocked()
151 ZX_DEBUG_ASSERT(vslice < mgr_->VSliceMax()); in ExtentDestroyLocked()
156 AddBlocksLocked(-((length * mgr_->SliceSize()) / info_.block_size)); in ExtentDestroyLocked()
221 mgr_->Query(info); in DdkIoctl()
232 memcpy(guid, mgr_->GetAllocatedVPartEntry(entry_index_)->type, FVM_GUID_LEN); in DdkIoctl()
243 memcpy(guid, mgr_->GetAllocatedVPartEntry(entry_index_)->guid, FVM_GUID_LEN); in DdkIoctl()
254 memcpy(name, mgr_->GetAllocatedVPartEntry(entry_index_)->name, FVM_NAME_LEN); in DdkIoctl()
264 if ((status = RequestBoundCheck(request, mgr_->VSliceMax())) != ZX_OK) { in DdkIoctl()
269 return mgr_->AllocateSlices(this, request->offset, request->length); in DdkIoctl()
276 if ((status = RequestBoundCheck(request, mgr_->VSliceMax())) != ZX_OK) { in DdkIoctl()
281 return mgr_->FreeSlices(this, request->offset, request->length); in DdkIoctl()
284 return mgr_->FreeSlices(this, 0, mgr_->VSliceMax()); in DdkIoctl()
328 ZX_DEBUG_ASSERT(mgr_->BlockOpSize() > 0); in BlockImplQueue()
335 mgr_->Queue(txn, completion_cb, cookie); in BlockImplQueue()
353 const size_t disk_size = mgr_->DiskSize(); in BlockImplQueue()
354 const size_t slice_size = mgr_->SliceSize(); in BlockImplQueue()
370 mgr_->Queue(txn, completion_cb, cookie); in BlockImplQueue()
394 mgr_->Queue(txn, completion_cb, cookie); in BlockImplQueue()
430 txns.push_back(reinterpret_cast<block_op_t*>(new uint8_t[mgr_->BlockOpSize()])); in BlockImplQueue()
450 mgr_->Queue(txns[i], multi_txn_completion, state.get()); in BlockImplQueue()
457 const zx_off_t sz = mgr_->VSliceMax() * mgr_->SliceSize(); in DdkGetSize()
459 ZX_DEBUG_ASSERT(sz / mgr_->VSliceMax() == mgr_->SliceSize()); in DdkGetSize()
474 *block_op_size_out = mgr_->BlockOpSize(); in BlockImplQuery()
478 return mgr_->parent(); in GetParent()