/hardware/qcom/display/msm8974/libgralloc/ |
H A D | gpu.cpp | 54 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument 72 if (usage & GRALLOC_USAGE_PROTECTED) { 80 err = mAllocCtrl->allocate(data, usage); 96 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 99 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) { 102 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) { 108 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 117 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { 118 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) 129 if (usage 181 gralloc_alloc_framebuffer_locked(size_t size, int usage, buffer_handle_t* pHandle) argument 241 gralloc_alloc_framebuffer(size_t size, int usage, buffer_handle_t* pHandle) argument 251 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument 348 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 358 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | gpu.h | 39 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,
|
H A D | alloc_controller.cpp | 54 static bool canFallback(int usage, bool triedSystem) argument 68 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) 70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) 76 static bool useUncached(int usage) argument 78 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) 80 if(((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) 81 ||((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) 188 int IonController::allocate(alloc_data& data, int usage) argument 193 data.uncached = useUncached(usage); 196 if(usage 361 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument [all...] |
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
H A D | gralloc.cpp | 43 buffer_handle_t handle, int usage, 48 buffer_handle_t handle, int usage,
|
/hardware/qcom/display/msm8960/libgralloc/ |
H A D | gpu.cpp | 55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument 73 qdutils::MDSS_V5) && (usage & GRALLOC_USAGE_PROTECTED)) { 79 err = mAllocCtrl->allocate(data, usage); 95 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) { 101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) { 107 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 112 if (usage & (GRALLOC_USAGE_HW_TEXTURE | 115 else if (usage & GRALLOC_USAGE_HW_CAMERA_ZSL) 123 if (usage 175 gralloc_alloc_framebuffer_locked(size_t size, int usage, buffer_handle_t* pHandle) argument 235 gralloc_alloc_framebuffer(size_t size, int usage, buffer_handle_t* pHandle) argument 245 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument 333 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 343 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | gpu.h | 39 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,
|
H A D | alloc_controller.cpp | 54 static bool canFallback(int usage, bool triedSystem) argument 68 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) 70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) 76 static bool useUncached(int usage) argument 79 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) 81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) 176 int IonController::allocate(alloc_data& data, int usage) argument 181 data.uncached = useUncached(usage); 184 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) 187 if(usage 344 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument [all...] |
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
H A D | gralloc.cpp | 43 buffer_handle_t handle, int usage, 48 buffer_handle_t handle, int usage,
|
H A D | mapper.cpp | 202 buffer_handle_t handle, int usage, 210 if (usage & (GRALLOC_USAGE_SW_READ_MASK | GRALLOC_USAGE_SW_WRITE_MASK)) { 224 if ((usage & GRALLOC_USAGE_SW_WRITE_MASK) && 236 buffer_handle_t handle, int usage, 241 int err = gralloc_map_and_invalidate(module, handle, usage, l, t, w, h); 248 buffer_handle_t handle, int usage, 253 int err = gralloc_map_and_invalidate(module, handle, usage, l, t, w, h); 201 gralloc_map_and_invalidate(gralloc_module_t const* module, buffer_handle_t handle, int usage, int l, int t, int w, int h) argument 235 gralloc_lock(gralloc_module_t const* module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void** vaddr) argument 247 gralloc_lock_ycbcr(gralloc_module_t const* module, buffer_handle_t handle, int usage, int l, int t, int w, int h, struct android_ycbcr *ycbcr) argument
|
/hardware/qcom/display/msm8x26/libgralloc/ |
H A D | gpu.cpp | 55 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, argument 73 qdutils::MDSS_V5) && (usage & GRALLOC_USAGE_PROTECTED)) { 79 err = mAllocCtrl->allocate(data, usage); 95 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { 98 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) { 101 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) { 107 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { 112 if (usage & (GRALLOC_USAGE_HW_TEXTURE | 115 else if (usage & GRALLOC_USAGE_HW_CAMERA_ZSL) 123 if (usage 175 gralloc_alloc_framebuffer_locked(size_t size, int usage, buffer_handle_t* pHandle) argument 235 gralloc_alloc_framebuffer(size_t size, int usage, buffer_handle_t* pHandle) argument 245 alloc_impl(int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, size_t bufferSize) argument 333 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument 343 gralloc_alloc_size(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride, int bufferSize) argument [all...] |
H A D | gpu.h | 39 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,
|
H A D | alloc_controller.cpp | 54 static bool canFallback(int usage, bool triedSystem) argument 68 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) 70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) 76 static bool useUncached(int usage) argument 79 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) 81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) 176 int IonController::allocate(alloc_data& data, int usage) argument 181 data.uncached = useUncached(usage); 184 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) 187 if(usage 342 alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) argument [all...] |
H A D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
H A D | gralloc.cpp | 43 buffer_handle_t handle, int usage, 48 buffer_handle_t handle, int usage,
|
H A D | mapper.cpp | 202 buffer_handle_t handle, int usage, 210 if (usage & (GRALLOC_USAGE_SW_READ_MASK | GRALLOC_USAGE_SW_WRITE_MASK)) { 224 if ((usage & GRALLOC_USAGE_SW_WRITE_MASK) && 236 buffer_handle_t handle, int usage, 241 int err = gralloc_map_and_invalidate(module, handle, usage, l, t, w, h); 248 buffer_handle_t handle, int usage, 253 int err = gralloc_map_and_invalidate(module, handle, usage, l, t, w, h); 201 gralloc_map_and_invalidate(gralloc_module_t const* module, buffer_handle_t handle, int usage, int l, int t, int w, int h) argument 235 gralloc_lock(gralloc_module_t const* module, buffer_handle_t handle, int usage, int l, int t, int w, int h, void** vaddr) argument 247 gralloc_lock_ycbcr(gralloc_module_t const* module, buffer_handle_t handle, int usage, int l, int t, int w, int h, struct android_ycbcr *ycbcr) argument
|
/hardware/samsung_slsi/exynos5/gralloc/ |
H A D | gralloc.cpp | 65 size_t size, int usage, buffer_handle_t* pHandle); 76 buffer_handle_t handle, int usage, 122 static unsigned int _select_heap(int usage) argument 126 if (usage & GRALLOC_USAGE_PROTECTED) 134 static int gralloc_alloc_rgb(int ionfd, int w, int h, int format, int usage, argument 139 unsigned int heap_mask = _select_heap(usage); 142 bool sw_usage = !!(usage & (GRALLOC_USAGE_SW_READ_MASK | 145 if (usage & GRALLOC_USAGE_HW_FB) { 147 "framebuffer target should not have SW usage bits; ignoring"); 149 } else if (usage 202 gralloc_alloc_framework_yuv(int ionfd, int w, int h, int format, int usage, unsigned int ion_flags, private_handle_t **hnd, int *stride) argument 232 gralloc_alloc_yuv(int ionfd, int w, int h, int format, int usage, unsigned int ion_flags, private_handle_t **hnd, int *stride) argument 335 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument [all...] |
/hardware/qcom/msm8960/original-kernel-headers/linux/ |
H A D | msm_ion.h | 211 * @usage - usage hint to TZ 216 int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage); 223 * @usage - usage hint to TZ 228 int msm_ion_unsecure_heap_2_0(int heap_id, enum cp_mem_usage usage); 241 static inline int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage) argument 247 enum cp_mem_usage usage) 246 msm_ion_unsecure_heap_2_0(int heap_id, enum cp_mem_usage usage) argument
|
/hardware/libhardware/modules/camera/ |
H A D | Stream.cpp | 59 void Stream::setUsage(uint32_t usage) argument 62 if (usage != mUsage) { 63 mUsage = usage; 64 mStream->usage = usage;
|
H A D | Stream.h | 37 void setUsage(uint32_t usage); 64 // Gralloc usage mask : GRALLOC_USAGE_* (see <hardware/gralloc.h>)
|
/hardware/libhardware/modules/gralloc/ |
H A D | gralloc.cpp | 48 size_t size, int usage, buffer_handle_t* pHandle); 59 buffer_handle_t handle, int usage, 105 size_t size, int usage, buffer_handle_t* pHandle) 127 int newUsage = (usage & ~GRALLOC_USAGE_HW_FB) | GRALLOC_USAGE_HW_2D; 158 size_t size, int usage, buffer_handle_t* pHandle) 163 int err = gralloc_alloc_framebuffer_locked(dev, size, usage, pHandle); 169 size_t size, int usage, buffer_handle_t* pHandle) 200 int w, int h, int format, int usage, 231 if (usage & GRALLOC_USAGE_HW_FB) { 232 err = gralloc_alloc_framebuffer(dev, size, usage, pHandl 104 gralloc_alloc_framebuffer_locked(alloc_device_t* dev, size_t size, int usage, buffer_handle_t* pHandle) argument 157 gralloc_alloc_framebuffer(alloc_device_t* dev, size_t size, int usage, buffer_handle_t* pHandle) argument 168 gralloc_alloc_buffer(alloc_device_t* dev, size_t size, int usage, buffer_handle_t* pHandle) argument 199 gralloc_alloc(alloc_device_t* dev, int w, int h, int format, int usage, buffer_handle_t* pHandle, int* pStride) argument [all...] |
/hardware/qcom/msm8x74/original-kernel-headers/linux/ |
H A D | msm_ion.h | 254 * You should *NOT* rely on this for any other usage. 345 * @usage - usage hint to TZ 350 int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage); 357 * @usage - usage hint to TZ 362 int msm_ion_unsecure_heap_2_0(int heap_id, enum cp_mem_usage usage); 369 * @usage - usage hint to TZ 373 enum cp_mem_usage usage, in 449 msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage) argument 454 msm_ion_unsecure_heap_2_0(int heap_id, enum cp_mem_usage usage) argument 460 msm_ion_secure_buffer(struct ion_client *client, struct ion_handle *handle, enum cp_mem_usage usage, int flags) argument [all...] |
/hardware/libhardware/include/hardware/ |
H A D | gralloc.h | 104 /* mask for the software usage bit-mask */ 123 /* implementation-specific private usage flags */ 176 * specified usage. This call may block, for instance if the h/w needs 185 * If usage specifies GRALLOC_USAGE_SW_*, vaddr is filled with the address 204 * If the buffer was created with a usage mask incompatible with the 205 * requested usage flags here, -EINVAL is returned. 210 buffer_handle_t handle, int usage, 240 buffer_handle_t handle, int usage, 273 int w, int h, int format, int usage,
|
/hardware/ti/omap4xxx/hwc/ |
H A D | hal_public.h | 82 /* This is used for buffer usage validation when locking a buffer, 85 int usage; member in struct:__anon2191
|