Searched refs:drm_state (Results 1 – 13 of 13) sorted by relevance
58 struct drm_state * const drm_state = ctx->drm_state; in drm_handle_device() local73 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() local98 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() local136 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 …]
67 struct drm_state * const drm_state = ctx->drm_state; in va_wayland_emgd_destroy() local80 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() local131 drm_state = calloc(1, sizeof(struct drm_state)); in va_wayland_emgd_create()132 if (!drm_state) in va_wayland_emgd_create()[all …]
88 struct drm_state *drm_state; in va_DisplayContextDestroy() local94 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() local110 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 …]
48 free(pDisplayContext->pDriverContext->drm_state); in va_DisplayContextDestroy()61 struct drm_state * const drm_state = ctx->drm_state; in va_DisplayContextGetDriverName() local70 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() local98 drm_state = calloc(1, sizeof(*drm_state)); in vaGetDisplayDRM()99 if (!drm_state) in vaGetDisplayDRM()[all …]
49 struct drm_state * const drm_state = ctx->drm_state; in VA_DRM_GetDriverName() local56 if (!drm_state || drm_state->fd < 0) in VA_DRM_GetDriverName()59 drm_version = drmGetVersion(drm_state->fd); in VA_DRM_GetDriverName()
64 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()
66 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()
62 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()
167 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()
78 struct drm_state base;
64 struct drm_state { struct
488 void *drm_state; member
2978 struct drm_state *drm_state = (struct drm_state *)ctx->drm_state; local2992 driver_data->drm_fd = drm_state->fd;