Lines Matching refs:VPartition

119 zx_status_t VPartitionManager::AddPartition(fbl::unique_ptr<VPartition> vp) const {
342 fbl::unique_ptr<VPartition> vpartitions[FVM_MAX_ENTRIES] = {};
349 } else if ((status = VPartition::Create(this, i, &vpartitions[i])) != ZX_OK) {
367 // lock; no VPartition devices exist yet.
440 zx_status_t VPartitionManager::AllocateSlices(VPartition* vp, size_t vslice_start,
446 zx_status_t VPartitionManager::AllocateSlicesLocked(VPartition* vp, size_t vslice_start,
484 // Undo allocation in the event of failure; avoid holding VPartition
531 zx_status_t VPartitionManager::FreeSlices(VPartition* vp, size_t vslice_start,
537 zx_status_t VPartitionManager::FreeSlicesLocked(VPartition* vp, size_t vslice_start,
557 // Special case: Freeing entire VPartition
565 // Remove device, VPartition if this was a request to free all slices.
665 fbl::unique_ptr<VPartition> vpart;
673 if ((status = VPartition::Create(this, vpart_entry, &vpart)) != ZX_OK) {
684 entry->slices = 0; // Undo VPartition allocation
725 VPartition::VPartition(VPartitionManager* vpm, size_t entry_index, size_t block_op_size)
732 VPartition::~VPartition() = default;
734 zx_status_t VPartition::Create(VPartitionManager* vpm, size_t entry_index,
735 fbl::unique_ptr<VPartition>* out) {
739 auto vp = fbl::make_unique_checked<VPartition>(&ac, vpm, entry_index, vpm->BlockOpSize());
748 uint32_t VPartition::SliceGetLocked(size_t vslice) const {
758 zx_status_t VPartition::CheckSlices(size_t vslice_start, size_t* count, bool* allocated) {
794 zx_status_t VPartition::SliceSetLocked(size_t vslice, uint32_t pslice) {
833 bool VPartition::SliceFreeLocked(size_t vslice) {
856 void VPartition::ExtentDestroyLocked(size_t vslice) TA_REQ(lock_) {
878 // Device protocol (VPartition)
880 zx_status_t VPartition::DdkIoctl(uint32_t op, const void* cmd, size_t cmdlen,
1034 void VPartition::BlockQueue(block_op_t* txn) {
1164 zx_off_t VPartition::DdkGetSize() {
1171 void VPartition::DdkUnbind() {
1175 void VPartition::DdkRelease() {
1179 void VPartition::BlockQuery(block_info_t* info_out, size_t* block_op_size_out) {