iopte              56 arch/sparc/include/asm/page_32.h typedef struct { unsigned long iopte; } iopte_t;
iopte              64 arch/sparc/include/asm/page_32.h #define iopte_val(x)	((x).iopte)
iopte              70 arch/sparc/include/asm/page_64.h typedef struct { unsigned long iopte; } iopte_t;
iopte              77 arch/sparc/include/asm/page_64.h #define iopte_val(x)	((x).iopte)
iopte              80 arch/sparc/kernel/iommu.c #define IOPTE_IS_DUMMY(iommu, iopte)	\
iopte              81 arch/sparc/kernel/iommu.c 	((iopte_val(*iopte) & IOPTE_PAGE) == (iommu)->dummy_page_pa)
iopte              83 arch/sparc/kernel/iommu.c static inline void iopte_make_dummy(struct iommu *iommu, iopte_t *iopte)
iopte              85 arch/sparc/kernel/iommu.c 	unsigned long val = iopte_val(*iopte);
iopte              90 arch/sparc/kernel/iommu.c 	iopte_val(*iopte) = val;
iopte             205 arch/sparc/kernel/iommu.c 	iopte_t *iopte;
iopte             223 arch/sparc/kernel/iommu.c 	iopte = alloc_npages(dev, iommu, size >> IO_PAGE_SHIFT);
iopte             225 arch/sparc/kernel/iommu.c 	if (unlikely(iopte == NULL)) {
iopte             231 arch/sparc/kernel/iommu.c 		      ((iopte - iommu->page_table) << IO_PAGE_SHIFT));
iopte             236 arch/sparc/kernel/iommu.c 		iopte_val(*iopte) = (IOPTE_CONSISTENT(0UL) |
iopte             239 arch/sparc/kernel/iommu.c 		iopte++;
iopte             684 arch/sparc/kernel/iommu.c 		iopte_t *iopte;
iopte             687 arch/sparc/kernel/iommu.c 		iopte = iommu->page_table +
iopte             689 arch/sparc/kernel/iommu.c 		ctx = (iopte_val(*iopte) & IOPTE_CONTEXT) >> 47UL;
iopte             720 arch/sparc/kernel/iommu.c 		iopte_t *iopte;
iopte             723 arch/sparc/kernel/iommu.c 		iopte = iommu->page_table + ((sglist[0].dma_address -
iopte             725 arch/sparc/kernel/iommu.c 		ctx = (iopte_val(*iopte) & IOPTE_CONTEXT) >> 47UL;
iopte              99 arch/sparc/mm/io-unit.c 	iopte_t iopte;
iopte             133 arch/sparc/mm/io-unit.c 	iopte = MKIOPTE(__pa(vaddr & PAGE_MASK));
iopte             135 arch/sparc/mm/io-unit.c 	for (k = 0; k < npages; k++, iopte = __iopte(iopte_val(iopte) + 0x100), scan++) {
iopte             137 arch/sparc/mm/io-unit.c 		sbus_writel(iopte_val(iopte), &iounit->page_table[scan]);
iopte             220 arch/sparc/mm/io-unit.c 	iopte_t __iomem *iopte;
iopte             254 arch/sparc/mm/io-unit.c 			iopte = iounit->page_table + i;
iopte             255 arch/sparc/mm/io-unit.c 			sbus_writel(iopte_val(MKIOPTE(__pa(page))), iopte);
iopte             152 arch/sparc/mm/iommu.c static void iommu_flush_iotlb(iopte_t *iopte, unsigned int niopte)
iopte             157 arch/sparc/mm/iommu.c 	start = (unsigned long)iopte;
iopte             187 arch/sparc/mm/iommu.c 	iopte_t *iopte, *iopte0;
iopte             215 arch/sparc/mm/iommu.c 	iopte = iopte0;
iopte             217 arch/sparc/mm/iommu.c 		iopte_val(*iopte) = MKIOPTE(pfn, IOPERM);
iopte             220 arch/sparc/mm/iommu.c 		iopte++;
iopte             312 arch/sparc/mm/iommu.c 	iopte_t *iopte = iommu->page_table;
iopte             339 arch/sparc/mm/iommu.c 	iopte += ioptex;
iopte             340 arch/sparc/mm/iommu.c 	first = iopte;
iopte             362 arch/sparc/mm/iommu.c 		iopte_val(*iopte++) =
iopte             395 arch/sparc/mm/iommu.c 	iopte_t *iopte = iommu->page_table;
iopte             406 arch/sparc/mm/iommu.c 	iopte += ioptex;
iopte             409 arch/sparc/mm/iommu.c 		iopte_val(*iopte++) = 0;
iopte             181 drivers/iommu/omap-iommu-debug.c 	u32 *iopgd, *iopte;
iopte             197 drivers/iommu/omap-iommu-debug.c 		iopte = iopte_offset(iopgd, 0);
iopte             198 drivers/iommu/omap-iommu-debug.c 		for (j = 0; j < PTRS_PER_IOPTE; j++, iopte++) {
iopte             199 drivers/iommu/omap-iommu-debug.c 			if (!*iopte)
iopte             203 drivers/iommu/omap-iommu-debug.c 			seq_printf(s, "2: 0x%08x 0x%08x\n", da, *iopte);
iopte             480 drivers/iommu/omap-iommu.c static void iopte_free(struct omap_iommu *obj, u32 *iopte, bool dma_valid)
iopte             485 drivers/iommu/omap-iommu.c 	if (iopte) {
iopte             487 drivers/iommu/omap-iommu.c 			pt_dma = virt_to_phys(iopte);
iopte             492 drivers/iommu/omap-iommu.c 		kmem_cache_free(iopte_cachep, iopte);
iopte             499 drivers/iommu/omap-iommu.c 	u32 *iopte;
iopte             510 drivers/iommu/omap-iommu.c 	iopte = kmem_cache_zalloc(iopte_cachep, GFP_KERNEL);
iopte             514 drivers/iommu/omap-iommu.c 		if (!iopte)
iopte             517 drivers/iommu/omap-iommu.c 		*pt_dma = dma_map_single(obj->dev, iopte, IOPTE_TABLE_SIZE,
iopte             521 drivers/iommu/omap-iommu.c 			iopte_free(obj, iopte, false);
iopte             529 drivers/iommu/omap-iommu.c 		if (WARN_ON(*pt_dma != virt_to_phys(iopte))) {
iopte             533 drivers/iommu/omap-iommu.c 			iopte_free(obj, iopte, false);
iopte             537 drivers/iommu/omap-iommu.c 		*iopgd = virt_to_phys(iopte) | IOPGD_TABLE;
iopte             540 drivers/iommu/omap-iommu.c 		dev_vdbg(obj->dev, "%s: a new pte:%p\n", __func__, iopte);
iopte             543 drivers/iommu/omap-iommu.c 		iopte_free(obj, iopte, false);
iopte             547 drivers/iommu/omap-iommu.c 	iopte = iopte_offset(iopgd, da);
iopte             551 drivers/iommu/omap-iommu.c 		 __func__, da, iopgd, *iopgd, iopte, *iopte);
iopte             553 drivers/iommu/omap-iommu.c 	return iopte;
iopte             594 drivers/iommu/omap-iommu.c 	u32 *iopte = iopte_alloc(obj, iopgd, &pt_dma, da);
iopte             597 drivers/iommu/omap-iommu.c 	if (IS_ERR(iopte))
iopte             598 drivers/iommu/omap-iommu.c 		return PTR_ERR(iopte);
iopte             600 drivers/iommu/omap-iommu.c 	*iopte = (pa & IOPAGE_MASK) | prot | IOPTE_SMALL;
iopte             604 drivers/iommu/omap-iommu.c 		 __func__, da, pa, iopte, *iopte);
iopte             613 drivers/iommu/omap-iommu.c 	u32 *iopte = iopte_alloc(obj, iopgd, &pt_dma, da);
iopte             623 drivers/iommu/omap-iommu.c 	if (IS_ERR(iopte))
iopte             624 drivers/iommu/omap-iommu.c 		return PTR_ERR(iopte);
iopte             627 drivers/iommu/omap-iommu.c 		*(iopte + i) = (pa & IOLARGE_MASK) | prot | IOPTE_LARGE;
iopte             699 drivers/iommu/omap-iommu.c 	u32 *iopgd, *iopte = NULL;
iopte             706 drivers/iommu/omap-iommu.c 		iopte = iopte_offset(iopgd, da);
iopte             709 drivers/iommu/omap-iommu.c 	*ppte = iopte;
iopte             726 drivers/iommu/omap-iommu.c 		u32 *iopte = iopte_offset(iopgd, da);
iopte             729 drivers/iommu/omap-iommu.c 		if (*iopte & IOPTE_LARGE) {
iopte             732 drivers/iommu/omap-iommu.c 			iopte = iopte_offset(iopgd, (da & IOLARGE_MASK));
iopte             735 drivers/iommu/omap-iommu.c 		memset(iopte, 0, nent * sizeof(*iopte));
iopte             742 drivers/iommu/omap-iommu.c 		iopte = iopte_offset(iopgd, 0);
iopte             744 drivers/iommu/omap-iommu.c 			if (iopte[i])
iopte             747 drivers/iommu/omap-iommu.c 		iopte_free(obj, iopte, true);
iopte             819 drivers/iommu/omap-iommu.c 	u32 *iopgd, *iopte;
iopte             845 drivers/iommu/omap-iommu.c 	iopte = iopte_offset(iopgd, da);
iopte             848 drivers/iommu/omap-iommu.c 		obj->name, errs, da, iopgd, *iopgd, iopte, *iopte);