/freebsd/sys/arm64/iommu/ |
H A D | iommu_pmap.c | 68 #define NL0PG (IOMMU_PAGE_SIZE/(sizeof (pd_entry_t))) 69 #define NL1PG (IOMMU_PAGE_SIZE/(sizeof (pd_entry_t))) 70 #define NL2PG (IOMMU_PAGE_SIZE/(sizeof (pd_entry_t))) 103 static __inline pd_entry_t * 110 static __inline pd_entry_t * 111 smmu_pmap_l0_to_l1(pd_entry_t *l0, vm_offset_t va) in smmu_pmap_l0_to_l1() 113 pd_entry_t *l1; in smmu_pmap_l0_to_l1() 115 l1 = (pd_entry_t *)PHYS_TO_DMAP(smmu_pmap_load(l0) & ~ATTR_MASK); in smmu_pmap_l0_to_l1() 119 static __inline pd_entry_t * 122 pd_entry_t *l0; in smmu_pmap_l1() [all …]
|
H A D | iommu_pmap.h | 37 pd_entry_t *sp_l0;
|
/freebsd/sys/arm64/vmm/ |
H A D | vmm_mmu.c | 66 l0 = (pd_entry_t *)PHYS_TO_DMAP(l0_paddr); in vmmpmap_init() 74 vmmpmap_release_l3(pd_entry_t l2e) in vmmpmap_release_l3() 80 l3 = (pd_entry_t *)PHYS_TO_DMAP(l2e & ~ATTR_MASK); in vmmpmap_release_l3() 92 vmmpmap_release_l2(pd_entry_t l1e) in vmmpmap_release_l2() 98 l2 = (pd_entry_t *)PHYS_TO_DMAP(l1e & ~ATTR_MASK); in vmmpmap_release_l2() 111 vmmpmap_release_l1(pd_entry_t l0e) in vmmpmap_release_l1() 117 l1 = (pd_entry_t *)PHYS_TO_DMAP(l0e & ~ATTR_MASK); in vmmpmap_release_l1() 192 l1 = (pd_entry_t *)PHYS_TO_DMAP(l0e & ~ATTR_MASK); in vmmpmap_l1_table() 235 l2 = (pd_entry_t *)PHYS_TO_DMAP(l1e & ~ATTR_MASK); in vmmpmap_l2_table() 239 static pd_entry_t * [all …]
|
/freebsd/sys/i386/include/ |
H A D | pmap_nopae.h | 72 typedef uint32_t pd_entry_t; typedef 89 extern pd_entry_t PTD[]; 90 extern pd_entry_t PTDpde[]; 91 extern pd_entry_t *IdlePTD_nopae;
|
H A D | pmap_pae.h | 90 typedef uint64_t pd_entry_t; typedef 114 extern pd_entry_t *IdlePTD_pae; /* physical address of "Idle" state directory */
|
H A D | param.h | 93 #define NPDEPTD (NBPTD / sizeof(pd_entry_t)) 95 #define NPDEPG (PAGE_SIZE / sizeof(pd_entry_t))
|
/freebsd/stand/kboot/kboot/arch/amd64/ |
H A D | elf64_freebsd.c | 118 static pd_entry_t *PT2_l0, *PT2_l1, *PT2_l2, *PT2_l3, *PT2_u0, *PT2_u1; 122 static pd_entry_t *PT2; 275 PT2[i] = (pd_entry_t)i * (2 * 1024 * 1024); in elf64_exec() 307 PT2_l0[i] = ((pd_entry_t)i << PDRSHIFT) | PG_V | in elf64_exec() 319 PT2_u0[i] = ((pd_entry_t)staging + in elf64_exec() 320 ((pd_entry_t)i - 1) * NBPDR) | in elf64_exec() 358 PT2_l0[i] = ((pd_entry_t)i << PDRSHIFT) | PG_V | in elf64_exec() 386 PT2_u0[i] = ((pd_entry_t)staging + in elf64_exec() 387 ((pd_entry_t)i) * NBPDR) | in elf64_exec()
|
/freebsd/stand/efi/loader/arch/amd64/ |
H A D | elf64_freebsd.c | 74 static pd_entry_t *PT2; 75 static pd_entry_t *PT2_l0, *PT2_l1, *PT2_l2, *PT2_l3, *PT2_u0, *PT2_u1; 162 PT2[i] = (pd_entry_t)i * (2 * 1024 * 1024); in elf64_exec() 195 PT2_l0[i] = ((pd_entry_t)i << PDRSHIFT) | PG_V | in elf64_exec() 207 PT2_u0[i] = ((pd_entry_t)staging + in elf64_exec() 208 ((pd_entry_t)i - 1) * NBPDR) | in elf64_exec()
|
/freebsd/sys/riscv/riscv/ |
H A D | pmap.c | 313 static bool pmap_demote_l1(pmap_t pmap, pd_entry_t *l1, vm_offset_t va); 314 static bool pmap_demote_l2(pmap_t pmap, pd_entry_t *l2, vm_offset_t va); 315 static bool pmap_demote_l2_locked(pmap_t pmap, pd_entry_t *l2, 317 static int pmap_enter_l2(pmap_t pmap, vm_offset_t va, pd_entry_t new_l2, 322 pd_entry_t ptepde, struct spglist *free, struct rwlock **lockp); 331 static int pmap_unuse_pt(pmap_t, vm_offset_t, pd_entry_t, struct spglist *); 398 static __inline pd_entry_t * 407 static __inline pd_entry_t * 408 pmap_l0_to_l1(pd_entry_t *l0, vm_offset_t va) in pmap_l0_to_l1() 411 pd_entry_t *l1; in pmap_l0_to_l1() [all …]
|
H A D | minidump_machdep.c | 156 pd_entry_t *l1, *l2, l2e; in cpu_minidumpsys()
|
/freebsd/sys/arm64/arm64/ |
H A D | efirt_machdep.c | 61 static pd_entry_t *efi_l0; 95 pd_entry_t *l0, *l1, *l2; in efi_1t1_l3() 111 l1 = (pd_entry_t *)PHYS_TO_DMAP(mphys); in efi_1t1_l3() 122 l2 = (pd_entry_t *)PHYS_TO_DMAP(mphys); in efi_1t1_l3() 176 efi_l0 = (pd_entry_t *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(efi_l0_page)); in efi_create_1t1_map()
|
H A D | pmap.c | 162 #define NL0PG (PAGE_SIZE/(sizeof (pd_entry_t))) 163 #define NL1PG (PAGE_SIZE/(sizeof (pd_entry_t))) 164 #define NL2PG (PAGE_SIZE/(sizeof (pd_entry_t))) 479 static int pmap_enter_l2(pmap_t pmap, vm_offset_t va, pd_entry_t new_l2, 493 pd_entry_t l1e, struct spglist *free, struct rwlock **lockp); 495 pd_entry_t l2e, struct spglist *free, struct rwlock **lockp); 508 static int pmap_unuse_pt(pmap_t, vm_offset_t, pd_entry_t, struct spglist *); 509 static void pmap_update_entry(pmap_t pmap, pd_entry_t *pte, pd_entry_t newpte, 547 static __inline pd_entry_t * 554 static __inline pd_entry_t * [all …]
|
H A D | minidump_machdep.c | 153 pd_entry_t *l0, *l1, l1e, *l2, l2e; in cpu_minidumpsys()
|
/freebsd/sys/i386/i386/ |
H A D | pmap.c | 174 #define PTD ((pd_entry_t *)((PTDPTDI << PDRSHIFT) + (PTDPTDI * PAGE_SIZE))) 175 #define PTDpde ((pd_entry_t *)((PTDPTDI << PDRSHIFT) + (PTDPTDI * PAGE_SIZE) + \ 262 static pd_entry_t *KPTD; 290 static bool pmap_pv_insert_pde(pmap_t pmap, vm_offset_t va, pd_entry_t pde, 301 static bool pmap_demote_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t va); 304 static int pmap_enter_pde(pmap_t pmap, vm_offset_t va, pd_entry_t newpde, 311 pd_entry_t pde); 316 static void pmap_kenter_pde(vm_offset_t va, pd_entry_t newpde); 317 static void pmap_pde_attr(pd_entry_t *pde, int cache_bits); 319 static bool pmap_promote_pde(pmap_t pmap, pd_entry_t *pd [all...] |
H A D | minidump_machdep_base.c | 161 pd_entry_t *pd, pde; in cpu_minidumpsys()
|
/freebsd/sys/arm64/include/ |
H A D | pmap.h | 85 pd_entry_t *pm_l0; 167 bool pmap_get_tables(pmap_t, vm_offset_t, pd_entry_t **, pd_entry_t **, 168 pd_entry_t **, pt_entry_t **);
|
H A D | pte.h | 39 typedef uint64_t pd_entry_t; /* page directory entry */ typedef
|
/freebsd/sys/amd64/amd64/ |
H A D | pmap.c | 1275 static bool pmap_pv_insert_pde(pmap_t pmap, vm_offset_t va, pd_entry_t pde, 1288 static bool pmap_demote_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t va); 1289 static bool pmap_demote_pde_locked(pmap_t pmap, pd_entry_t *pde, 1295 static int pmap_enter_pde(pmap_t pmap, vm_offset_t va, pd_entry_t newpde, 1307 pd_entry_t pde); 1312 static bool pmap_promote_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t va, 1315 static bool pmap_protect_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t sva, 1321 static pd_entry_t *pmap_pti_pde(vm_offset_t va); 1323 static int pmap_remove_pde(pmap_t pmap, pd_entry_t *pdq, vm_offset_t sva, 1326 pd_entry_t ptepde, struct spglist *free, struct rwlock **lockp); [all …]
|
H A D | mp_machdep.c | 327 pd_entry_t *v_pd; in start_all_aps() 352 v_pd = (pd_entry_t *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(m_pd[0])); in start_all_aps() 357 v_pd = (pd_entry_t *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(m_pd[1])); in start_all_aps() 362 v_pd = (pd_entry_t *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(m_pd[2])); in start_all_aps() 367 v_pd = (pd_entry_t *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(m_pd[3])); in start_all_aps()
|
H A D | efirt_machdep.c | 111 pd_entry_t *pde; in efi_1t1_pte() 153 pde = (pd_entry_t *)PHYS_TO_DMAP(mphys); in efi_1t1_pte()
|
H A D | minidump_machdep.c | 159 static pd_entry_t fakepd[NPDEPG];
|
/freebsd/sys/riscv/include/ |
H A D | pmap.h | 79 pd_entry_t *pm_top; /* top-level page table page */ 156 bool pmap_get_tables(pmap_t, vm_offset_t, pd_entry_t **, pd_entry_t **,
|
H A D | pte.h | 40 typedef uint64_t pd_entry_t; /* page directory entry */ typedef
|
/freebsd/sys/amd64/include/ |
H A D | pmap.h | 298 typedef u_int64_t pd_entry_t; typedef 314 #define P4Dmap ((pd_entry_t *)(addr_P4Dmap)) 324 #define P5Dmap ((pd_entry_t *)(addr_P5Dmap))
|
H A D | param.h | 99 #define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t)))
|