Searched refs:vpart (Results 1 – 7 of 7) sorted by relevance
| /system/ulib/fvm-host/ |
| A D | fvm-info.cpp | 207 fvm::vpart_entry_t* vpart = nullptr; in AllocatePartition() local 208 if ((status = GetPartition(index, &vpart)) != ZX_OK) { in AllocatePartition() 214 if (vpart->slices == 0) { in AllocatePartition() 215 vpart->init(partition->type, guid, 0, reinterpret_cast<const char*>(partition->name), in AllocatePartition() 228 zx_status_t FvmInfo::AllocateSlice(uint32_t vpart, uint32_t vslice, uint32_t* pslice) { in AllocateSlice() argument 247 if ((status = GetPartition(vpart, &partition)) != ZX_OK) { in AllocateSlice() 251 slice->SetVpart(vpart); in AllocateSlice()
|
| /system/ulib/fvm-host/container/ |
| A D | fvm.cpp | 118 fvm::vpart_entry_t* vpart = nullptr; in Verify() local 122 if ((status = info_.GetPartition(vpart_index, &vpart)) != ZX_OK) { in Verify() 126 if (vpart->slices == 0) { in Verify() 155 if (vpart->slices != slice_count) { in Verify() 172 fprintf(stderr, "%s fsck returned an error.\n", vpart->name); in Verify() 176 xprintf("Found valid %s partition\n", vpart->name); in Verify() 446 fvm::vpart_entry_t* vpart; in CalculateDiskSize() local 447 ZX_ASSERT(info_.GetPartition(index, &vpart) == ZX_OK); in CalculateDiskSize() 449 if (vpart->slices == 0) { in CalculateDiskSize() 453 required_slices += vpart->slices; in CalculateDiskSize()
|
| /system/ulib/fvm/ |
| A D | fvm.cpp | 70 void fvm::slice_entry::SetVpart(uint64_t vpart) { in SetVpart() argument 71 ZX_DEBUG_ASSERT(vpart < VPART_MAX); in SetVpart() 72 data = (data & ~VPART_MASK) | (vpart & VPART_MASK); in SetVpart()
|
| A D | fvm-check.cpp | 135 const uint64_t vpart = slice_table[i].Vpart(); in LoadPartitions() local 136 if (vpart >= FVM_MAX_ENTRIES) { in LoadPartitions() 139 } else if (!partitions[vpart].Allocated()) { in LoadPartitions() 141 logger_.Error("partition %zu\n", vpart); in LoadPartitions() 145 Slice slice = { vpart, slice_table[i].Vslice(), i }; in LoadPartitions() 148 partitions[vpart].slices.push_back(std::move(slice)); in LoadPartitions()
|
| /system/dev/block/fvm/ |
| A D | fvm.cpp | 548 uint64_t vpart = vp->GetEntryIndex(); in AllocatePhysicalSlice() local 549 ZX_DEBUG_ASSERT(vpart <= VPART_MAX); in AllocatePhysicalSlice() 554 entry->SetVpart(vpart); in AllocatePhysicalSlice() 556 GetVPartEntryLocked(vpart)->slices++; in AllocatePhysicalSlice() 595 fbl::unique_ptr<VPartition> vpart; in DdkIoctl() local 603 if ((status = VPartition::Create(this, vpart_entry, &vpart)) != ZX_OK) { in DdkIoctl() 611 if ((status = AllocateSlicesLocked(vpart.get(), 0, request->slice_count)) != ZX_OK) { in DdkIoctl() 616 if ((status = AddPartition(std::move(vpart))) != ZX_OK) { in DdkIoctl()
|
| /system/ulib/fvm-host/include/fvm-host/ |
| A D | fvm-info.h | 41 zx_status_t AllocateSlice(uint32_t vpart, uint32_t vslice, uint32_t* pslice);
|
| /system/ulib/fvm/include/fvm/ |
| A D | fvm.h | 103 void SetVpart(uint64_t vpart);
|
Completed in 12 milliseconds