| /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 155 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import() 162 p = mmap(NULL, ONE_MEG, PROT_READ | PROT_WRITE, MAP_SHARED, dmabuf_fd, 0); in test_alloc_and_import() 168 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_START); in test_alloc_and_import() 171 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_END); in test_alloc_and_import() [all …]
|
| /linux/drivers/gpu/drm/i915/gvt/ |
| H A D | dmabuf.c | 507 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/tools/testing/selftests/iommu/ |
| H A D | iommufd_utils.h | 579 static int _test_cmd_revoke_dmabuf(int fd, int dmabuf_fd, bool revoked) in _test_cmd_revoke_dmabuf() argument 584 .dmabuf_revoke = { .dmabuf_fd = dmabuf_fd, .revoked = revoked }, in _test_cmd_revoke_dmabuf() 593 #define test_cmd_revoke_dmabuf(dmabuf_fd, revoke) \ argument 594 ASSERT_EQ(0, _test_cmd_revoke_dmabuf(self->fd, dmabuf_fd, revoke))
|
| /linux/net/core/ |
| H A D | devmem.c | 187 unsigned int dmabuf_fd, struct netdev_nl_sock *priv, in net_devmem_bind_dmabuf() argument 203 dmabuf = dma_buf_get(dmabuf_fd); in net_devmem_bind_dmabuf()
|
| /linux/tools/testing/selftests/drivers/net/hw/ |
| H A D | ncdevmem.c | 682 static int bind_rx_queue(unsigned int ifindex, unsigned int dmabuf_fd, in bind_rx_queue() argument 699 netdev_bind_rx_req_set_fd(req, dmabuf_fd); in bind_rx_queue() 728 static int bind_tx_queue(unsigned int ifindex, unsigned int dmabuf_fd, in bind_tx_queue() argument 743 netdev_bind_tx_req_set_fd(req, dmabuf_fd); in bind_tx_queue()
|
| /linux/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_chardev.c | 1553 r = amdgpu_amdkfd_get_dmabuf_info(dev->adev, args->dmabuf_fd, in kfd_ioctl_get_dmabuf_info() 1603 r = amdgpu_amdkfd_gpuvm_import_dmabuf_fd(pdd->dev->adev, args->dmabuf_fd, in kfd_ioctl_import_dmabuf() 1672 args->dmabuf_fd = ret; in kfd_ioctl_export_dmabuf() 1925 put_unused_fd(bo_buckets[count].dmabuf_fd); in commit_files() 1927 fd_install(bo_buckets[count].dmabuf_fd, file); in commit_files() 2002 &bo_bucket->dmabuf_fd, &files[bo_index]); in criu_checkpoint_bos() 2006 bo_bucket->dmabuf_fd = KFD_INVALID_FD; in criu_checkpoint_bos() 2457 &bo_bucket->dmabuf_fd, file); in criu_restore_bo() 2461 bo_bucket->dmabuf_fd = KFD_INVALID_FD; in criu_restore_bo()
|
| /linux/drivers/accel/habanalabs/common/ |
| H A D | memory.c | 1860 u64 total_size, int flags, int *dmabuf_fd) in export_dmabuf() argument 1892 *dmabuf_fd = fd; in export_dmabuf() 2031 int flags, int *dmabuf_fd) in export_dmabuf_from_addr() argument 2079 rc = export_dmabuf(ctx, hl_dmabuf, size, flags, dmabuf_fd); in export_dmabuf_from_addr() 2203 int rc, dmabuf_fd = -EBADF; in hl_mem_ioctl() local 2297 &dmabuf_fd); in hl_mem_ioctl() 2299 args->out.fd = dmabuf_fd; in hl_mem_ioctl()
|
| /linux/io_uring/ |
| H A D | zcrx.c | 127 int dmabuf_fd = area_reg->dmabuf_fd; in io_import_dmabuf() local 138 mem->dmabuf = dma_buf_get(dmabuf_fd); in io_import_dmabuf() 199 if (area_reg->dmabuf_fd) in io_import_umem()
|
| /linux/drivers/iio/ |
| H A D | industrialio-buffer.c | 1774 int dmabuf_fd, ret = -EPERM; in iio_buffer_detach_dmabuf() local 1776 if (copy_from_user(&dmabuf_fd, user_req, sizeof(dmabuf_fd))) in iio_buffer_detach_dmabuf() 1779 dmabuf = dma_buf_get(dmabuf_fd); in iio_buffer_detach_dmabuf()
|
| /linux/drivers/accel/amdxdna/ |
| H A D | amdxdna_gem.c | 700 dma_buf = dma_buf_get(va_tbl.dmabuf_fd); in amdxdna_gem_create_ubuf_object()
|