Lines Matching refs:handle
40 static int gralloc_map(gralloc_module_t const* module, buffer_handle_t handle)
42 private_handle_t* hnd = (private_handle_t*)handle;
56 static int gralloc_unmap(gralloc_module_t const* module, buffer_handle_t handle)
58 private_handle_t* hnd = (private_handle_t*)handle;
98 buffer_handle_t handle)
101 if (private_handle_t::validate(handle) < 0)
104 err = gralloc_map(module, handle);
106 private_handle_t* hnd = (private_handle_t*)handle;
111 ret = ion_import(getIonFd(module), hnd->fd, &hnd->handle);
113 ALOGE("error importing handle %d %x\n", hnd->fd, hnd->format);
129 buffer_handle_t handle)
131 if (private_handle_t::validate(handle) < 0)
134 private_handle_t* hnd = (private_handle_t*)handle;
138 gralloc_unmap(module, handle);
140 if (hnd->handle)
141 ion_free(getIonFd(module), hnd->handle);
151 buffer_handle_t handle, int usage,
163 if (private_handle_t::validate(handle) < 0)
166 private_handle_t* hnd = (private_handle_t*)handle;
174 buffer_handle_t handle)
178 private_handle_t* hnd = (private_handle_t*)handle;
185 if (private_handle_t::validate(handle) < 0)