Lines Matching refs:module
40 static int gralloc_map(gralloc_module_t const* module, buffer_handle_t handle)
56 static int gralloc_unmap(gralloc_module_t const* module, buffer_handle_t handle)
75 int grallocMap(gralloc_module_t const* module, private_handle_t *hnd)
77 return gralloc_map(module, hnd);
80 int grallocUnmap(gralloc_module_t const* module, private_handle_t *hnd)
82 return gralloc_unmap(module, hnd);
85 int getIonFd(gralloc_module_t const *module)
87 private_module_t* m = const_cast<private_module_t*>(reinterpret_cast<const private_module_t*>(module));
97 int gralloc_register_buffer(gralloc_module_t const* module,
104 err = gralloc_map(module, handle);
111 ret = ion_import(getIonFd(module), hnd->fd, &hnd->handle);
115 ret = ion_import(getIonFd(module), hnd->fd1, &hnd->handle1);
120 ret = ion_import(getIonFd(module), hnd->fd2, &hnd->handle2);
128 int gralloc_unregister_buffer(gralloc_module_t const* module,
138 gralloc_unmap(module, handle);
141 ion_free(getIonFd(module), hnd->handle);
143 ion_free(getIonFd(module), hnd->handle1);
145 ion_free(getIonFd(module), hnd->handle2);
150 int gralloc_lock(gralloc_module_t const* module,
168 gralloc_map(module, hnd);
173 int gralloc_unlock(gralloc_module_t const* module,
179 ion_sync_fd(getIonFd(module), hnd->fd);
181 ion_sync_fd(getIonFd(module), hnd->fd1);
183 ion_sync_fd(getIonFd(module), hnd->fd2);