Home | History | Annotate | Download | only in drm_gralloc

Lines Matching defs:dmod

38 static int drm_init(struct drm_module_t *dmod)
42 pthread_mutex_lock(&dmod->mutex);
43 if (!dmod->drm) {
44 dmod->drm = gralloc_drm_create();
45 if (!dmod->drm)
48 pthread_mutex_unlock(&dmod->mutex);
55 struct drm_module_t *dmod = (struct drm_module_t *) mod;
59 err = drm_init(dmod);
68 *fd = gralloc_drm_get_fd(dmod->drm);
84 struct drm_module_t *dmod = (struct drm_module_t *) mod;
87 err = drm_init(dmod);
91 return gralloc_drm_handle_register(handle, dmod->drm);
115 struct drm_module_t *dmod = (struct drm_module_t *) mod;
129 struct drm_module_t *dmod = (struct drm_module_t *)dev->module;
132 gralloc_drm_destroy(dmod->drm);
140 struct drm_module_t *dmod = (struct drm_module_t *) dev->common.module;
156 struct drm_module_t *dmod = (struct drm_module_t *) dev->common.module;
164 bo = gralloc_drm_bo_create(dmod->drm, w, h, format, usage);
175 static int drm_mod_open_gpu0(struct drm_module_t *dmod, hw_device_t **dev)
180 err = drm_init(dmod);
190 alloc->common.module = &dmod->base.common;
204 struct drm_module_t *dmod = (struct drm_module_t *) mod;
208 err = drm_mod_open_gpu0(dmod, dev);