Home
last modified time | relevance | path

Searched refs:drm (Results 1 – 25 of 216) sorted by relevance

123456789

/third_party/mesa3d/src/egl/wayland/wayland-drm/
Dwayland-drm.c46 struct wl_drm *drm = buffer->drm; in destroy_buffer() local
48 drm->callbacks.release_buffer(drm->user_data, buffer); in destroy_buffer()
67 struct wl_drm *drm = wl_resource_get_user_data(resource); in create_buffer() local
76 buffer->drm = drm; in create_buffer()
87 drm->callbacks.reference_buffer(drm->user_data, name, fd, buffer); in create_buffer()
104 (void (**)(void)) &drm->buffer_interface, in create_buffer()
181 struct wl_drm *drm = wl_resource_get_user_data(resource); in drm_authenticate() local
183 if (!drm->callbacks.authenticate || in drm_authenticate()
184 drm->callbacks.authenticate(drm->user_data, id) < 0) in drm_authenticate()
202 struct wl_drm *drm = data; in bind_drm() local
[all …]
Dmeson.build24 'wayland-drm-protocol.c',
25 input : 'wayland-drm.xml',
26 output : 'wayland-drm-protocol.c',
31 'wayland-drm-client-protocol.h',
32 input : 'wayland-drm.xml',
33 output : 'wayland-drm-client-protocol.h',
38 'wayland-drm-server-protocol.h',
39 input : 'wayland-drm.xml',
40 output : 'wayland-drm-server-protocol.h',
46 ['wayland-drm.c', wayland_drm_protocol_c, wayland_drm_server_protocol_h],
[all …]
Dwayland-drm.h37 struct wl_drm *drm; member
49 wayland_drm_buffer_get(struct wl_drm *drm, struct wl_resource *resource) in wayland_drm_buffer_get() argument
55 &drm->buffer_interface)) in wayland_drm_buffer_get()
67 wayland_drm_uninit(struct wl_drm *drm);
/third_party/libdrm/tegra/
Dtegra.c40 struct drm_tegra *drm = bo->drm; in drm_tegra_bo_free() local
45 drmCloseBufferHandle(drm->fd, bo->handle); in drm_tegra_bo_free()
52 struct drm_tegra *drm; in drm_tegra_wrap() local
57 drm = calloc(1, sizeof(*drm)); in drm_tegra_wrap()
58 if (!drm) in drm_tegra_wrap()
61 drm->close = close; in drm_tegra_wrap()
62 drm->fd = fd; in drm_tegra_wrap()
64 *drmp = drm; in drm_tegra_wrap()
89 drm_public void drm_tegra_close(struct drm_tegra *drm) in drm_tegra_close() argument
91 if (!drm) in drm_tegra_close()
[all …]
Dchannel.c37 drm_tegra_channel_open(struct drm_tegra *drm, in drm_tegra_channel_open() argument
71 channel->drm = drm; in drm_tegra_channel_open()
76 err = ioctl(drm->fd, DRM_IOCTL_TEGRA_CHANNEL_OPEN, &args); in drm_tegra_channel_open()
113 struct drm_tegra *drm; in drm_tegra_channel_close() local
119 drm = channel->drm; in drm_tegra_channel_close()
124 err = ioctl(drm->fd, DRM_IOCTL_TEGRA_CHANNEL_CLOSE, &args); in drm_tegra_channel_close()
144 struct drm_tegra *drm = channel->drm; in drm_tegra_channel_map() local
149 if (!drm || !bo || !mapp) in drm_tegra_channel_map()
161 err = ioctl(drm->fd, DRM_IOCTL_TEGRA_CHANNEL_MAP, &args); in drm_tegra_channel_map()
178 struct drm_tegra *drm = channel->drm; in drm_tegra_channel_unmap() local
[all …]
Dsyncpt.c35 drm_tegra_syncpoint_new(struct drm_tegra *drm, in drm_tegra_syncpoint_new() argument
48 err = ioctl(drm->fd, DRM_IOCTL_TEGRA_SYNCPOINT_ALLOCATE, &args); in drm_tegra_syncpoint_new()
54 syncpt->drm = drm; in drm_tegra_syncpoint_new()
66 struct drm_tegra *drm = syncpt->drm; in drm_tegra_syncpoint_free() local
75 err = ioctl(drm->fd, DRM_IOCTL_TEGRA_SYNCPOINT_FREE, &args); in drm_tegra_syncpoint_free()
88 struct drm_tegra *drm = fence->drm; in drm_tegra_fence_wait() local
96 err = ioctl(drm->fd, DRM_IOCTL_TEGRA_SYNCPOINT_WAIT, &args); in drm_tegra_fence_wait()
Dtegra.h44 void drm_tegra_close(struct drm_tegra *drm);
46 int drm_tegra_bo_new(struct drm_tegra *drm, uint32_t flags, uint32_t size,
48 int drm_tegra_bo_wrap(struct drm_tegra *drm, uint32_t handle, uint32_t flags,
57 int drm_tegra_bo_open(struct drm_tegra *drm, uint32_t name, uint32_t flags,
61 int drm_tegra_bo_import(struct drm_tegra *drm, int fd,
79 struct drm_tegra *drm; member
84 int drm_tegra_channel_open(struct drm_tegra *drm,
122 int drm_tegra_syncpoint_new(struct drm_tegra *drm,
Djob.c135 struct drm_tegra *drm = channel->drm; in drm_tegra_job_submit() local
151 err = ioctl(drm->fd, DRM_IOCTL_TEGRA_CHANNEL_SUBMIT, &args); in drm_tegra_job_submit()
158 fence->drm = drm; in drm_tegra_job_submit()
170 struct drm_tegra *drm = channel->drm; in drm_tegra_job_wait() local
182 err = ioctl(drm->fd, DRM_IOCTL_TEGRA_SYNCPOINT_WAIT, &args); in drm_tegra_job_wait()
/third_party/libdrm/
DMakefile.sources21 include/drm/drm.h \
22 include/drm/drm_fourcc.h \
23 include/drm/drm_mode.h \
24 include/drm/drm_sarea.h \
25 include/drm/i915_drm.h \
26 include/drm/mach64_drm.h \
27 include/drm/mga_drm.h \
28 include/drm/msm_drm.h \
29 include/drm/nouveau_drm.h \
30 include/drm/qxl_drm.h \
[all …]
Dmeson.build60 input : 'include/drm/drm_fourcc.h',
290 inc_drm = include_directories('include/drm')
307 'drm',
338 'include/drm/drm.h', 'include/drm/drm_fourcc.h', 'include/drm/drm_mode.h',
339 'include/drm/drm_sarea.h', 'include/drm/i915_drm.h',
340 'include/drm/mach64_drm.h', 'include/drm/mga_drm.h',
341 'include/drm/msm_drm.h', 'include/drm/nouveau_drm.h',
342 'include/drm/qxl_drm.h', 'include/drm/r128_drm.h',
343 'include/drm/radeon_drm.h', 'include/drm/amdgpu_drm.h',
344 'include/drm/savage_drm.h', 'include/drm/sis_drm.h',
[all …]
DAndroid.mk46 $(LOCAL_PATH)/include/drm \
50 $(LOCAL_PATH)/include/drm
62 $(LOCAL_PATH)/include/drm \
69 $(LOCAL_PATH)/include/drm
/third_party/libdrm/nouveau/
Dnouveau.c82 struct nouveau_drm *drm = nouveau_drm(obj); in nouveau_object_ioctl() local
91 if (obj != &drm->client) in nouveau_object_ioctl()
104 return drmCommandWriteRead(drm->fd, DRM_NOUVEAU_NVIF, args, argc); in nouveau_object_ioctl()
111 struct nouveau_drm *drm = nouveau_drm(obj); in nouveau_object_mthd() local
120 if (!drm->nvif) in nouveau_object_mthd()
153 struct nouveau_drm *drm = nouveau_drm(obj); in nouveau_object_sclass_get() local
162 if (!drm->nvif) in nouveau_object_sclass_get()
251 struct nouveau_drm *drm = nouveau_drm(parent); in nouveau_object_init() local
266 if (!abi16_object(obj, &func) && drm->nvif) { in nouveau_object_init()
343 struct nouveau_drm *drm; in nouveau_drm_new() local
[all …]
Dabi16.c37 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_chan_nv04() local
45 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_CHANNEL_ALLOC, in abi16_chan_nv04()
61 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_chan_nvc0() local
66 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_CHANNEL_ALLOC, in abi16_chan_nvc0()
82 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_chan_nve0() local
92 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_CHANNEL_ALLOC, in abi16_chan_nve0()
108 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_engobj() local
137 ret = drmCommandWrite(drm->fd, DRM_NOUVEAU_GROBJ_ALLOC, in abi16_engobj()
149 struct nouveau_drm *drm = nouveau_drm(obj); in abi16_ntfy() local
158 ret = drmCommandWriteRead(drm->fd, DRM_NOUVEAU_NOTIFIEROBJ_ALLOC, in abi16_ntfy()
[all …]
/third_party/libdrm/tests/tegra/
Dvic.c83 err = drm_tegra_bo_new(vic->drm, 0, image->size, &image->bo); in vic_image_new()
134 int vic30_new(struct drm_tegra *drm, struct drm_tegra_channel *channel,
138 int vic40_new(struct drm_tegra *drm, struct drm_tegra_channel *channel,
142 int vic41_new(struct drm_tegra *drm, struct drm_tegra_channel *channel,
146 int vic42_new(struct drm_tegra *drm, struct drm_tegra_channel *channel,
149 int vic_new(struct drm_tegra *drm, struct drm_tegra_channel *channel, in vic_new() argument
158 return vic30_new(drm, channel, vicp); in vic_new()
161 return vic40_new(drm, channel, vicp); in vic_new()
164 return vic41_new(drm, channel, vicp); in vic_new()
167 return vic42_new(drm, channel, vicp); in vic_new()
Dsyncpt-wait.c33 static int channel_open(struct drm_tegra *drm, in channel_open() argument
47 err = drm_tegra_channel_open(drm, classes[i].class, channel); in channel_open()
67 struct drm_tegra *drm; in main() local
80 err = drm_tegra_new(fd, &drm); in main()
87 err = drm_tegra_syncpoint_new(drm, &syncpt); in main()
90 drm_tegra_close(drm); in main()
95 err = channel_open(drm, &channel); in main()
147 drm_tegra_close(drm); in main()
Dsyncpt-timeout.c33 static int channel_open(struct drm_tegra *drm, in channel_open() argument
47 err = drm_tegra_channel_open(drm, classes[i].class, channel); in channel_open()
67 struct drm_tegra *drm; in main() local
80 err = drm_tegra_new(fd, &drm); in main()
87 err = drm_tegra_syncpoint_new(drm, &syncpt); in main()
90 drm_tegra_close(drm); in main()
95 err = channel_open(drm, &channel); in main()
159 drm_tegra_close(drm); in main()
Dgr2d-fill.c53 struct drm_tegra *drm; in main() local
71 err = drm_tegra_new(fd, &drm); in main()
78 err = drm_tegra_gr2d_open(drm, &gr2d); in main()
88 err = drm_tegra_bo_new(drm, 0, size, &bo); in main()
141 drm_tegra_close(drm); in main()
Dvic-clear.c48 struct drm_tegra *drm; in main() local
64 err = drm_tegra_new(fd, &drm); in main()
71 err = drm_tegra_channel_open(drm, DRM_TEGRA_VIC, &channel); in main()
80 err = vic_new(drm, channel, &vic); in main()
169 drm_tegra_close(drm); in main()
Dmeson.build24 'drm-test',
25 [files('drm-test.c', 'drm-test.h'), config_file ],
31 'drm-test-tegra',
33 'drm-test-tegra.c',
34 'drm-test-tegra.h',
Ddrm-test-tegra.c33 int drm_tegra_gr2d_open(struct drm_tegra *drm, struct drm_tegra_gr2d **gr2dp) in drm_tegra_gr2d_open() argument
42 gr2d->drm = drm; in drm_tegra_gr2d_open()
44 err = drm_tegra_channel_open(drm, DRM_TEGRA_GR2D, &gr2d->channel); in drm_tegra_gr2d_open()
/third_party/mesa3d/src/gallium/
Dmeson.build62 subdir('winsys/radeon/drm')
75 subdir('winsys/amdgpu/drm')
81 subdir('winsys/nouveau/drm')
87 subdir('winsys/freedreno/drm')
93 subdir('winsys/vc4/drm')
99 subdir('winsys/panfrost/drm')
105 subdir('winsys/etnaviv/drm')
111 subdir('winsys/kmsro/drm')
116 subdir('winsys/v3d/drm')
122 subdir('winsys/tegra/drm')
[all …]
/third_party/mesa3d/include/drm-uapi/
DREADME7 in the drm-next tree.
21 …Merge tag 'drm-intel-gt-next-2021-06-10' of git://anongit.freedesktop.org/drm/drm-intel into drm-n…
/third_party/mesa3d/src/gallium/winsys/nouveau/drm/
Dnouveau_drm_winsys.c36 _mesa_hash_table_remove_key(fd_tab, intptr_to_pointer(screen->drm->fd)); in nouveau_drm_screen_unref()
44 struct nouveau_drm *drm = NULL; in nouveau_drm_screen_create() local
77 ret = nouveau_drm_new(dupfd, &drm); in nouveau_drm_screen_create()
81 ret = nouveau_device_new(&drm->client, NV_DEVICE, in nouveau_drm_screen_create()
136 nouveau_drm_del(&drm); in nouveau_drm_screen_create()
/third_party/mesa3d/src/gallium/targets/d3dadapter9/
Ddrm.c110 struct d3dadapter9drm_context *drm = (struct d3dadapter9drm_context *)ctx; in drm_destroy() local
118 if (drm->swdev && drm->swdev != drm->dev) in drm_destroy()
119 pipe_loader_release(&drm->swdev, 1); in drm_destroy()
120 if (drm->dev) in drm_destroy()
121 pipe_loader_release(&drm->dev, 1); in drm_destroy()
123 close(drm->fd); in drm_destroy()
/third_party/mesa3d/docs/drivers/
Dpanfrost.rst59 drm-shim
62 Panfrost implements ``drm-shim``, stubbing out the Panfrost kernel interface.
73 To build Mesa with Panfrost drm-shim, configure meson with
74 ``-Dgallium-drivers=panfrost`` and ``-Dtools=drm-shim``. See the above
75 building section for a full invocation. The drm-shim binary will be built to
76 ``build/src/panfrost/drm-shim/libpanfrost_noop_drm_shim.so``.
78 To use, set the ``LD_PRELOAD`` environment variable to the drm-shim binary. It
82 By default, drm-shim mocks a Mali-G52 system. To select a specific Mali GPU,
101 …shaders LIBGL_DRIVERS_PATH=~/lib/dri/ LD_PRELOAD=~/mesa/build/src/panfrost/drm-shim/libpanfrost_no…
105 …shaders LIBGL_DRIVERS_PATH=~/lib/dri/ LD_PRELOAD=~/mesa/build/src/panfrost/drm-shim/libpanfrost_no…
[all …]

123456789