Home
last modified time | relevance | path

Searched refs:drm_state (Results 1 – 13 of 13) sorted by relevance

/hardware/intel/common/libva/va/wayland/
Dva_wayland_drm.c58 struct drm_state * const drm_state = ctx->drm_state; in drm_handle_device() local
73 drm_state->fd = open(device, O_RDWR); in drm_handle_device()
74 if (drm_state->fd < 0) { in drm_handle_device()
80 drmGetMagic(drm_state->fd, &magic); in drm_handle_device()
95 struct drm_state * const drm_state = ctx->drm_state; in drm_handle_authenticated() local
98 drm_state->auth_type = VA_DRM_AUTH_CUSTOM; in drm_handle_authenticated()
123 struct drm_state * const drm_state = ctx->drm_state; in va_wayland_drm_destroy() local
136 if (drm_state) { in va_wayland_drm_destroy()
137 if (drm_state->fd >= 0) { in va_wayland_drm_destroy()
138 close(drm_state->fd); in va_wayland_drm_destroy()
[all …]
Dva_wayland_emgd.c67 struct drm_state * const drm_state = ctx->drm_state; in va_wayland_emgd_destroy() local
80 if (drm_state) { in va_wayland_emgd_destroy()
81 if (drm_state->fd >= 0) { in va_wayland_emgd_destroy()
82 close(drm_state->fd); in va_wayland_emgd_destroy()
83 drm_state->fd = -1; in va_wayland_emgd_destroy()
85 free(ctx->drm_state); in va_wayland_emgd_destroy()
86 ctx->drm_state = NULL; in va_wayland_emgd_destroy()
117 struct drm_state *drm_state; in va_wayland_emgd_create() local
131 drm_state = calloc(1, sizeof(struct drm_state)); in va_wayland_emgd_create()
132 if (!drm_state) in va_wayland_emgd_create()
[all …]
/hardware/intel/common/libva/va/android/
Dva_android.cpp88 struct drm_state *drm_state; in va_DisplayContextDestroy() local
94 drm_state = (struct drm_state *)pDisplayContext->pDriverContext->drm_state; in va_DisplayContextDestroy()
95 close(drm_state->fd); in va_DisplayContextDestroy()
97 free(pDisplayContext->pDriverContext->drm_state); in va_DisplayContextDestroy()
108 struct drm_state * drm_state = (struct drm_state *)ctx->drm_state; in va_DisplayContextGetDriverName() local
110 memset(drm_state, 0, sizeof(*drm_state)); in va_DisplayContextGetDriverName()
111 drm_state->fd = open_device((char *)DEVICE_NAME); in va_DisplayContextGetDriverName()
113 if (drm_state->fd < 0) { in va_DisplayContextGetDriverName()
117 drm_state->auth_type = VA_DRM_AUTH_CUSTOM; in va_DisplayContextGetDriverName()
148 struct drm_state *drm_state = 0; in vaGetDisplay() local
[all …]
/hardware/intel/common/libva/va/drm/
Dva_drm.c48 free(pDisplayContext->pDriverContext->drm_state); in va_DisplayContextDestroy()
61 struct drm_state * const drm_state = ctx->drm_state; in va_DisplayContextGetDriverName() local
70 ret = drmGetMagic(drm_state->fd, &magic); in va_DisplayContextGetDriverName()
74 if (!va_drm_is_authenticated(drm_state->fd)) { in va_DisplayContextGetDriverName()
75 if (!va_drm_authenticate(drm_state->fd, magic)) in va_DisplayContextGetDriverName()
77 if (!va_drm_is_authenticated(drm_state->fd)) in va_DisplayContextGetDriverName()
81 drm_state->auth_type = VA_DRM_AUTH_CUSTOM; in va_DisplayContextGetDriverName()
91 struct drm_state *drm_state = NULL; in vaGetDisplayDRM() local
98 drm_state = calloc(1, sizeof(*drm_state)); in vaGetDisplayDRM()
99 if (!drm_state) in vaGetDisplayDRM()
[all …]
Dva_drm_utils.c49 struct drm_state * const drm_state = ctx->drm_state; in VA_DRM_GetDriverName() local
56 if (!drm_state || drm_state->fd < 0) in VA_DRM_GetDriverName()
59 drm_version = drmGetVersion(drm_state->fd); in VA_DRM_GetDriverName()
/hardware/intel/common/libva/va/x11/
Dva_dricommon.c64 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in do_drawable_hash()
86 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in free_drawable()
100 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in free_drawable_hashtable()
126 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in dri_swap_buffer()
134 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in dri_get_rendering_buffer()
Dva_x11.c66 dri_state = ctx->drm_state; in va_DisplayContextDestroy()
71 free(pDisplayContext->pDriverContext->drm_state); in va_DisplayContextDestroy()
196 pDriverContext->drm_state = dri_state; in vaGetDisplay()
Ddri1_util.c62 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in dri1Close()
76 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in isDRI1Connected()
Ddri2_util.c167 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in dri2Close()
178 struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; in isDRI2Connected()
Dva_dricommon.h78 struct drm_state base;
/hardware/intel/common/libva/va/
Dva_drmcommon.h64 struct drm_state { struct
Dva_backend.h488 void *drm_state; member
/hardware/intel/img/psb_video/src/
Dpsb_drv_video.c2978 struct drm_state *drm_state = (struct drm_state *)ctx->drm_state; local
2992 driver_data->drm_fd = drm_state->fd;