Searched refs:phys_vec (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/vfio/pci/ |
| H A D | vfio_pci_dmabuf.c | 17 struct phys_vec *phys_vec; member 59 priv->phys_vec, priv->nr_ranges, in vfio_pci_dma_buf_map() 84 kfree(priv->phys_vec); in vfio_pci_dma_buf_release() 109 struct phys_vec *phys) in vfio_pci_dma_buf_iommufd_map() 126 *phys = priv->phys_vec[0]; in vfio_pci_dma_buf_iommufd_map() 131 int vfio_pci_core_fill_phys_vec(struct phys_vec *phys_vec, in vfio_pci_core_fill_phys_vec() argument 147 &phys_vec[i].paddr) || in vfio_pci_core_fill_phys_vec() 148 check_add_overflow(phys_vec[i].paddr, in vfio_pci_core_fill_phys_vec() 154 phys_vec[i].len = dma_ranges[i].length; in vfio_pci_core_fill_phys_vec() 163 struct phys_vec *phys_vec, in vfio_pci_core_get_dmabuf_phys() argument [all …]
|
| /linux/drivers/dma-buf/ |
| H A D | dma-buf-mapping.c | 36 struct phys_vec *phys_vec, size_t nr_ranges, in calc_sg_nents() argument 44 nents += DIV_ROUND_UP(phys_vec[i].len, UINT_MAX); in calc_sg_nents() 94 struct phys_vec *phys_vec, in dma_buf_phys_vec_to_sgt() argument 135 nents = calc_sg_nents(dma->state, phys_vec, nr_ranges, size); in dma_buf_phys_vec_to_sgt() 145 phys_vec[i].paddr); in dma_buf_phys_vec_to_sgt() 148 phys_vec[i].paddr, 0, in dma_buf_phys_vec_to_sgt() 149 phys_vec[i].len, dir, in dma_buf_phys_vec_to_sgt() 154 mapped_len += phys_vec[i].len; in dma_buf_phys_vec_to_sgt() 156 addr = dma_map_phys(attach->dev, phys_vec[i].paddr, in dma_buf_phys_vec_to_sgt() 157 phys_vec[i].len, dir, in dma_buf_phys_vec_to_sgt() [all …]
|
| /linux/include/linux/ |
| H A D | vfio_pci_core.h | 64 struct phys_vec *phys_vec, 70 int vfio_pci_core_fill_phys_vec(struct phys_vec *phys_vec, 77 struct phys_vec *phys_vec, 82 vfio_pci_core_fill_phys_vec(struct phys_vec *phys_vec, in vfio_pci_core_fill_phys_vec() argument 91 unsigned int region_index, struct phys_vec *phys_vec, in vfio_pci_core_get_dmabuf_phys() argument 238 struct phys_vec *phys);
|
| /linux/drivers/vfio/pci/nvgrace-gpu/ |
| H A D | main.c | 892 struct phys_vec *phys_vec, in nvgrace_get_dmabuf_phys() argument 919 return vfio_pci_core_fill_phys_vec(phys_vec, dma_ranges, in nvgrace_get_dmabuf_phys() 926 phys_vec, dma_ranges, nr_ranges); in nvgrace_get_dmabuf_phys()
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | main.c | 2481 struct phys_vec *phys_vec, in mlx5_ib_mmap_get_pfns() argument 2488 phys_vec->paddr = mentry->address; in mlx5_ib_mmap_get_pfns() 2489 phys_vec->len = entry->npages * PAGE_SIZE; in mlx5_ib_mmap_get_pfns() 2491 bar = phys_addr_to_bar(pdev, phys_vec->paddr); in mlx5_ib_mmap_get_pfns()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | pages.c | 1081 struct phys_vec phys; 1464 struct phys_vec *phys) in sym_vfio_pci_dma_buf_iommufd_map()
|
| H A D | selftest.c | 2005 struct phys_vec *phys) in iommufd_test_dma_buf_iommufd_map()
|