Lines Matching refs:drv
59 struct gralloc_drm_drv_t *drv = NULL; in init_drv_from_fd() local
71 drv = gralloc_drm_drv_create_for_pipe(fd, version->name); in init_drv_from_fd()
75 if (!drv && !strcmp(version->name, "i915")) in init_drv_from_fd()
76 drv = gralloc_drm_drv_create_for_intel(fd); in init_drv_from_fd()
79 if (!drv && !strcmp(version->name, "radeon")) in init_drv_from_fd()
80 drv = gralloc_drm_drv_create_for_radeon(fd); in init_drv_from_fd()
83 if (!drv && !strcmp(version->name, "rockchip")) in init_drv_from_fd()
84 drv = gralloc_drm_drv_create_for_rockchip(fd); in init_drv_from_fd()
87 if (!drv && !strcmp(version->name, "nouveau")) in init_drv_from_fd()
88 drv = gralloc_drm_drv_create_for_nouveau(fd); in init_drv_from_fd()
92 if (!drv) { in init_drv_from_fd()
99 return drv; in init_drv_from_fd()
122 drm->drv = init_drv_from_fd(drm->fd); in gralloc_drm_create()
123 if (!drm->drv) { in gralloc_drm_create()
137 if (drm->drv) in gralloc_drm_destroy()
138 drm->drv->destroy(drm->drv); in gralloc_drm_destroy()
175 bo = drm->drv->alloc(drm->drv, handle); in validate_handle()
256 bo = drm->drv->alloc(drm->drv, handle); in gralloc_drm_bo_create()
286 bo->drm->drv->free(bo->drm->drv, bo); in gralloc_drm_bo_destroy()
334 if (handle && drm->drv->resolve_format) in gralloc_drm_resolve_format()
335 drm->drv->resolve_format(drm->drv, bo, in gralloc_drm_resolve_format()
367 int err = bo->drm->drv->map(bo->drm->drv, bo, in gralloc_drm_bo_lock()
394 bo->drm->drv->unmap(bo->drm->drv, bo); in gralloc_drm_bo_unlock()