Searched refs:iopte (Results 1 – 5 of 5) sorted by relevance
149 static void iommu_flush_iotlb(iopte_t *iopte, unsigned int niopte) in iommu_flush_iotlb() argument154 start = (unsigned long)iopte; in iommu_flush_iotlb()179 iopte_t *iopte, *iopte0; in iommu_get_one() local191 iopte = iopte0; in iommu_get_one()193 iopte_val(*iopte) = MKIOPTE(page_to_pfn(page), IOPERM); in iommu_get_one()196 iopte++; in iommu_get_one()345 iopte_t *iopte = iommu->page_table; in iommu_map_dma_area() local359 iopte += ioptex; in iommu_map_dma_area()360 first = iopte; in iommu_map_dma_area()382 iopte_val(*iopte++) = in iommu_map_dma_area()[all …]
95 iopte_t iopte; in iounit_get_area() local129 iopte = MKIOPTE(__pa(vaddr & PAGE_MASK)); in iounit_get_area()131 for (k = 0; k < npages; k++, iopte = __iopte(iopte_val(iopte) + 0x100), scan++) { in iounit_get_area()133 iounit->page_table[scan] = iopte; in iounit_get_area()205 iopte_t *iopte; in iounit_map_dma_area() local227 iopte = (iopte_t *)(iounit->page_table + i); in iounit_map_dma_area()228 *iopte = MKIOPTE(__pa(page)); in iounit_map_dma_area()
74 #define IOPTE_IS_DUMMY(iommu, iopte) \ argument75 ((iopte_val(*iopte) & IOPTE_PAGE) == (iommu)->dummy_page_pa)77 static inline void iopte_make_dummy(struct iommu *iommu, iopte_t *iopte) in iopte_make_dummy() argument79 unsigned long val = iopte_val(*iopte); in iopte_make_dummy()84 iopte_val(*iopte) = val; in iopte_make_dummy()288 iopte_t *iopte; in dma_4u_alloc_coherent() local307 iopte = alloc_npages(dev, iommu, size >> IO_PAGE_SHIFT); in dma_4u_alloc_coherent()310 if (unlikely(iopte == NULL)) { in dma_4u_alloc_coherent()316 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_alloc_coherent()321 iopte_val(*iopte) = (IOPTE_CONSISTENT(0UL) | in dma_4u_alloc_coherent()[all …]
62 typedef struct { unsigned long iopte; } iopte_t; member68 #define iopte_val(x) ((x).iopte)
67 typedef struct { unsigned long iopte; } iopte_t; member75 #define iopte_val(x) ((x).iopte)