Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 25 of 480) sorted by relevance

12345678910>>...20

/hardware/google/gchips/gralloc4/src/core/
Dmali_gralloc_bufferdescriptor.cpp29 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 …]
Dmali_gralloc_formats.cpp78 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/libhardware/include/hardware/
Dgralloc.h229 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/msm8909w_3100/libgralloc/
Dgpu.cpp51 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 …]
Dgpu.h38 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/msm8909/libgralloc/
Dgpu.cpp51 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 …]
Dgpu.h38 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/msm8084/libgralloc/
Dgpu.cpp55 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 …]
Dgpu.h38 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,
Dalloc_controller.cpp57 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 …]
/hardware/qcom/display/msm8226/libgralloc/
Dgpu.cpp54 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 …]
Dgpu.h38 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,
Dalloc_controller.cpp57 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/
Dgpu.cpp58 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 …]
Dgpu.h38 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/
Dgpu.cpp55 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 …]
Dalloc_controller.cpp56 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 …]
Dgpu.h39 int gralloc_alloc_buffer(size_t size, int usage,
46 int alloc_impl(int w, int h, int format, int usage,
51 int format, int usage,
54 int gralloc_alloc_framebuffer_locked(size_t size, int usage,
57 int gralloc_alloc_framebuffer(size_t size, int usage,
64 int usage, buffer_handle_t* pHandle,
/hardware/qcom/display/msm8994/libgralloc/
Dgpu.cpp59 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 …]
Dgpu.h38 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,
Dalloc_controller.cpp60 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/
Dgr_utils.h57 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 …]
/hardware/qcom/sm7250/display/gralloc/
Dgr_utils.h60 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 …]
/hardware/interfaces/graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/
DGralloc1Hal.h48 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/
Dplugin_status_test.c23 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()

12345678910>>...20