Home
last modified time | relevance | path

Searched refs:dmabuf_fd (Results 1 – 18 of 18) sorted by relevance

/openbmc/linux/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c107 unsigned int heap_flags, int *dmabuf_fd) in dmabuf_heap_alloc_fdflags() argument
117 if (!dmabuf_fd) in dmabuf_heap_alloc_fdflags()
123 *dmabuf_fd = (int)data.fd; in dmabuf_heap_alloc_fdflags()
128 int *dmabuf_fd) in dmabuf_heap_alloc() argument
131 dmabuf_fd); in dmabuf_heap_alloc()
147 int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1; in test_alloc_and_import() local
157 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import()
168 dmabuf_fd, in test_alloc_and_import()
176 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_START); in test_alloc_and_import()
179 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_END); in test_alloc_and_import()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-virtio-dmabuf.c28 int i, dmabuf_fd; in test_add_remove_resources() local
32 dmabuf_fd = g_random_int_range(3, 500); in test_add_remove_resources()
34 g_assert(virtio_add_dmabuf(&uuid, dmabuf_fd)); in test_add_remove_resources()
35 g_assert_cmpint(virtio_lookup_dmabuf(&uuid), ==, dmabuf_fd); in test_add_remove_resources()
79 int i, dmabuf_fd = -2, alt_dmabuf = 2; in test_add_invalid_resource() local
84 g_assert_false(virtio_add_dmabuf(&uuid, dmabuf_fd)); in test_add_invalid_resource()
96 dmabuf_fd = g_random_int_range(3, 500); in test_add_invalid_resource()
97 g_assert(virtio_add_dmabuf(&uuid, dmabuf_fd)); in test_add_invalid_resource()
98 g_assert_cmpint(virtio_lookup_dmabuf(&uuid), ==, dmabuf_fd); in test_add_invalid_resource()
102 g_assert_cmpint(virtio_lookup_dmabuf(&uuid), ==, dmabuf_fd); in test_add_invalid_resource()
[all …]
/openbmc/qemu/hw/display/
H A Dvirtio-gpu-udmabuf.c62 res->dmabuf_fd = ioctl(udmabuf, UDMABUF_CREATE_LIST, list); in virtio_gpu_create_udmabuf()
63 if (res->dmabuf_fd < 0) { in virtio_gpu_create_udmabuf()
73 MAP_SHARED, res->dmabuf_fd, 0); in virtio_gpu_remap_udmabuf()
87 if (res->dmabuf_fd >= 0) { in virtio_gpu_destroy_udmabuf()
88 close(res->dmabuf_fd); in virtio_gpu_destroy_udmabuf()
89 res->dmabuf_fd = -1; in virtio_gpu_destroy_udmabuf()
134 res->dmabuf_fd = -1; in virtio_gpu_init_udmabuf()
140 if (res->dmabuf_fd < 0) { in virtio_gpu_init_udmabuf()
180 if (res->dmabuf_fd < 0) { in virtio_gpu_create_dmabuf()
188 0, res->dmabuf_fd, true, false); in virtio_gpu_create_dmabuf()
H A Dvirtio-gpu-virgl.c223 res->base.dmabuf_fd = -1; in virgl_cmd_create_resource_2d()
271 res->base.dmabuf_fd = -1; in virgl_cmd_create_resource_3d()
698 res->base.dmabuf_fd = -1; in virgl_cmd_resource_create_blob()
739 res->base.dmabuf_fd = info.fd; in virgl_cmd_resource_create_blob()
847 if (res->base.dmabuf_fd < 0) { in virgl_cmd_set_scanout_blob()
/openbmc/qemu/ui/
H A Ddmabuf.c36 uint64_t modifier, int32_t dmabuf_fd, in qemu_dmabuf_new() argument
51 dmabuf->fd = dmabuf_fd; in qemu_dmabuf_new()
/openbmc/qemu/include/hw/virtio/
H A Dvirtio-dmabuf.h44 bool virtio_add_dmabuf(QemuUUID *uuid, int dmabuf_fd);
H A Dvhost-backend.h233 int *dmabuf_fd);
H A Dvirtio-gpu.h59 int dmabuf_fd; member
/openbmc/linux/drivers/gpu/drm/i915/gvt/
H A Ddmabuf.c506 int dmabuf_fd; in intel_vgpu_get_dmabuf() local
539 dmabuf_fd = ret; in intel_vgpu_get_dmabuf()
554 dmabuf_fd, in intel_vgpu_get_dmabuf()
560 return dmabuf_fd; in intel_vgpu_get_dmabuf()
/openbmc/linux/include/uapi/linux/
H A Dkfd_ioctl.h493 __u32 dmabuf_fd; /* to KFD */ member
500 __u32 dmabuf_fd; /* to KFD */ member
506 __u32 dmabuf_fd; /* from KFD */ member
634 __u32 dmabuf_fd; member
/openbmc/qemu/include/ui/
H A Ddmabuf.h19 uint64_t modifier, int dmabuf_fd,
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c1537 r = amdgpu_amdkfd_get_dmabuf_info(dev->adev, args->dmabuf_fd, in kfd_ioctl_get_dmabuf_info()
1575 dmabuf = dma_buf_get(args->dmabuf_fd); in kfd_ioctl_import_dmabuf()
1663 args->dmabuf_fd = ret; in kfd_ioctl_export_dmabuf()
1954 &bo_bucket->dmabuf_fd); in criu_checkpoint_bos()
1958 bo_bucket->dmabuf_fd = KFD_INVALID_FD; in criu_checkpoint_bos()
2008 close_fd(bo_buckets[bo_index].dmabuf_fd); in criu_checkpoint_bos()
2414 &bo_bucket->dmabuf_fd); in criu_restore_bo()
2418 bo_bucket->dmabuf_fd = KFD_INVALID_FD; in criu_restore_bo()
2487 close_fd(bo_buckets[i].dmabuf_fd); in criu_restore_bos()
/openbmc/qemu/hw/virtio/
H A Dvhost-user.c1682 int *dmabuf_fd) in vhost_user_get_shared_object() argument
1710 *dmabuf_fd = qemu_chr_fe_get_msgfd(chr); in vhost_user_get_shared_object()
1711 if (*dmabuf_fd < 0) { in vhost_user_get_shared_object()
1728 int dmabuf_fd = -1; in vhost_user_backend_handle_shared_object_lookup() local
1736 dmabuf_fd = virtio_lookup_dmabuf(&uuid); in vhost_user_backend_handle_shared_object_lookup()
1745 int ret = vhost_user_get_shared_object(dev, uuid.data, &dmabuf_fd); in vhost_user_backend_handle_shared_object_lookup()
1756 if (dmabuf_fd != -1) { in vhost_user_backend_handle_shared_object_lookup()
1760 if (qemu_chr_fe_set_msgfds(chr, &dmabuf_fd, fd_num) < 0) { in vhost_user_backend_handle_shared_object_lookup()
/openbmc/linux/drivers/accel/habanalabs/common/
H A Dmemory.c1835 u64 total_size, int flags, int *dmabuf_fd) in export_dmabuf() argument
1869 *dmabuf_fd = fd; in export_dmabuf()
2015 int flags, int *dmabuf_fd) in export_dmabuf_from_addr() argument
2066 rc = export_dmabuf(ctx, hl_dmabuf, size, flags, dmabuf_fd); in export_dmabuf_from_addr()
2189 int rc, dmabuf_fd = -EBADF; in hl_mem_ioctl() local
2283 &dmabuf_fd); in hl_mem_ioctl()
2285 args->out.fd = dmabuf_fd; in hl_mem_ioctl()
/openbmc/qemu/subprojects/libvhost-user/
H A Dlibvhost-user.c1077 int dmabuf_fd = -1; in vu_get_shared_object() local
1079 dmabuf_fd = dev->iface->get_shared_object( in vu_get_shared_object()
1082 if (dmabuf_fd != -1) { in vu_get_shared_object()
1084 vmsg->fds[fd_num++] = dmabuf_fd; in vu_get_shared_object()
1498 int *dmabuf_fd) in vu_lookup_shared_object() argument
1535 *dmabuf_fd = msg_reply.fds[0]; in vu_lookup_shared_object()
1536 result = *dmabuf_fd > 0 && msg_reply.payload.u64 == 0; in vu_lookup_shared_object()
H A Dlibvhost-user.h574 int *dmabuf_fd);
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Ddevx.c2198 int dmabuf_fd; in devx_umem_get() local
2200 err = uverbs_get_raw_fd(&dmabuf_fd, attrs, in devx_umem_get()
2206 &dev->ib_dev, addr, size, dmabuf_fd, access_flags); in devx_umem_get()
/openbmc/openbmc/meta-raspberrypi/recipes-multimedia/rpidistro-ffmpeg/files/
H A D0001-ffmpeg-5.1.4-rpi_24.patch2633 + dma_fd = dmabuf_fd(avbuf->dmabuf[i]);
8005 +int dmabuf_fd(const struct dmabuf_h * const dh)
8254 +int dmabuf_fd(const struct dmabuf_h * const dh);
9359 + rd->drm.objects[0].fd = dmabuf_fd(qent_dst_dmabuf(rd->qe_dst, 0));
10323 + planes[i].m.fd = dmabuf_fd(be->dh[i]);
10337 + buffer.m.fd = dmabuf_fd(be->dh[0]);
10531 + return dup(dmabuf_fd(qent_dst_dmabuf(be_dst, plane)));