Lines Matching refs:handle
97 buffer_handle_t handle) in gbm_mod_register_buffer() argument
107 err = gralloc_gbm_handle_register(handle, dmod->gbm); in gbm_mod_register_buffer()
114 buffer_handle_t handle) in gbm_mod_unregister_buffer() argument
120 err = gralloc_gbm_handle_unregister(handle); in gbm_mod_unregister_buffer()
126 static int gbm_mod_lock(const gralloc_module_t *mod, buffer_handle_t handle, in gbm_mod_lock() argument
134 err = gralloc_gbm_bo_lock(handle, usage, x, y, w, h, ptr); in gbm_mod_lock()
135 ALOGV("buffer %p lock usage = %08x", handle, usage); in gbm_mod_lock()
141 static int gbm_mod_unlock(const gralloc_module_t *mod, buffer_handle_t handle) in gbm_mod_unlock() argument
147 err = gralloc_gbm_bo_unlock(handle); in gbm_mod_unlock()
153 static int gbm_mod_lock_ycbcr(gralloc_module_t const *mod, buffer_handle_t handle, in gbm_mod_lock_ycbcr() argument
160 err = gralloc_gbm_bo_lock_ycbcr(handle, usage, x, y, w, h, ycbcr); in gbm_mod_lock_ycbcr()
177 static int gbm_mod_free_gpu0(alloc_device_t *dev, buffer_handle_t handle) in gbm_mod_free_gpu0() argument
182 gbm_free(handle); in gbm_mod_free_gpu0()
183 native_handle_close(handle); in gbm_mod_free_gpu0()
184 delete handle; in gbm_mod_free_gpu0()
192 buffer_handle_t *handle, int *stride) in gbm_mod_alloc_gpu0() argument
199 *handle = gralloc_gbm_bo_create(dmod->gbm, w, h, format, usage, stride); in gbm_mod_alloc_gpu0()
200 if (!*handle) in gbm_mod_alloc_gpu0()
203 ALOGV("buffer %p usage = %08x", *handle, usage); in gbm_mod_alloc_gpu0()