Home
last modified time | relevance | path

Searched refs:dmabuf_fd (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c106 unsigned int heap_flags, int *dmabuf_fd) in dmabuf_heap_alloc_fdflags()
116 if (!dmabuf_fd) in dmabuf_heap_alloc_fdflags()
122 *dmabuf_fd = (int)data.fd; in dmabuf_heap_alloc_fdflags()
127 int *dmabuf_fd) in dmabuf_heap_alloc()
130 dmabuf_fd); in dmabuf_heap_alloc()
149 int heap_fd = -1, dmabuf_fd = -1, importer_fd = -1; in test_alloc_and_import() local
161 ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); in test_alloc_and_import()
172 dmabuf_fd, in test_alloc_and_import()
181 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_START); in test_alloc_and_import()
184 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_EN in test_alloc_and_import()
105 dmabuf_heap_alloc_fdflags(int fd, size_t len, unsigned int fd_flags, unsigned int heap_flags, int *dmabuf_fd) dmabuf_heap_alloc_fdflags() argument
126 dmabuf_heap_alloc(int fd, size_t len, unsigned int flags, int *dmabuf_fd) dmabuf_heap_alloc() argument
222 dmabuf_heap_alloc_older(int fd, size_t len, unsigned int flags, int *dmabuf_fd) dmabuf_heap_alloc_older() argument
250 dmabuf_heap_alloc_newer(int fd, size_t len, unsigned int flags, int *dmabuf_fd) dmabuf_heap_alloc_newer() argument
288 int heap_fd = -1, dmabuf_fd = -1; test_alloc_compat() local
323 int heap_fd = -1, dmabuf_fd = -1; test_alloc_errors() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c105 unsigned int heap_flags, int *dmabuf_fd) in dmabuf_heap_alloc_fdflags()
115 if (!dmabuf_fd) in dmabuf_heap_alloc_fdflags()
121 *dmabuf_fd = (int)data.fd; in dmabuf_heap_alloc_fdflags()
126 int *dmabuf_fd) in dmabuf_heap_alloc()
129 dmabuf_fd); in dmabuf_heap_alloc()
145 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()
166 dmabuf_fd, in test_alloc_and_import()
174 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_START); in test_alloc_and_import()
177 dmabuf_sync(dmabuf_fd, DMA_BUF_SYNC_EN in test_alloc_and_import()
104 dmabuf_heap_alloc_fdflags(int fd, size_t len, unsigned int fd_flags, unsigned int heap_flags, int *dmabuf_fd) dmabuf_heap_alloc_fdflags() argument
125 dmabuf_heap_alloc(int fd, size_t len, unsigned int flags, int *dmabuf_fd) dmabuf_heap_alloc() argument
222 int heap_fd = -1, dmabuf_fd[32]; test_alloc_zeroed() local
299 dmabuf_heap_alloc_older(int fd, size_t len, unsigned int flags, int *dmabuf_fd) dmabuf_heap_alloc_older() argument
327 dmabuf_heap_alloc_newer(int fd, size_t len, unsigned int flags, int *dmabuf_fd) dmabuf_heap_alloc_newer() argument
365 int heap_fd = -1, dmabuf_fd = -1; test_alloc_compat() local
401 int heap_fd = -1, dmabuf_fd = -1; test_alloc_errors() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gvt/
H A Ddmabuf.c506 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gvt/
H A Ddmabuf.c531 int dmabuf_fd; in intel_vgpu_get_dmabuf() local
564 dmabuf_fd = ret; in intel_vgpu_get_dmabuf()
579 dmabuf_fd, in intel_vgpu_get_dmabuf()
585 return dmabuf_fd; in intel_vgpu_get_dmabuf()
H A Dkvmgt.c1611 __s32 dmabuf_fd; in intel_vgpu_ioctl() local
1616 dmabuf_fd = intel_gvt_ops->vgpu_get_dmabuf(vgpu, dmabuf_id); in intel_vgpu_ioctl()
1617 return dmabuf_fd; in intel_vgpu_ioctl()
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dkfd_ioctl.h493 __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
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dkfd_ioctl.h439 __u32 dmabuf_fd; /* to KFD */ member
446 __u32 dmabuf_fd; /* to KFD */ member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dkfd_ioctl.h282 __u32 dmabuf_fd; member
288 __u32 dmabuf_fd; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dkfd_ioctl.h282 __u32 dmabuf_fd; member
288 __u32 dmabuf_fd; member
/kernel/linux/linux-6.6/drivers/accel/habanalabs/common/
H A Dmemory.c1835 u64 total_size, int flags, int *dmabuf_fd) in export_dmabuf()
1869 *dmabuf_fd = fd; in export_dmabuf()
1999 * @dmabuf_fd: pointer to result FD that represents the dma-buf object.
2008 int flags, int *dmabuf_fd) in export_dmabuf_from_addr()
2059 rc = export_dmabuf(ctx, hl_dmabuf, size, flags, dmabuf_fd); in export_dmabuf_from_addr()
2182 int rc, dmabuf_fd = -EBADF; in hl_mem_ioctl() local
2276 &dmabuf_fd); in hl_mem_ioctl()
2278 args->out.fd = dmabuf_fd; in hl_mem_ioctl()
1833 export_dmabuf(struct hl_ctx *ctx, struct hl_dmabuf_priv *hl_dmabuf, u64 total_size, int flags, int *dmabuf_fd) export_dmabuf() argument
2007 export_dmabuf_from_addr(struct hl_ctx *ctx, u64 addr, u64 size, u64 offset, int flags, int *dmabuf_fd) export_dmabuf_from_addr() argument
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c1531 r = amdgpu_amdkfd_get_dmabuf_info(dev->adev, args->dmabuf_fd, in kfd_ioctl_get_dmabuf_info()
1569 dmabuf = dma_buf_get(args->dmabuf_fd); in kfd_ioctl_import_dmabuf()
1657 args->dmabuf_fd = ret; in kfd_ioctl_export_dmabuf()
1948 &bo_bucket->dmabuf_fd); in criu_checkpoint_bos()
1952 bo_bucket->dmabuf_fd = KFD_INVALID_FD; in criu_checkpoint_bos()
2002 close_fd(bo_buckets[bo_index].dmabuf_fd); in criu_checkpoint_bos()
2408 &bo_bucket->dmabuf_fd); in criu_restore_bo()
2412 bo_bucket->dmabuf_fd = KFD_INVALID_FD; in criu_restore_bo()
2481 close_fd(bo_buckets[i].dmabuf_fd); in criu_restore_bos()
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx5/
H A Ddevx.c2198 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_chardev.c1667 r = amdgpu_amdkfd_get_dmabuf_info(dev->kgd, args->dmabuf_fd, in kfd_ioctl_get_dmabuf_info()
1713 dmabuf = dma_buf_get(args->dmabuf_fd); in kfd_ioctl_import_dmabuf()

Completed in 25 milliseconds