/third_party/libdrm/ |
D | xf86drm.c | 625 drmIoctl(int fd, unsigned long request, void *arg) in drmIoctl() function 1319 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) { in drmGetVersion() 1331 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) { in drmGetVersion() 1391 ret = drmIoctl(fd, DRM_IOCTL_GET_CAP, &cap); in drmGetCap() 1407 return drmIoctl(fd, DRM_IOCTL_SET_CLIENT_CAP, &cap); in drmSetClientCap() 1442 if (drmIoctl(fd, DRM_IOCTL_GET_UNIQUE, &u)) in drmGetBusid() 1445 if (drmIoctl(fd, DRM_IOCTL_GET_UNIQUE, &u)) { in drmGetBusid() 1475 if (drmIoctl(fd, DRM_IOCTL_SET_UNIQUE, &u)) { in drmSetBusid() 1488 if (drmIoctl(fd, DRM_IOCTL_GET_MAGIC, &auth)) in drmGetMagic() 1500 if (drmIoctl(fd, DRM_IOCTL_AUTH_MAGIC, &auth)) in drmAuthMagic() [all …]
|
D | xf86drmMode.c | 67 int ret = drmIoctl(fd, cmd, arg); in DRM_IOCTL() 158 if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res) != 0) in drmIsKMS() 171 if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res)) in drmModeGetResources() 197 if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res)) in drmModeGetResources() 331 if (drmIoctl(fd, DRM_IOCTL_MODE_GETFB, &info)) in drmModeGetFB() 373 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCRTC, &crtc)) in drmModeGetCrtc() 479 if (drmIoctl(fd, DRM_IOCTL_MODE_GETENCODER, &enc)) in drmModeGetEncoder() 511 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCONNECTOR, &conn)) in _drmModeGetConnector() 541 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCONNECTOR, &conn)) in _drmModeGetConnector() 643 if (drmIoctl(fd, DRM_IOCTL_MODE_GETPROPERTY, &prop)) in drmModeGetProperty() [all …]
|
/third_party/libdrm/intel/ |
D | intel_bufmgr_gem.c | 612 ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_BUSY, &busy); in drm_intel_gem_bo_busy() 631 drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_MADVISE, &madv); in drm_intel_gem_bo_madvise_internal() 765 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_gem_bo_alloc_internal() 923 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_gem_bo_alloc_userptr() 992 ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr); in has_userptr() 1043 ret = drmIoctl(bufmgr_gem->fd, in get_tiling_mode() 1087 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_bo_gem_create_from_name() 1430 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_gem_bo_map() 1457 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_gem_bo_map() 1500 ret = drmIoctl(bufmgr_gem->fd, in map_gtt() [all …]
|
/third_party/mesa3d/src/panfrost/lib/ |
D | pan_bo.c | 74 ret = drmIoctl(dev->fd, DRM_IOCTL_PANFROST_CREATE_BO, &create_bo); in panfrost_bo_alloc() 98 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in panfrost_bo_free() 140 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_PANFROST_WAIT_BO, &req); in panfrost_bo_wait() 217 ret = drmIoctl(dev->fd, DRM_IOCTL_PANFROST_MADVISE, &madv); in panfrost_bo_cache_fetch() 279 drmIoctl(dev->fd, DRM_IOCTL_PANFROST_MADVISE, &madv); in panfrost_bo_cache_put() 335 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_PANFROST_MMAP_BO, &mmap_bo); in panfrost_bo_mmap() 480 ret = drmIoctl(dev->fd, DRM_IOCTL_PANFROST_GET_BO_OFFSET, &get_bo_offset); in panfrost_bo_import() 526 int ret = drmIoctl(bo->dev->fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &args); in panfrost_bo_export()
|
/third_party/libdrm/exynos/ |
D | exynos_drm.c | 113 if (drmIoctl(dev->fd, DRM_IOCTL_EXYNOS_GEM_CREATE, &req)){ in exynos_bo_create() 152 ret = drmIoctl(dev->fd, DRM_IOCTL_EXYNOS_GEM_GET, &req); in exynos_bo_get_info() 213 if (drmIoctl(dev->fd, DRM_IOCTL_GEM_OPEN, &req)) { in exynos_bo_from_name() 249 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_FLINK, &req); in exynos_bo_get_name() 288 ret = drmIoctl(dev->fd, DRM_IOCTL_MODE_MAP_DUMB, &arg); in exynos_bo_map() 363 ret = drmIoctl(dev->fd, DRM_IOCTL_EXYNOS_VIDI_CONNECTION, &req); in exynos_vidi_connection()
|
/third_party/mesa3d/src/gallium/winsys/virgl/drm/ |
D | virgl_drm_winsys.c | 101 drmIoctl(qdws->fd, DRM_IOCTL_GEM_CLOSE, &args); in virgl_hw_res_destroy() 119 ret = drmIoctl(vdws->fd, DRM_IOCTL_VIRTGPU_WAIT, &waitcmd); in virgl_drm_resource_is_busy() 228 ret = drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE_BLOB, &drm_rc_blob); in virgl_drm_winsys_resource_create_blob() 295 ret = drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE, &createcmd); in virgl_drm_winsys_resource_create() 370 return drmIoctl(vdws->fd, DRM_IOCTL_VIRTGPU_TRANSFER_TO_HOST, &tohostcmd); in virgl_bo_transfer_put() 399 return drmIoctl(vdws->fd, DRM_IOCTL_VIRTGPU_TRANSFER_FROM_HOST, &fromhostcmd); in virgl_bo_transfer_get() 533 if (drmIoctl(qdws->fd, DRM_IOCTL_GEM_OPEN, &open_arg)) { in virgl_drm_winsys_resource_create_handle() 545 if (drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_RESOURCE_INFO, &info_arg)) { in virgl_drm_winsys_resource_create_handle() 616 ret = drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_EXECBUFFER, &eb); in virgl_drm_winsys_resource_set_type() 639 if (drmIoctl(qdws->fd, DRM_IOCTL_GEM_FLINK, &flink)) { in virgl_drm_winsys_resource_get_handle() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/renderonly/ |
D | renderonly.c | 48 drmIoctl(ro->kms_fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_dumb); in renderonly_scanout_destroy() 72 err = drmIoctl(ro->kms_fd, DRM_IOCTL_MODE_CREATE_DUMB, &create_dumb); in renderonly_create_kms_dumb_buffer_for_resource() 101 drmIoctl(ro->kms_fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_dumb); in renderonly_create_kms_dumb_buffer_for_resource()
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_vX_device.c | 72 ret = drmIoctl(pdev->fd, DRM_IOCTL_PANFROST_SUBMIT, &submit); in panvk_queue_submit_batch() 104 ret = drmIoctl(pdev->fd, DRM_IOCTL_PANFROST_SUBMIT, &submit); in panvk_queue_submit_batch() 136 ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD, &handle); in panvk_queue_transfer_sync() 141 ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE, &handle); in panvk_queue_transfer_sync() 186 int ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_RESET, &objs); in panvk_signal_event_syncobjs()
|
D | panvk_device.c | 913 int ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_CREATE, &create); in panvk_queue_init() 1095 ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_WAIT, &wait); in panvk_QueueWaitIdle() 1392 int ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_CREATE, &create); in panvk_CreateEvent() 1415 drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_DESTROY, &destroy); in panvk_DestroyEvent() 1435 int ret = drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_WAIT, &wait); in panvk_GetEventStatus() 1467 if (drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_SIGNAL, &objs)) in panvk_SetEvent() 1485 if (drmIoctl(pdev->fd, DRM_IOCTL_SYNCOBJ_RESET, &objs)) in panvk_ResetEvent()
|
/third_party/mesa3d/src/gallium/drivers/lima/ |
D | lima_bo.c | 91 drmIoctl(screen->fd, DRM_IOCTL_GEM_CLOSE, &args); in lima_close_kms_handle() 135 if(drmIoctl(bo->screen->fd, DRM_IOCTL_LIMA_GEM_INFO, &req)) in lima_bo_get_info() 302 if (drmIoctl(screen->fd, DRM_IOCTL_LIMA_GEM_CREATE, &req)) in lima_bo_create() 375 if (drmIoctl(screen->fd, DRM_IOCTL_GEM_FLINK, &flink)) in lima_bo_export() 487 if (drmIoctl(screen->fd, DRM_IOCTL_GEM_OPEN, &req)) { in lima_bo_import() 541 return drmIoctl(bo->screen->fd, DRM_IOCTL_LIMA_GEM_WAIT, &req) == 0; in lima_bo_wait()
|
/third_party/mesa3d/src/broadcom/simulator/ |
D | v3d_simulator.c | 262 ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_MMAP_GTT, &map); in v3d_create_simulator_bo_for_gem() 271 ret = drmIoctl(fd, DRM_IOCTL_AMDGPU_GEM_MMAP, &map); in v3d_create_simulator_bo_for_gem() 280 ret = drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &map); in v3d_create_simulator_bo_for_gem() 550 ret = drmIoctl(fd, DRM_IOCTL_I915_GEM_CREATE, &create); in v3d_simulator_create_bo_ioctl() 560 ret = drmIoctl(fd, DRM_IOCTL_AMDGPU_GEM_CREATE, &create); in v3d_simulator_create_bo_ioctl() 573 ret = drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &create); in v3d_simulator_create_bo_ioctl() 631 return drmIoctl(fd, DRM_IOCTL_GEM_CLOSE, args); in v3d_simulator_gem_close_ioctl() 821 return drmIoctl(fd, request, args); in v3d_simulator_ioctl()
|
/third_party/mesa3d/src/etnaviv/drm/ |
D | etnaviv_bo.c | 76 drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in _etna_bo_free() 165 drmIoctl(dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in bo_from_handle() 239 if (drmIoctl(dev->fd, DRM_IOCTL_GEM_OPEN, &req)) { in etna_bo_from_name() 337 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_FLINK, &req); in etna_bo_get_name()
|
/third_party/mesa3d/src/intel/common/tests/ |
D | mi_builder_test.cpp | 194 ASSERT_EQ(drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, in SetUp() 213 ASSERT_EQ(drmIoctl(fd, DRM_IOCTL_I915_GEM_CONTEXT_CREATE, in SetUp() 223 ASSERT_EQ(drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, in SetUp() 231 ASSERT_EQ(drmIoctl(fd, DRM_IOCTL_I915_GEM_CREATE, in SetUp() 241 ASSERT_EQ(drmIoctl(fd, DRM_IOCTL_I915_GEM_SET_CACHING, in SetUp() 249 ASSERT_EQ(drmIoctl(fd, DRM_IOCTL_I915_GEM_MMAP, in SetUp() 259 ASSERT_EQ(drmIoctl(fd, DRM_IOCTL_I915_GEM_CREATE, in SetUp() 269 ASSERT_EQ(drmIoctl(fd, DRM_IOCTL_I915_GEM_SET_CACHING, in SetUp() 277 ASSERT_EQ(drmIoctl(fd, DRM_IOCTL_I915_GEM_MMAP, in SetUp() 346 ASSERT_EQ(drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, in submit_batch() [all …]
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_simulator.c | 174 int ret = drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &map); in vc4_create_simulator_bo() 461 ret = drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &create); in vc4_simulator_create_bo_ioctl() 488 ret = drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &create); in vc4_simulator_create_shader_bo_ioctl() 528 ret = drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &map); in vc4_simulator_mmap_bo_ioctl() 545 return drmIoctl(fd, DRM_IOCTL_GEM_CLOSE, args); in vc4_simulator_gem_close_ioctl() 621 return drmIoctl(fd, request, args); in vc4_simulator_ioctl()
|
/third_party/mesa3d/src/gallium/winsys/panfrost/drm/ |
D | panfrost_drm_winsys.c | 72 int err = drmIoctl(ro->kms_fd, DRM_IOCTL_MODE_CREATE_DUMB, &create_dumb); in panfrost_create_kms_dumb_buffer_for_resource() 104 drmIoctl(ro->kms_fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_dumb); in panfrost_create_kms_dumb_buffer_for_resource()
|
/third_party/libdrm/omap/ |
D | omap_drm.c | 291 if (drmIoctl(dev->fd, DRM_IOCTL_GEM_OPEN, &req)) { in omap_bo_from_name() 326 ret = drmIoctl(dev->fd, DRM_IOCTL_PRIME_FD_TO_HANDLE, &req); in omap_bo_from_dmabuf() 385 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_FLINK, &req); in omap_bo_get_name() 415 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &req); in omap_bo_dmabuf()
|
/third_party/libdrm/tests/modetest/ |
D | buffers.c | 75 ret = drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &arg); in bo_create_dumb() 100 ret = drmIoctl(bo->fd, DRM_IOCTL_MODE_MAP_DUMB, &arg); in bo_map() 349 ret = drmIoctl(bo->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &arg); in bo_destroy()
|
/third_party/mesa3d/src/panfrost/perf/ |
D | pan_perf.c | 95 return drmIoctl(perf->dev->fd, DRM_IOCTL_PANFROST_PERFCNT_ENABLE, &perfcnt_enable); in panfrost_perf_query() 115 return drmIoctl(perf->dev->fd, DRM_IOCTL_PANFROST_PERFCNT_DUMP, &perfcnt_dump); in panfrost_perf_dump()
|
/third_party/skia/third_party/externals/swiftshader/src/WSI/ |
D | DisplaySurfaceKHR.cpp | 163 drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &creq); in DisplaySurfaceKHR() 176 drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &mreq); in DisplaySurfaceKHR() 190 drmIoctl(fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); in destroySurface()
|
/third_party/libdrm/tests/radeon/ |
D | rbo.c | 58 r = drmIoctl(fd, DRM_IOCTL_GEM_OPEN, &open_arg); in rbo() 152 drmIoctl(bo->fd, DRM_IOCTL_GEM_CLOSE, &args); in rbo_decref()
|
/third_party/mesa3d/src/gallium/winsys/sw/kms-dri/ |
D | kms_dri_sw_winsys.c | 195 ret = drmIoctl(kms_sw->fd, DRM_IOCTL_MODE_CREATE_DUMB, &create_req); in kms_sw_displaytarget_create() 218 drmIoctl(kms_sw->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_req); in kms_sw_displaytarget_create() 243 drmIoctl(kms_sw->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_req); in kms_sw_displaytarget_destroy() 272 ret = drmIoctl(kms_sw->fd, DRM_IOCTL_MODE_MAP_DUMB, &map_req); in kms_sw_displaytarget_map()
|
/third_party/mesa3d/src/freedreno/drm/ |
D | freedreno_bo.c | 88 drmIoctl(dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in bo_from_handle() 231 if (drmIoctl(dev->fd, DRM_IOCTL_GEM_OPEN, &req)) { in fd_bo_from_name() 375 drmIoctl(dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in bo_del() 397 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_FLINK, &req); in fd_bo_get_name()
|
/third_party/mesa3d/src/freedreno/drm/virtio/ |
D | virtio_bo.c | 38 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_VIRTGPU_MAP, &req); in bo_allocate() 70 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_VIRTGPU_WAIT, &args); in virtio_bo_cpu_prep_guest() 386 ret = drmIoctl(dev->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE_BLOB, &args); in virtio_bo_new()
|
D | virtio_device.c | 61 return drmIoctl(fd, DRM_IOCTL_VIRTGPU_GET_CAPS, &args); in get_capset() 76 return drmIoctl(fd, DRM_IOCTL_VIRTGPU_CONTEXT_INIT, &args); in set_context() 261 int ret = drmIoctl(dev->fd, DRM_IOCTL_VIRTGPU_EXECBUFFER, &eb); in execbuf_locked()
|
/third_party/gstreamer/gstplugins_bad/sys/kms/ |
D | gstkmsallocator.c | 131 err = drmIoctl (allocator->priv->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &arg); in gst_kms_allocator_memory_reset() 195 ret = drmIoctl (allocator->priv->fd, DRM_IOCTL_MODE_CREATE_DUMB, &arg); in gst_kms_allocator_memory_create() 371 err = drmIoctl (alloc->priv->fd, DRM_IOCTL_MODE_MAP_DUMB, &arg); in gst_kms_memory_map() 551 err = drmIoctl (alloc->priv->fd, DRM_IOCTL_GEM_CLOSE, &arg); in gst_kms_allocator_dmabuf_import()
|