Home
last modified time | relevance | path

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

/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()
109 int i, dmabuf_fd; in test_free_resources() local
113 dmabuf_fd = g_random_int_range(3, 500); in test_free_resources()
[all …]
/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()
/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()
/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.h61 int dmabuf_fd; member
/qemu/include/ui/
H A Ddmabuf.h19 uint64_t modifier, int dmabuf_fd,
/qemu/hw/virtio/
H A Dvhost-user.c1660 int *dmabuf_fd) in vhost_user_get_shared_object() argument
1688 *dmabuf_fd = qemu_chr_fe_get_msgfd(chr); in vhost_user_get_shared_object()
1689 if (*dmabuf_fd < 0) { in vhost_user_get_shared_object()
1706 int dmabuf_fd = -1; in vhost_user_backend_handle_shared_object_lookup() local
1714 dmabuf_fd = virtio_lookup_dmabuf(&uuid); in vhost_user_backend_handle_shared_object_lookup()
1723 int ret = vhost_user_get_shared_object(dev, uuid.data, &dmabuf_fd); in vhost_user_backend_handle_shared_object_lookup()
1734 if (dmabuf_fd != -1) { in vhost_user_backend_handle_shared_object_lookup()
1738 if (qemu_chr_fe_set_msgfds(chr, &dmabuf_fd, fd_num) < 0) { in vhost_user_backend_handle_shared_object_lookup()
/qemu/subprojects/libvhost-user/
H A Dlibvhost-user.c1071 int dmabuf_fd = -1; in vu_get_shared_object() local
1073 dmabuf_fd = dev->iface->get_shared_object( in vu_get_shared_object()
1076 if (dmabuf_fd != -1) { in vu_get_shared_object()
1078 vmsg->fds[fd_num++] = dmabuf_fd; in vu_get_shared_object()
1492 int *dmabuf_fd) in vu_lookup_shared_object() argument
1529 *dmabuf_fd = msg_reply.fds[0]; in vu_lookup_shared_object()
1530 result = *dmabuf_fd > 0 && msg_reply.payload.u64 == 0; in vu_lookup_shared_object()
H A Dlibvhost-user.h574 int *dmabuf_fd);