Searched refs:phys_vec (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/vfio/pci/ |
| H A D | vfio_pci_dmabuf.c | 17 struct dma_buf_phys_vec *phys_vec; member 49 priv->phys_vec, priv->nr_ranges, in vfio_pci_dma_buf_map() 74 kfree(priv->phys_vec); in vfio_pci_dma_buf_release() 114 *phys = priv->phys_vec[0]; in vfio_pci_dma_buf_iommufd_map() 119 int vfio_pci_core_fill_phys_vec(struct dma_buf_phys_vec *phys_vec, in vfio_pci_core_fill_phys_vec() argument 135 &phys_vec[i].paddr) || in vfio_pci_core_fill_phys_vec() 136 check_add_overflow(phys_vec[i].paddr, in vfio_pci_core_fill_phys_vec() 142 phys_vec[i].len = dma_ranges[i].length; in vfio_pci_core_fill_phys_vec() 151 struct dma_buf_phys_vec *phys_vec, in vfio_pci_core_get_dmabuf_phys() argument 162 phys_vec, dma_ranges, nr_ranges, in vfio_pci_core_get_dmabuf_phys() [all …]
|
| /linux/drivers/dma-buf/ |
| H A D | dma-buf-mapping.c | 36 struct dma_buf_phys_vec *phys_vec, in calc_sg_nents() argument 44 nents += DIV_ROUND_UP(phys_vec[i].len, UINT_MAX); in calc_sg_nents() 94 struct dma_buf_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/block/ |
| H A D | blk-mq-dma.c | 9 struct phys_vec { struct 33 struct phys_vec *vec) in blk_map_iter_next() argument 85 static bool blk_dma_map_bus(struct blk_dma_iter *iter, struct phys_vec *vec) in blk_dma_map_bus() 93 struct blk_dma_iter *iter, struct phys_vec *vec) in blk_dma_map_direct() 112 struct phys_vec *vec) in blk_rq_dma_map_iova() 170 struct phys_vec vec; in blk_dma_map_iter_start() 258 struct phys_vec vec; in blk_rq_dma_map_iter_next() 294 struct phys_vec vec; in __blk_rq_map_sg() 382 struct phys_vec vec; in blk_rq_integrity_dma_map_iter_next() 409 struct phys_vec vec; in blk_rq_map_integrity_sg()
|
| /linux/include/linux/ |
| H A D | vfio_pci_core.h | 65 struct dma_buf_phys_vec *phys_vec, 71 int vfio_pci_core_fill_phys_vec(struct dma_buf_phys_vec *phys_vec, 78 struct dma_buf_phys_vec *phys_vec, 83 vfio_pci_core_fill_phys_vec(struct dma_buf_phys_vec *phys_vec, in vfio_pci_core_fill_phys_vec() argument 92 unsigned int region_index, struct dma_buf_phys_vec *phys_vec, in vfio_pci_core_get_dmabuf_phys() argument
|
| H A D | dma-buf-mapping.h | 12 struct dma_buf_phys_vec *phys_vec,
|
| /linux/drivers/vfio/pci/nvgrace-gpu/ |
| H A D | main.c | 787 struct dma_buf_phys_vec *phys_vec, in nvgrace_get_dmabuf_phys() argument 814 return vfio_pci_core_fill_phys_vec(phys_vec, dma_ranges, in nvgrace_get_dmabuf_phys() 821 phys_vec, dma_ranges, nr_ranges); in nvgrace_get_dmabuf_phys()
|