Searched refs:dmabuf_fd (Results 1 – 5 of 5) sorted by relevance
| /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/tools/testing/selftests/drivers/net/hw/ |
| H A D | ncdevmem.c | 683 static int bind_rx_queue(unsigned int ifindex, unsigned int dmabuf_fd, in bind_rx_queue() 700 netdev_bind_rx_req_set_fd(req, dmabuf_fd); in bind_rx_queue() 729 static int bind_tx_queue(unsigned int ifindex, unsigned int dmabuf_fd, in bind_tx_queue() 744 netdev_bind_tx_req_set_fd(req, dmabuf_fd); in bind_tx_queue() 682 bind_rx_queue(unsigned int ifindex,unsigned int dmabuf_fd,struct netdev_queue_id * queues,unsigned int n_queue_index,struct ynl_sock ** ys) bind_rx_queue() argument 728 bind_tx_queue(unsigned int ifindex,unsigned int dmabuf_fd,struct ynl_sock ** ys) bind_tx_queue() argument
|
| /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()
|