/third_party/mesa3d/src/intel/ds/ |
D | intel_pps_perf.cc | 32 IntelPerf::IntelPerf(const int drm_fd) in IntelPerf() argument 33 : drm_fd {drm_fd} in IntelPerf() 38 assert(drm_fd >= 0 && "DRM fd is not valid"); 40 if (!intel_get_device_info_from_fd(drm_fd, &devinfo)) { 46 drm_fd, 60 : drm_fd {o.drm_fd} in IntelPerf() 68 o.drm_fd = -1; 77 std::swap(drm_fd, o.drm_fd); in operator =() 132 static uint64_t query_timestamp_frequency(const int drm_fd) in query_timestamp_frequency() argument 139 if (perf_ioctl(drm_fd, DRM_IOCTL_I915_GETPARAM, &gp) == 0) { in query_timestamp_frequency() [all …]
|
D | intel_pps_perf.h | 25 IntelPerf(int drm_fd); 45 int drm_fd = -1; variable
|
/third_party/gstreamer/gstplugins_base/gst-libs/gst/gl/gbm/ |
D | gstgldisplay_gbm.c | 75 display_gbm->drm_fd = -1; in gst_gl_display_gbm_init() 86 if (display_gbm->drm_fd >= 0) in gst_gl_display_gbm_finalize() 87 close (display_gbm->drm_fd); in gst_gl_display_gbm_finalize() 126 drmModeGetEncoder (display_gbm->drm_fd, encoder_id); in gst_gl_gbm_find_crtc_id_for_connector() 150 g_assert (display_gbm->drm_fd >= 0); in gst_gl_display_gbm_setup_drm() 153 display_gbm->drm_mode_resources = drmModeGetResources (display_gbm->drm_fd); in gst_gl_display_gbm_setup_drm() 171 drmModeGetConnector (display_gbm->drm_fd, in gst_gl_display_gbm_setup_drm() 292 drmModeGetEncoder (display_gbm->drm_fd, in gst_gl_display_gbm_setup_drm() 377 display_gbm->gbm_dev = gbm_create_device (display_gbm->drm_fd); in gst_gl_display_gbm_setup_gbm() 415 int drm_fd = -1; in gst_gl_display_gbm_new() local [all …]
|
D | gstgl_gbm_utils.c | 360 int drm_fd = gbm_device_get_fd (gbm_bo_get_device (bo)); in gst_gl_gbm_drm_fb_destroy_callback() local 364 drmModeRmFB (drm_fd, fb->fb_id); in gst_gl_gbm_drm_fb_destroy_callback() 374 int drm_fd; in gst_gl_gbm_drm_fb_get_from_bo() local 401 drm_fd = gbm_device_get_fd (gbm_bo_get_device (bo)); in gst_gl_gbm_drm_fb_get_from_bo() 421 ret = drmModeAddFB (drm_fd, width, height, depth, bpp, stride, handle, in gst_gl_gbm_drm_fb_get_from_bo() 443 int drm_fd = -1; in gst_gl_gbm_find_and_open_drm_node() local 487 drm_fd = open (devnode, O_RDWR | O_CLOEXEC); in gst_gl_gbm_find_and_open_drm_node() 488 if (drm_fd < 0) { in gst_gl_gbm_find_and_open_drm_node() 519 return drm_fd; in gst_gl_gbm_find_and_open_drm_node() 524 if (drm_fd >= 0) { in gst_gl_gbm_find_and_open_drm_node() [all …]
|
D | gstglwindow_gbm_egl.c | 117 err = drmModeSetCrtc (display->drm_fd, crtc->crtc_id, crtc->buffer_id, in gst_gl_window_gbm_egl_close() 171 .fd = display->drm_fd, in draw_cb() 226 drmModeGetCrtc (display->drm_fd, display->crtc_id); in draw_cb() 229 ret = drmModeSetCrtc (display->drm_fd, display->crtc_id, framebuf->fb_id, in draw_cb() 277 drmHandleEvent (display->drm_fd, &evctx); in draw_cb() 291 ret = drmModePageFlip (display->drm_fd, display->crtc_id, framebuf->fb_id, in draw_cb()
|
D | gstgldisplay_gbm.h | 53 int drm_fd; member
|
/third_party/mesa3d/src/gallium/winsys/svga/drm/ |
D | vmw_screen_ioctl.c | 68 int drm_fd; member 91 ret = drmCommandRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_CONTEXT, in vmw_ioctl_context_create() 111 ret = drmCommandWriteRead(vws->ioctl.drm_fd, in vmw_ioctl_extended_context_create() 132 (void)drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_UNREF_CONTEXT, in vmw_ioctl_context_destroy() 187 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_CREATE_SURFACE, in vmw_ioctl_surface_create() 273 ret = drmCommandWriteRead(vws->ioctl.drm_fd, in vmw_ioctl_gb_surface_create() 312 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_GB_SURFACE_CREATE, in vmw_ioctl_gb_surface_create() 322 region->drm_fd = vws->ioctl.drm_fd; in vmw_ioctl_gb_surface_create() 367 ret = drmPrimeFDToHandle(vws->ioctl.drm_fd, whandle->handle, &handle); in vmw_ioctl_surface_req() 435 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_GB_SURFACE_REF_EXT, in vmw_ioctl_gb_surface_ref() [all …]
|
D | vmw_screen.c | 105 if (drmCommandWrite(vws->ioctl.drm_fd, DRM_VMW_MKSSTAT_REMOVE, &arg, sizeof(arg))) { in vmw_winsys_screen_deinit_mksstat() 153 vws->ioctl.drm_fd = os_dupfd_cloexec(fd); in vmw_winsys_create() 190 close(vws->ioctl.drm_fd); in vmw_winsys_create() 207 close(vws->ioctl.drm_fd); in vmw_winsys_destroy()
|
D | vmw_screen_dri.c | 242 ret = drmPrimeFDToHandle(vws->ioctl.drm_fd, whandle->handle, in vmw_drm_surface_from_handle() 260 ret = drmCommandWriteRead(vws->ioctl.drm_fd, DRM_VMW_REF_SURFACE, in vmw_drm_surface_from_handle() 348 ret = drmPrimeHandleToFD(vws->ioctl.drm_fd, vsrf->sid, DRM_CLOEXEC, in vmw_drm_surface_get_handle()
|
/third_party/mesa3d/src/gallium/frontends/omx/ |
D | vid_omx_common.c | 51 static int drm_fd; variable 64 drm_fd = loader_open_device(omx_render_node); in omx_get_screen() 65 if (drm_fd < 0) in omx_get_screen() 68 omx_screen = vl_drm_screen_create(drm_fd); in omx_get_screen() 70 close(drm_fd); in omx_get_screen() 106 close(drm_fd); in omx_put_screen()
|
/third_party/weston/libweston/ |
D | launcher-direct.c | 63 is_drm_master(int drm_fd) in is_drm_master() argument 67 return drmGetMagic(drm_fd, &magic) == 0 && in is_drm_master() 68 drmAuthMagic(drm_fd, magic) == 0; in is_drm_master() 74 drmDropMaster(int drm_fd) in drmDropMaster() argument 80 drmSetMaster(int drm_fd) in drmSetMaster() argument 86 is_drm_master(int drm_fd) in is_drm_master() argument 96 int kb_mode, tty, drm_fd; member 109 drmDropMaster(launcher->drm_fd); in vt_handler() 113 drmSetMaster(launcher->drm_fd); in vt_handler() 240 launcher->drm_fd = fd; in launcher_direct_open() [all …]
|
D | launcher-weston-launch.c | 65 drmDropMaster(int drm_fd) in drmDropMaster() argument 71 drmSetMaster(int drm_fd) in drmSetMaster() argument 95 int kb_mode, tty, drm_fd; member 193 drmDropMaster(launcher->drm_fd); in launcher_weston_launch_restore() 284 launcher->drm_fd = -1; in launcher_weston_launch_connect()
|
D | weston-launch.c | 81 drmDropMaster(int drm_fd) in drmDropMaster() argument 87 drmSetMaster(int drm_fd) in drmSetMaster() argument 108 int drm_fd; member 394 wl->drm_fd = fd; in handle_open() 451 drmDropMaster(wl->drm_fd); in handle_socket_msg() 502 drmDropMaster(wl->drm_fd); in quit() 562 drmSetMaster(wl->drm_fd); in handle_signal()
|
/third_party/mesa3d/src/intel/perf/ |
D | intel_perf_query.h | 44 int drm_fd, 68 int drm_fd);
|
D | intel_perf_query.c | 263 int drm_fd; member 371 int drm_fd, in intel_perf_open() argument 413 int fd = intel_ioctl(drm_fd, DRM_IOCTL_I915_PERF_OPEN, ¶m); in intel_perf_open() 598 int drm_fd) in intel_perf_init_context() argument 604 perf_ctx->drm_fd = drm_fd; in intel_perf_init_context() 838 perf_ctx->period_exponent, perf_ctx->drm_fd, in intel_perf_begin_query()
|
/third_party/mesa3d/src/intel/tools/ |
D | intel_dump_gpu.c | 58 static int drm_fd = -1; variable 404 if (fd == drm_fd) in close() 405 drm_fd = -1; in close() 512 drm_fd != fd && fstat(fd, &buf) == 0 && in ioctl() 514 drm_fd = fd; in ioctl() 519 if (fd == drm_fd) { in ioctl()
|
/third_party/ffmpeg/libavutil/ |
D | hwcontext_vaapi.c | 60 int drm_fd; member 1446 if (priv->drm_fd >= 0) in vaapi_device_free() 1447 close(priv->drm_fd); in vaapi_device_free() 1506 priv->drm_fd = -1; in vaapi_device_create() 1536 priv->drm_fd = open(device, O_RDWR); in vaapi_device_create() 1537 if (priv->drm_fd < 0) { in vaapi_device_create() 1552 priv->drm_fd = open(path, O_RDWR); in vaapi_device_create() 1553 if (priv->drm_fd < 0) { in vaapi_device_create() 1561 info = drmGetVersion(priv->drm_fd); in vaapi_device_create() 1567 close(priv->drm_fd); in vaapi_device_create() [all …]
|
/third_party/mesa3d/src/gallium/winsys/crocus/drm/ |
D | crocus_drm_public.h | 31 crocus_drm_screen_create(int drm_fd, const struct pipe_screen_config *config);
|
/third_party/mesa3d/src/gallium/winsys/iris/drm/ |
D | iris_drm_public.h | 31 iris_drm_screen_create(int drm_fd, const struct pipe_screen_config *config);
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
D | crocus_bufmgr.c | 128 int drm_fd; member 616 intel_ioctl(export->drm_fd, DRM_IOCTL_GEM_CLOSE, &close); in bo_close() 1407 crocus_bo_export_gem_handle_for_device(struct crocus_bo *bo, int drm_fd, in crocus_bo_export_gem_handle_for_device() argument 1415 int ret = os_same_file_description(drm_fd, bufmgr->fd); in crocus_bo_export_gem_handle_for_device() 1428 export->drm_fd = drm_fd; in crocus_bo_export_gem_handle_for_device() 1438 err = drmPrimeFDToHandle(drm_fd, dmabuf_fd, &export->gem_handle); in crocus_bo_export_gem_handle_for_device() 1448 if (iter->drm_fd != drm_fd) in crocus_bo_export_gem_handle_for_device()
|
/third_party/weston/libweston/backend-drm/ |
D | vaapi-recorder.h | 32 vaapi_recorder_create(int drm_fd, int width, int height, const char *filename);
|
/third_party/mesa3d/src/gallium/include/frontend/ |
D | drm_driver.h | 36 struct pipe_screen* (*create_screen)(int drm_fd,
|
/third_party/weston/clients/ |
D | simple-dmabuf-egl.c | 105 int drm_fd; member 385 ret = drmPrimeHandleToFD(display->gbm.drm_fd, handle.u32, 0, in create_dmabuf_buffer() 1088 if (display->gbm.drm_fd >= 0) in destroy_display() 1089 close(display->gbm.drm_fd); in destroy_display() 1344 display->gbm.drm_fd = open(drm_render_node, O_RDWR); in display_set_up_gbm() 1345 if (display->gbm.drm_fd < 0) { in display_set_up_gbm() 1351 display->gbm.device = gbm_create_device(display->gbm.drm_fd); in display_set_up_gbm() 1371 display->gbm.drm_fd = -1; in create_display()
|
D | simple-dmabuf-egl-hos.c | 106 int drm_fd; member 386 ret = drmPrimeHandleToFD(display->gbm.drm_fd, handle.u32, 0, in create_dmabuf_buffer() 1143 if (display->gbm.drm_fd >= 0) in destroy_display() 1144 close(display->gbm.drm_fd); in destroy_display() 1396 display->gbm.drm_fd = open(drm_render_node, O_RDWR); in display_set_up_gbm() 1397 if (display->gbm.drm_fd < 0) { in display_set_up_gbm() 1403 display->gbm.device = gbm_create_device(display->gbm.drm_fd); in display_set_up_gbm() 1423 display->gbm.drm_fd = -1; in create_display()
|
/third_party/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_bufmgr.c | 157 int drm_fd; member 930 intel_ioctl(export->drm_fd, DRM_IOCTL_GEM_CLOSE, &close); in bo_unreference_final() 1633 brw_bo_export_gem_handle_for_device(struct brw_bo *bo, int drm_fd, in brw_bo_export_gem_handle_for_device() argument 1642 int ret = os_same_file_description(drm_fd, bufmgr->fd); in brw_bo_export_gem_handle_for_device() 1655 export->drm_fd = drm_fd; in brw_bo_export_gem_handle_for_device() 1665 err = drmPrimeFDToHandle(drm_fd, dmabuf_fd, &export->gem_handle); in brw_bo_export_gem_handle_for_device() 1675 if (iter->drm_fd != drm_fd) in brw_bo_export_gem_handle_for_device()
|