Lines Matching refs:pgdp
109 static inline void srmmu_ctxd_set(ctxd_t *ctxp, pgd_t *pgdp) in srmmu_ctxd_set() argument
110 { set_pte((pte_t *)ctxp, (SRMMU_ET_PTD | (__nocache_pa((unsigned long) pgdp) >> 4))); } in srmmu_ctxd_set()
485 pgd_t *pgdp; in srmmu_mapioaddr() local
491 pgdp = pgd_offset_k(virt_addr); in srmmu_mapioaddr()
492 pmdp = pmd_offset(pgdp, virt_addr); in srmmu_mapioaddr()
520 pgd_t *pgdp; in srmmu_unmapioaddr() local
524 pgdp = pgd_offset_k(virt_addr); in srmmu_unmapioaddr()
525 pmdp = pmd_offset(pgdp, virt_addr); in srmmu_unmapioaddr()
662 pgd_t *pgdp; in srmmu_early_allocate_ptable_skeleton() local
667 pgdp = pgd_offset_k(start); in srmmu_early_allocate_ptable_skeleton()
668 if (pgd_none(*(pgd_t *)__nocache_fix(pgdp))) { in srmmu_early_allocate_ptable_skeleton()
674 pgd_set(__nocache_fix(pgdp), pmdp); in srmmu_early_allocate_ptable_skeleton()
676 pmdp = pmd_offset(__nocache_fix(pgdp), start); in srmmu_early_allocate_ptable_skeleton()
693 pgd_t *pgdp; in srmmu_allocate_ptable_skeleton() local
698 pgdp = pgd_offset_k(start); in srmmu_allocate_ptable_skeleton()
699 if (pgd_none(*pgdp)) { in srmmu_allocate_ptable_skeleton()
704 pgd_set(pgdp, pmdp); in srmmu_allocate_ptable_skeleton()
706 pmdp = pmd_offset(pgdp, start); in srmmu_allocate_ptable_skeleton()
748 pgd_t *pgdp; in srmmu_inherit_prom_mappings() local
779 pgdp = pgd_offset_k(start); in srmmu_inherit_prom_mappings()
781 *(pgd_t *)__nocache_fix(pgdp) = __pgd(probed); in srmmu_inherit_prom_mappings()
785 if (pgd_none(*(pgd_t *)__nocache_fix(pgdp))) { in srmmu_inherit_prom_mappings()
791 pgd_set(__nocache_fix(pgdp), pmdp); in srmmu_inherit_prom_mappings()
793 pmdp = pmd_offset(__nocache_fix(pgdp), start); in srmmu_inherit_prom_mappings()
825 pgd_t *pgdp = pgd_offset_k(vaddr); in do_large_mapping() local
829 *(pgd_t *)__nocache_fix(pgdp) = __pgd(big_pte); in do_large_mapping()