/fuchsia/zircon/system/ulib/region-alloc/ |
H A D | region-alloc.cpp | 7 #include <region-alloc/region-alloc.h> 35 // We have to have a region pool assigned to us, or our available regions 40 // Return all of our bookkeeping to our region pool. 72 zx_status_t RegionAllocator::AddRegion(const ralloc_region_t& region, bool allow_overlap) { argument 76 zx_status_t ret = AddSubtractSanityCheckLocked(region); 82 if (!allow_overlap && IntersectsLocked(avail_regions_by_base_, region)) 92 to_add->base = region.base; 93 to_add->size = region.size; 109 // Make a copy of the region t [all...] |
H A D | region-alloc-c-api.cpp | 6 #include <region-alloc/region-alloc.h> 79 const ralloc_region_t* region, 81 if (!allocator || !region) 84 return reinterpret_cast<RegionAllocator*>(allocator)->AddRegion(*region, allow_overlap); 88 const ralloc_region_t* region, 90 if (!allocator || !region) 93 return reinterpret_cast<RegionAllocator*>(allocator)->SubtractRegion(*region, allow_incomplete); 160 void ralloc_put_region(const ralloc_region_t* region) { argument 161 ZX_DEBUG_ASSERT(region); 78 ralloc_add_region(ralloc_allocator_t* allocator, const ralloc_region_t* region, bool allow_overlap) argument 87 ralloc_sub_region(ralloc_allocator_t* allocator, const ralloc_region_t* region, bool allow_incomplete) argument [all...] |
H A D | rules.mk | 14 $(LOCAL_DIR)/region-alloc.cpp \ 15 $(LOCAL_DIR)/region-alloc-c-api.cpp
|
/fuchsia/zircon/system/utest/region-alloc/ |
H A D | rules.mk | 13 $(LOCAL_DIR)/region-alloc.cpp \ 14 $(LOCAL_DIR)/region-alloc-c-api.c 16 MODULE_NAME := region-alloc-test 19 system/ulib/region-alloc \
|
H A D | common.h | 7 #include <region-alloc/region-alloc.h> 86 size_t region; member in struct:__anon1452 100 { .size = (1 << 0), .align = (1 << 1), .res = ZX_OK, .region = 0 }, 101 { .size = (1 << 1), .align = (1 << 2), .res = ZX_OK, .region = 0 }, 102 { .size = (1 << 2), .align = (1 << 3), .res = ZX_OK, .region = 0 }, 103 { .size = (1 << 3), .align = (1 << 4), .res = ZX_OK, .region = 0 }, 104 { .size = (1 << 4), .align = (1 << 5), .res = ZX_OK, .region = 0 }, 105 { .size = (1 << 5), .align = (1 << 6), .res = ZX_OK, .region = 0 }, 106 { .size = (1 << 6), .align = (1 << 7), .res = ZX_OK, .region [all...] |
/fuchsia/zircon/kernel/lib/region-alloc/ |
H A D | rules.mk | 8 SRC_DIR := system/ulib/region-alloc 15 $(SRC_DIR)/region-alloc-c-api.cpp \ 16 $(SRC_DIR)/region-alloc.cpp
|
/fuchsia/zircon/kernel/dev/iommu/intel/ |
H A D | device_context.cpp | 226 fbl::unique_ptr<const RegionAllocator::Region> region; local 227 zx_status_t status = region_alloc_.GetRegion(size, min_contig, region); 240 paddr_t base = region->base; 244 size_t allocated = base - region->base; 274 *virt_paddr = region->base; 277 allocated_regions_.push_back(fbl::move(region), &ac); 308 fbl::unique_ptr<const RegionAllocator::Region> region; local 310 status = region_alloc_.GetRegion(size, min_contig, region); 325 status = second_level_pt_.MapPagesContiguous(region->base, paddr, map_len, flags, &mapped); 331 *virt_paddr = region 349 fbl::unique_ptr<const RegionAllocator::Region> region; local 382 const auto& region = allocated_regions_[i]; local 397 const auto& region = allocated_regions_[i]; local [all...] |
H A D | rules.mk | 25 kernel/lib/region-alloc \
|
H A D | device_context.h | 13 #include <region-alloc/region-alloc.h> 101 // TODO(teisenbe): Use a better data structure for these. If the region
|
/fuchsia/zircon/system/dev/tee/optee/ |
H A D | shared-memory.h | 11 #include <region-alloc/region-alloc.h> 30 // The SharedMemoryPool uses the region-alloc library to divide the provided address space into 31 // allocations for use. It provides region objects that will return to the allocator upon 37 // The SharedMemory object is essentially just a wrapper around the region object that was allocated 38 // by the SharedMemoryPool. The region object represents the offset and size within the memory pool 40 // will recycle the region back to the RegionAllocator, eliminating the need for us to explicitly 50 explicit SharedMemory(zx_vaddr_t base_vaddr, zx_paddr_t base_paddr, RegionPtr region); 83 // Let's try to carve off a region first. 84 auto region local [all...] |
/fuchsia/zircon/third_party/ulib/ngunwind/src/mi/ |
H A D | Gdyn-remote.c | 32 free_regions (unw_dyn_region_info_t *region) argument 34 if (region->next) 35 free_regions (region->next); 36 free (region); 59 unw_dyn_region_info_t *region; local 66 return 0; /* NULL region-list */ 73 region = calloc (1, _U_dyn_region_info_size (op_count)); 74 if (!region) 80 region->insn_count = insn_count; 81 region [all...] |
/fuchsia/zircon/kernel/vm/ |
H A D | vm.cpp | 157 temp_region* region = ®ions[i]; local 158 ASSERT(IS_PAGE_ALIGNED(region->base)); 160 dprintf(INFO, "VM: reserving kernel region [%#" PRIxPTR ", %#" PRIxPTR ") flags %#x name '%s'\n", 161 region->base, region->base + region->size, region->arch_mmu_flags, region->name); 163 zx_status_t status = aspace->ReserveSpace(region->name, region [all...] |
/fuchsia/zircon/system/ulib/region-alloc/include/region-alloc/ |
H A D | region-alloc.h | 32 // requesting that a region be allocated with a particular size/alignment, or 170 // ++ AddRegion (adds a region to the set of regions available for allocation) 171 // ++ SubtractRegion (subtracts a region from the set of regions available for allocation) 172 // ++ GetBySize (allocates a region based on size/alignment requirements) 173 // ++ GetSpecific (allocates a region based on specific base/size requirements) 180 const ralloc_region_t* region, 183 const ralloc_region_t* region, 221 // Walk the allocated region list and call region_walk_cb for each region found 229 // Put (return an allocated region t [all...] |
/fuchsia/zircon/system/utest/core/vmar/ |
H A D | vmar.cpp | 182 zx_handle_t region; local 186 0, 10 * PAGE_SIZE, ®ion, ®ion_addr), 235 zx_handle_t region; local 248 0, region_size, ®ion, ®ion_addr), 251 ASSERT_EQ(zx_vmar_map(region, ZX_VM_PERM_READ | ZX_VM_PERM_WRITE, 258 ASSERT_EQ(zx_vmar_map(region, ZX_VM_PERM_READ | ZX_VM_PERM_WRITE, 264 EXPECT_EQ(zx_handle_close(region), ZX_OK); 271 // Attempt to allocate out of the region bounds 331 // Too large to fit in the region should get ZX_ERR_INVALID_ARGS 344 // Attempt to allocate a page inside of the full region 366 zx_handle_t region[3] = {}; local 468 zx_handle_t region[2] = {}; local 556 zx_handle_t region[3] = {}; local 664 zx_handle_t region; local 931 zx_handle_t region; local 1043 zx_handle_t region[2] = {}; local 1123 zx_handle_t region; local [all...] |
/fuchsia/zircon/kernel/dev/pcie/include/dev/ |
H A D | pcie_irqs.h | 20 #include <region-alloc/region-alloc.h>
|
H A D | pcie_bridge.h | 17 #include <region-alloc/region-alloc.h>
|
/fuchsia/zircon/system/dev/display/intel-i915/ |
H A D | gtt.h | 11 #include <region-alloc/region-alloc.h> 39 // The region's current vmo. The region does not own the vmo handle; it 40 // is up to the owner of the region to determine when the vmo should be
|
H A D | pipe.h | 11 #include <region-alloc/region-alloc.h>
|
H A D | display-device.h | 10 #include <region-alloc/region-alloc.h>
|
/fuchsia/zircon/kernel/lib/hypervisor/ |
H A D | guest_physical_address_space.cpp | 95 static fbl::RefPtr<VmMapping> FindMapping(fbl::RefPtr<VmAddressRegion> region, argument 97 for (fbl::RefPtr<VmAddressRegionOrMapping> next; (next = region->FindRegion(guest_paddr)); 98 region = next->as_vm_address_region()) { 146 fbl::RefPtr<VmAddressRegionOrMapping> region = RootVmar()->FindRegion(begin); local 147 if (!region) { 150 fbl::RefPtr<VmMapping> guest_mapping = region->as_vm_mapping();
|
/fuchsia/zircon/system/dev/audio/astro-tdm-output/ |
H A D | audio-stream-out.cpp | 68 aml_audio_->SetBuffer(pinned_ring_buffer_.region(0).phys_addr, 69 pinned_ring_buffer_.region(0).size); 177 static_cast<uint32_t>(pinned_ring_buffer_.region(0).size) / frame_size_; 191 aml_audio_->SetBuffer(pinned_ring_buffer_.region(0).phys_addr, 204 1000 * pinned_ring_buffer_.region(0).size / (frame_size_ * 48 * notifs));
|
/fuchsia/zircon/system/dev/audio/astro-pdm-input/ |
H A D | audio-stream-in.cpp | 86 pdm_->SetBuffer(pinned_ring_buffer_.region(0).phys_addr, 87 pinned_ring_buffer_.region(0).size); 107 static_cast<uint32_t>(pinned_ring_buffer_.region(0).size) / frame_size_; 121 pdm_->SetBuffer(pinned_ring_buffer_.region(0).phys_addr, 132 1000 * pinned_ring_buffer_.region(0).size / (frame_size_ * 48 * notifs));
|
/fuchsia/zircon/kernel/object/include/object/ |
H A D | resource_dispatcher.h | 16 #include <region-alloc/region-alloc.h> 34 // given region of address space from a particular address space allocator, or a root resource 88 RegionAllocator::Region::UPtr&& region, 116 // check that no exclusive reservation exists, but then release the region 118 // ensure that the region has not already been allocated as a shared region
|
/fuchsia/zircon/third_party/ulib/musl/pthread/ |
H A D | pthread_create.c | 36 static void deallocate_region(const struct iovec* region) { argument 38 (uintptr_t)region->iov_base, region->iov_len); 117 // This deallocates the TCB region too for the detached case. 138 // region stays alive so the pthread_t is still valid for pthread_join. 139 // The rest of the region is no longer used for TLS, so it can serve 143 // The thread descriptor is at the end of the region, so the space 152 // The thread descriptor is at the start of the region, so the rest of
|
/fuchsia/zircon/kernel/dev/pcie/ |
H A D | rules.mk | 28 kernel/lib/region-alloc
|