Home
last modified time | relevance | path

Searched refs:iopgd (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/iommu/
Domap-iopgtable.h91 #define iopgd_offset(obj, da) ((obj)->iopgd + iopgd_index(da))
93 #define iopgd_page_paddr(iopgd) (*iopgd & ~((1 << 10) - 1)) argument
94 #define iopgd_page_vaddr(iopgd) ((u32 *)phys_to_virt(iopgd_page_paddr(iopgd))) argument
98 #define iopte_offset(iopgd, da) (iopgd_page_vaddr(iopgd) + iopte_index(da)) argument
Domap-iommu.c159 if (!obj->iopgd || !IS_ALIGNED((unsigned long)obj->iopgd, SZ_16K)) in omap2_iommu_enable()
162 pa = virt_to_phys(obj->iopgd); in omap2_iommu_enable()
485 static u32 *iopte_alloc(struct omap_iommu *obj, u32 *iopgd, in iopte_alloc() argument
492 if (*iopgd) in iopte_alloc()
502 if (!*iopgd) { in iopte_alloc()
526 *iopgd = virt_to_phys(iopte) | IOPGD_TABLE; in iopte_alloc()
536 iopte = iopte_offset(iopgd, da); in iopte_alloc()
537 *pt_dma = iopgd_page_paddr(iopgd); in iopte_alloc()
540 __func__, da, iopgd, *iopgd, iopte, *iopte); in iopte_alloc()
547 u32 *iopgd = iopgd_offset(obj, da); in iopgd_alloc_section() local
[all …]
Domap-iommu-debug.c184 u32 *iopgd, *iopte; in dump_ioptable() local
189 iopgd = iopgd_offset(obj, 0); in dump_ioptable()
190 for (i = 0; i < PTRS_PER_IOPGD; i++, iopgd++) { in dump_ioptable()
191 if (!*iopgd) in dump_ioptable()
194 if (!(*iopgd & IOPGD_TABLE)) { in dump_ioptable()
196 seq_printf(s, "1: 0x%08x 0x%08x\n", da, *iopgd); in dump_ioptable()
200 iopte = iopte_offset(iopgd, 0); in dump_ioptable()
Domap-iommu.h68 u32 *iopgd; member