/hardware/qcom/display/msm8974/libgralloc/ |
D | gpu.cpp | 54 int gpu_context_t::gralloc_alloc_buffer(size_t size, int usage, in gralloc_alloc_buffer() argument 72 if (usage & GRALLOC_USAGE_PROTECTED) { in gralloc_alloc_buffer() 80 err = mAllocCtrl->allocate(data, usage); in gralloc_alloc_buffer() 96 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY) { in gralloc_alloc_buffer() 99 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_BLOCK) { in gralloc_alloc_buffer() 102 if (usage & GRALLOC_USAGE_PRIVATE_EXTERNAL_CC) { in gralloc_alloc_buffer() 108 if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) { in gralloc_alloc_buffer() 117 if (usage & GRALLOC_USAGE_HW_CAMERA_MASK) { in gralloc_alloc_buffer() 118 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) in gralloc_alloc_buffer() 129 if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER ) { in gralloc_alloc_buffer() [all …]
|
D | alloc_controller.cpp | 54 static bool canFallback(int usage, bool triedSystem) in canFallback() argument 68 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) in canFallback() 70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) in canFallback() 76 static bool useUncached(int usage) in useUncached() argument 78 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) in useUncached() 80 if(((usage & GRALLOC_USAGE_SW_WRITE_MASK) == GRALLOC_USAGE_SW_WRITE_RARELY) in useUncached() 81 ||((usage & GRALLOC_USAGE_SW_READ_MASK) == GRALLOC_USAGE_SW_READ_RARELY)) in useUncached() 188 int IonController::allocate(alloc_data& data, int usage) in allocate() argument 193 data.uncached = useUncached(usage); in allocate() 196 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) in allocate() [all …]
|
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,
|
D | mapper.cpp | 202 buffer_handle_t handle, int usage, in gralloc_map_and_invalidate() argument 210 if (usage & (GRALLOC_USAGE_SW_READ_MASK | GRALLOC_USAGE_SW_WRITE_MASK)) { in gralloc_map_and_invalidate() 225 if (usage & GRALLOC_USAGE_SW_WRITE_MASK) { in gralloc_map_and_invalidate() 237 buffer_handle_t handle, int usage, in gralloc_lock() argument 242 int err = gralloc_map_and_invalidate(module, handle, usage, l, t, w, h); in gralloc_lock() 249 buffer_handle_t handle, int usage, in gralloc_lock_ycbcr() argument 254 int err = gralloc_map_and_invalidate(module, handle, usage, l, t, w, h); in gralloc_lock_ycbcr()
|
D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
D | gralloc.cpp | 43 buffer_handle_t handle, int usage, 48 buffer_handle_t handle, int usage,
|
/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 | 54 static bool canFallback(int usage, bool triedSystem) in canFallback() argument 68 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) in canFallback() 70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) in canFallback() 76 static bool useUncached(int usage) in useUncached() argument 79 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) in useUncached() 81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) in useUncached() 176 int IonController::allocate(alloc_data& data, int usage) in allocate() argument 181 data.uncached = useUncached(usage); in allocate() 184 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) in allocate() 187 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) in allocate() [all …]
|
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,
|
D | mapper.cpp | 202 buffer_handle_t handle, int usage, in gralloc_map_and_invalidate() argument 210 if (usage & (GRALLOC_USAGE_SW_READ_MASK | GRALLOC_USAGE_SW_WRITE_MASK)) { in gralloc_map_and_invalidate() 224 if ((usage & GRALLOC_USAGE_SW_WRITE_MASK) && in gralloc_map_and_invalidate() 236 buffer_handle_t handle, int usage, in gralloc_lock() argument 241 int err = gralloc_map_and_invalidate(module, handle, usage, l, t, w, h); in gralloc_lock() 248 buffer_handle_t handle, int usage, in gralloc_lock_ycbcr() argument 253 int err = gralloc_map_and_invalidate(module, handle, usage, l, t, w, h); in gralloc_lock_ycbcr()
|
D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
D | gralloc.cpp | 43 buffer_handle_t handle, int usage, 48 buffer_handle_t handle, int usage,
|
/hardware/qcom/display/msm8x26/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 | 54 static bool canFallback(int usage, bool triedSystem) in canFallback() argument 68 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PROTECTED)) in canFallback() 70 if(usage & (GRALLOC_HEAP_MASK | GRALLOC_USAGE_PRIVATE_EXTERNAL_ONLY)) in canFallback() 76 static bool useUncached(int usage) in useUncached() argument 79 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) in useUncached() 81 if (usage & GRALLOC_USAGE_PRIVATE_UNCACHED) in useUncached() 176 int IonController::allocate(alloc_data& data, int usage) in allocate() argument 181 data.uncached = useUncached(usage); in allocate() 184 if(usage & GRALLOC_USAGE_PRIVATE_UI_CONTIG_HEAP) in allocate() 187 if(usage & GRALLOC_USAGE_PRIVATE_SYSTEM_HEAP) in allocate() [all …]
|
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,
|
D | mapper.cpp | 202 buffer_handle_t handle, int usage, in gralloc_map_and_invalidate() argument 210 if (usage & (GRALLOC_USAGE_SW_READ_MASK | GRALLOC_USAGE_SW_WRITE_MASK)) { in gralloc_map_and_invalidate() 224 if ((usage & GRALLOC_USAGE_SW_WRITE_MASK) && in gralloc_map_and_invalidate() 236 buffer_handle_t handle, int usage, in gralloc_lock() argument 241 int err = gralloc_map_and_invalidate(module, handle, usage, l, t, w, h); in gralloc_lock() 248 buffer_handle_t handle, int usage, in gralloc_lock_ycbcr() argument 253 int err = gralloc_map_and_invalidate(module, handle, usage, l, t, w, h); in gralloc_lock_ycbcr()
|
D | alloc_controller.h | 44 virtual int allocate(alloc_data& data, int usage) = 0; 60 virtual int allocate(alloc_data& data, int usage);
|
D | gralloc.cpp | 43 buffer_handle_t handle, int usage, 48 buffer_handle_t handle, int usage,
|
/hardware/samsung_slsi/exynos5/gralloc/ |
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) in _select_heap() argument 126 if (usage & GRALLOC_USAGE_PROTECTED) in _select_heap() 134 static int gralloc_alloc_rgb(int ionfd, int w, int h, int format, int usage, in gralloc_alloc_rgb() argument 139 unsigned int heap_mask = _select_heap(usage); in gralloc_alloc_rgb() 142 bool sw_usage = !!(usage & (GRALLOC_USAGE_SW_READ_MASK | in gralloc_alloc_rgb() 145 if (usage & GRALLOC_USAGE_HW_FB) { in gralloc_alloc_rgb() 149 } else if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { in gralloc_alloc_rgb() 189 if (usage & GRALLOC_USAGE_PROTECTED) { in gralloc_alloc_rgb() [all …]
|
/hardware/libhardware/modules/gralloc/ |
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) in gralloc_alloc_framebuffer_locked() argument 127 int newUsage = (usage & ~GRALLOC_USAGE_HW_FB) | GRALLOC_USAGE_HW_2D; in gralloc_alloc_framebuffer_locked() 158 size_t size, int usage, buffer_handle_t* pHandle) in gralloc_alloc_framebuffer() argument 163 int err = gralloc_alloc_framebuffer_locked(dev, size, usage, pHandle); in gralloc_alloc_framebuffer() 169 size_t size, int usage, buffer_handle_t* pHandle) in gralloc_alloc_buffer() argument 200 int w, int h, int format, int usage, in gralloc_alloc() argument 231 if (usage & GRALLOC_USAGE_HW_FB) { in gralloc_alloc() 232 err = gralloc_alloc_framebuffer(dev, size, usage, pHandle); in gralloc_alloc() [all …]
|
/hardware/libhardware/modules/camera/ |
D | Stream.cpp | 59 void Stream::setUsage(uint32_t usage) in setUsage() argument 62 if (usage != mUsage) { in setUsage() 63 mUsage = usage; in setUsage() 64 mStream->usage = usage; in setUsage()
|
/hardware/qcom/msm8x74/original-kernel-headers/linux/ |
D | msm_ion.h | 350 int msm_ion_secure_heap_2_0(int heap_id, enum cp_mem_usage usage); 362 int msm_ion_unsecure_heap_2_0(int heap_id, enum cp_mem_usage usage); 373 enum cp_mem_usage usage, int flags); 449 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 455 enum cp_mem_usage usage) in msm_ion_unsecure_heap_2_0() argument 462 enum cp_mem_usage usage, in msm_ion_secure_buffer() argument
|
/hardware/qcom/msm8960/original-kernel-headers/linux/ |
D | msm_ion.h | 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); 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 247 enum cp_mem_usage usage) in msm_ion_unsecure_heap_2_0() argument
|
/hardware/libhardware/include/hardware/ |
D | gralloc.h | 210 buffer_handle_t handle, int usage, 240 buffer_handle_t handle, int usage, 273 int w, int h, int format, int usage,
|
/hardware/libhardware/tests/hwc/ |
D | cnativewindow.c | 428 static aBuffer *cnw_alloc(CNativeWindow *win, unsigned format, unsigned usage) { in cnw_alloc() argument 447 buf->usage = usage; in cnw_alloc() 450 format, usage, &buf->handle, &buf->stride); in cnw_alloc() 466 unsigned usage, format; in cnw_init() local 503 usage = GRALLOC_USAGE_HW_FB | in cnw_init() 508 aBuffer *buf = cnw_alloc(win, win->format, usage); in cnw_init() 515 win->spare = cnw_alloc(win, win->format, usage); in cnw_init()
|