Searched refs:iopte (Results 1 – 5 of 5) sorted by relevance
/arch/sparc/mm/ |
D | iommu.c | 152 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() 187 iopte_t *iopte, *iopte0; in __sbus_iommu_map_page() local 215 iopte = iopte0; in __sbus_iommu_map_page() 217 iopte_val(*iopte) = MKIOPTE(pfn, IOPERM); in __sbus_iommu_map_page() 220 iopte++; in __sbus_iommu_map_page() 312 iopte_t *iopte = iommu->page_table; in sbus_iommu_alloc() local 339 iopte += ioptex; in sbus_iommu_alloc() 340 first = iopte; in sbus_iommu_alloc() 362 iopte_val(*iopte++) = in sbus_iommu_alloc() [all …]
|
D | io-unit.c | 99 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() 220 iopte_t __iomem *iopte; in iounit_alloc() local 254 iopte = iounit->page_table + i; in iounit_alloc() 255 sbus_writel(iopte_val(MKIOPTE(__pa(page))), iopte); in iounit_alloc()
|
/arch/sparc/kernel/ |
D | iommu.c | 80 #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() 205 iopte_t *iopte; in dma_4u_alloc_coherent() local 223 iopte = alloc_npages(dev, iommu, size >> IO_PAGE_SHIFT); in dma_4u_alloc_coherent() 225 if (unlikely(iopte == NULL)) { in dma_4u_alloc_coherent() 231 ((iopte - iommu->page_table) << IO_PAGE_SHIFT)); in dma_4u_alloc_coherent() 236 iopte_val(*iopte) = (IOPTE_CONSISTENT(0UL) | in dma_4u_alloc_coherent() [all …]
|
/arch/sparc/include/asm/ |
D | page_32.h | 56 typedef struct { unsigned long iopte; } iopte_t; member 64 #define iopte_val(x) ((x).iopte)
|
D | page_64.h | 70 typedef struct { unsigned long iopte; } iopte_t; member 77 #define iopte_val(x) ((x).iopte)
|