Home
last modified time | relevance | path

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

12345678910>>...16

/hardware/qcom/sdm845/display/gralloc/
Dgr_allocator.cpp95 int Allocator::AllocateMem(AllocData *alloc_data, uint64_t usage) { in AllocateMem() argument
97 alloc_data->uncached = UseUncached(usage); in AllocateMem()
100 GetIonHeapInfo(usage, &alloc_data->heap_id, &alloc_data->alloc_type, &alloc_data->flags); in AllocateMem()
182 int Allocator::GetImplDefinedFormat(uint64_t usage, int format) { in GetImplDefinedFormat() argument
189 if (usage & GRALLOC_USAGE_PRIVATE_ALLOC_UBWC) { in GetImplDefinedFormat()
193 if (usage & GRALLOC_USAGE_PRIVATE_10BIT_TP) { in GetImplDefinedFormat()
195 } else if (usage & GRALLOC_USAGE_PRIVATE_10BIT) { in GetImplDefinedFormat()
200 } else if (usage & GRALLOC_USAGE_PRIVATE_10BIT) { in GetImplDefinedFormat()
202 } else if (usage & BufferUsage::VIDEO_ENCODER) { in GetImplDefinedFormat()
204 } else if (usage & BufferUsage::CAMERA_INPUT) { in GetImplDefinedFormat()
[all …]
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
75 bool CpuCanAccess(uint64_t usage);
76 bool CpuCanRead(uint64_t usage);
77 bool CpuCanWrite(uint64_t usage);
91 bool IsUBwcEnabled(int format, uint64_t usage);
106 uint32_t GetDataAlignment(int format, uint64_t usage);
111 bool CanUseAdrenoForSize(int buffer_type, uint64_t usage);
114 bool IsGPUFlagSupported(uint64_t usage);
/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 …]
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 …]
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,
/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 …]
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 …]
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/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 …]
Dalloc_controller.cpp90 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 …]
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/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/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 …]
/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 …]
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 …]
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/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
75 bool CpuCanAccess(uint64_t usage);
76 bool CpuCanRead(uint64_t usage);
77 bool CpuCanWrite(uint64_t usage);
92 bool IsUBwcPISupported(int format, uint64_t usage);
93 bool IsUBwcEnabled(int format, uint64_t usage);
108 uint32_t GetDataAlignment(int format, uint64_t usage);
112 bool CanUseAdrenoForSize(int buffer_type, uint64_t usage);
[all …]
Dgr_utils.cpp184 bool CpuCanAccess(uint64_t usage) { in CpuCanAccess() argument
185 return CpuCanRead(usage) || CpuCanWrite(usage); in CpuCanAccess()
188 bool CpuCanRead(uint64_t usage) { in CpuCanRead() argument
189 if (usage & BufferUsage::CPU_READ_MASK) { in CpuCanRead()
196 bool CpuCanWrite(uint64_t usage) { in CpuCanWrite() argument
197 if (usage & BufferUsage::CPU_WRITE_MASK) { in CpuCanWrite()
205 uint32_t GetDataAlignment(int format, uint64_t usage) { in GetDataAlignment() argument
211 if (usage & BufferUsage::PROTECTED) { in GetDataAlignment()
212 if (usage & GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY) { in GetDataAlignment()
222 bool IsGPUFlagSupported(uint64_t usage) { in IsGPUFlagSupported() argument
[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>>...16