Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iommu/
H A Domap-iommu.c473 if (iopte) { in iopte_free()
487 u32 *iopte; in iopte_alloc() local
502 if (!iopte) in iopte_alloc()
539 __func__, da, iopgd, *iopgd, iopte, *iopte); in iopte_alloc()
541 return iopte; in iopte_alloc()
585 if (IS_ERR(iopte)) in iopte_alloc_page()
592 __func__, da, pa, iopte, *iopte); in iopte_alloc_page()
697 *ppte = iopte; in iopgtable_lookup_entry()
723 memset(iopte, 0, nent * sizeof(*iopte)); in iopgtable_clear_entry_core()
732 if (iopte[i]) in iopgtable_clear_entry_core()
[all …]
H A Domap-iommu-debug.c184 u32 *iopgd, *iopte; in dump_ioptable() local
200 iopte = iopte_offset(iopgd, 0); in dump_ioptable()
201 for (j = 0; j < PTRS_PER_IOPTE; j++, iopte++) { in dump_ioptable()
202 if (!*iopte) in dump_ioptable()
206 seq_printf(s, "2: 0x%08x 0x%08x\n", da, *iopte); in dump_ioptable()
/openbmc/linux/arch/sparc/mm/
H A Diommu.c163 start = (unsigned long)iopte; in iommu_flush_iotlb()
193 iopte_t *iopte, *iopte0; in __sbus_iommu_map_page() local
221 iopte = iopte0; in __sbus_iommu_map_page()
226 iopte++; in __sbus_iommu_map_page()
318 iopte_t *iopte = iommu->page_table; in sbus_iommu_alloc() local
345 iopte += ioptex; in sbus_iommu_alloc()
346 first = iopte; in sbus_iommu_alloc()
366 iopte_val(*iopte++) = in sbus_iommu_alloc()
399 iopte_t *iopte = iommu->page_table; in sbus_iommu_free() local
410 iopte += ioptex; in sbus_iommu_free()
[all …]
H A Dio-unit.c101 iopte_t iopte; in iounit_get_area() local
135 iopte = MKIOPTE(__pa(vaddr & PAGE_MASK)); in iounit_get_area()
137 for (k = 0; k < npages; k++, iopte = __iopte(iopte_val(iopte) + 0x100), scan++) { in iounit_get_area()
139 sbus_writel(iopte_val(iopte), &iounit->page_table[scan]); in iounit_get_area()
222 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()
/openbmc/linux/arch/sparc/kernel/
H A Diommu.c80 #define IOPTE_IS_DUMMY(iommu, iopte) \ 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
225 if (unlikely(iopte == NULL)) { in dma_4u_alloc_coherent()
236 iopte_val(*iopte) = (IOPTE_CONSISTENT(0UL) | in dma_4u_alloc_coherent()
239 iopte++; in dma_4u_alloc_coherent()
681 iopte_t *iopte; in dma_4u_sync_single_for_cpu() local
684 iopte = iommu->page_table + in dma_4u_sync_single_for_cpu()
686 ctx = (iopte_val(*iopte) & IOPTE_CONTEXT) >> 47UL; in dma_4u_sync_single_for_cpu()
[all …]
/openbmc/qemu/hw/sparc/
H A Dtrace-events13 sun4m_iommu_page_get_flags(uint64_t pa, uint64_t iopte, uint32_t ret) "get flags addr 0x%"PRIx64" =…
14 …translate_pa(uint64_t addr, uint64_t pa, uint32_t iopte) "xlate dva 0x%"PRIx64" => pa 0x%"PRIx64"
H A Dsun4m_iommu.c251 hwaddr iopte; in iommu_page_get_flags() local
254 iopte = s->regs[IOMMU_BASE] << 4; in iommu_page_get_flags()
256 iopte += (addr >> (IOMMU_PAGE_SHIFT - 2)) & ~3; in iommu_page_get_flags()
257 ret = address_space_ldl_be(&address_space_memory, iopte, in iommu_page_get_flags()
259 trace_sun4m_iommu_page_get_flags(pa, iopte, ret); in iommu_page_get_flags()
/openbmc/linux/arch/sparc/include/asm/
H A Dpage_32.h56 typedef struct { unsigned long iopte; } iopte_t; member
64 #define iopte_val(x) ((x).iopte)
H A Dpage_64.h70 typedef struct { unsigned long iopte; } iopte_t; member
77 #define iopte_val(x) ((x).iopte)