Home
last modified time | relevance | path

Searched refs:shim_device (Results 1 – 12 of 12) sorted by relevance

/third_party/mesa3d/src/drm-shim/
Ddevice.c58 struct shim_device shim_device; variable
81 shim_device.fd_map = _mesa_hash_table_create(NULL, in drm_shim_device_init()
85 shim_device.offset_map = _mesa_hash_table_u64_create(NULL); in drm_shim_device_init()
87 mtx_init(&shim_device.mem_lock, mtx_plain); in drm_shim_device_init()
89 shim_device.mem_fd = memfd_create("shim mem", MFD_CLOEXEC); in drm_shim_device_init()
90 assert(shim_device.mem_fd != -1); in drm_shim_device_init()
92 ASSERTED int ret = ftruncate(shim_device.mem_fd, SHIM_MEM_SIZE); in drm_shim_device_init()
108 util_vma_heap_init(&shim_device.mem_heap, shim_page_size, in drm_shim_device_init()
140 _mesa_hash_table_insert(shim_device.fd_map, (void *)(uintptr_t)(fd + 1), shim_fd); in drm_shim_fd_register()
151 _mesa_hash_table_search(shim_device.fd_map, (void *)(uintptr_t)(fd + 1)); in drm_shim_fd_unregister()
[all …]
Ddrm_shim.h40 struct shim_device { struct
68 extern struct shim_device shim_device; argument
Ddrm_shim.c623 if (bus_types[i].bus_type != shim_device.bus_type) in readlink()
/third_party/mesa3d/src/gallium/drivers/lima/drm-shim/
Dlima_noop.c104 shim_device.bus_type = DRM_BUS_PLATFORM; in drm_shim_driver_init()
105 shim_device.driver_name = "lima"; in drm_shim_driver_init()
106 shim_device.driver_ioctls = driver_ioctls; in drm_shim_driver_init()
107 shim_device.driver_ioctl_count = ARRAY_SIZE(driver_ioctls); in drm_shim_driver_init()
110 shim_device.version_major = 1; in drm_shim_driver_init()
111 shim_device.version_minor = 1; in drm_shim_driver_init()
112 shim_device.version_patchlevel = 0; in drm_shim_driver_init()
/third_party/mesa3d/src/panfrost/drm-shim/
Dpanfrost_noop.c142 shim_device.bus_type = DRM_BUS_PLATFORM; in drm_shim_driver_init()
143 shim_device.driver_name = "panfrost"; in drm_shim_driver_init()
144 shim_device.driver_ioctls = driver_ioctls; in drm_shim_driver_init()
145 shim_device.driver_ioctl_count = ARRAY_SIZE(driver_ioctls); in drm_shim_driver_init()
148 shim_device.version_major = 1; in drm_shim_driver_init()
149 shim_device.version_minor = 1; in drm_shim_driver_init()
150 shim_device.version_patchlevel = 0; in drm_shim_driver_init()
/third_party/mesa3d/src/amd/drm-shim/
Dradeon_noop_drm_shim.c182 shim_device.bus_type = DRM_BUS_PCI; in drm_shim_driver_init()
183 shim_device.driver_name = "radeon"; in drm_shim_driver_init()
184 shim_device.driver_ioctls = driver_ioctls; in drm_shim_driver_init()
185 shim_device.driver_ioctl_count = ARRAY_SIZE(driver_ioctls); in drm_shim_driver_init()
187 shim_device.version_major = 2; in drm_shim_driver_init()
188 shim_device.version_minor = 50; in drm_shim_driver_init()
189 shim_device.version_patchlevel = 0; in drm_shim_driver_init()
/third_party/mesa3d/src/etnaviv/drm-shim/
Detnaviv_noop.c220 shim_device.bus_type = DRM_BUS_PLATFORM; in drm_shim_driver_init()
221 shim_device.driver_name = "etnaviv"; in drm_shim_driver_init()
222 shim_device.driver_ioctls = driver_ioctls; in drm_shim_driver_init()
223 shim_device.driver_ioctl_count = ARRAY_SIZE(driver_ioctls); in drm_shim_driver_init()
226 shim_device.version_major = 1; in drm_shim_driver_init()
227 shim_device.version_minor = 1; in drm_shim_driver_init()
228 shim_device.version_patchlevel = 0; in drm_shim_driver_init()
/third_party/mesa3d/src/nouveau/drm-shim/
Dnouveau_noop.c210 shim_device.bus_type = DRM_BUS_PCI; in drm_shim_driver_init()
211 shim_device.driver_name = "nouveau"; in drm_shim_driver_init()
212 shim_device.driver_ioctls = driver_ioctls; in drm_shim_driver_init()
213 shim_device.driver_ioctl_count = ARRAY_SIZE(driver_ioctls); in drm_shim_driver_init()
215 shim_device.version_major = 1; in drm_shim_driver_init()
216 shim_device.version_minor = 0; in drm_shim_driver_init()
217 shim_device.version_patchlevel = 1; in drm_shim_driver_init()
/third_party/mesa3d/src/freedreno/drm-shim/
Dfreedreno_noop.c291 shim_device.bus_type = DRM_BUS_PLATFORM; in drm_shim_driver_init()
292 shim_device.driver_name = "msm"; in drm_shim_driver_init()
293 shim_device.driver_ioctls = driver_ioctls; in drm_shim_driver_init()
294 shim_device.driver_ioctl_count = ARRAY_SIZE(driver_ioctls); in drm_shim_driver_init()
297 shim_device.version_major = 1; in drm_shim_driver_init()
298 shim_device.version_minor = 9; in drm_shim_driver_init()
299 shim_device.version_patchlevel = 0; in drm_shim_driver_init()
/third_party/mesa3d/src/broadcom/drm-shim/
Dvc4_noop.c113 shim_device.bus_type = DRM_BUS_PLATFORM; in drm_shim_driver_init()
114 shim_device.driver_name = "vc4"; in drm_shim_driver_init()
115 shim_device.driver_ioctls = driver_ioctls; in drm_shim_driver_init()
116 shim_device.driver_ioctl_count = ARRAY_SIZE(driver_ioctls); in drm_shim_driver_init()
Dv3d_noop.c151 shim_device.bus_type = DRM_BUS_PLATFORM; in drm_shim_driver_init()
152 shim_device.driver_name = "v3d"; in drm_shim_driver_init()
153 shim_device.driver_ioctls = driver_ioctls; in drm_shim_driver_init()
154 shim_device.driver_ioctl_count = ARRAY_SIZE(driver_ioctls); in drm_shim_driver_init()
/third_party/mesa3d/src/intel/tools/
Dintel_noop_drm_shim.c498 shim_device.bus_type = DRM_BUS_PCI; in drm_shim_driver_init()
499 shim_device.driver_name = "i915"; in drm_shim_driver_init()
500 shim_device.driver_ioctls = driver_ioctls; in drm_shim_driver_init()
501 shim_device.driver_ioctl_count = ARRAY_SIZE(driver_ioctls); in drm_shim_driver_init()