Searched refs:alloc (Results 1 - 25 of 42) sorted by relevance

12

/fuchsia/zircon/system/utest/region-alloc/
H A Dregion-alloc-c-api.c5 #include <region-alloc/region-alloc.h>
22 ralloc_allocator_t* alloc; local
23 ASSERT_EQ(ZX_OK, ralloc_create_allocator(&alloc), "");
24 ASSERT_NONNULL(alloc, "");
32 EXPECT_EQ(ZX_ERR_BAD_STATE, ralloc_add_region(alloc, &tmp, false), "");
33 EXPECT_EQ(ZX_ERR_BAD_STATE, ralloc_get_sized_region_ex(alloc, 1u, 1u, &out), "");
34 EXPECT_EQ(ZX_ERR_BAD_STATE, ralloc_get_specific_region_ex(alloc, &tmp, &out), "");
35 EXPECT_NULL(ralloc_get_sized_region(alloc, 1u, 1u), "");
36 EXPECT_NULL(ralloc_get_specific_region(alloc,
120 ralloc_allocator_t* alloc = NULL; local
190 ralloc_allocator_t* alloc = NULL; local
247 ralloc_allocator_t* alloc = NULL; local
283 ralloc_allocator_t* alloc = NULL; local
352 ralloc_allocator_t* alloc; local
[all...]
H A Dregion-alloc.cpp5 #include <region-alloc/region-alloc.h>
20 RegionAllocator alloc; local
26 EXPECT_EQ(ZX_ERR_BAD_STATE, alloc.AddRegion({ 0u, 1u }));
27 EXPECT_EQ(ZX_ERR_BAD_STATE, alloc.GetRegion(1, tmp));
28 EXPECT_EQ(ZX_ERR_BAD_STATE, alloc.GetRegion({ 0u, 1u }, tmp));
29 EXPECT_NULL(alloc.GetRegion(1));
30 EXPECT_NULL(alloc.GetRegion({ 0u, 1u }));
38 ASSERT_EQ(ZX_OK, alloc.SetRegionPool(pool));
51 EXPECT_EQ(ZX_OK, alloc
[all...]
H A Drules.mk13 $(LOCAL_DIR)/region-alloc.cpp \
14 $(LOCAL_DIR)/region-alloc-c-api.c
16 MODULE_NAME := region-alloc-test
19 system/ulib/region-alloc \
/fuchsia/zircon/system/ulib/region-alloc/
H A Dregion-alloc-c-api.cpp6 #include <region-alloc/region-alloc.h>
51 RegionAllocator& alloc = *(reinterpret_cast<RegionAllocator*>(allocator));
59 zx_status_t ret = alloc.SetRegionPool(pool_ref);
73 RegionAllocator* alloc = reinterpret_cast<RegionAllocator*>(allocator); local
74 alloc->~RegionAllocator();
75 ::free(alloc);
104 RegionAllocator& alloc = *(reinterpret_cast<RegionAllocator*>(allocator)); local
105 zx_status_t result = alloc.GetRegion(size, alignment, managed_region);
130 RegionAllocator& alloc local
150 const RegionAllocator& alloc = *(reinterpret_cast<const RegionAllocator*>(allocator)); local
156 const RegionAllocator& alloc = *(reinterpret_cast<const RegionAllocator*>(allocator)); local
178 const RegionAllocator& alloc = *(reinterpret_cast<const RegionAllocator*>(allocator)); local
[all...]
H A Drules.mk14 $(LOCAL_DIR)/region-alloc.cpp \
15 $(LOCAL_DIR)/region-alloc-c-api.cpp
/fuchsia/zircon/kernel/lib/region-alloc/
H A Drules.mk8 SRC_DIR := system/ulib/region-alloc
15 $(SRC_DIR)/region-alloc-c-api.cpp \
16 $(SRC_DIR)/region-alloc.cpp
/fuchsia/zircon/third_party/ulib/jemalloc/include/jemalloc/
H A Djemalloc_typedefs.h60 extent_alloc_t *alloc; member in struct:extent_hooks_s
/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A Dvfwscanf.c91 int alloc; local
111 alloc = 0;
150 alloc = !!dest;
153 alloc = 0;
270 if (alloc) {
289 if (alloc && i == k) {
301 if (alloc && i > k - 4) {
319 if (alloc) {
373 if (alloc) {
H A Dvfscanf.c59 int alloc; local
80 alloc = 0;
122 alloc = !!dest;
125 alloc = 0;
248 if (alloc) {
265 if (alloc && i == k) {
275 } else if (alloc) {
301 if (alloc) {
374 if (alloc) {
/fuchsia/zircon/third_party/ulib/backtrace/
H A Drules.mk12 $(LOCAL_DIR)/alloc.c \
/fuchsia/zircon/kernel/arch/arm64/
H A Dboot-mmu.cpp179 auto alloc = []() -> paddr_t { local
197 return _arm64_boot_map(kernel_table0, vaddr, paddr, len, flags, alloc, phys_to_virt);
208 auto alloc = []() -> paddr_t { local
223 return _arm64_boot_map(arm64_get_kernel_ptable(), vaddr, paddr, len, flags, alloc, phys_to_virt);
/fuchsia/zircon/kernel/dev/iommu/intel/
H A Drules.mk25 kernel/lib/region-alloc \
H A Ddevice_context.h13 #include <region-alloc/region-alloc.h>
/fuchsia/zircon/kernel/dev/pcie/include/dev/
H A Dpcie_irqs.h20 #include <region-alloc/region-alloc.h>
H A Dpcie_bridge.h17 #include <region-alloc/region-alloc.h>
/fuchsia/zircon/system/dev/display/intel-i915/
H A Dgtt.h11 #include <region-alloc/region-alloc.h>
H A Dpipe.h11 #include <region-alloc/region-alloc.h>
H A Ddisplay-device.h10 #include <region-alloc/region-alloc.h>
H A Drules.mk31 system/ulib/region-alloc \
/fuchsia/zircon/third_party/ulib/jemalloc/test/integration/
H A Dextent.c114 assert_ptr_ne(old_hooks->alloc, extent_alloc_hook,
139 assert_ptr_eq(old_hooks->alloc, default_hooks->alloc,
/fuchsia/zircon/kernel/dev/pcie/
H A Drules.mk28 kernel/lib/region-alloc
H A Dpcie_device.cpp543 RegionAllocator* alloc = nullptr;
545 alloc = &upstream->pf_mmio_regions();
552 alloc = &upstream->mmio_lo_regions();
555 alloc = &upstream->mmio_hi_regions();
558 alloc = &upstream->pio_regions();
562 if (alloc != nullptr) {
563 res = alloc->GetRegion({ .base = info.bus_addr, .size = info.size }, info.allocation);
586 RegionAllocator* alloc = !info.is_mmio
605 zx_status_t res = alloc->GetRegion(align_size, align_size, info.allocation);
608 if ((res == ZX_ERR_NOT_FOUND) && (alloc
[all...]
/fuchsia/zircon/system/dev/tee/optee/
H A Dshared-memory.h11 #include <region-alloc/region-alloc.h>
30 // The SharedMemoryPool uses the region-alloc library to divide the provided address space into
H A Drules.mk23 system/ulib/region-alloc \
/fuchsia/zircon/system/dev/misc/cpu-trace/
H A Dintel-pm.c327 ioctl_cpuperf_alloc_t alloc;
328 if (cmdlen != sizeof(alloc))
330 memcpy(&alloc, cmd, sizeof(alloc));
331 if (alloc.buffer_size > MAX_PER_TRACE_SPACE)
334 if (alloc.num_buffers != num_cpus) // TODO(dje): for now
357 io_buffer_init(&per_trace->buffers[i], dev->bti, alloc.buffer_size, IO_BUFFER_RW);
368 per_trace->num_buffers = alloc.num_buffers;
369 per_trace->buffer_size = alloc.buffer_size;
401 ioctl_cpuperf_alloc_t alloc;
[all...]

Completed in 157 milliseconds

12