/external/igt-gpu-tools/tests/ |
D | kms_addfb_basic.c | 90 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f) == 0); in invalid_tests() 91 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_RMFB, &f.fb_id) == 0); in invalid_tests() 101 igt_assert(drmIoctl(fd, LOCAL_DRM_IOCTL_MODE_ADDFB2, &f) == -1 && in invalid_tests() 110 igt_assert(drmIoctl(fd, LOCAL_DRM_IOCTL_MODE_ADDFB2, &f) == -1 && in invalid_tests() 119 igt_assert(drmIoctl(fd, LOCAL_DRM_IOCTL_MODE_ADDFB2, &f) == -1 && in invalid_tests() 128 igt_assert(drmIoctl(fd, LOCAL_DRM_IOCTL_MODE_ADDFB2, &f) == -1 && in invalid_tests() 138 igt_assert(drmIoctl(fd, LOCAL_DRM_IOCTL_MODE_ADDFB2, &f) == 0); in invalid_tests() 139 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_RMFB, &f.fb_id) == 0); in invalid_tests() 270 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f) == -1 && in pitch_tests() 276 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f) == 0); in pitch_tests() [all …]
|
D | kms_prop_blob.c | 56 if (drmIoctl(fd, ioc, ioc_data) != 0) \ 68 igt_require(drmIoctl(fd, DRM_IOCTL_MODE_CREATEPROPBLOB, &c) == 0); in igt_require_propblob() 70 igt_require(drmIoctl(fd, DRM_IOCTL_MODE_DESTROYPROPBLOB, &d) == 0); in igt_require_propblob() 268 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_OBJ_GETPROPERTIES, in prop_tests() 275 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_OBJ_GETPROPERTIES, in prop_tests() 286 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_OBJ_SETPROPERTY, in prop_tests() 293 igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_OBJ_SETPROPERTY, in prop_tests()
|
/external/igt-gpu-tools/overlay/kms/ |
D | kms-overlay.c | 103 return drmIoctl(fd, DRM_IOCTL_MODE_SETPLANE, &s) == 0; in attach_to_crtc() 112 return drmIoctl(fd, DRM_IOCTL_MODE_SETPLANE, &s) == 0; in detach_from_crtc() 140 drmIoctl(priv->fd, DRM_IOCTL_MODE_RMFB, &priv->image.name); in kms_overlay_destroy() 156 if (drmIoctl(fd, DRM_IOCTL_VERSION, &version)) in is_i915_device() 172 if (drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp)) in check_device() 179 if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res)) in check_device() 247 if (drmIoctl(priv->fd, in kms_overlay_create() 270 drmIoctl(priv->fd, DRM_IOCTL_I915_GEM_CREATE, &create); in kms_overlay_create() 286 if (drmIoctl(priv->fd, DRM_IOCTL_I915_GEM_MMAP_GTT, &map)) in kms_overlay_create() 318 drmIoctl(priv->fd, DRM_IOCTL_GEM_CLOSE, &create.handle); in kms_overlay_create() [all …]
|
/external/igt-gpu-tools/benchmarks/ |
D | kms_vblank.c | 59 return drmIoctl(fd, DRM_IOCTL_WAIT_VBLANK, &vbl) == 0; in crtc0_active() 74 drmIoctl(fd, DRM_IOCTL_WAIT_VBLANK, &vbl); in vblank_query() 79 drmIoctl(fd, DRM_IOCTL_WAIT_VBLANK, &vbl); in vblank_query() 86 drmIoctl(fd, DRM_IOCTL_WAIT_VBLANK, &vbl); in vblank_query() 108 drmIoctl(fd, DRM_IOCTL_WAIT_VBLANK, &vbl); in vblank_event() 113 drmIoctl(fd, DRM_IOCTL_WAIT_VBLANK, &vbl); in vblank_event() 120 drmIoctl(fd, DRM_IOCTL_WAIT_VBLANK, &vbl); in vblank_event()
|
/external/libdrm/ |
D | xf86drm.c | 202 drmIoctl(int fd, unsigned long request, void *arg) in drmIoctl() function 896 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) { in drmGetVersion() 908 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) { in drmGetVersion() 968 ret = drmIoctl(fd, DRM_IOCTL_GET_CAP, &cap); in drmGetCap() 984 return drmIoctl(fd, DRM_IOCTL_SET_CLIENT_CAP, &cap); in drmSetClientCap() 1019 if (drmIoctl(fd, DRM_IOCTL_GET_UNIQUE, &u)) in drmGetBusid() 1022 if (drmIoctl(fd, DRM_IOCTL_GET_UNIQUE, &u)) { in drmGetBusid() 1052 if (drmIoctl(fd, DRM_IOCTL_SET_UNIQUE, &u)) { in drmSetBusid() 1065 if (drmIoctl(fd, DRM_IOCTL_GET_MAGIC, &auth)) in drmGetMagic() 1077 if (drmIoctl(fd, DRM_IOCTL_AUTH_MAGIC, &auth)) in drmAuthMagic() [all …]
|
D | xf86drmMode.c | 62 int ret = drmIoctl(fd, cmd, arg); in DRM_IOCTL() 153 if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res) != 0) in drmIsKMS() 166 if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res)) in drmModeGetResources() 192 if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res)) in drmModeGetResources() 326 if (drmIoctl(fd, DRM_IOCTL_MODE_GETFB, &info)) in drmModeGetFB() 368 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCRTC, &crtc)) in drmModeGetCrtc() 474 if (drmIoctl(fd, DRM_IOCTL_MODE_GETENCODER, &enc)) in drmModeGetEncoder() 506 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCONNECTOR, &conn)) in _drmModeGetConnector() 536 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCONNECTOR, &conn)) in _drmModeGetConnector() 638 if (drmIoctl(fd, DRM_IOCTL_MODE_GETPROPERTY, &prop)) in drmModeGetProperty() [all …]
|
/external/igt-gpu-tools/lib/ |
D | gem.c | 31 if (drmIoctl(drm_fd, DRM_IOCTL_VERSION, &version)) in gem_get_driver() 56 if (drmIoctl(drm_fd, in gem_size() 69 if (drmIoctl(drm_fd, in gem_size() 93 drmIoctl(drm_fd, DRM_IOCTL_GEM_CLOSE, &drm_gem_close_arg); in gem_release_handle() 111 if (drmIoctl(drm_fd, DRM_IOCTL_MODE_ADDFB2, &drm_mode_addfb2_arg)) in drm_fb_for_gem_handle()
|
D | igt_syncobj.c | 46 if (drmIoctl(fd, DRM_IOCTL_SYNCOBJ_CREATE, &create)) in __syncobj_create() 77 if (drmIoctl(fd, DRM_IOCTL_SYNCOBJ_DESTROY, &destroy)) in __syncobj_destroy() 98 if (drmIoctl(fd, DRM_IOCTL_SYNCOBJ_HANDLE_TO_FD, args)) in __syncobj_handle_to_fd() 128 if (drmIoctl(fd, DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE, args)) in __syncobj_fd_to_handle() 176 if (drmIoctl(fd, LOCAL_IOCTL_SYNCOBJ_WAIT, args)) in __syncobj_wait() 244 if (drmIoctl(fd, LOCAL_IOCTL_SYNCOBJ_RESET, &array)) in __syncobj_reset() 271 if (drmIoctl(fd, LOCAL_IOCTL_SYNCOBJ_SIGNAL, &array)) in __syncobj_signal()
|
D | gem_msm.c | 14 if (drmIoctl(drm_fd, DRM_IOCTL_MSM_GEM_CPU_PREP, &gem_prep)) in gem_msm_mmap() 25 if (drmIoctl(drm_fd, DRM_IOCTL_MSM_GEM_INFO, &gem_info)) in gem_msm_mmap() 57 if (drmIoctl(drm_fd, DRM_IOCTL_MSM_GEM_CPU_FINI, &gem_fini)) in gem_msm_munmap()
|
D | ion.c | 91 if (drmIoctl(drm_fd, DRM_IOCTL_GET_CAP, &drm_get_cap_arg)) in drm_check_prime_caps() 113 if (drmIoctl(drm_fd, in gem_handle_for_ion_buffer() 133 if (drmIoctl(drm_fd, in ion_fd_for_gem_handle() 163 (void)drmIoctl(drm_fd, DRM_IOCTL_MODE_RMFB, &fb_id); in drm_release_fb()
|
D | igt_device.c | 35 if (drmIoctl(fd, DRM_IOCTL_SET_MASTER, NULL)) { in __igt_device_set_master() 70 if (drmIoctl(fd, DRM_IOCTL_DROP_MASTER, NULL)) { in __igt_device_drop_master()
|
D | igt_vgem.c | 54 if (drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &arg)) in __vgem_create() 76 if (drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &arg)) in __vgem_mmap() 122 if (drmIoctl(fd, LOCAL_IOCTL_VGEM_FENCE_SIGNAL, &arg)) in vgem_has_fences()
|
/external/igt-gpu-tools/tools/ |
D | intel_framebuffer_dump.c | 69 if (drmIoctl(fd, DRM_IOCTL_GEM_FLINK, &flink)) { in main() 75 if (drmIoctl(fd, DRM_IOCTL_GEM_OPEN, &open_arg) == 0) { in main() 80 if (drmIoctl(fd, DRM_IOCTL_I915_GEM_MMAP_GTT, &mmap_arg) == 0 && in main() 103 drmIoctl(fd, DRM_IOCTL_GEM_CLOSE, &open_arg.handle); in main()
|
/external/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() 183 drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in exynos_bo_destroy() 217 if (drmIoctl(dev->fd, DRM_IOCTL_GEM_OPEN, &req)) { in exynos_bo_from_name() 253 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_FLINK, &req); in exynos_bo_get_name() 292 ret = drmIoctl(dev->fd, DRM_IOCTL_MODE_MAP_DUMB, &arg); in exynos_bo_map() 367 ret = drmIoctl(dev->fd, DRM_IOCTL_EXYNOS_VIDI_CONNECTION, &req); in exynos_vidi_connection()
|
/external/mesa3d/src/panfrost/lib/ |
D | pan_bo.c | 73 ret = drmIoctl(dev->fd, DRM_IOCTL_PANFROST_CREATE_BO, &create_bo); in panfrost_bo_alloc() 96 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in panfrost_bo_free() 138 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() 276 drmIoctl(dev->fd, DRM_IOCTL_PANFROST_MADVISE, &madv); in panfrost_bo_cache_put() 328 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_PANFROST_MMAP_BO, &mmap_bo); in panfrost_bo_mmap() 468 ret = drmIoctl(dev->fd, DRM_IOCTL_PANFROST_GET_BO_OFFSET, &get_bo_offset); in panfrost_bo_import() 510 int ret = drmIoctl(bo->dev->fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &args); in panfrost_bo_export()
|
/external/minigbm/ |
D | virtgpu_cross_domain.c | 53 ret = drmIoctl(drv->fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in cross_domain_release_private() 115 ret = drmIoctl(drv->fd, DRM_IOCTL_VIRTGPU_EXECBUFFER, &exec); in cross_domain_submit_cmd() 124 ret = drmIoctl(drv->fd, DRM_IOCTL_VIRTGPU_WAIT, &wait_3d); in cross_domain_submit_cmd() 254 ret = drmIoctl(drv->fd, DRM_IOCTL_VIRTGPU_GET_CAPS, &args); in cross_domain_init() 277 ret = drmIoctl(drv->fd, DRM_IOCTL_VIRTGPU_CONTEXT_INIT, &init); in cross_domain_init() 288 ret = drmIoctl(drv->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE_BLOB, &drm_rc_blob); in cross_domain_init() 298 ret = drmIoctl(drv->fd, DRM_IOCTL_VIRTGPU_MAP, &map); in cross_domain_init() 368 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE_BLOB, &drm_rc_blob); in cross_domain_bo_create() 386 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_VIRTGPU_MAP, &gem_map); in cross_domain_bo_map()
|
D | i915.c | 286 ret = drmIoctl(drv->fd, DRM_IOCTL_I915_GETPARAM, &get_param); in i915_init() 300 ret = drmIoctl(drv->fd, DRM_IOCTL_I915_GETPARAM, &get_param); in i915_init() 518 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_CREATE_EXT, &create_ext); in i915_bo_create_from_metadata() 529 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_CREATE, &gem_create); in i915_bo_create_from_metadata() 545 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_SET_TILING, &gem_set_tiling); in i915_bo_create_from_metadata() 549 drmIoctl(bo->drv->fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in i915_bo_create_from_metadata() 576 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_GET_TILING, &gem_get_tiling); in i915_bo_import() 614 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_MMAP, &gem_map); in i915_bo_map() 630 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_MMAP_GTT, &gem_map); in i915_bo_map() 665 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_SET_DOMAIN, &set_domain); in i915_bo_invalidate()
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_close_race.c | 103 drmIoctl(fd, DRM_IOCTL_I915_GEM_CREATE, &create); in selfcopy() 120 if (drmIoctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &gem_pwrite) == 0) { in selfcopy() 125 drmIoctl(fd, DRM_IOCTL_GEM_CLOSE, &create.handle); in selfcopy() 196 if (drmIoctl(crashme.fd, DRM_IOCTL_GEM_OPEN, &name)) in threads() 200 drmIoctl(crashme.fd, DRM_IOCTL_GEM_CLOSE, &name.handle); in threads()
|
/external/libdrm/intel/ |
D | intel_bufmgr_gem.c | 651 ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_BUSY, &busy); in drm_intel_gem_bo_busy() 670 drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_MADVISE, &madv); in drm_intel_gem_bo_madvise_internal() 804 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_gem_bo_alloc_internal() 962 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_gem_bo_alloc_userptr() 1031 ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_I915_GEM_USERPTR, &userptr); in has_userptr() 1082 ret = drmIoctl(bufmgr_gem->fd, in get_tiling_mode() 1126 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_bo_gem_create_from_name() 1220 ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_GEM_CLOSE, &close); in drm_intel_gem_bo_free() 1472 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_gem_bo_map() 1499 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_gem_bo_map() [all …]
|
/external/libdrm/tests/kms/ |
D | libkms-test-framebuffer.c | 70 err = drmIoctl(device->fd, DRM_IOCTL_MODE_CREATE_DUMB, &args); in kms_framebuffer_create() 110 err = drmIoctl(device->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &args); in kms_framebuffer_free() 133 err = drmIoctl(device->fd, DRM_IOCTL_MODE_MAP_DUMB, &args); in kms_framebuffer_map()
|
/external/mesa3d/src/gallium/auxiliary/renderonly/ |
D | renderonly.c | 62 drmIoctl(ro->kms_fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_dumb); in renderonly_scanout_destroy() 86 err = drmIoctl(ro->kms_fd, DRM_IOCTL_MODE_CREATE_DUMB, &create_dumb); in renderonly_create_kms_dumb_buffer_for_resource() 115 drmIoctl(ro->kms_fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_dumb); in renderonly_create_kms_dumb_buffer_for_resource()
|
/external/libdrm/omap/ |
D | omap_drm.c | 180 drmIoctl(dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in bo_from_handle() 294 if (drmIoctl(dev->fd, DRM_IOCTL_GEM_OPEN, &req)) { in omap_bo_from_name() 329 ret = drmIoctl(dev->fd, DRM_IOCTL_PRIME_FD_TO_HANDLE, &req); in omap_bo_from_dmabuf() 373 drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in omap_bo_del() 391 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_FLINK, &req); in omap_bo_get_name() 421 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &req); in omap_bo_dmabuf()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_bufmgr.c | 472 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_BUSY, &busy); in brw_bo_busy() 489 drmIoctl(bo->bufmgr->fd, DRM_IOCTL_I915_GEM_MADVISE, &madv); in brw_bo_madvise() 638 ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_CREATE, &create); in bo_alloc_internal() 665 if (drmIoctl(bo->bufmgr->fd, DRM_IOCTL_I915_GEM_SET_DOMAIN, &sd) != 0) in bo_alloc_internal() 784 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_GEM_OPEN, &open_arg); in brw_bo_gem_create_from_name() 825 ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_GET_TILING, &get_tiling); in brw_bo_gem_create_from_name() 878 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_GEM_CLOSE, &close); in bo_free() 1017 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); in brw_bo_gem_mmap_legacy() 1039 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP_OFFSET, &mmap_arg); in brw_bo_gem_mmap_offset() 1186 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP_GTT, &mmap_arg); in brw_bo_map_gtt() [all …]
|
D | brw_reset.c | 53 if (drmIoctl(brw->screen->fd, DRM_IOCTL_I915_GET_RESET_STATS, &stats) != 0) in brw_get_graphics_reset_status() 81 if (drmIoctl(brw->screen->fd, DRM_IOCTL_I915_GET_RESET_STATS, &stats) != 0) in brw_check_for_reset()
|
/external/mesa3d/src/gallium/winsys/virgl/drm/ |
D | virgl_drm_winsys.c | 85 drmIoctl(qdws->fd, DRM_IOCTL_GEM_CLOSE, &args); in virgl_hw_res_destroy() 103 ret = drmIoctl(vdws->fd, DRM_IOCTL_VIRTGPU_WAIT, &waitcmd); in virgl_drm_resource_is_busy() 201 ret = drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE_BLOB, &drm_rc_blob); in virgl_drm_winsys_resource_create_blob() 257 ret = drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE, &createcmd); in virgl_drm_winsys_resource_create() 331 return drmIoctl(vdws->fd, DRM_IOCTL_VIRTGPU_TRANSFER_TO_HOST, &tohostcmd); in virgl_bo_transfer_put() 360 return drmIoctl(vdws->fd, DRM_IOCTL_VIRTGPU_TRANSFER_FROM_HOST, &fromhostcmd); in virgl_bo_transfer_get() 474 if (drmIoctl(qdws->fd, DRM_IOCTL_GEM_OPEN, &open_arg)) { in virgl_drm_winsys_resource_create_handle() 486 if (drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_RESOURCE_INFO, &info_arg)) { in virgl_drm_winsys_resource_create_handle() 527 if (drmIoctl(qdws->fd, DRM_IOCTL_GEM_FLINK, &flink)) { in virgl_drm_winsys_resource_get_handle() 565 if (drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_MAP, &mmap_arg)) in virgl_drm_resource_map() [all …]
|