/hardware/google/gchips/gralloc4/src/core/ |
D | mali_gralloc_bufferdescriptor.cpp | 29 uint64_t usage; member 63 std::string describe_usage(uint64_t usage) in describe_usage() argument 66 switch (static_cast<BufferUsage>(usage & BufferUsage::CPU_READ_MASK)) { in describe_usage() 77 stream << "<unknown CPU read value 0x" << std::hex << (usage & 0x0full) << ">"; in describe_usage() 81 switch (static_cast<BufferUsage>(usage & BufferUsage::CPU_WRITE_MASK)) { in describe_usage() 92 stream << "<unknown CPU write value 0x" << std::hex << (usage & 0xf0ull) << ">"; in describe_usage() 95 usage &= ~(0xffull); in describe_usage() 97 i < (sizeof(usage_names) / sizeof(usage_name)) && usage; in describe_usage() 100 if ((usage & usage_names[i].usage) == usage_names[i].usage) in describe_usage() 102 usage = usage & (~usage_names[i].usage); in describe_usage() [all …]
|
D | mali_gralloc_formats.cpp | 78 static uint16_t get_vpu_consumer(uint64_t usage) in get_vpu_consumer() argument 80 if (!(usage & hidl_common::BufferUsage::VIDEO_ENCODER)) in get_vpu_consumer() 86 if (usage & GRALLOC_USAGE_GOOGLE_IP_MFC) in get_vpu_consumer() 89 if (usage & GRALLOC_USAGE_GOOGLE_IP_BIG) in get_vpu_consumer() 105 static uint16_t get_consumers(uint64_t usage) in get_consumers() argument 109 if (usage & GS101_GRALLOC_USAGE_TPU_INPUT) in get_consumers() 115 usage &= ~GRALLOC_USAGE_PROTECTED; in get_consumers() 119 if ((usage & GRALLOC_USAGE_PUBLIC_MASK) == GRALLOC_USAGE_HW_COMPOSER) in get_consumers() 125 if (usage & GRALLOC_USAGE_SW_READ_MASK) in get_consumers() 135 if (usage & GRALLOC_USAGE_HW_FB) in get_consumers() [all …]
|
/hardware/qcom/display/msm8909w_3100/libgralloc/ |
D | gpu.cpp | 51 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, in gralloc_alloc_buffer() argument 63 usage, in gralloc_alloc_buffer() 77 if (usage & GRALLOC_USAGE_PROTECTED) { in gralloc_alloc_buffer() 78 if ((usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) || in gralloc_alloc_buffer() 79 (usage & GRALLOC_USAGE_HW_CAMERA_MASK)) { in gralloc_alloc_buffer() 90 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer() 106 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer() 110 if (usage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY) { in gralloc_alloc_buffer() 114 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer() 118 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer() [all …]
|
/hardware/qcom/display/msm8909/libgralloc/ |
D | gpu.cpp | 51 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, in gralloc_alloc_buffer() argument 63 usage, in gralloc_alloc_buffer() 77 if (usage & GRALLOC_USAGE_PROTECTED) { in gralloc_alloc_buffer() 78 if ((usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) || in gralloc_alloc_buffer() 79 (usage & GRALLOC_USAGE_HW_CAMERA_MASK)) { in gralloc_alloc_buffer() 90 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer() 106 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer() 110 if (usage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY) { in gralloc_alloc_buffer() 114 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer() 118 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer() [all …]
|
/hardware/qcom/display/msm8084/libgralloc/ |
D | gpu.cpp | 55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, in gralloc_alloc_buffer() argument 73 if ((usage & GRALLOC_USAGE_PROTECTED) && in gralloc_alloc_buffer() 74 (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) { in gralloc_alloc_buffer() 82 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer() 98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer() 105 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer() 115 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { in gralloc_alloc_buffer() 116 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { in gralloc_alloc_buffer() 128 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer() 132 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer() [all …]
|
D | alloc_controller.cpp | 57 static bool canFallback(int usage, bool triedSystem) in canFallback() argument 71 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) in canFallback() 73 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) in canFallback() 79 static bool useUncached(int usage) in useUncached() argument 81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) in useUncached() 83 if(((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) in useUncached() 84 ||((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) in useUncached() 283 int IonController::allocate(alloc_data& data, int usage) in allocate() argument 288 data.uncached = useUncached(usage); in allocate() 291 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) in allocate() [all …]
|
D | gpu.h | 38 int gralloc_alloc_buffer(size_t size, int usage, 45 int alloc_impl(int w, int h, int format, int usage, 50 int format, int usage, 53 int gralloc_alloc_framebuffer_locked(int usage, 56 int gralloc_alloc_framebuffer(int usage, 63 int usage, buffer_handle_t* pHandle,
|
/hardware/libhardware/include_all/hardware/ |
D | gralloc.h | 229 buffer_handle_t handle, int usage, 268 buffer_handle_t handle, int usage, 283 buffer_handle_t handle, int usage, 313 buffer_handle_t handle, int usage, 343 uint32_t w, uint32_t h, int32_t format, int usage, 376 int w, int h, int format, int usage, 426 static inline const char* map_usage_to_memtrack(uint32_t usage) { in map_usage_to_memtrack() argument 427 usage &= GRALLOC_USAGE_ALLOC_MASK; in map_usage_to_memtrack() 429 if ((usage & GRALLOC_USAGE_HW_CAMERA_WRITE) != 0) { in map_usage_to_memtrack() 431 } else if ((usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) != 0 || in map_usage_to_memtrack() [all …]
|
/hardware/libhardware/include/hardware/ |
D | gralloc.h | 229 buffer_handle_t handle, int usage, 268 buffer_handle_t handle, int usage, 283 buffer_handle_t handle, int usage, 313 buffer_handle_t handle, int usage, 343 uint32_t w, uint32_t h, int32_t format, int usage, 376 int w, int h, int format, int usage, 426 static inline const char* map_usage_to_memtrack(uint32_t usage) { in map_usage_to_memtrack() argument 427 usage &= GRALLOC_USAGE_ALLOC_MASK; in map_usage_to_memtrack() 429 if ((usage & GRALLOC_USAGE_HW_CAMERA_WRITE) != 0) { in map_usage_to_memtrack() 431 } else if ((usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) != 0 || in map_usage_to_memtrack() [all …]
|
/hardware/google/gfxstream/guest/mesa/include/android_stub/hardware/ |
D | gralloc.h | 229 buffer_handle_t handle, int usage, 268 buffer_handle_t handle, int usage, 283 buffer_handle_t handle, int usage, 313 buffer_handle_t handle, int usage, 343 uint32_t w, uint32_t h, int32_t format, int usage, 376 int w, int h, int format, int usage, 426 static inline const char* map_usage_to_memtrack(uint32_t usage) { in map_usage_to_memtrack() argument 427 usage &= GRALLOC_USAGE_ALLOC_MASK; in map_usage_to_memtrack() 429 if ((usage & GRALLOC_USAGE_HW_CAMERA_WRITE) != 0) { in map_usage_to_memtrack() 431 } else if ((usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) != 0 || in map_usage_to_memtrack() [all …]
|
/hardware/qcom/display/msm8226/libgralloc/ |
D | gpu.cpp | 54 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, in gralloc_alloc_buffer() argument 72 if ((usage & GRALLOC_USAGE_PROTECTED) && in gralloc_alloc_buffer() 73 (usage & GRALLOC_USAGE_PRIVATE_MM_HEAP)) { in gralloc_alloc_buffer() 81 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer() 97 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer() 104 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer() 114 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { in gralloc_alloc_buffer() 115 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { in gralloc_alloc_buffer() 127 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer() 131 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer() [all …]
|
D | alloc_controller.cpp | 57 static bool canFallback(int usage, bool triedSystem) in canFallback() argument 71 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) in canFallback() 73 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) in canFallback() 79 static bool useUncached(int usage) in useUncached() argument 81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) in useUncached() 83 if(((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) in useUncached() 84 ||((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) in useUncached() 282 int IonController::allocate(alloc_data& data, int usage) in allocate() argument 287 data.uncached = useUncached(usage); in allocate() 290 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) in allocate() [all …]
|
/hardware/qcom/display/msm8996/libgralloc/ |
D | gpu.cpp | 58 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, in gralloc_alloc_buffer() argument 74 if (usage & GRALLOC_USAGE_PROTECTED) { in gralloc_alloc_buffer() 75 if (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) { in gralloc_alloc_buffer() 86 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer() 102 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer() 106 if (usage & GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY) { in gralloc_alloc_buffer() 110 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer() 114 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer() 118 if (usage & GRALLOC_USAGE_HW_CAMERA_READ) { in gralloc_alloc_buffer() 122 if (usage & GRALLOC_USAGE_HW_COMPOSER) { in gralloc_alloc_buffer() [all …]
|
D | alloc_controller.cpp | 90 static bool useUncached(const int& usage) { in useUncached() argument 91 if ((usage & GRALLOC_USAGE_PROTECTED) or in useUncached() 92 (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) or in useUncached() 93 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) or in useUncached() 94 ((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) in useUncached() 168 int usage = 0; in getAlignedWidthAndHeight() local 171 usage = GRALLOC_USAGE_PRIVATE_ALLOC_UBWC; in getAlignedWidthAndHeight() 174 getAlignedWidthAndHeight(w, h, f, usage, aligned_w, aligned_h); in getAlignedWidthAndHeight() 218 int usage, int& aligned_w, int& aligned_h) in getAlignedWidthAndHeight() argument 220 bool ubwc_enabled = isUBwcEnabled(format, usage); in getAlignedWidthAndHeight() [all …]
|
D | gpu.h | 38 int gralloc_alloc_buffer(unsigned int size, int usage, 45 int alloc_impl(int w, int h, int format, int usage, 50 int format, int usage, 53 int gralloc_alloc_framebuffer_locked(int usage, 56 int gralloc_alloc_framebuffer(int usage, 63 int usage, buffer_handle_t* pHandle,
|
/hardware/qcom/display/msm8960/libgralloc/ |
D | gpu.cpp | 55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, in gralloc_alloc_buffer() argument 73 qdutils::MDSS_V5) && (usage & GRALLOC_USAGE_PROTECTED)) { in gralloc_alloc_buffer() 79 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer() 95 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer() 98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) { in gralloc_alloc_buffer() 101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) { in gralloc_alloc_buffer() 107 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer() 112 if (usage & (GRALLOC_USAGE_HW_TEXTURE | in gralloc_alloc_buffer() 115 else if (usage & GRALLOC_USAGE_HW_CAMERA_ZSL) in gralloc_alloc_buffer() 123 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer() [all …]
|
D | alloc_controller.cpp | 56 static bool canFallback(int usage, bool triedSystem) in canFallback() argument 70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) in canFallback() 72 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) in canFallback() 78 static bool useUncached(int usage) in useUncached() argument 81 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) in useUncached() 83 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) in useUncached() 179 int IonController::allocate(alloc_data& data, int usage) in allocate() argument 184 data.uncached = useUncached(usage); in allocate() 187 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) in allocate() 190 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) in allocate() [all …]
|
/hardware/qcom/display/msm8994/libgralloc/ |
D | gpu.cpp | 59 int gpu_context_t::gralloc_alloc_buffer(unsigned int size, int usage, in gralloc_alloc_buffer() argument 77 if (usage & GRALLOC_USAGE_PROTECTED) { in gralloc_alloc_buffer() 85 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer() 101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer() 108 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer() 118 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { in gralloc_alloc_buffer() 119 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { in gralloc_alloc_buffer() 131 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer() 135 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer() 139 if (usage & GRALLOC_USAGE_HW_CAMERA_READ) { in gralloc_alloc_buffer() [all …]
|
D | alloc_controller.cpp | 60 static bool canFallback(int usage, bool triedSystem) in canFallback() argument 74 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) in canFallback() 76 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) in canFallback() 86 static bool useUncached(const int& usage) { in useUncached() argument 87 if ((usage & GRALLOC_USAGE_PROTECTED) or in useUncached() 88 (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) or in useUncached() 89 ((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) or in useUncached() 90 ((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) in useUncached() 167 int usage, int& aligned_w, int& aligned_h) in getAlignedWidthAndHeight() argument 172 int tileEnabled = isMacroTileEnabled(format, usage); in getAlignedWidthAndHeight() [all …]
|
/hardware/qcom/sm8150/display/gralloc/ |
D | gr_utils.h | 57 BufferInfo(int w, int h, int f, uint64_t usage = 0) 58 : width(w), height(h), format(f), layer_count(1), usage(usage) {} in width() 63 uint64_t usage; member 159 bool CpuCanAccess(uint64_t usage); 160 bool CpuCanRead(uint64_t usage); 161 bool CpuCanWrite(uint64_t usage); 177 unsigned int GetRgbMetaSize(int format, uint32_t width, uint32_t height, uint64_t usage); 184 bool IsUBwcPISupported(int format, uint64_t usage); 185 bool IsUBwcEnabled(int format, uint64_t usage); 200 uint32_t GetDataAlignment(int format, uint64_t usage); [all …]
|
D | gr_utils.cpp | 192 bool CpuCanAccess(uint64_t usage) { in CpuCanAccess() argument 193 return CpuCanRead(usage) || CpuCanWrite(usage); in CpuCanAccess() 196 bool CpuCanRead(uint64_t usage) { in CpuCanRead() argument 197 if (usage & BufferUsage::CPU_READ_MASK) { in CpuCanRead() 204 bool CpuCanWrite(uint64_t usage) { in CpuCanWrite() argument 205 if (usage & BufferUsage::CPU_WRITE_MASK) { in CpuCanWrite() 213 uint32_t GetDataAlignment(int format, uint64_t usage) { in GetDataAlignment() argument 219 if (usage & BufferUsage::PROTECTED) { in GetDataAlignment() 220 if (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) { in GetDataAlignment() 230 bool IsGPUFlagSupported(uint64_t usage) { in IsGPUFlagSupported() argument [all …]
|
/hardware/qcom/sm7250/display/gralloc/ |
D | gr_utils.h | 60 BufferInfo(int w, int h, int f, uint64_t usage = 0) 61 : width(w), height(h), format(f), layer_count(1), usage(usage) {} in width() 66 uint64_t usage; member 173 bool CpuCanAccess(uint64_t usage); 174 bool CpuCanRead(uint64_t usage); 175 bool CpuCanWrite(uint64_t usage); 191 unsigned int GetRgbMetaSize(int format, uint32_t width, uint32_t height, uint64_t usage); 198 bool IsUBwcPISupported(int format, uint64_t usage); 199 bool IsUBwcEnabled(int format, uint64_t usage); 215 uint32_t GetDataAlignment(int format, uint64_t usage); [all …]
|
D | gr_utils.cpp | 259 bool CpuCanAccess(uint64_t usage) { in CpuCanAccess() argument 260 return CpuCanRead(usage) || CpuCanWrite(usage); in CpuCanAccess() 263 bool CpuCanRead(uint64_t usage) { in CpuCanRead() argument 264 if (usage & BufferUsage::CPU_READ_MASK) { in CpuCanRead() 271 bool CpuCanWrite(uint64_t usage) { in CpuCanWrite() argument 272 if (usage & BufferUsage::CPU_WRITE_MASK) { in CpuCanWrite() 280 uint32_t GetDataAlignment(int format, uint64_t usage) { in GetDataAlignment() argument 286 if (usage & BufferUsage::PROTECTED) { in GetDataAlignment() 287 if ((usage & BufferUsage::CAMERA_OUTPUT) || (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY)) { in GetDataAlignment() 298 bool IsGPUFlagSupported(uint64_t usage) { in IsGPUFlagSupported() argument [all …]
|
/hardware/interfaces/graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/ |
D | Gralloc1Hal.h | 48 bufferDescriptorInfo.consumerUsage = toConsumerUsage(descriptorInfo.usage); in validateBufferSize() 49 bufferDescriptorInfo.producerUsage = toProducerUsage(descriptorInfo.usage); in validateBufferSize() 75 if (gralloc1UsageUnsupported(descriptorInfo.usage)) in createDescriptor_2_1() 80 static_cast<common::V1_0::PixelFormat>(descriptorInfo.format), descriptorInfo.usage, in createDescriptor_2_1() 106 static uint64_t toProducerUsage(uint64_t usage) { in toProducerUsage() argument 109 uint64_t producerUsage = usage & ~static_cast<uint64_t>(BufferUsage::CPU_READ_MASK | in toProducerUsage() 113 switch (usage & BufferUsage::CPU_WRITE_MASK) { in toProducerUsage() 124 switch (usage & BufferUsage::CPU_READ_MASK) { in toProducerUsage() 140 static uint64_t toConsumerUsage(uint64_t usage) { in toConsumerUsage() argument 144 usage & in toConsumerUsage() [all …]
|
/hardware/knowles/athletico/sound_trigger_hal/tests/ |
D | plugin_status_test.c | 23 void usage() { in usage() function 60 usage(); in main() 103 usage(); in main() 109 usage(); in main() 120 usage(); in main() 153 usage(); in main() 158 usage(); in main() 162 usage(); in main() 181 plugin_ep_status_data.usage, in main() 196 usage(); in main()
|