Home
last modified time | relevance | path

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

/linux-2.6.39/arch/arm/plat-omap/
Diommu.c498 static u32 *iopte_alloc(struct iommu *obj, u32 *iopgd, u32 da) in iopte_alloc() argument
503 if (*iopgd) in iopte_alloc()
513 if (!*iopgd) { in iopte_alloc()
517 *iopgd = virt_to_phys(iopte) | IOPGD_TABLE; in iopte_alloc()
518 flush_iopgd_range(iopgd, iopgd); in iopte_alloc()
527 iopte = iopte_offset(iopgd, da); in iopte_alloc()
531 __func__, da, iopgd, *iopgd, iopte, *iopte); in iopte_alloc()
538 u32 *iopgd = iopgd_offset(obj, da); in iopgd_alloc_section() local
546 *iopgd = (pa & IOSECTION_MASK) | prot | IOPGD_SECTION; in iopgd_alloc_section()
547 flush_iopgd_range(iopgd, iopgd); in iopgd_alloc_section()
[all …]
Diopgtable.h73 #define iopgd_offset(obj, da) ((obj)->iopgd + iopgd_index(da))
75 #define iopgd_page_paddr(iopgd) (*iopgd & ~((1 << 10) - 1)) argument
76 #define iopgd_page_vaddr(iopgd) ((u32 *)phys_to_virt(iopgd_page_paddr(iopgd))) argument
80 #define iopte_offset(iopgd, da) (iopgd_page_vaddr(iopgd) + iopte_index(da)) argument
Diommu-debug.c142 u32 *iopgd; in dump_ioptable() local
147 iopgd = iopgd_offset(obj, 0); in dump_ioptable()
148 for (i = 0; i < PTRS_PER_IOPGD; i++, iopgd++) { in dump_ioptable()
153 if (!*iopgd) in dump_ioptable()
156 if (!(*iopgd & IOPGD_TABLE)) { in dump_ioptable()
159 err = dump_ioptable_entry_one(1, da, *iopgd); in dump_ioptable()
165 iopte = iopte_offset(iopgd, 0); in dump_ioptable()
172 err = dump_ioptable_entry_one(2, da, *iopgd); in dump_ioptable()
/linux-2.6.39/arch/arm/mach-omap2/
Diommu2.c93 if (!obj->iopgd || !IS_ALIGNED((u32)obj->iopgd, SZ_16K)) in omap2_iommu_enable()
96 pa = virt_to_phys(obj->iopgd); in omap2_iommu_enable()
/linux-2.6.39/arch/arm/plat-omap/include/plat/
Diommu.h43 u32 *iopgd; member