Home
last modified time | relevance | path

Searched refs:drmIoctl (Results 1 – 25 of 58) sorted by relevance

123

/external/libdrm/
Dxf86drm.c183 drmIoctl(int fd, unsigned long request, void *arg) in drmIoctl() function
866 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) { in drmGetVersion()
878 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) { in drmGetVersion()
938 ret = drmIoctl(fd, DRM_IOCTL_GET_CAP, &cap); in drmGetCap()
954 return drmIoctl(fd, DRM_IOCTL_SET_CLIENT_CAP, &cap); in drmSetClientCap()
989 if (drmIoctl(fd, DRM_IOCTL_GET_UNIQUE, &u)) in drmGetBusid()
992 if (drmIoctl(fd, DRM_IOCTL_GET_UNIQUE, &u)) { in drmGetBusid()
1022 if (drmIoctl(fd, DRM_IOCTL_SET_UNIQUE, &u)) { in drmSetBusid()
1035 if (drmIoctl(fd, DRM_IOCTL_GET_MAGIC, &auth)) in drmGetMagic()
1047 if (drmIoctl(fd, DRM_IOCTL_AUTH_MAGIC, &auth)) in drmAuthMagic()
[all …]
Dxf86drmMode.c66 int ret = drmIoctl(fd, cmd, arg); in DRM_IOCTL()
160 if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res)) in drmModeGetResources()
186 if (drmIoctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res)) in drmModeGetResources()
319 if (drmIoctl(fd, DRM_IOCTL_MODE_GETFB, &info)) in drmModeGetFB()
361 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCRTC, &crtc)) in drmModeGetCrtc()
464 if (drmIoctl(fd, DRM_IOCTL_MODE_GETENCODER, &enc)) in drmModeGetEncoder()
496 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCONNECTOR, &conn)) in _drmModeGetConnector()
526 if (drmIoctl(fd, DRM_IOCTL_MODE_GETCONNECTOR, &conn)) in _drmModeGetConnector()
628 if (drmIoctl(fd, DRM_IOCTL_MODE_GETPROPERTY, &prop)) in drmModeGetProperty()
642 if (drmIoctl(fd, DRM_IOCTL_MODE_GETPROPERTY, &prop)) { in drmModeGetProperty()
[all …]
/external/libdrm/exynos/
Dexynos_drm.c113 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/mesa/drivers/dri/i965/
Dbrw_bufmgr.c229 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_BUSY, &busy); in brw_bo_busy()
246 drmIoctl(bo->bufmgr->fd, DRM_IOCTL_I915_GEM_MADVISE, &madv); in brw_bo_madvise()
375 ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_CREATE, &create); in bo_alloc_internal()
403 if (drmIoctl(bo->bufmgr->fd, DRM_IOCTL_I915_GEM_SET_DOMAIN, &sd) != 0) in bo_alloc_internal()
509 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_GEM_OPEN, &open_arg); in brw_bo_gem_create_from_name()
545 ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_GET_TILING, &get_tiling); in brw_bo_gem_create_from_name()
596 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_GEM_CLOSE, &close); in bo_free()
731 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); in brw_bo_map_cpu()
795 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP, &mmap_arg); in brw_bo_map_wc()
857 int ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GEM_MMAP_GTT, &mmap_arg); in brw_bo_map_gtt()
[all …]
Dbrw_reset.c54 if (drmIoctl(dri_screen->fd, DRM_IOCTL_I915_GET_RESET_STATS, &stats) != 0) in brw_get_graphics_reset_status()
83 if (drmIoctl(dri_screen->fd, DRM_IOCTL_I915_GET_RESET_STATS, &stats) != 0) in brw_check_for_reset()
/external/libdrm/intel/
Dintel_bufmgr_gem.c651 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()
1105 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_bo_gem_create_from_name()
1151 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_bo_gem_create_from_name()
1204 ret = drmIoctl(bufmgr_gem->fd, DRM_IOCTL_GEM_CLOSE, &close); in drm_intel_gem_bo_free()
1456 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_gem_bo_map()
1483 ret = drmIoctl(bufmgr_gem->fd, in drm_intel_gem_bo_map()
[all …]
/external/libdrm/rockchip/
Drockchip_drm.c114 if (drmIoctl(dev->fd, DRM_IOCTL_ROCKCHIP_GEM_CREATE, &req)){ in rockchip_bo_create()
175 drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in rockchip_bo_destroy()
209 if (drmIoctl(dev->fd, DRM_IOCTL_GEM_OPEN, &req)) { in rockchip_bo_from_name()
245 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_FLINK, &req); in rockchip_bo_get_name()
282 ret = drmIoctl(dev->fd, DRM_IOCTL_ROCKCHIP_GEM_MAP_OFFSET, &req); in rockchip_bo_map()
/external/minigbm/
Di915.c285 ret = drmIoctl(drv->fd, DRM_IOCTL_I915_GETPARAM, &get_param); in i915_init()
297 ret = drmIoctl(drv->fd, DRM_IOCTL_I915_GETPARAM, &get_param); in i915_init()
378 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_CREATE, &gem_create); in i915_bo_create_for_modifier()
392 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_SET_TILING, &gem_set_tiling); in i915_bo_create_for_modifier()
397 drmIoctl(bo->drv->fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in i915_bo_create_for_modifier()
452 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_GET_TILING, &gem_get_tiling); in i915_bo_import()
479 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_MMAP, &gem_map); in i915_bo_map()
492 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_MMAP_GTT, &gem_map); in i915_bo_map()
528 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_I915_GEM_SET_DOMAIN, &set_domain); in i915_bo_invalidate()
Dvirtio_gpu.c111 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE, &res_create); in virtio_virgl_bo_create()
134 drmIoctl(bo->drv->fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in virtio_virgl_bo_create()
148 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_VIRTGPU_MAP, &gem_map); in virtio_virgl_bo_map()
171 ret = drmIoctl(drv->fd, DRM_IOCTL_VIRTGPU_GETPARAM, &args); in virtio_gpu_init()
244 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_VIRTGPU_TRANSFER_FROM_HOST, &xfer); in virtio_gpu_bo_invalidate()
273 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_VIRTGPU_TRANSFER_TO_HOST, &xfer); in virtio_gpu_bo_flush()
Dexynos.c73 ret = drmIoctl(bo->drv->fd, DRM_IOCTL_EXYNOS_GEM_CREATE, &gem_create); in exynos_bo_create()
89 int gem_close_ret = drmIoctl(bo->drv->fd, DRM_IOCTL_GEM_CLOSE, &gem_close); in exynos_bo_create()
/external/libdrm/omap/
Domap_drm.c180 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/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c75 drmIoctl(qdws->fd, DRM_IOCTL_GEM_CLOSE, &args); in virgl_hw_res_destroy()
89 ret = drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_WAIT, &waitcmd); in virgl_drm_resource_is_busy()
210 ret = drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_RESOURCE_CREATE, &createcmd); in virgl_drm_winsys_resource_create()
271 return drmIoctl(vdws->fd, DRM_IOCTL_VIRTGPU_TRANSFER_TO_HOST, &tohostcmd); in virgl_bo_transfer_put()
296 return drmIoctl(vdws->fd, DRM_IOCTL_VIRTGPU_TRANSFER_FROM_HOST, &fromhostcmd); in virgl_bo_transfer_get()
437 if (drmIoctl(qdws->fd, DRM_IOCTL_GEM_OPEN, &open_arg)) { in virgl_drm_winsys_resource_create_handle()
449 if (drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_RESOURCE_INFO, &info_arg)) { in virgl_drm_winsys_resource_create_handle()
486 if (drmIoctl(qdws->fd, DRM_IOCTL_GEM_FLINK, &flink)) { in virgl_drm_winsys_resource_get_handle()
530 if (drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_MAP, &mmap_arg)) in virgl_drm_resource_map()
553 ret = drmIoctl(qdws->fd, DRM_IOCTL_VIRTGPU_WAIT, &waitcmd); in virgl_drm_resource_wait()
[all …]
/external/libdrm/tests/kms/
Dlibkms-test-framebuffer.c70 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/
Drenderonly.c62 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/libkms/
Ddumb.c98 ret = drmIoctl(kms->fd, DRM_IOCTL_MODE_CREATE_DUMB, &arg); in dumb_bo_create()
142 ret = drmIoctl(bo->base.kms->fd, DRM_IOCTL_MODE_MAP_DUMB, &arg); in dumb_bo_map()
181 ret = drmIoctl(bo->base.kms->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &arg); in dumb_bo_destroy()
/external/libkmsxx/kms++/src/
Ddumbframebuffer.cpp56 r = drmIoctl(card().fd(), DRM_IOCTL_MODE_CREATE_DUMB, &creq); in Create()
96 drmIoctl(card().fd(), DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); in Destroy()
112 int r = drmIoctl(card().fd(), DRM_IOCTL_MODE_MAP_DUMB, &mreq); in map()
/external/libdrm/freedreno/
Dfreedreno_bo.c68 drmIoctl(dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in bo_from_handle()
173 if (drmIoctl(dev->fd, DRM_IOCTL_GEM_OPEN, &req)) { in fd_bo_from_name()
247 drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in bo_del()
261 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_FLINK, &req); in fd_bo_get_name()
/external/libdrm/etnaviv/
Detnaviv_bo.c56 drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in bo_del()
89 drmIoctl(dev->fd, DRM_IOCTL_GEM_CLOSE, &req); in bo_from_handle()
176 if (drmIoctl(dev->fd, DRM_IOCTL_GEM_OPEN, &req)) { in etna_bo_from_name()
264 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_GEM_FLINK, &req); in etna_bo_get_name()
/external/libdrm/tegra/
Dtegra.c49 drmIoctl(drm->fd, DRM_IOCTL_GEM_CLOSE, &args); in drm_tegra_bo_free()
177 ret = drmIoctl(drm->fd, DRM_IOCTL_GEM_OPEN, &open_args); in drm_tegra_bo_name_ref()
192 drmIoctl(drm->fd, DRM_IOCTL_GEM_CLOSE, &close_args); in drm_tegra_bo_name_ref()
208 ret = drmIoctl(bo->drm->fd, DRM_IOCTL_GEM_FLINK, &args); in drm_tegra_bo_name_get()
/external/mesa3d/src/gallium/winsys/sw/kms-dri/
Dkms_dri_sw_winsys.c137 ret = drmIoctl(kms_sw->fd, DRM_IOCTL_MODE_CREATE_DUMB, &create_req); in kms_sw_displaytarget_create()
155 drmIoctl(kms_sw->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_req); in kms_sw_displaytarget_create()
175 drmIoctl(kms_sw->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &destroy_req); in kms_sw_displaytarget_destroy()
196 ret = drmIoctl(kms_sw->fd, DRM_IOCTL_MODE_MAP_DUMB, &map_req); in kms_sw_displaytarget_map()
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_simulator.c476 ret = drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &map_dumb); in vc4_simulator_map_winsys_bo()
527 ret = drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &create); in vc4_simulator_create_bo_ioctl()
554 ret = drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &create); in vc4_simulator_create_shader_bo_ioctl()
566 ret = drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &map); in vc4_simulator_create_shader_bo_ioctl()
591 ret = drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &map); in vc4_simulator_mmap_bo_ioctl()
608 return drmIoctl(fd, DRM_IOCTL_GEM_CLOSE, args); in vc4_simulator_gem_close_ioctl()
681 return drmIoctl(fd, request, args); in vc4_simulator_ioctl()
/external/libdrm/tests/modetest/
Dbuffers.c75 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()
336 ret = drmIoctl(bo->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &arg); in bo_destroy()
/external/libdrm/tests/planetest/
Dbo.c124 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_MODE_MAP_DUMB, &md); in map_sp_bo()
172 ret = drmIoctl(dev->fd, DRM_IOCTL_MODE_CREATE_DUMB, &cd); in create_sp_bo()
228 ret = drmIoctl(bo->dev->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &dd); in free_sp_bo()
/external/mesa3d/src/gallium/drivers/vc5/
Dvc5_simulator.c430 ret = drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &map_dumb); in vc5_simulator_map_winsys_bo()
481 ret = drmIoctl(fd, DRM_IOCTL_MODE_CREATE_DUMB, &create); in vc5_simulator_create_bo_ioctl()
507 ret = drmIoctl(fd, DRM_IOCTL_MODE_MAP_DUMB, &map); in vc5_simulator_mmap_bo_ioctl()
524 return drmIoctl(fd, DRM_IOCTL_GEM_CLOSE, args); in vc5_simulator_gem_close_ioctl()
562 return drmIoctl(fd, request, args); in vc5_simulator_ioctl()
/external/libdrm/tests/radeon/
Drbo.c58 r = drmIoctl(fd, DRM_IOCTL_GEM_OPEN, &open_arg); in rbo()
152 drmIoctl(bo->fd, DRM_IOCTL_GEM_CLOSE, &args); in rbo_decref()

123