Lines Matching refs:device

14 #include <linux/device.h>
390 void iommu_dma_get_resv_regions(struct device *dev, struct list_head *list)
481 static int iova_reserve_iommu_regions(struct device *dev,
519 static bool dev_is_untrusted(struct device *dev)
524 static bool dev_use_swiotlb(struct device *dev, size_t size,
532 static bool dev_use_sg_swiotlb(struct device *dev, struct scatterlist *sg,
545 * If kmalloc() buffers are not DMA-safe for this device and
571 dma_addr_t limit, struct device *dev)
587 /* Check the domain allows at least some access to the device... */
660 size_t size, u64 dma_limit, struct device *dev)
685 * If your device goes wrong after seeing the notice then likely either
688 * expected address bits are wired up between the device and the IOMMU.
722 static void __iommu_dma_unmap(struct device *dev, dma_addr_t dma_addr,
745 static dma_addr_t __iommu_dma_map(struct device *dev, phys_addr_t phys,
778 static struct page **__iommu_dma_alloc_pages(struct device *dev,
834 static struct page **__iommu_dma_alloc_noncontiguous(struct device *dev,
909 static void *iommu_dma_alloc_remap(struct device *dev, size_t size,
935 static struct sg_table *iommu_dma_alloc_noncontiguous(struct device *dev,
954 static void iommu_dma_free_noncontiguous(struct device *dev, size_t size,
965 static void iommu_dma_sync_single_for_cpu(struct device *dev,
981 static void iommu_dma_sync_single_for_device(struct device *dev,
997 static void iommu_dma_sync_sg_for_cpu(struct device *dev,
1013 static void iommu_dma_sync_sg_for_device(struct device *dev,
1030 static dma_addr_t iommu_dma_map_page(struct device *dev, struct page *page,
1087 static void iommu_dma_unmap_page(struct device *dev, dma_addr_t dma_handle,
1113 static int __finalise_sg(struct device *dev, struct scatterlist *sg, int nents,
1200 static void iommu_dma_unmap_sg_swiotlb(struct device *dev, struct scatterlist *sg,
1211 static int iommu_dma_map_sg_swiotlb(struct device *dev, struct scatterlist *sg,
1241 static int iommu_dma_map_sg(struct device *dev, struct scatterlist *sg,
1361 static void iommu_dma_unmap_sg(struct device *dev, struct scatterlist *sg,
1411 static dma_addr_t iommu_dma_map_resource(struct device *dev, phys_addr_t phys,
1419 static void iommu_dma_unmap_resource(struct device *dev, dma_addr_t handle,
1425 static void __iommu_dma_free(struct device *dev, size_t size, void *cpu_addr)
1456 static void iommu_dma_free(struct device *dev, size_t size, void *cpu_addr,
1463 static void *iommu_dma_alloc_pages(struct device *dev, size_t size,
1500 static void *iommu_dma_alloc(struct device *dev, size_t size,
1535 static int iommu_dma_mmap(struct device *dev, struct vm_area_struct *vma,
1566 static int iommu_dma_get_sgtable(struct device *dev, struct sg_table *sgt,
1593 static unsigned long iommu_dma_get_merge_boundary(struct device *dev)
1633 void iommu_setup_dma_ops(struct device *dev, u64 dma_base, u64 dma_limit)
1652 pr_warn("Failed to set up IOMMU for device %s; retaining platform DMA ops\n",
1657 static struct iommu_dma_msi_page *iommu_dma_get_msi_page(struct device *dev,
1704 struct device *dev = msi_desc_to_dev(desc);
1737 struct device *dev = msi_desc_to_dev(desc);