/aosp12/system/memory/libion/tests/ |
H A D | exit_test.cpp | 32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 60 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, in TEST_F() 78 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 102 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 128 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 134 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F() 153 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 159 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F() 180 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 186 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F() [all …]
|
H A D | allocate_test.cpp | 32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 35 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 47 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 62 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 65 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), in TEST_F() 78 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 84 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 95 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 108 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 113 ASSERT_EQ(0, ion_alloc_fd(ionfd, 4096, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() [all …]
|
H A D | map_test.cpp | 32 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 36 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() 54 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 57 ASSERT_EQ(0, ion_alloc_fd(ionfd, getpagesize() * 2, 0, (1 << heap.heap_id), 0, &map_fd)); in TEST_F() 85 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 90 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F() 110 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 115 ASSERT_EQ(0, ion_alloc_fd(ionfd, size, 0, (1 << heap.heap_id), flags, &map_fd)); in TEST_F()
|
H A D | invalid_values_test.cpp | 39 EXPECT_EQ(-EBADF, ion_alloc_fd(-1, 4096, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 41 << "heap:" << heap.name << ":" << heap.type << ":" << heap.heap_id); in TEST_F() 43 EXPECT_EQ(-EINVAL, ion_alloc_fd(ionfd, 0, 0, (1 << heap.heap_id), 0, &fd)); in TEST_F() 45 int ret = ion_alloc_fd(ionfd, -1, 0, (1 << heap.heap_id), 0, &fd); in TEST_F() 55 EXPECT_EQ(-EINVAL, ion_alloc_fd(ionfd, 4096, 0, (1 << heap.heap_id), 0, nullptr)); in TEST_F()
|
H A D | heap_query.cpp | 32 << ":" << heap.heap_id); in TEST_F() 35 ASSERT_TRUE((1 << heap.heap_id) & ION_HEAP_SYSTEM_MASK); in TEST_F() 38 ASSERT_TRUE((1 << heap.heap_id) & ION_HEAP_TYPE_DMA_MASK); in TEST_F()
|
/aosp12/hardware/qcom/sm7250/display/gralloc/ |
H A D | gr_allocator.cpp | 125 alloc_data->heap_id, alloc_data->flags); in AllocateMem() 203 unsigned int heap_id = 0; in GetIonHeapInfo() local 209 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 216 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 226 heap_id = ION_HEAP(ION_SECURE_CARVEOUT_HEAP_ID); in GetIonHeapInfo() 229 heap_id = ION_HEAP(CP_HEAP_ID); in GetIonHeapInfo() 237 heap_id |= ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() 240 heap_id |= ION_HEAP(ION_ADSP_HEAP_ID); in GetIonHeapInfo() 249 if (!heap_id) { in GetIonHeapInfo() 250 heap_id = ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() [all …]
|
/aosp12/hardware/qcom/sm8150/display/gralloc/ |
H A D | gr_allocator.cpp | 133 alloc_data->heap_id, alloc_data->flags); in AllocateMem() 211 unsigned int heap_id = 0; in GetIonHeapInfo() local 216 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 223 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 233 heap_id = ION_HEAP(ION_SECURE_CARVEOUT_HEAP_ID); in GetIonHeapInfo() 236 heap_id = ION_HEAP(CP_HEAP_ID); in GetIonHeapInfo() 244 heap_id |= ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() 247 heap_id |= ION_HEAP(ION_ADSP_HEAP_ID); in GetIonHeapInfo() 256 if (!heap_id) { in GetIonHeapInfo() 257 heap_id = ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() [all …]
|
/aosp12/hardware/qcom/msm8960/original-kernel-headers/linux/ |
H A D | msm_ion.h | 194 int msm_ion_secure_heap(int heap_id); 204 int msm_ion_unsecure_heap(int heap_id); 216 int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage); 228 int msm_ion_unsecure_heap_2_0(int heap_id, enum cp_mem_usage usage); 230 static inline int msm_ion_secure_heap(int heap_id) in msm_ion_secure_heap() argument 236 static inline int msm_ion_unsecure_heap(int heap_id) in msm_ion_unsecure_heap() argument 241 static inline int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage) in msm_ion_secure_heap_2_0() argument 246 static inline int msm_ion_unsecure_heap_2_0(int heap_id, in msm_ion_unsecure_heap_2_0() argument
|
H A D | ion.h | 350 int ion_secure_heap(struct ion_device *dev, int heap_id, int version, 364 int ion_unsecure_heap(struct ion_device *dev, int heap_id, int version, 471 static inline int ion_secure_heap(struct ion_device *dev, int heap_id, in ion_secure_heap() argument 478 static inline int ion_unsecure_heap(struct ion_device *dev, int heap_id, in ion_unsecure_heap() argument
|
/aosp12/hardware/qcom/msm8x27/original-kernel-headers/linux/ |
H A D | msm_ion.h | 194 int msm_ion_secure_heap(int heap_id); 204 int msm_ion_unsecure_heap(int heap_id); 216 int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage); 228 int msm_ion_unsecure_heap_2_0(int heap_id, enum cp_mem_usage usage); 230 static inline int msm_ion_secure_heap(int heap_id) in msm_ion_secure_heap() argument 236 static inline int msm_ion_unsecure_heap(int heap_id) in msm_ion_unsecure_heap() argument 241 static inline int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage) in msm_ion_secure_heap_2_0() argument 246 static inline int msm_ion_unsecure_heap_2_0(int heap_id, in msm_ion_unsecure_heap_2_0() argument
|
/aosp12/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
H A D | gr_allocator.cpp | 110 alloc_data->heap_id, alloc_data->flags); in AllocateMem() 259 unsigned int heap_id = 0; in GetIonHeapInfo() local 264 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 271 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 278 heap_id = ION_HEAP(CP_HEAP_ID); in GetIonHeapInfo() 285 heap_id |= ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() 289 heap_id |= ION_HEAP(ION_CAMERA_HEAP_ID); in GetIonHeapInfo() 294 heap_id |= ION_HEAP(ION_ADSP_HEAP_ID); in GetIonHeapInfo() 302 if (!heap_id) { in GetIonHeapInfo() 303 heap_id = ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() [all …]
|
/aosp12/hardware/qcom/display/msm8909/gralloc/ |
H A D | gr_allocator.cpp | 110 alloc_data->heap_id, alloc_data->flags); in AllocateMem() 259 unsigned int heap_id = 0; in GetIonHeapInfo() local 264 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 271 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 278 heap_id = ION_HEAP(CP_HEAP_ID); in GetIonHeapInfo() 285 heap_id |= ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() 289 heap_id |= ION_HEAP(ION_CAMERA_HEAP_ID); in GetIonHeapInfo() 294 heap_id |= ION_HEAP(ION_ADSP_HEAP_ID); in GetIonHeapInfo() 302 if (!heap_id) { in GetIonHeapInfo() 303 heap_id = ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() [all …]
|
/aosp12/hardware/google/graphics/common/libion/test/ |
H A D | ion_allocate_api_test.cpp | 86 unsigned int heap_id = getModernHeapId(i); in TEST_F() local 89 if (heap_id == ION_NUM_HEAP_IDS) in TEST_F() 91 …if ((type.type_flags & TEST_ALLOC_BUDDY) && !(getHeapFlags(heap_id) & ION_HEAPDATA_FLAGS_DEFER_FRE… in TEST_F() 95 if (size > getHeapSize(heap_id)) in TEST_F() 101 …PED_TRACE(::testing::Message() << "heap: " << getHeapName(heap_id) << ", heap id: " << heap_id << … in TEST_F() 113 if (!(getHeapFlags(heap_id) & ION_HEAPDATA_FLAGS_UNTOUCHABLE)) { in TEST_F()
|
H A D | ion_test_fixture.h | 33 unsigned int heap_id; member 53 return (m_heapCount > 0) ? 1 << m_ionHeapData[idx].heap_id : 0; in getHeapMask() 70 if (heapid < m_ionHeapData[i].heap_id) in getMaxHeapId() 71 heapid = m_ionHeapData[i].heap_id; in getMaxHeapId() 79 return m_idTable[idx].heap_id; in getModernHeapId()
|
H A D | map_test.cpp | 34 unsigned int heapMask = 1 << heap[i].heap_id; in TEST_F() 61 unsigned int heapMask = 1 << heap[i].heap_id; in TEST_F() 95 unsigned int heapMask = 1 << heap[i].heap_id; in TEST_F() 123 unsigned int heapMask = 1 << heap[i].heap_id; in TEST_F() 165 unsigned int heapMask = 1 << heap[i].heap_id; in TEST_F()
|
H A D | ion_test_fixture.cpp | 45 m_idTable[i].heap_id = ION_NUM_HEAP_IDS; in IonTest() 77 m_idTable[i].heap_id = m_ionHeapData[k].heap_id; in SetUp()
|
/aosp12/hardware/qcom/sdm845/display/gralloc/ |
H A D | gr_allocator.cpp | 100 GetIonHeapInfo(usage, &alloc_data->heap_id, &alloc_data->alloc_type, &alloc_data->flags); in AllocateMem() 107 alloc_data->heap_id, alloc_data->flags); in AllocateMem() 262 unsigned int heap_id = 0; in GetIonHeapInfo() local 267 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 274 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 281 heap_id = ION_HEAP(CP_HEAP_ID); in GetIonHeapInfo() 287 heap_id |= ION_HEAP(ION_ADSP_HEAP_ID); in GetIonHeapInfo() 295 if (!heap_id) { in GetIonHeapInfo() 296 heap_id = ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() 301 *ion_heap_id = heap_id; in GetIonHeapInfo()
|
/aosp12/system/memory/libdmabufheap/tests/ |
H A D | dmabuf_heap_bench.c | 62 int ion_heap_alloc(int ionfd, int heap_id, size_t len, unsigned int flags, int* dmabuf_fd) { in ion_heap_alloc() argument 67 alloc_data.heap_id_mask = 1 << heap_id; in ion_heap_alloc() 120 int heap_id; in ion_heap_bench() local 141 heap_id = MAX_HEAP_COUNT + 1; in ion_heap_bench() 144 heap_id = heap_data[i].heap_id; in ion_heap_bench() 148 if (heap_id > MAX_HEAP_COUNT) { in ion_heap_bench() 155 ret = ion_heap_alloc(ionfd, heap_id, size, flags, &dmabuf_fd); in ion_heap_bench()
|
/aosp12/hardware/qcom/display/msm8996/libgralloc1/ |
H A D | gr_allocator.cpp | 118 alloc_data->heap_id, alloc_data->flags); in AllocateMem() 563 unsigned int heap_id = 0; in GetIonHeapInfo() local 568 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 575 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 582 heap_id = ION_HEAP(CP_HEAP_ID); in GetIonHeapInfo() 589 heap_id |= ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() 593 heap_id |= ION_HEAP(ION_CAMERA_HEAP_ID); in GetIonHeapInfo() 598 heap_id |= ION_HEAP(ION_ADSP_HEAP_ID); in GetIonHeapInfo() 606 if (!heap_id) { in GetIonHeapInfo() 607 heap_id = ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() [all …]
|
/aosp12/hardware/qcom/display/msm8998/libgralloc1/ |
H A D | gr_allocator.cpp | 119 alloc_data->heap_id, alloc_data->flags); in AllocateMem() 565 unsigned int heap_id = 0; in GetIonHeapInfo() local 570 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 577 heap_id = ION_HEAP(SD_HEAP_ID); in GetIonHeapInfo() 584 heap_id = ION_HEAP(CP_HEAP_ID); in GetIonHeapInfo() 591 heap_id |= ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() 595 heap_id |= ION_HEAP(ION_CAMERA_HEAP_ID); in GetIonHeapInfo() 600 heap_id |= ION_HEAP(ION_ADSP_HEAP_ID); in GetIonHeapInfo() 608 if (!heap_id) { in GetIonHeapInfo() 609 heap_id = ION_HEAP(ION_SYSTEM_HEAP_ID); in GetIonHeapInfo() [all …]
|
/aosp12/system/memory/libdmabufheap/ |
H A D | BufferAllocator.cpp | 129 int BufferAllocator::GetIonHeapIdByName(const std::string& heap_name, unsigned int* heap_id) { in GetIonHeapIdByName() argument 132 *heap_id = it.heap_id; in GetIonHeapIdByName() 196 unsigned int heap_id; in GetIonConfig() local 197 ret = GetIonHeapIdByName(heap_name, &heap_id); in GetIonConfig() 199 heap_config.mask = 1 << heap_id; in GetIonConfig()
|
/aosp12/hardware/qcom/camera/msm8998/QCamera2/HAL/ |
H A D | QCameraMem.h | 144 unsigned int heap_id; member 147 int alloc(int count, size_t size, unsigned int heap_id); 150 unsigned int heap_id, size_t size, bool cached, bool is_secure); 170 unsigned int heap_id, size_t size, bool cached, 179 unsigned int heap_id, size_t size, bool cached,
|
H A D | QCameraMem.cpp | 380 int QCameraMemory::alloc(int count, size_t size, unsigned int heap_id) in alloc() argument 398 rc = allocOneBuffer(mMemInfo[i], heap_id, size, m_bCached, in alloc() 408 heap_id, in alloc() 464 unsigned int heap_id, size_t size, bool cached, bool secure_mode) in allocOneBuffer() argument 486 alloc.heap_id_mask = heap_id; in allocOneBuffer() 514 memInfo.heap_id = heap_id; in allocOneBuffer() 655 struct QCameraMemory::QCameraMemInfo &memInfo, unsigned int heap_id, in findBufferLocked() argument 668 ((*it).heap_id == heap_id) && in findBufferLocked() 681 ((*it).heap_id == heap_id) && in findBufferLocked() 723 rc = findBufferLocked(memInfo, heap_id, size, cached, streamType); in allocateBuffer() [all …]
|
/aosp12/art/runtime/javaheapprof/ |
H A D | javaheapsampler.h | 45 void SetHeapID(uint32_t heap_id) { in SetHeapID() argument 46 perfetto_heap_id_ = heap_id; in SetHeapID()
|
/aosp12/art/openjdkjvmti/ |
H A D | ti_heap.h | 83 static jvmtiError JNICALL GetObjectHeapId(jvmtiEnv* env, jlong tag, jint* heap_id, ...); 84 static jvmtiError JNICALL GetHeapName(jvmtiEnv* env, jint heap_id, char** heap_name, ...);
|