Home
last modified time | relevance | path

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

/linux-6.15/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c117 if (!dmabuf_fd) in dmabuf_heap_alloc_fdflags()
131 dmabuf_fd); in dmabuf_heap_alloc()
204 close(dmabuf_fd); in test_alloc_and_import()
302 if (!dmabuf_fd) in dmabuf_heap_alloc_older()
338 if (!dmabuf_fd) in dmabuf_heap_alloc_newer()
357 if (dmabuf_fd >= 0) in test_alloc_compat()
358 close(dmabuf_fd); in test_alloc_compat()
363 if (dmabuf_fd >= 0) in test_alloc_compat()
364 close(dmabuf_fd); in test_alloc_compat()
388 if (dmabuf_fd >= 0) in test_alloc_errors()
[all …]
/linux-6.15/net/core/
H A Ddevmem.h67 net_devmem_bind_dmabuf(struct net_device *dev, unsigned int dmabuf_fd,
131 net_devmem_bind_dmabuf(struct net_device *dev, unsigned int dmabuf_fd, in net_devmem_bind_dmabuf() argument
H A Ddevmem.c169 net_devmem_bind_dmabuf(struct net_device *dev, unsigned int dmabuf_fd, in net_devmem_bind_dmabuf() argument
180 dmabuf = dma_buf_get(dmabuf_fd); in net_devmem_bind_dmabuf()
H A Dnetdev-genl.c863 u32 ifindex, dmabuf_fd, rxq_idx; in netdev_nl_bind_rx_doit() local
877 dmabuf_fd = nla_get_u32(info->attrs[NETDEV_A_DMABUF_FD]); in netdev_nl_bind_rx_doit()
911 binding = net_devmem_bind_dmabuf(netdev, dmabuf_fd, info->extack); in netdev_nl_bind_rx_doit()
/linux-6.15/drivers/gpu/drm/i915/gvt/
H A Ddmabuf.c507 int dmabuf_fd; in intel_vgpu_get_dmabuf() local
540 dmabuf_fd = ret; in intel_vgpu_get_dmabuf()
555 dmabuf_fd, in intel_vgpu_get_dmabuf()
561 return dmabuf_fd; in intel_vgpu_get_dmabuf()
/linux-6.15/include/uapi/linux/
H A Dkfd_ioctl.h507 __u32 dmabuf_fd; /* to KFD */ member
514 __u32 dmabuf_fd; /* to KFD */ member
520 __u32 dmabuf_fd; /* from KFD */ member
723 __u32 dmabuf_fd; member
/linux-6.15/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c1532 r = amdgpu_amdkfd_get_dmabuf_info(dev->adev, args->dmabuf_fd, in kfd_ioctl_get_dmabuf_info()
1582 r = amdgpu_amdkfd_gpuvm_import_dmabuf_fd(pdd->dev->adev, args->dmabuf_fd, in kfd_ioctl_import_dmabuf()
1651 args->dmabuf_fd = ret; in kfd_ioctl_export_dmabuf()
1888 put_unused_fd(bo_buckets[count].dmabuf_fd); in commit_files()
1890 fd_install(bo_buckets[count].dmabuf_fd, file); in commit_files()
1965 &bo_bucket->dmabuf_fd, &files[bo_index]); in criu_checkpoint_bos()
1969 bo_bucket->dmabuf_fd = KFD_INVALID_FD; in criu_checkpoint_bos()
2422 &bo_bucket->dmabuf_fd, file); in criu_restore_bo()
2426 bo_bucket->dmabuf_fd = KFD_INVALID_FD; in criu_restore_bo()
/linux-6.15/tools/testing/selftests/drivers/net/hw/
H A Dncdevmem.c351 static int bind_rx_queue(unsigned int ifindex, unsigned int dmabuf_fd, in bind_rx_queue() argument
367 netdev_bind_rx_req_set_fd(req, dmabuf_fd); in bind_rx_queue()
/linux-6.15/drivers/accel/habanalabs/common/
H A Dmemory.c1858 u64 total_size, int flags, int *dmabuf_fd) in export_dmabuf() argument
1892 *dmabuf_fd = fd; in export_dmabuf()
2035 int flags, int *dmabuf_fd) in export_dmabuf_from_addr() argument
2083 rc = export_dmabuf(ctx, hl_dmabuf, size, flags, dmabuf_fd); in export_dmabuf_from_addr()
2207 int rc, dmabuf_fd = -EBADF; in hl_mem_ioctl() local
2301 &dmabuf_fd); in hl_mem_ioctl()
2303 args->out.fd = dmabuf_fd; in hl_mem_ioctl()
/linux-6.15/drivers/iio/
H A Dindustrialio-buffer.c1763 int dmabuf_fd, ret = -EPERM; in iio_buffer_detach_dmabuf() local
1765 if (copy_from_user(&dmabuf_fd, user_req, sizeof(dmabuf_fd))) in iio_buffer_detach_dmabuf()
1768 dmabuf = dma_buf_get(dmabuf_fd); in iio_buffer_detach_dmabuf()
/linux-6.15/Documentation/networking/
H A Ddevmem.rst118 netdev_bind_rx_req_set_dmabuf_fd(req, dmabuf_fd);
/linux-6.15/drivers/infiniband/hw/mlx5/
H A Ddevx.c2242 int dmabuf_fd; in devx_umem_get() local
2244 err = uverbs_get_raw_fd(&dmabuf_fd, attrs, in devx_umem_get()
2250 &dev->ib_dev, addr, size, dmabuf_fd, access_flags); in devx_umem_get()