/openbmc/linux/tools/testing/selftests/dmabuf-heaps/ |
H A D | dmabuf-heap.c | 107 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 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() 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 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()
|
H A D | virtio-gpu-virgl.c | 223 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 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()
|
/openbmc/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 | 59 int dmabuf_fd; member
|
/openbmc/linux/drivers/gpu/drm/i915/gvt/ |
H A D | dmabuf.c | 506 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 D | kfd_ioctl.h | 493 __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 D | dmabuf.h | 19 uint64_t modifier, int dmabuf_fd,
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_chardev.c | 1537 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 D | vhost-user.c | 1682 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 D | memory.c | 1835 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 D | libvhost-user.c | 1077 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 D | libvhost-user.h | 574 int *dmabuf_fd);
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | devx.c | 2198 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 D | 0001-ffmpeg-5.1.4-rpi_24.patch | 2633 + 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)));
|