Searched refs:shim_fd (Results 1 - 15 of 15) sorted by relevance

/xsrc/external/mit/MesaLib/dist/src/drm-shim/
H A Ddrm_shim.h41 /* Mapping from int fd to struct shim_fd *. */
63 struct shim_fd { struct
82 void drm_shim_fd_register(int fd, struct shim_fd *shim_fd);
83 struct shim_fd *drm_shim_fd_lookup(int fd);
85 void *drm_shim_mmap(struct shim_fd *shim_fd, size_t length, int prot, int flags,
91 struct shim_bo *drm_shim_bo_lookup(struct shim_fd *shim_fd, int handle);
92 int drm_shim_bo_get_handle(struct shim_fd *shim_f
[all...]
H A Ddevice.c112 static struct shim_fd *
115 struct shim_fd *shim_fd = calloc(1, sizeof(*shim_fd)); local in function:drm_shim_file_create
117 shim_fd->fd = fd;
118 mtx_init(&shim_fd->handle_lock, mtx_plain);
119 shim_fd->handles = _mesa_hash_table_create(NULL,
123 return shim_fd;
130 void drm_shim_fd_register(int fd, struct shim_fd *shim_fd) argument
199 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:drm_shim_ioctl_gem_close
297 drm_shim_bo_lookup(struct shim_fd * shim_fd,int handle) argument
336 drm_shim_bo_get_handle(struct shim_fd * shim_fd,struct shim_bo * bo) argument
366 drm_shim_bo_get_mmap_offset(struct shim_fd * shim_fd,struct shim_bo * bo) argument
375 drm_shim_mmap(struct shim_fd * shim_fd,size_t length,int prot,int flags,int fd,off_t offset) argument
[all...]
H A Ddrm_shim.c367 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:__fxstat
369 if (!shim_fd)
383 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:__fxstat64
385 if (!shim_fd)
467 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:fstat
469 if (!shim_fd)
483 struct shim_fd *shim_f local in function:fstat64
650 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:ioctl
663 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:fcntl
690 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:dup
702 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:mmap
[all...]
/xsrc/external/mit/MesaLib/dist/src/broadcom/drm-shim/
H A Dv3d.c38 struct v3d_bo *v3d_bo_lookup(struct shim_fd *shim_fd, int handle) argument
40 return v3d_bo(drm_shim_bo_lookup(shim_fd, handle));
55 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:v3d_ioctl_mmap_bo
57 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, map->handle);
59 map->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo);
69 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:v3d_ioctl_get_bo_offset
71 struct v3d_bo *bo = v3d_bo_lookup(shim_fd, ge
[all...]
H A Dv3d_noop.c61 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:v3d_ioctl_create_bo
72 create->handle = drm_shim_bo_get_handle(shim_fd, &bo->base);
82 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:v3d_ioctl_get_bo_offset
84 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, args->handle);
96 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:v3d_ioctl_mmap_bo
98 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, map->handle);
100 map->offset = drm_shim_bo_get_mmap_offset(shim_fd, b
[all...]
H A Dvc4_noop.c42 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:vc4_ioctl_create_bo
47 create->handle = drm_shim_bo_get_handle(shim_fd, bo);
56 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:vc4_ioctl_mmap_bo
58 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, map->handle);
60 map->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo);
H A Dv3d.h61 struct v3d_bo *v3d_bo_lookup(struct shim_fd *shim_fd, int handle);
H A Dv3dx.c107 v3d_simulator_copy_in_handle(struct shim_fd *shim_fd, int handle) argument
112 struct v3d_bo *bo = v3d_bo_lookup(shim_fd, handle);
118 v3d_simulator_copy_out_handle(struct shim_fd *shim_fd, int handle) argument
123 struct v3d_bo *bo = v3d_bo_lookup(shim_fd, handle);
131 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:v3dX
136 v3d_simulator_copy_in_handle(shim_fd, bo_handles[i]);
178 v3d_simulator_copy_out_handle(shim_fd, bo_handle
186 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:v3dX
221 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:v3dX
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/lima/drm-shim/
H A Dlima_noop.c64 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:lima_ioctl_gem_create
70 create->handle = drm_shim_bo_get_handle(shim_fd, bo);
82 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:lima_ioctl_gem_info
83 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, gem_info->handle);
86 gem_info->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo);
/xsrc/external/mit/MesaLib/dist/src/panfrost/drm-shim/
H A Dpanfrost_noop.c78 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:pan_ioctl_create_bo
84 create->handle = drm_shim_bo_get_handle(shim_fd, bo);
97 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:pan_ioctl_mmap_bo
98 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, mmap_bo->handle);
100 mmap_bo->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo);
/xsrc/external/mit/MesaLib/dist/src/nouveau/drm-shim/
H A Dnouveau_noop.c69 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:nouveau_ioctl_gem_new
77 create->info.handle = drm_shim_bo_get_handle(shim_fd, &bo->base);
78 create->info.map_handle = drm_shim_bo_get_mmap_offset(shim_fd, &bo->base);
95 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:nouveau_ioctl_gem_info
98 nouveau_shim_bo(drm_shim_bo_lookup(shim_fd, info->handle));
99 info->map_handle = drm_shim_bo_get_mmap_offset(shim_fd, &bo->base);
120 struct shim_fd *shim_fd local in function:nouveau_ioctl_channel_alloc
[all...]
/xsrc/external/mit/MesaLib/dist/src/intel/tools/
H A Dintel_noop_drm_shim.c64 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:i915_ioctl_gem_create
70 create->handle = drm_shim_bo_get_handle(shim_fd, &bo->base);
80 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:i915_ioctl_gem_mmap
82 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, mmap_arg->handle);
88 bo->map = drm_shim_mmap(shim_fd, bo->size, PROT_READ | PROT_WRITE, MAP_SHARED, -1, (uintptr_t)bo);
98 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:i915_ioctl_gem_userptr
104 userptr->handle = drm_shim_bo_get_handle(shim_fd,
[all...]
/xsrc/external/mit/MesaLib/dist/src/etnaviv/drm-shim/
H A Detnaviv_noop.c164 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:etnaviv_ioctl_gem_new
169 create->handle = drm_shim_bo_get_handle(shim_fd, bo);
178 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:etnaviv_ioctl_gem_info
180 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, args->handle);
182 args->offset = drm_shim_bo_get_mmap_offset(shim_fd, bo);
/xsrc/external/mit/MesaLib/dist/src/freedreno/drm-shim/
H A Dfreedreno_noop.c71 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:msm_ioctl_gem_new
83 create->handle = drm_shim_bo_get_handle(shim_fd, &bo->base);
93 struct shim_fd *shim_fd = drm_shim_fd_lookup(fd); local in function:msm_ioctl_gem_info
95 struct shim_bo *bo = drm_shim_bo_lookup(shim_fd, args->handle);
99 args->value = drm_shim_bo_get_mmap_offset(shim_fd, bo);
/xsrc/external/mit/MesaLib/dist/docs/relnotes/
H A D20.2.0.rst3066 - drm-shim: move handle lock to shim_fd

Completed in 16 milliseconds