Home
last modified time | relevance | path

Searched refs:iopte (Results 1 – 5 of 5) sorted by relevance

/arch/sparc/mm/
Diommu.c152 static void iommu_flush_iotlb(iopte_t *iopte, unsigned int niopte) in iommu_flush_iotlb() argument
157 start = (unsigned long)iopte; in iommu_flush_iotlb()
182 iopte_t *iopte, *iopte0; in iommu_get_one() local
194 iopte = iopte0; in iommu_get_one()
196 iopte_val(*iopte) = MKIOPTE(page_to_pfn(page), IOPERM); in iommu_get_one()
199 iopte++; in iommu_get_one()
330 iopte_t *iopte = iommu->page_table; in iommu_map_dma_area() local
344 iopte += ioptex; in iommu_map_dma_area()
345 first = iopte; in iommu_map_dma_area()
367 iopte_val(*iopte++) = in iommu_map_dma_area()
[all …]
Dio-unit.c99 iopte_t iopte; in iounit_get_area() local
133 iopte = MKIOPTE(__pa(vaddr & PAGE_MASK)); in iounit_get_area()
135 for (k = 0; k < npages; k++, iopte = __iopte(iopte_val(iopte) + 0x100), scan++) { in iounit_get_area()
137 sbus_writel(iopte_val(iopte), &iounit->page_table[scan]); in iounit_get_area()
209 iopte_t __iomem *iopte; in iounit_map_dma_area() local
231 iopte = iounit->page_table + i; in iounit_map_dma_area()
232 sbus_writel(iopte_val(MKIOPTE(__pa(page))), iopte); in iounit_map_dma_area()
/arch/sparc/kernel/
Diommu.c80 #define IOPTE_IS_DUMMY(iommu, iopte) \ argument
81 ((iopte_val(*iopte) & IOPTE_PAGE) == (iommu)->dummy_page_pa)
83 static inline void iopte_make_dummy(struct iommu *iommu, iopte_t *iopte) in iopte_make_dummy() argument
85 unsigned long val = iopte_val(*iopte); in iopte_make_dummy()
90 iopte_val(*iopte) = val; in iopte_make_dummy()
206 iopte_t *iopte; in dma_4u_alloc_coherent() local
224 iopte = alloc_npages(dev, iommu, size >> IO_PAGE_SHIFT); in dma_4u_alloc_coherent()
226 if (unlikely(iopte == NULL)) { in dma_4u_alloc_coherent()
232 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_alloc_coherent()
237 iopte_val(*iopte) = (IOPTE_CONSISTENT(0UL) | in dma_4u_alloc_coherent()
[all …]
/arch/sparc/include/asm/
Dpage_32.h56 typedef struct { unsigned long iopte; } iopte_t; member
64 #define iopte_val(x) ((x).iopte)
Dpage_64.h64 typedef struct { unsigned long iopte; } iopte_t; member
71 #define iopte_val(x) ((x).iopte)