Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 25 of 39) sorted by relevance

12

/device/google/contexthub/firmware/os/core/
Dslab.c31 struct SlabAllocator *allocator; in slabAllocatorNew() local
42 allocator = (struct SlabAllocator*)heapAlloc(sizeof(struct SlabAllocator) + bitsetSz + dataSz); in slabAllocatorNew()
43 if (allocator) { in slabAllocatorNew()
44 allocator->itemSz = itemSz; in slabAllocatorNew()
45 allocator->dataChunks = ((uint8_t*)allocator->bitset) + bitsetSz; in slabAllocatorNew()
46 atomicBitsetInit(allocator->bitset, numItems); in slabAllocatorNew()
49 return allocator; in slabAllocatorNew()
52 void slabAllocatorDestroy(struct SlabAllocator *allocator) in slabAllocatorDestroy() argument
54 heapFree(allocator); in slabAllocatorDestroy()
57 void* slabAllocatorAlloc(struct SlabAllocator *allocator) in slabAllocatorAlloc() argument
[all …]
DosApi.c254 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabDestroy() local
256 slabAllocatorDestroy(allocator); in osExpApiSlabDestroy()
261 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabAlloc() local
263 *retValP = (uintptr_t)slabAllocatorAlloc(allocator); in osExpApiSlabAlloc()
268 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *); in osExpApiSlabFree() local
271 slabAllocatorFree(allocator, mem); in osExpApiSlabFree()
/device/generic/goldfish-opengl/android-emu/android/base/
Daddress_space.h147 struct address_space_allocator *allocator, in address_space_allocator_split_block() argument
151 address_space_assert(allocator->capacity >= 1); in address_space_allocator_split_block()
152 address_space_assert(allocator->size >= 1); in address_space_allocator_split_block()
153 address_space_assert(allocator->size <= allocator->capacity); in address_space_allocator_split_block()
155 address_space_assert(i < allocator->size); in address_space_allocator_split_block()
156 address_space_assert(size < allocator->blocks[i].size); in address_space_allocator_split_block()
158 if (allocator->size == allocator->capacity) { in address_space_allocator_split_block()
159 int new_capacity = address_space_allocator_grow_capacity(allocator->capacity); in address_space_allocator_split_block()
160 allocator->blocks = in address_space_allocator_split_block()
163 allocator->blocks, in address_space_allocator_split_block()
[all …]
DAndroidSubAllocator.cpp61 [](void* context, struct address_space_allocator* allocator) { in save() argument
63 stream->putBe32(allocator->size); in save()
64 stream->putBe32(allocator->capacity); in save()
65 stream->putBe64(allocator->total_bytes); in save()
89 [](void* context, struct address_space_allocator* allocator) { in load() argument
91 allocator->size = stream->getBe32(); in load()
92 allocator->capacity = stream->getBe32(); in load()
93 allocator->total_bytes = stream->getBe64(); in load()
/device/google/contexthub/firmware/os/inc/
Dslab.h29 void slabAllocatorDestroy(struct SlabAllocator *allocator);
30 void* slabAllocatorAlloc(struct SlabAllocator *allocator);
31 void slabAllocatorFree(struct SlabAllocator *allocator, void *ptr);
33 void* slabAllocatorGetNth(struct SlabAllocator *allocator, uint32_t idx); // -> pointer or NULL if …
34 uint32_t slabAllocatorGetIndex(struct SlabAllocator *allocator, void *ptr); // -> index or -1 if in…
35 uint32_t slabAllocatorGetNumItems(struct SlabAllocator *allocator); // simply say hwo many items it…
DsyscallDo.h205 static inline void eOsSlabAllocatorDestroy(struct SlabAllocator* allocator) in eOsSlabAllocatorDestroy() argument
207 …YSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SLAB, SYSCALL_OS_MAIN_SLAB_DESTROY), allocator); in eOsSlabAllocatorDestroy()
210 static inline void* eOsSlabAllocatorAlloc(struct SlabAllocator* allocator) in eOsSlabAllocatorAlloc() argument
212 …(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SLAB, SYSCALL_OS_MAIN_SLAB_ALLOC), allocator); in eOsSlabAllocatorAlloc()
215 static inline void eOsSlabAllocatorFree(struct SlabAllocator* allocator, void* ptrP) in eOsSlabAllocatorFree() argument
217 …ALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SLAB, SYSCALL_OS_MAIN_SLAB_FREE), allocator, ptrP); in eOsSlabAllocatorFree()
/device/generic/goldfish-opengl/system/hals/
Dandroid.hardware.graphics.allocator@3.0-service.rc1 service vendor.gralloc-3-0 /vendor/bin/hw/android.hardware.graphics.allocator@3.0-service
2 interface android.hardware.graphics.allocator@3.0::IAllocator default
4 interface android.hardware.graphics.allocator@3.0::IAllocator default
DAndroid.mk20 LOCAL_MODULE := android.hardware.graphics.allocator@3.0-service
24 LOCAL_INIT_RC := android.hardware.graphics.allocator@3.0-service.rc
27 android.hardware.graphics.allocator@3.0 \
Dallocator3.cpp39 namespace AllocatorV3 = ::android::hardware::graphics::allocator::V3_0;
424 sp<IAllocator3> allocator(new GoldfishAllocator()); in main() local
425 if (allocator->registerAsService() != ::android::NO_ERROR) { in main()
/device/google/cuttlefish/shared/config/
DCleanSpec.mk49 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.graphics.allocator@3.…
50 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.graphics.allocator@3.0-…
/device/linaro/poplar/
Ddevice.mk81 android.hardware.graphics.allocator@2.0 \
82 android.hardware.graphics.allocator@2.0-impl \
83 android.hardware.graphics.allocator@2.0-service \
/device/google/crosshatch/
DCleanSpec.mk111 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/lib/hw/android.hardware.graphics.allocator@2.0-…
112 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/lib64/hw/android.hardware.graphics.allocator@2.…
113 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.graphics.allocator@2.0-…
114 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.graphics.allocator@2.…
/device/generic/goldfish/
Dfvp.mk56 android.hardware.graphics.allocator@2.0-service \
57 android.hardware.graphics.allocator@2.0-impl \
/device/google/bonito/
DCleanSpec.mk111 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/lib/hw/android.hardware.graphics.allocator@2.0-…
112 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/lib64/hw/android.hardware.graphics.allocator@2.…
113 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/bin/hw/android.hardware.graphics.allocator@2.0-…
114 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/etc/init/android.hardware.graphics.allocator@2.…
/device/ti/beagle_x15/
Ddevice.mk68 android.hardware.graphics.allocator@2.0-impl \
69 android.hardware.graphics.allocator@2.0-service \
/device/generic/uml/
Duml.mk35 android.hidl.allocator@1.0-service \
/device/linaro/dragonboard/
Ddevice-common.mk46 android.hardware.graphics.allocator@2.0-impl \
47 android.hardware.graphics.allocator@2.0-service \
/device/generic/trusty/
Dqemu_trusty_base.mk27 android.hidl.allocator@1.0-service \
/device/google/coral-sepolicy/vendor/qcom/common/
Dhwservice_contexts33 vendor.qti.hardware.display.allocator::IQtiAllocator u:object_r:hal_graphics_all…
/device/linaro/hikey/
Ddevice-common.mk92 android.hardware.graphics.allocator@2.0-impl \
93 android.hardware.graphics.allocator@2.0-service \
/device/amlogic/yukawa/
Ddevice-common.mk230 android.hardware.graphics.allocator@2.0-service \
231 android.hardware.graphics.allocator@2.0-impl \
/device/linaro/poplar/proprietary/hisilicon/
DAndroid.bp74 "android.hardware.graphics.allocator@2.0",
/device/generic/goldfish-opengl/system/vulkan/
Dgoldfish_vulkan.cpp410 const VkAllocationCallbacks* allocator, in CreateInstance() argument
417 return vkstubhal::CreateInstance(create_info, allocator, out_instance); in CreateInstance()
/device/generic/goldfish-opengl/system/gralloc/
Dgralloc_old.cpp308 GoldfishAddressSpaceHostMemoryAllocator* allocator = &grdma->host_memory_allocator; in gralloc_dmaregion_register_ashmem_direct_mem_locked() local
310 allocator->hostFree(block); in gralloc_dmaregion_register_ashmem_direct_mem_locked()
311 allocator->hostMalloc(block, new_sz); in gralloc_dmaregion_register_ashmem_direct_mem_locked()
/device/google/cuttlefish/shared/sepolicy/vendor/
Dfile_contexts82 /vendor/bin/hw/android\.hardware\.graphics\.allocator@3\.0-service\.minigbm u:object_r:hal_graphi…

12