Home
last modified time | relevance | path

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

/arch/sparc/mm/
Diommu.c149 static void iommu_flush_iotlb(iopte_t *iopte, unsigned int niopte) in iommu_flush_iotlb() argument
154 start = (unsigned long)iopte; in iommu_flush_iotlb()
179 iopte_t *iopte, *iopte0; in iommu_get_one() local
191 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() local
359 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 …]
Dio-unit.c95 iopte_t iopte; in iounit_get_area() local
129 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() local
227 iopte = (iopte_t *)(iounit->page_table + i); in iounit_map_dma_area()
228 *iopte = MKIOPTE(__pa(page)); in iounit_map_dma_area()
/arch/sparc/kernel/
Diommu.c74 #define IOPTE_IS_DUMMY(iommu, iopte) \ argument
75 ((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() argument
79 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() local
307 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 …]
/arch/sparc/include/asm/
Dpage_64.h62 typedef struct { unsigned long iopte; } iopte_t; member
68 #define iopte_val(x) ((x).iopte)
Dpage_32.h67 typedef struct { unsigned long iopte; } iopte_t; member
75 #define iopte_val(x) ((x).iopte)