Home
last modified time | relevance | path

Searched refs:dmabuf (Results 1 – 25 of 68) sorted by relevance

123

/external/igt-gpu-tools/tests/
Dvgem_basic.c136 int dmabuf; in test_dmabuf_export() local
146 dmabuf = prime_handle_to_fd(fd, bo.handle); in test_dmabuf_export()
149 handle = prime_fd_to_handle(other, dmabuf); in test_dmabuf_export()
150 close(dmabuf); in test_dmabuf_export()
192 int dmabuf; in test_dmabuf_fence() local
202 dmabuf = prime_handle_to_fd(fd, bo.handle); in test_dmabuf_fence()
205 igt_assert(!prime_busy(dmabuf, false)); in test_dmabuf_fence()
206 igt_assert(prime_busy(dmabuf, true)); in test_dmabuf_fence()
209 igt_assert(!prime_busy(dmabuf, false)); in test_dmabuf_fence()
210 igt_assert(!prime_busy(dmabuf, true)); in test_dmabuf_fence()
[all …]
Dprime_vgem.c38 int dmabuf, i; in test_read() local
45 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_read()
46 handle = prime_fd_to_handle(i915, dmabuf); in test_read()
47 close(dmabuf); in test_read()
69 int dmabuf, i; in test_fence_read() local
80 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_fence_read()
81 handle = prime_fd_to_handle(i915, dmabuf); in test_fence_read()
82 close(dmabuf); in test_fence_read()
126 int dmabuf, i; in test_fence_mmap() local
137 dmabuf = prime_handle_to_fd(vgem, scratch.handle); in test_fence_mmap()
[all …]
/external/v4l2_codec2/components/include/v4l2_codec2/components/
DBitstreamBuffer.h16 ConstBitstreamBuffer(const int32_t id, C2ConstLinearBlock dmabuf, const size_t offset, in ConstBitstreamBuffer()
18 : id(id), dmabuf(std::move(dmabuf)), offset(offset), size(size) {} in ConstBitstreamBuffer()
22 C2ConstLinearBlock dmabuf; member
29 BitstreamBuffer(std::shared_ptr<C2LinearBlock> dmabuf, const size_t offset, const size_t size) in BitstreamBuffer()
30 : dmabuf(std::move(dmabuf)), offset(offset), size(size) {} in BitstreamBuffer()
33 std::shared_ptr<C2LinearBlock> dmabuf; member
/external/igt-gpu-tools/tests/amdgpu/
Damd_prime.c130 int dmabuf; in plug() local
139 dmabuf = prime_handle_to_fd(c->device, bo.handle); in plug()
140 c->handle = prime_fd_to_handle(fd, dmabuf); in plug()
141 close(dmabuf); in plug()
148 int dmabuf; in amd_plug() local
157 dmabuf = prime_handle_to_fd(c->device, bo.handle); in amd_plug()
159 dmabuf, &import); in amd_plug()
160 close(dmabuf); in amd_plug()
225 int i, r, dmabuf; in i915_to_amd() local
233 dmabuf = prime_handle_to_fd(i915, obj[1].handle); in i915_to_amd()
[all …]
/external/virglrenderer/src/
Dvrend_video.c156 const struct virgl_video_dma_buf *dmabuf) in sync_dmabuf_to_video_buffer() argument
158 if (!(dmabuf->flags & VIRGL_VIDEO_DMABUF_READ_ONLY)) { in sync_dmabuf_to_video_buffer()
163 for (unsigned i = 0; i < dmabuf->num_planes && i < buf->num_planes; i++) { in sync_dmabuf_to_video_buffer()
176 EGL_LINUX_DRM_FOURCC_EXT, dmabuf->planes[i].drm_format, in sync_dmabuf_to_video_buffer()
177 EGL_WIDTH, dmabuf->width / (i + 1), in sync_dmabuf_to_video_buffer()
178 EGL_HEIGHT, dmabuf->height / (i + 1), in sync_dmabuf_to_video_buffer()
179 EGL_DMA_BUF_PLANE0_FD_EXT, dmabuf->planes[i].fd, in sync_dmabuf_to_video_buffer()
180 EGL_DMA_BUF_PLANE0_OFFSET_EXT, dmabuf->planes[i].offset, in sync_dmabuf_to_video_buffer()
181 EGL_DMA_BUF_PLANE0_PITCH_EXT, dmabuf->planes[i].pitch, in sync_dmabuf_to_video_buffer()
217 const struct virgl_video_dma_buf *dmabuf) in sync_video_buffer_to_dmabuf() argument
[all …]
Dvirgl_video.c96 struct virgl_video_dma_buf *dmabuf; member
318 static void fill_video_dma_buf(struct virgl_video_dma_buf *dmabuf, in fill_video_dma_buf() argument
352 dmabuf->drm_format = drm_format_from_va_fourcc(desc->fourcc); in fill_video_dma_buf()
353 dmabuf->width = desc->width; in fill_video_dma_buf()
354 dmabuf->height = desc->height; in fill_video_dma_buf()
356 for (i = 0, dmabuf->num_planes = 0; i < desc->num_layers; i++) { in fill_video_dma_buf()
358 dmabuf->num_planes < ARRAY_SIZE(dmabuf->planes); j++) { in fill_video_dma_buf()
361 plane = &dmabuf->planes[dmabuf->num_planes++]; in fill_video_dma_buf()
376 struct virgl_video_dma_buf *dmabuf; in export_video_dma_buf() local
389 dmabuf = calloc(1, sizeof(*dmabuf)); in export_video_dma_buf()
[all …]
Dvirgl_video.h111 const struct virgl_video_dma_buf *dmabuf);
115 const struct virgl_video_dma_buf *dmabuf);
/external/mesa3d/src/vulkan/wsi/
Dwsi_common_wayland.c77 struct wsi_wl_display_dmabuf dmabuf; member
270 dmabuf_handle_format(void *data, struct zwp_linux_dmabuf_v1 *dmabuf, in dmabuf_handle_format() argument
278 dmabuf_handle_modifier(void *data, struct zwp_linux_dmabuf_v1 *dmabuf, in dmabuf_handle_modifier() argument
286 if (display->dmabuf.formats.element_size == 0) in dmabuf_handle_modifier()
295 wsi_wl_display_add_wl_format(display, &display->dmabuf.formats, format); in dmabuf_handle_modifier()
296 mod = u_vector_add(&display->dmabuf.modifiers.argb8888); in dmabuf_handle_modifier()
299 wsi_wl_display_add_wl_format(display, &display->dmabuf.formats, format); in dmabuf_handle_modifier()
300 mod = u_vector_add(&display->dmabuf.modifiers.xrgb8888); in dmabuf_handle_modifier()
333 display->dmabuf.wl_dmabuf = in registry_handle_global()
335 zwp_linux_dmabuf_v1_add_listener(display->dmabuf.wl_dmabuf, in registry_handle_global()
[all …]
/external/crosvm/gpu_display/src/
Ddisplay_wl.c805 struct dwl_dmabuf *dmabuf = (struct dwl_dmabuf *)data; in linux_buffer_created() local
806 dmabuf->buffer = buffer; in linux_buffer_created()
821 struct dwl_dmabuf *dmabuf = (struct dwl_dmabuf *)data; in dmabuf_buffer_release() local
824 dmabuf->in_use = false; in dmabuf_buffer_release()
831 struct dwl_dmabuf *dmabuf) in dwl_context_add_dmabuf() argument
836 self->dmabufs[i] = dmabuf; in dwl_context_add_dmabuf()
877 struct dwl_dmabuf *dmabuf = calloc(1, sizeof(struct dwl_dmabuf)); in dwl_context_dmabuf_new() local
878 if (!dmabuf) { in dwl_context_dmabuf_new()
882 dmabuf->width = width; in dwl_context_dmabuf_new()
883 dmabuf->height = height; in dwl_context_dmabuf_new()
[all …]
Dgpu_display_wl.rs397 let dmabuf = DwlDmabuf(unsafe { in import_memory() localVariable
411 if dmabuf.0.is_null() { in import_memory()
415 Ok(Box::new(dmabuf)) in import_memory()
/external/crosvm/rutabaga_gfx/src/rutabaga_gralloc/
Dminigbm.rs154 let dmabuf = gbm_buffer.export()?.into(); in allocate_memory() localVariable
156 os_handle: dmabuf, in allocate_memory()
176 let dmabuf = gbm_buffer.export()?.into(); in allocate_memory() localVariable
178 os_handle: dmabuf, in allocate_memory()
239 let dmabuf = unsafe { File::from_raw_descriptor(fd) }; in export() localVariable
240 Ok(dmabuf) in export()
/external/igt-gpu-tools/tests/i915/
Dgem_concurrent_all.c346 struct dmabuf { struct
356 struct dmabuf *dmabuf; in dmabuf_create_bo() local
372 dmabuf = malloc(sizeof(*dmabuf)); in dmabuf_create_bo()
373 igt_assert(dmabuf); in dmabuf_create_bo()
375 dmabuf->fd = args.fd; in dmabuf_create_bo()
376 dmabuf->map = mmap(NULL, size, in dmabuf_create_bo()
378 dmabuf->fd, 0); in dmabuf_create_bo()
379 igt_assert(dmabuf->map != (void *)-1); in dmabuf_create_bo()
381 bo->virtual = dmabuf; in dmabuf_create_bo()
389 struct dmabuf *dmabuf = bo->virtual; in dmabuf_set_bo() local
[all …]
/external/mesa3d/src/egl/wayland/wayland-drm/
Dmeson.build52 # linux-dmabuf isn't part of wayland-drm, but this happens to be the only
61 'linux-dmabuf-unstable-v1-protocol.c',
63 output : 'linux-dmabuf-unstable-v1-protocol.c',
68 'linux-dmabuf-unstable-v1-client-protocol.h',
70 output : 'linux-dmabuf-unstable-v1-client-protocol.h',
/external/wayland-protocols/chromium.org/
DREADME.chromium25 …wayland-scanner code < src/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml > protocol/linux-dma…
26 …scanner server-header < src/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml > include/protocol/…
27 …scanner client-header < src/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml > include/protocol/…
/external/mesa3d/src/vulkan/
DMakefile.sources15 wsi/linux-dmabuf-unstable-v1-protocol.c \
16 wsi/linux-dmabuf-unstable-v1-client-protocol.h
/external/igt-gpu-tools/benchmarks/ezbench.d/
Dgem_busy.test22 name="gem:busy:$label:$ring:dmabuf"
26 name="gem:busy:$label:$ring:dmabuf:forked"
/external/wayland-protocols/freedesktop.org/
DMakefile.am6 unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml \
/external/igt-gpu-tools/lib/
Digt_dummyload.c479 int dmabuf; in plug_vgem_handle() local
490 dmabuf = prime_handle_to_fd(cork->vgem.device, bo.handle); in plug_vgem_handle()
491 handle = prime_fd_to_handle(fd, dmabuf); in plug_vgem_handle()
492 close(dmabuf); in plug_vgem_handle()
/external/igt-gpu-tools/benchmarks/
Dgem_busy.c176 int dmabuf; in loop() local
233 dmabuf = prime_handle_to_fd(fd, obj[0].handle); in loop()
298 struct pollfd pfd = { .fd = dmabuf, .events = POLLOUT }; in loop()
/external/linux-kselftest/tools/testing/selftests/dmabuf-heaps/
DMakefile4 TEST_GEN_PROGS = dmabuf-heap
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/nvmap/nvmap_dmabuf_kunmap/
Dformat11 print fmt: "dmabuf=%p", REC->dbuf
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/nvmap/nvmap_dmabuf_mmap/
Dformat11 print fmt: "dmabuf=%p", REC->dbuf
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/nvmap/nvmap_dmabuf_vunmap/
Dformat11 print fmt: "dmabuf=%p", REC->dbuf
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/nvmap/nvmap_dmabuf_kmap/
Dformat11 print fmt: "dmabuf=%p", REC->dbuf
/external/perfetto/src/traced/probes/ftrace/test/data/android_flounder_lte_LRX16F_3.10.40/events/nvmap/nvmap_dmabuf_vmap/
Dformat11 print fmt: "dmabuf=%p", REC->dbuf

123