Searched refs:dmabuf_fd (Results 1 – 10 of 10) sorted by relevance
/qemu/tests/unit/ |
H A D | test-virtio-dmabuf.c | 28 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 D | virtio-gpu-udmabuf.c | 62 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 D | dmabuf.c | 36 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 D | virtio-dmabuf.h | 44 bool virtio_add_dmabuf(QemuUUID *uuid, int dmabuf_fd);
|
H A D | vhost-backend.h | 233 int *dmabuf_fd);
|
H A D | virtio-gpu.h | 61 int dmabuf_fd; member
|
/qemu/include/ui/ |
H A D | dmabuf.h | 19 uint64_t modifier, int dmabuf_fd,
|
/qemu/hw/virtio/ |
H A D | vhost-user.c | 1660 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 D | libvhost-user.c | 1071 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 D | libvhost-user.h | 574 int *dmabuf_fd);
|