Searched refs:slices (Results 1 - 7 of 7) sorted by relevance

/fuchsia/zircon/system/ulib/minfs/include/minfs/
H A Dallocator.h71 uint32_t SlicesToBlocks(uint32_t slices) const;
78 void SetDataSlices(uint32_t slices) { argument
79 *data_slices_ = slices;
86 void SetMetadataSlices(uint32_t slices) { argument
87 *metadata_slices_ = slices;
/fuchsia/zircon/system/ulib/minfs/
H A Dallocator.cpp48 uint32_t AllocatorFvmMetadata::UnitsPerSlices(uint32_t slices, uint32_t unit_size) const { argument
49 uint64_t units = (slice_size_ * slices) / unit_size;
55 // values of |blocks| which are known to be convertible to slices
59 uint32_t slices = static_cast<uint32_t>(blocks / kBlocksPerSlice); local
60 ZX_DEBUG_ASSERT(UnitsPerSlices(slices, kMinfsBlockSize) == blocks);
61 return slices;
172 // to grow |data_slices_diff| data slices.
/fuchsia/zircon/system/ulib/fvm/include/fvm/
H A Dfvm.h51 slices = slices_;
64 uint32_t slices; // '0' if unallocated member in struct:fvm::__anon1136
90 // determines the "physical slice" being accessed, where physical slices consist
/fuchsia/zircon/system/host/fvm/container/
H A Dfvm.cpp165 fprintf(stderr, "No space available for slices\n");
216 if (vpart->slices == 0) {
310 // First, we read all old slices from the original device, and write them to their
314 // To avoid collision between relocated slices, this is done on a temporary file.
525 // Allocate all slices for this partition
602 uint32_t slices, uint32_t flags, uint32_t* vpart_index) {
613 if (vpart->slices == 0) {
614 vpart->init(type, guid, slices, name, flags);
651 fprintf(stderr, "Unable to find any free slices\n");
601 AllocatePartition(uint8_t* type, uint8_t* guid, const char* name, uint32_t slices, uint32_t flags, uint32_t* vpart_index) argument
/fuchsia/zircon/system/host/fvm/include/fvm/
H A Dcontainer.h99 zx_status_t AllocatePartition(uint8_t* type, uint8_t* guid, const char* name, uint32_t slices,
/fuchsia/zircon/system/dev/block/fvm/
H A Dfvm.cpp345 // claim to have slices.
347 if (GetVPartEntryLocked(i)->slices == 0) {
366 // It's fine to load the slices while not holding the vpartition
415 if (entry->slices == 0) {
508 if (entry->slices != 0) {
549 // Sync first, before removing slices, so iotxns in-flight cannot
550 // operate on 'unowned' slices.
565 // Remove device, VPartition if this was a request to free all slices.
684 entry->slices = 0; // Undo VPartition allocation
1081 // Less common case: txn spans multiple slices
[all...]
H A Dfvm-private.h107 ZX_DEBUG_ASSERT(entry->slices > 0);
111 // Allocate 'count' slices, write back the FVM.
114 // Deallocate 'count' slices, write back the FVM.
206 // Number of allocatable slices.
208 // Number of currently allocated slices.
239 // Check slices starting from |vslice_start|.
240 // Sets |*count| to the number of contiguous allocated or unallocated slices found.
286 // physical slices.

Completed in 42 milliseconds