/third_party/mesa3d/src/drm-shim/ |
D | device.c | 114 static struct shim_fd * 117 struct shim_fd *shim_fd = calloc(1, sizeof(*shim_fd)); in drm_shim_file_create() local 119 shim_fd->fd = fd; in drm_shim_file_create() 120 p_atomic_set(&shim_fd->refcount, 1); in drm_shim_file_create() 121 mtx_init(&shim_fd->handle_lock, mtx_plain); in drm_shim_file_create() 122 shim_fd->handles = _mesa_hash_table_create(NULL, in drm_shim_file_create() 126 return shim_fd; in drm_shim_file_create() 133 void drm_shim_fd_register(int fd, struct shim_fd *shim_fd) in drm_shim_fd_register() argument 135 if (!shim_fd) in drm_shim_fd_register() 136 shim_fd = drm_shim_file_create(fd); in drm_shim_fd_register() [all …]
|
D | drm_shim.h | 70 struct shim_fd { struct 90 void drm_shim_fd_register(int fd, struct shim_fd *shim_fd); argument 92 struct shim_fd *drm_shim_fd_lookup(int fd); 94 void *drm_shim_mmap(struct shim_fd *shim_fd, size_t length, int prot, int flags, 100 struct shim_bo *drm_shim_bo_lookup(struct shim_fd *shim_fd, int handle); 101 int drm_shim_bo_get_handle(struct shim_fd *shim_fd, struct shim_bo *bo); 102 uint64_t drm_shim_bo_get_mmap_offset(struct shim_fd *shim_fd,
|
D | drm_shim.c | 379 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in __fxstat() local 381 if (!shim_fd) in __fxstat() 395 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in __fxstat64() local 397 if (!shim_fd) in __fxstat64() 479 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in fstat() local 481 if (!shim_fd) in fstat() 495 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in fstat64() local 497 if (!shim_fd) in fstat64() 661 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in ioctl() local 662 if (!shim_fd) in ioctl() [all …]
|
/third_party/mesa3d/src/broadcom/drm-shim/ |
D | v3d_noop.c | 61 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in v3d_ioctl_create_bo() local 72 create->handle = drm_shim_bo_get_handle(shim_fd, &bo->base); in v3d_ioctl_create_bo() 82 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in v3d_ioctl_get_bo_offset() local 84 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, args->handle); in v3d_ioctl_get_bo_offset() 96 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in v3d_ioctl_mmap_bo() local 98 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, map->handle); in v3d_ioctl_mmap_bo() 100 map->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo); in v3d_ioctl_mmap_bo()
|
D | vc4_noop.c | 42 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in vc4_ioctl_create_bo() local 47 create->handle = drm_shim_bo_get_handle(shim_fd, bo); in vc4_ioctl_create_bo() 56 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in vc4_ioctl_mmap_bo() local 58 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, map->handle); in vc4_ioctl_mmap_bo() 60 map->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo); in vc4_ioctl_mmap_bo()
|
/third_party/mesa3d/src/nouveau/drm-shim/ |
D | nouveau_noop.c | 69 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in nouveau_ioctl_gem_new() local 77 create->info.handle = drm_shim_bo_get_handle(shim_fd, &bo->base); in nouveau_ioctl_gem_new() 78 create->info.map_handle = drm_shim_bo_get_mmap_offset(shim_fd, &bo->base); in nouveau_ioctl_gem_new() 95 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in nouveau_ioctl_gem_info() local 98 nouveau_shim_bo(drm_shim_bo_lookup(shim_fd, info->handle)); in nouveau_ioctl_gem_info() 99 info->map_handle = drm_shim_bo_get_mmap_offset(shim_fd, &bo->base); in nouveau_ioctl_gem_info() 120 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in nouveau_ioctl_channel_alloc() local 134 alloc->notifier_handle = drm_shim_bo_get_handle(shim_fd, ¬ify->base); in nouveau_ioctl_channel_alloc()
|
/third_party/mesa3d/src/gallium/drivers/lima/drm-shim/ |
D | lima_noop.c | 64 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in lima_ioctl_gem_create() local 70 create->handle = drm_shim_bo_get_handle(shim_fd, bo); in lima_ioctl_gem_create() 82 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in lima_ioctl_gem_info() local 83 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, gem_info->handle); in lima_ioctl_gem_info() 86 gem_info->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo); in lima_ioctl_gem_info()
|
/third_party/mesa3d/src/intel/tools/ |
D | intel_noop_drm_shim.c | 66 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in i915_ioctl_gem_set_tiling() local 68 struct i915_bo *bo = (struct i915_bo *) drm_shim_bo_lookup(shim_fd, tiling_arg->handle); in i915_ioctl_gem_set_tiling() 82 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in i915_ioctl_gem_get_tiling() local 84 struct i915_bo *bo = (struct i915_bo *) drm_shim_bo_lookup(shim_fd, tiling_arg->handle); in i915_ioctl_gem_get_tiling() 99 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in i915_ioctl_gem_create() local 105 create->handle = drm_shim_bo_get_handle(shim_fd, &bo->base); in i915_ioctl_gem_create() 115 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in i915_ioctl_gem_mmap() local 117 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, mmap_arg->handle); in i915_ioctl_gem_mmap() 123 bo->map = drm_shim_mmap(shim_fd, bo->size, PROT_READ | PROT_WRITE, MAP_SHARED, -1, in i915_ioctl_gem_mmap() 124 drm_shim_bo_get_mmap_offset(shim_fd, bo)); in i915_ioctl_gem_mmap() [all …]
|
/third_party/mesa3d/src/panfrost/drm-shim/ |
D | panfrost_noop.c | 90 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in pan_ioctl_create_bo() local 96 create->handle = drm_shim_bo_get_handle(shim_fd, bo); in pan_ioctl_create_bo() 109 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in pan_ioctl_mmap_bo() local 110 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, mmap_bo->handle); in pan_ioctl_mmap_bo() 112 mmap_bo->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo); in pan_ioctl_mmap_bo()
|
/third_party/mesa3d/src/amd/drm-shim/ |
D | radeon_noop_drm_shim.c | 94 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in radeon_ioctl_gem_create() local 100 create->handle = drm_shim_bo_get_handle(shim_fd, bo); in radeon_ioctl_gem_create() 112 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in radeon_ioctl_gem_mmap() local 113 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, mmap_bo->handle); in radeon_ioctl_gem_mmap() 115 mmap_bo->addr_ptr = drm_shim_bo_get_mmap_offset(shim_fd, bo); in radeon_ioctl_gem_mmap()
|
/third_party/mesa3d/src/etnaviv/drm-shim/ |
D | etnaviv_noop.c | 164 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in etnaviv_ioctl_gem_new() local 169 create->handle = drm_shim_bo_get_handle(shim_fd, bo); in etnaviv_ioctl_gem_new() 178 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in etnaviv_ioctl_gem_info() local 180 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, args->handle); in etnaviv_ioctl_gem_info() 182 args->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo); in etnaviv_ioctl_gem_info()
|
/third_party/mesa3d/src/freedreno/drm-shim/ |
D | freedreno_noop.c | 52 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in msm_ioctl_gem_new() local 68 create->handle = drm_shim_bo_get_handle(shim_fd, bo); in msm_ioctl_gem_new() 78 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); in msm_ioctl_gem_info() local 80 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, args->handle); in msm_ioctl_gem_info() 87 args->value = drm_shim_bo_get_mmap_offset(shim_fd, bo); in msm_ioctl_gem_info()
|
/third_party/mesa3d/docs/relnotes/ |
D | 20.2.0.rst | 3066 - drm-shim: move handle lock to shim_fd
|