Home
last modified time | relevance | path

Searched refs:pmap (Results 1 – 25 of 134) sorted by relevance

123456

/freebsd/sys/arm64/iommu/
H A Diommu_pmap.c63 #define SMMU_PMAP_LOCK(pmap) mtx_lock(&(pmap)->sp_mtx) argument
64 #define SMMU_PMAP_UNLOCK(pmap) mtx_unlock(&(pmap)->sp_mtx) argument
65 #define SMMU_PMAP_LOCK_ASSERT(pmap, type) \ argument
66 mtx_assert(&(pmap)->sp_mtx, (type))
86 static vm_page_t _pmap_alloc_l3(struct smmu_pmap *pmap, vm_pindex_t ptepindex);
87 static void _smmu_pmap_unwire_l3(struct smmu_pmap *pmap, vm_offset_t va,
104 smmu_pmap_l0(struct smmu_pmap *pmap, vm_offset_t va) in smmu_pmap_l0() argument
107 return (&pmap->sp_l0[smmu_l0_index(va)]); in smmu_pmap_l0()
120 smmu_pmap_l1(struct smmu_pmap *pmap, vm_offset_t va) in smmu_pmap_l1() argument
124 l0 = smmu_pmap_l0(pmap, va); in smmu_pmap_l1()
[all …]
H A Diommu_pmap.h44 int smmu_pmap_enter(struct smmu_pmap *pmap, vm_offset_t va, vm_paddr_t pa,
46 int smmu_pmap_remove(struct smmu_pmap *pmap, vm_offset_t va);
49 int pmap_gpu_enter(struct smmu_pmap *pmap, vm_offset_t va, vm_paddr_t pa,
51 int pmap_gpu_remove(struct smmu_pmap *pmap, vm_offset_t va);
54 void smmu_pmap_remove_pages(struct smmu_pmap *pmap);
55 void smmu_pmap_release(struct smmu_pmap *pmap);
56 int smmu_pmap_pinit(struct smmu_pmap *pmap);
/freebsd/sys/amd64/amd64/
H A Dpmap.c178 pmap_type_guest(pmap_t pmap) in pmap_type_guest() argument
181 return ((pmap->pm_type == PT_EPT) || (pmap->pm_type == PT_RVI)); in pmap_type_guest()
185 pmap_emulate_ad_bits(pmap_t pmap) in pmap_emulate_ad_bits() argument
188 return ((pmap->pm_flags & PMAP_EMULATE_AD_BITS) != 0); in pmap_emulate_ad_bits()
192 pmap_valid_bit(pmap_t pmap) in pmap_valid_bit() argument
196 switch (pmap->pm_type) { in pmap_valid_bit()
202 if (pmap_emulate_ad_bits(pmap)) in pmap_valid_bit()
208 panic("pmap_valid_bit: invalid pm_type %d", pmap->pm_type); in pmap_valid_bit()
215 pmap_rw_bit(pmap_t pmap) in pmap_rw_bit() argument
219 switch (pmap->pm_type) { in pmap_rw_bit()
[all …]
/freebsd/sys/i386/i386/
H A Dpmap.c287 static void free_pv_entry(pmap_t pmap, pv_entry_t pv);
288 static pv_entry_t get_pv_entry(pmap_t pmap, bool try);
289 static void pmap_pv_demote_pde(pmap_t pmap, vm_offset_t va, vm_paddr_t pa);
290 static bool pmap_pv_insert_pde(pmap_t pmap, vm_offset_t va, pd_entry_t pde,
293 static void pmap_pv_promote_pde(pmap_t pmap, vm_offset_t va, vm_paddr_t pa);
295 static void pmap_pvh_free(struct md_page *pvh, pmap_t pmap, vm_offset_t va);
296 static pv_entry_t pmap_pvh_remove(struct md_page *pvh, pmap_t pmap,
300 static void pmap_abort_ptp(pmap_t pmap, vm_offset_t va, vm_page_t mpte);
301 static bool pmap_demote_pde(pmap_t pmap, pd_entry_t *pde, vm_offset_t va);
302 static int pmap_enter_4mpage(pmap_t pmap, vm_offset_
1121 pmap_pat_index(pmap_t pmap,pt_entry_t pte,bool is_pde) pmap_pat_index() argument
1221 pmap_invalidate_page_int(pmap_t pmap,vm_offset_t va) pmap_invalidate_page_int() argument
1247 pmap_invalidate_range_int(pmap_t pmap,vm_offset_t sva,vm_offset_t eva) pmap_invalidate_range_int() argument
1277 pmap_invalidate_all_int(pmap_t pmap) pmap_invalidate_all_int() argument
1359 pmap_update_pde(pmap_t pmap,vm_offset_t va,pd_entry_t * pde,pd_entry_t newpde) pmap_update_pde() argument
1400 pmap_invalidate_page_int(pmap_t pmap,vm_offset_t va) pmap_invalidate_page_int() argument
1408 pmap_invalidate_range_int(pmap_t pmap,vm_offset_t sva,vm_offset_t eva) pmap_invalidate_range_int() argument
1418 pmap_invalidate_all_int(pmap_t pmap) pmap_invalidate_all_int() argument
1433 pmap_update_pde(pmap_t pmap,vm_offset_t va,pd_entry_t * pde,pd_entry_t newpde) pmap_update_pde() argument
1468 pmap_invalidate_pde_page(pmap_t pmap,vm_offset_t va,pd_entry_t pde) pmap_invalidate_pde_page() argument
1492 pmap_is_current(pmap_t pmap) pmap_is_current() argument
1564 pmap_pte_quick(pmap_t pmap,vm_offset_t va) pmap_pte_quick() argument
1601 pmap_pte_quick3(pmap_t pmap,vm_offset_t va) pmap_pte_quick3() argument
1635 pmap_pte_ufast(pmap_t pmap,vm_offset_t va,pd_entry_t pde) pmap_pte_ufast() argument
1933 pmap_insert_pt_page(pmap_t pmap,vm_page_t mpte,bool promoted,bool allpte_PG_A_set) pmap_insert_pt_page() argument
1951 pmap_remove_pt_page(pmap_t pmap,vm_offset_t va) pmap_remove_pt_page() argument
1965 pmap_unwire_ptp(pmap_t pmap,vm_page_t m,struct spglist * free) pmap_unwire_ptp() argument
1977 _pmap_unwire_ptp(pmap_t pmap,vm_page_t m,struct spglist * free) _pmap_unwire_ptp() argument
2002 pmap_unuse_pt(pmap_t pmap,vm_offset_t va,struct spglist * free) pmap_unuse_pt() argument
2019 pmap_abort_ptp(pmap_t pmap,vm_offset_t va,vm_page_t mpte) pmap_abort_ptp() argument
2120 _pmap_allocpte(pmap_t pmap,u_int ptepindex,u_int flags) _pmap_allocpte() argument
2163 pmap_allocpte(pmap_t pmap,vm_offset_t va,u_int flags) pmap_allocpte() argument
2314 pmap_t pmap; pmap_pv_reclaim() local
2448 free_pv_entry(pmap_t pmap,pv_entry_t pv) free_pv_entry() argument
2503 get_pv_entry(pmap_t pmap,bool try) get_pv_entry() argument
2577 pmap_pvh_remove(struct md_page * pvh,pmap_t pmap,vm_offset_t va) pmap_pvh_remove() argument
2592 pmap_pv_demote_pde(pmap_t pmap,vm_offset_t va,vm_paddr_t pa) pmap_pv_demote_pde() argument
2626 pmap_pv_promote_pde(pmap_t pmap,vm_offset_t va,vm_paddr_t pa) pmap_pv_promote_pde() argument
2661 pmap_pvh_free(struct md_page * pvh,pmap_t pmap,vm_offset_t va) pmap_pvh_free() argument
2671 pmap_remove_entry(pmap_t pmap,vm_page_t m,vm_offset_t va) pmap_remove_entry() argument
2689 pmap_insert_entry(pmap_t pmap,vm_offset_t va,vm_page_t m) pmap_insert_entry() argument
2704 pmap_try_insert_pv_entry(pmap_t pmap,vm_offset_t va,vm_page_t m) pmap_try_insert_pv_entry() argument
2723 pmap_pv_insert_pde(pmap_t pmap,vm_offset_t va,pd_entry_t pde,u_int flags) pmap_pv_insert_pde() argument
2759 pmap_demote_pde(pmap_t pmap,pd_entry_t * pde,vm_offset_t va) pmap_demote_pde() argument
2908 pmap_remove_kernel_pde(pmap_t pmap,pd_entry_t * pde,vm_offset_t va) pmap_remove_kernel_pde() argument
2947 pmap_remove_pde(pmap_t pmap,pd_entry_t * pdq,vm_offset_t sva,struct spglist * free) pmap_remove_pde() argument
3005 pmap_remove_pte(pmap_t pmap,pt_entry_t * ptq,vm_offset_t va,struct spglist * free) pmap_remove_pte() argument
3040 pmap_remove_page(pmap_t pmap,vm_offset_t va,struct spglist * free) pmap_remove_page() argument
3057 pmap_remove_ptes(pmap_t pmap,vm_offset_t sva,vm_offset_t eva,struct spglist * free) pmap_remove_ptes() argument
3208 pmap_t pmap; __CONCAT() local
3268 pmap_protect_pde(pmap_t pmap,pd_entry_t * pde,vm_offset_t sva,vm_prot_t prot) pmap_protect_pde() argument
3475 pmap_promote_pde(pmap_t pmap,pd_entry_t * pde,vm_offset_t va,vm_page_t mpte) pmap_promote_pde() argument
3917 pmap_enter_4mpage(pmap_t pmap,vm_offset_t va,vm_page_t m,vm_prot_t prot) pmap_enter_4mpage() argument
3968 pmap_enter_pde(pmap_t pmap,vm_offset_t va,pd_entry_t newpde,u_int flags,vm_page_t m) pmap_enter_pde() argument
4157 pmap_enter_quick_locked(pmap_t pmap,vm_offset_t va,vm_page_t m,vm_prot_t prot,vm_page_t mpte) pmap_enter_quick_locked() argument
4797 pmap_t pmap; pmap_pvh_wired_mappings() local
5009 pmap_t pmap; pmap_is_modified_pvh() local
5079 pmap_t pmap; pmap_is_referenced_pvh() local
5106 pmap_t pmap; __CONCAT() local
5182 pmap_t pmap; __CONCAT() local
5411 pmap_t pmap; __CONCAT() local
5866 pmap_t pmap, oldpmap; __CONCAT() local
[all...]
H A Dpmap_base.c106 static SYSCTL_NODE(_vm, OID_AUTO, pmap, CTLFLAG_RD | CTLFLAG_MPSAFE, 0,
255 struct pmap kernel_pmap_store;
512 pmap_get_cr3(pmap_t pmap) in pmap_get_cr3() argument
515 return (pmap_methods_ptr->pm_get_cr3(pmap)); in pmap_get_cr3()
561 pmap_is_valid_memattr(pmap_t pmap, vm_memattr_t mode) in pmap_is_valid_memattr() argument
564 return (pmap_methods_ptr->pm_is_valid_memattr(pmap, mode)); in pmap_is_valid_memattr()
568 pmap_cache_bits(pmap_t pmap, int mode, bool is_pde) in pmap_cache_bits() argument
571 return (pmap_methods_ptr->pm_cache_bits(pmap, mode, is_pde)); in pmap_cache_bits()
575 pmap_ps_enabled(pmap_t pmap) in pmap_ps_enabled() argument
578 return (pmap_methods_ptr->pm_ps_enabled(pmap)); in pmap_ps_enabled()
[all …]
H A Dvm86.c605 if (vmc->pmap[i].pte_num == pagenum) in vm86_getpage()
606 return (vmc->pmap[i].kva); in vm86_getpage()
616 if (vmc->pmap[i].pte_num == pagenum) in vm86_addpage()
628 vmc->pmap[i].flags = flags; in vm86_addpage()
629 vmc->pmap[i].kva = kva; in vm86_addpage()
630 vmc->pmap[i].pte_num = pagenum; in vm86_addpage()
736 page = vtophys(vmc->pmap[i].kva & PG_FRAME_PAE); in vm86_datacall()
737 entry = vmc->pmap[i].pte_num; in vm86_datacall()
738 vmc->pmap[i].old_pte = pte_pae[entry]; in vm86_datacall()
740 pmap_invalidate_page(kernel_pmap, vmc->pmap[i].kva); in vm86_datacall()
[all …]
/freebsd/sys/riscv/riscv/
H A Dpmap.c220 static SYSCTL_NODE(_vm, OID_AUTO, pmap, CTLFLAG_RD | CTLFLAG_MPSAFE, 0,
224 LIST_HEAD(pmaplist, pmap);
232 struct pmap kernel_pmap_store;
307 static void free_pv_entry(pmap_t pmap, pv_entry_t pv);
308 static pv_entry_t get_pv_entry(pmap_t pmap, struct rwlock **lockp);
310 static void pmap_pvh_free(struct md_page *pvh, pmap_t pmap, vm_offset_t va);
311 static pv_entry_t pmap_pvh_remove(struct md_page *pvh, pmap_t pmap,
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,
[all …]
/freebsd/sys/arm64/arm64/
H A Dpmap.c159 #define PMAP_ASSERT_STAGE1(pmap) MPASS((pmap)->pm_stage == PM_STAGE1) argument
160 #define PMAP_ASSERT_STAGE2(pmap) MPASS((pmap)->pm_stage == PM_STAGE2) argument
297 struct pmap kernel_pmap_store;
355 static SYSCTL_NODE(_vm, OID_AUTO, pmap, CTLFLAG_RD | CTLFLAG_MPSAFE, 0,
457 static void free_pv_entry(pmap_t pmap, pv_entry_t pv);
458 static pv_entry_t get_pv_entry(pmap_t pmap, struct rwlock **lockp);
460 static void pmap_pvh_free(struct md_page *pvh, pmap_t pmap, vm_offset_t va);
461 static pv_entry_t pmap_pvh_remove(struct md_page *pvh, pmap_t pmap,
464 static void pmap_abort_ptp(pmap_t pmap, vm_offset_t va, vm_page_t mpte);
465 static bool pmap_activate_int(pmap_t pmap);
[all …]
/freebsd/sys/powerpc/aim/
H A Dmmu_radix.c60 #include <vm/pmap.h>
364 pmap_pml1e(pmap_t pmap, vm_offset_t va) in pmap_pml1e() argument
367 return (&pmap->pm_pml1[pmap_pml1e_index(va)]); in pmap_pml1e()
371 pmap_pml2e(pmap_t pmap, vm_offset_t va) in pmap_pml2e() argument
375 l1e = pmap_pml1e(pmap, va); in pmap_pml2e()
382 pmap_pml3e(pmap_t pmap, vm_offset_t va) in pmap_pml3e() argument
386 l2e = pmap_pml2e(pmap, va); in pmap_pml3e()
393 pmap_pte(pmap_t pmap, vm_offset_t va) in pmap_pte() argument
397 l3e = pmap_pml3e(pmap, va); in pmap_pte()
437 vm_paddr_t mmu_radix_extract(pmap_t pmap, vm_offset_
820 mmu_radix_pid_set(pmap_t pmap) mmu_radix_pid_set() argument
868 pmap_resident_count_inc(pmap_t pmap,int count) pmap_resident_count_inc() argument
876 pmap_resident_count_dec(pmap_t pmap,int count) pmap_resident_count_dec() argument
928 mmu_radix_ps_enabled(pmap_t pmap) mmu_radix_ps_enabled() argument
934 pmap_nofault_pte(pmap_t pmap,vm_offset_t va,int * is_l3e) pmap_nofault_pte() argument
957 pmap_nofault(pmap_t pmap,vm_offset_t va,vm_prot_t flags) pmap_nofault() argument
1074 pmap_invalidate_page(pmap_t pmap,vm_offset_t start) pmap_invalidate_page() argument
1085 pmap_invalidate_page_2m(pmap_t pmap,vm_offset_t start) pmap_invalidate_page_2m() argument
1096 pmap_invalidate_pwc(pmap_t pmap) pmap_invalidate_pwc() argument
1107 pmap_invalidate_range(pmap_t pmap,vm_offset_t start,vm_offset_t end) pmap_invalidate_range() argument
1129 pmap_invalidate_all(pmap_t pmap) pmap_invalidate_all() argument
1140 pmap_invalidate_l3e_page(pmap_t pmap,vm_offset_t va,pml3_entry_t l3e) pmap_invalidate_l3e_page() argument
1184 reserve_pv_entries(pmap_t pmap,int needed,struct rwlock ** lockp) reserve_pv_entries() argument
1258 pmap_pvh_remove(struct md_page * pvh,pmap_t pmap,vm_offset_t va) pmap_pvh_remove() argument
1286 pmap_pv_demote_l3e(pmap_t pmap,vm_offset_t va,vm_paddr_t pa,struct rwlock ** lockp) pmap_pv_demote_l3e() argument
1351 reclaim_pv_chunk_leave_pmap(pmap_t pmap,pmap_t locked_pmap) reclaim_pv_chunk_leave_pmap() argument
1380 pmap_t next_pmap, pmap; reclaim_pv_chunk() local
1549 free_pv_entry(pmap_t pmap,pv_entry_t pv) free_pv_entry() argument
1606 get_pv_entry(pmap_t pmap,struct rwlock ** lockp) get_pv_entry() argument
1675 pmap_pv_promote_l3e(pmap_t pmap,vm_offset_t va,vm_paddr_t pa,struct rwlock ** lockp) pmap_pv_promote_l3e() argument
1717 pmap_pvh_free(struct md_page * pvh,pmap_t pmap,vm_offset_t va) pmap_pvh_free() argument
1731 pmap_try_insert_pv_entry(pmap_t pmap,vm_offset_t va,vm_page_t m,struct rwlock ** lockp) pmap_try_insert_pv_entry() argument
2218 mmu_radix_advise(pmap_t pmap,vm_offset_t sva,vm_offset_t eva,int advice) mmu_radix_advise() argument
2428 pmap_t pmap; mmu_radix_clear_modify() local
2723 pmap_promote_l3e(pmap_t pmap,pml3_entry_t * pde,vm_offset_t va,struct rwlock ** lockp) pmap_promote_l3e() argument
2826 mmu_radix_enter(pmap_t pmap,vm_offset_t va,vm_page_t m,vm_prot_t prot,u_int flags,int8_t psind) mmu_radix_enter() argument
3145 pmap_abort_ptp(pmap_t pmap,vm_offset_t va,vm_page_t pdpg) pmap_abort_ptp() argument
3170 pmap_enter_2mpage(pmap_t pmap,vm_offset_t va,vm_page_t m,vm_prot_t prot,struct rwlock ** lockp) pmap_enter_2mpage() argument
3203 pmap_enter_l3e(pmap_t pmap,vm_offset_t va,pml3_entry_t newpde,u_int flags,vm_page_t m,struct rwlock ** lockp) pmap_enter_l3e() argument
3334 mmu_radix_enter_object(pmap_t pmap,vm_offset_t start,vm_offset_t end,vm_page_t m_start,vm_prot_t prot) mmu_radix_enter_object() argument
3374 mmu_radix_enter_quick_locked(pmap_t pmap,vm_offset_t va,vm_page_t m,vm_prot_t prot,vm_page_t mpte,struct rwlock ** lockp,bool * invalidate) mmu_radix_enter_quick_locked() argument
3481 mmu_radix_enter_quick(pmap_t pmap,vm_offset_t va,vm_page_t m,vm_prot_t prot) mmu_radix_enter_quick() argument
3501 mmu_radix_extract(pmap_t pmap,vm_offset_t va) mmu_radix_extract() argument
3533 mmu_radix_extract_and_hold(pmap_t pmap,vm_offset_t va,vm_prot_t prot) mmu_radix_extract_and_hold() argument
3760 pmap_t pmap; pmap_page_test_mappings() local
3847 mmu_radix_is_prefaultable(pmap_t pmap,vm_offset_t addr) mmu_radix_is_prefaultable() argument
3899 pmap_t pmap; mmu_radix_ts_referenced() local
4043 mmu_radix_object_init_pt(pmap_t pmap,vm_offset_t addr,vm_object_t object,vm_pindex_t pindex,vm_size_t size) mmu_radix_object_init_pt() argument
4128 mmu_radix_page_exists_quick(pmap_t pmap,vm_page_t m) mmu_radix_page_exists_quick() argument
4181 pmap_t pmap; mmu_radix_page_wired_mappings() local
4243 mmu_radix_pinit(pmap_t pmap) mmu_radix_pinit() argument
4283 _pmap_allocpte(pmap_t pmap,vm_pindex_t ptepindex,struct rwlock ** lockp) _pmap_allocpte() argument
4406 pmap_allocl3e(pmap_t pmap,vm_offset_t va,struct rwlock ** lockp) pmap_allocl3e() argument
4430 pmap_allocpte(pmap_t pmap,vm_offset_t va,struct rwlock ** lockp) pmap_allocpte() argument
4480 mmu_radix_pinit0(pmap_t pmap) mmu_radix_pinit0() argument
4498 pmap_protect_l3e(pmap_t pmap,pt_entry_t * l3e,vm_offset_t sva,vm_prot_t prot) pmap_protect_l3e() argument
4538 mmu_radix_protect(pmap_t pmap,vm_offset_t sva,vm_offset_t eva,vm_prot_t prot) mmu_radix_protect() argument
4753 pmap_insert_pt_page(pmap_t pmap,vm_page_t mpte) pmap_insert_pt_page() argument
4767 pmap_remove_pt_page(pmap_t pmap,vm_offset_t va) pmap_remove_pt_page() argument
4781 pmap_unwire_ptp(pmap_t pmap,vm_offset_t va,vm_page_t m,struct spglist * free) pmap_unwire_ptp() argument
4793 _pmap_unwire_ptp(pmap_t pmap,vm_offset_t va,vm_page_t m,struct spglist * free) _pmap_unwire_ptp() argument
4844 pmap_unuse_pt(pmap_t pmap,vm_offset_t va,pml3_entry_t ptepde,struct spglist * free) pmap_unuse_pt() argument
4857 mmu_radix_release(pmap_t pmap) mmu_radix_release() argument
4879 pmap_pv_insert_l3e(pmap_t pmap,vm_offset_t va,pml3_entry_t pde,u_int flags,struct rwlock ** lockp) pmap_pv_insert_l3e() argument
4915 pmap_demote_l3e(pmap_t pmap,pml3_entry_t * pde,vm_offset_t va) pmap_demote_l3e() argument
4928 pmap_demote_l3e_locked(pmap_t pmap,pml3_entry_t * l3e,vm_offset_t va,struct rwlock ** lockp) pmap_demote_l3e_locked() argument
5039 pmap_remove_kernel_l3e(pmap_t pmap,pml3_entry_t * l3e,vm_offset_t va) pmap_remove_kernel_l3e() argument
5068 pmap_remove_l3e(pmap_t pmap,pml3_entry_t * pdq,vm_offset_t sva,struct spglist * free,struct rwlock ** lockp) pmap_remove_l3e() argument
5118 pmap_remove_pte(pmap_t pmap,pt_entry_t * ptq,vm_offset_t va,pml3_entry_t ptepde,struct spglist * free,struct rwlock ** lockp) pmap_remove_pte() argument
5152 pmap_remove_page(pmap_t pmap,vm_offset_t va,pml3_entry_t * l3e,struct spglist * free) pmap_remove_page() argument
5181 pmap_remove_ptes(pmap_t pmap,vm_offset_t sva,vm_offset_t eva,pml3_entry_t * l3e,struct spglist * free,struct rwlock ** lockp) pmap_remove_ptes() argument
5217 mmu_radix_remove(pmap_t pmap,vm_offset_t sva,vm_offset_t eva) mmu_radix_remove() argument
5338 pmap_t pmap; mmu_radix_remove_all() local
5442 mmu_radix_remove_pages(pmap_t pmap) mmu_radix_remove_pages() argument
5621 pmap_t pmap; mmu_radix_remove_write() local
5710 mmu_radix_unwire(pmap_t pmap,vm_offset_t sva,vm_offset_t eva) mmu_radix_unwire() argument
5803 mmu_radix_mincore(pmap_t pmap,vm_offset_t addr,vm_paddr_t * locked_pa) mmu_radix_mincore() argument
5851 pmap_t pmap; mmu_radix_activate() local
6013 pmap_demote_l2e(pmap_t pmap,pml2_entry_t * l2e,vm_offset_t va) pmap_demote_l2e() argument
6506 pmap_t pmap; pmap_page_print_mappings() local
6526 pmap_t pmap; DB_SHOW_COMMAND() local
[all...]
H A Dmmu_oea64.c294 static void moea64_syncicache(pmap_t pmap, vm_offset_t va,
362 static int moea64_sp_enter(pmap_t pmap, vm_offset_t va,
367 static void moea64_sp_promote(pmap_t pmap, vm_offset_t va, vm_page_t m);
566 init_pvo_entry(struct pvo_entry *pvo, pmap_t pmap, vm_offset_t va) in init_pvo_entry() argument
572 PMAP_LOCK_ASSERT(pmap, MA_OWNED); in init_pvo_entry()
574 pvo->pvo_pmap = pmap; in init_pvo_entry()
577 vsid = va_to_vsid(pmap, va); in init_pvo_entry()
581 if (pmap == kernel_pmap && (pvo->pvo_vaddr & PVO_LARGE) != 0) in init_pvo_entry()
1388 moea64_mincore(pmap_t pmap, vm_offset_t addr, vm_paddr_t *pap) in moea64_mincore() argument
1396 PMAP_LOCK(pmap); in moea64_mincore()
[all …]
H A Dtrap_subr32.S44 #define RESTORE_SRS(pmap,sr) mtsr 0,sr; \ argument
45 lwz sr,1*4(pmap); mtsr 1,sr; \
46 lwz sr,2*4(pmap); mtsr 2,sr; \
47 lwz sr,3*4(pmap); mtsr 3,sr; \
48 lwz sr,4*4(pmap); mtsr 4,sr; \
49 lwz sr,5*4(pmap); mtsr 5,sr; \
50 lwz sr,6*4(pmap); mtsr 6,sr; \
51 lwz sr,7*4(pmap); mtsr 7,sr; \
52 lwz sr,8*4(pmap); mtsr 8,sr; \
53 lwz sr,9*4(pmap); mtsr 9,sr; \
[all …]
/freebsd/sys/riscv/include/
H A Dpmap.h58 #define pmap_map_delete(pmap, sva, eva) pmap_remove(pmap, sva, eva) argument
76 struct pmap { struct
83 LIST_ENTRY(pmap) pm_list; /* List of all pmaps */
88 typedef struct pmap *pmap_t; argument
91 extern struct pmap kernel_pmap_store;
95 #define PMAP_ASSERT_LOCKED(pmap) \ argument
96 mtx_assert(&(pmap)->pm_mtx, MA_OWNED)
97 #define PMAP_LOCK(pmap) mtx_lock(&(pmap)->pm_mtx) argument
98 #define PMAP_LOCK_ASSERT(pmap, type) \ argument
99 mtx_assert(&(pmap)->pm_mtx, (type))
[all …]
/freebsd/sys/arm/include/
H A Dpmap.h101 struct pmap { struct
108 LIST_ENTRY(pmap) pm_list; /* List of all pmaps */
111 typedef struct pmap *pmap_t;
114 extern struct pmap kernel_pmap_store;
117 #define PMAP_LOCK(pmap) mtx_lock(&(pmap)->pm_mtx) argument
118 #define PMAP_LOCK_ASSERT(pmap, type) \ argument
119 mtx_assert(&(pmap)->pm_mtx, (type))
120 #define PMAP_LOCK_DESTROY(pmap) mtx_destroy(&(pmap)->pm_mtx) argument
121 #define PMAP_LOCK_INIT(pmap) mtx_init(&(pmap)->pm_mtx, "pmap", \ argument
123 #define PMAP_LOCKED(pmap) mtx_owned(&(pmap)->pm_mtx) argument
[all …]
/freebsd/sys/arm64/include/
H A Dpmap.h80 struct pmap { struct
95 typedef struct pmap *pmap_t; argument
100 extern struct pmap kernel_pmap_store;
104 #define PMAP_ASSERT_LOCKED(pmap) \ argument
105 mtx_assert(&(pmap)->pm_mtx, MA_OWNED)
106 #define PMAP_LOCK(pmap) mtx_lock(&(pmap)->pm_mtx) argument
107 #define PMAP_LOCK_ASSERT(pmap, type) \ argument
108 mtx_assert(&(pmap)->pm_mtx, (type))
109 #define PMAP_LOCK_DESTROY(pmap) mtx_destroy(&(pmap)->pm_mtx) argument
110 #define PMAP_LOCK_INIT(pmap) mtx_init(&(pmap)->pm_mtx, "pmap", \ argument
[all …]
/freebsd/sys/i386/include/
H A Dpmap.h162 struct pmap { struct
169 LIST_ENTRY(pmap) pm_list; /* List of all pmaps */
175 typedef struct pmap *pmap_t; argument
178 extern struct pmap kernel_pmap_store;
181 #define PMAP_LOCK(pmap) mtx_lock(&(pmap)->pm_mtx) argument
182 #define PMAP_LOCK_ASSERT(pmap, type) \ argument
183 mtx_assert(&(pmap)->pm_mtx, (type))
184 #define PMAP_LOCK_DESTROY(pmap) mtx_destroy(&(pmap)->pm_mtx) argument
185 #define PMAP_LOCK_INIT(pmap) mtx_init(&(pmap)->pm_mtx, "pmap", \ argument
187 #define PMAP_LOCKED(pmap) mtx_owned(&(pmap)->pm_mtx) argument
[all …]
/freebsd/sys/powerpc/include/
H A Dpmap.h99 struct pmap;
100 typedef struct pmap *pmap_t;
160 struct pmap { struct
174 struct pmap *pmap_phys; argument
284 extern struct pmap kernel_pmap_store;
289 #define PMAP_LOCK(pmap) mtx_lock(&(pmap)->pm_mtx) argument
290 #define PMAP_LOCK_ASSERT(pmap, type) \ argument
291 mtx_assert(&(pmap)->pm_mtx, (type))
292 #define PMAP_LOCK_DESTROY(pmap) mtx_destroy(&(pmap)->pm_mtx) argument
293 #define PMAP_LOCK_INIT(pmap) mtx_init(&(pmap)->pm_mtx, \ argument
[all …]
/freebsd/sys/x86/include/
H A Dx86_smp.h22 struct pmap;
42 extern struct pmap *smp_tlb_pmap;
84 typedef void (*smp_invl_cb_t)(struct pmap *, vm_offset_t addr1,
113 void smp_masked_invlpg(cpuset_t mask, vm_offset_t addr, struct pmap *pmap,
116 vm_offset_t endva, struct pmap *pmap, smp_invl_cb_t curcpu_cb);
117 void smp_masked_invltlb(cpuset_t mask, struct pmap *pmap,
120 void smp_masked_invlpg(vm_offset_t addr, struct pmap *pmap,
123 struct pmap *pmap, smp_invl_cb_t curcpu_cb);
124 void smp_masked_invltlb(struct pmap *pmap, smp_invl_cb_t curcpu_cb);
/freebsd/sys/amd64/include/
H A Dpmap.h376 struct pmap { struct
400 typedef struct pmap *pmap_t; argument
403 extern struct pmap kernel_pmap_store;
406 #define PMAP_LOCK(pmap) mtx_lock(&(pmap)->pm_mtx) argument
407 #define PMAP_LOCK_ASSERT(pmap, type) \ argument
408 mtx_assert(&(pmap)->pm_mtx, (type))
409 #define PMAP_LOCK_DESTROY(pmap) mtx_destroy(&(pmap)->pm_mtx) argument
410 #define PMAP_LOCK_INIT(pmap) mtx_init(&(pmap)->pm_mtx, "pmap", \ argument
412 #define PMAP_LOCKED(pmap) mtx_owned(&(pmap)->pm_mtx) argument
413 #define PMAP_MTX(pmap) (&(pmap)->pm_mtx) argument
[all …]
/freebsd/include/rpcsvc/
H A Dpmap_prot.x90 struct pmap { struct
98 %typedef pmap PMAP; argument
122 pmap pml_map;
222 PMAPPROC_SET(pmap) = 1;
225 PMAPPROC_UNSET(pmap) = 2;
228 PMAPPROC_GETPORT(pmap) = 3;
252 %struct pmap { struct
258 %typedef struct pmap PMAP;
259 %extern bool_t xdr_pmap (XDR *, struct pmap *);
262 % struct pmap pml_map;
/freebsd/sys/vm/
H A Dpmap.h120 void pmap_active_cpus(pmap_t pmap, cpuset_t *res);
121 void pmap_advise(pmap_t pmap, vm_offset_t sva, vm_offset_t eva,
130 int pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m,
132 void pmap_enter_object(pmap_t pmap, vm_offset_t start,
134 void pmap_enter_quick(pmap_t pmap, vm_offset_t va, vm_page_t m,
136 vm_paddr_t pmap_extract(pmap_t pmap, vm_offset_t va);
137 vm_page_t pmap_extract_and_hold(pmap_t pmap, vm_offset_t va,
142 bool pmap_is_prefaultable(pmap_t pmap, vm_offset_t va);
146 int pmap_mincore(pmap_t pmap, vm_offset_t addr, vm_paddr_t *pap);
147 void pmap_object_init_pt(pmap_t pmap, vm_offset_t addr,
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dv3_pmaps.c51 POLICY_MAPPING *pmap; variable
57 pmap = sk_POLICY_MAPPING_value(pmaps, i);
58 i2t_ASN1_OBJECT(obj_tmp1, 80, pmap->issuerDomainPolicy);
59 i2t_ASN1_OBJECT(obj_tmp2, 80, pmap->subjectDomainPolicy);
68 POLICY_MAPPING *pmap = NULL; in v2i_POLICY_MAPPINGS() local
94 pmap = POLICY_MAPPING_new(); in v2i_POLICY_MAPPINGS()
95 if (pmap == NULL) { in v2i_POLICY_MAPPINGS()
99 pmap->issuerDomainPolicy = obj1; in v2i_POLICY_MAPPINGS()
100 pmap->subjectDomainPolicy = obj2; in v2i_POLICY_MAPPINGS()
102 sk_POLICY_MAPPING_push(pmaps, pmap); /* no failure as it was reserved */ in v2i_POLICY_MAPPINGS()
/freebsd/sys/dev/hyperv/vmbus/
H A Dhyperv_mmu.c130 hv_vm_tlb_flush(pmap_t pmap, vm_offset_t addr1, vm_offset_t addr2, in hv_vm_tlb_flush() argument
144 return smp_targeted_tlb_shootdown_native(pmap, addr1, addr2, in hv_vm_tlb_flush()
149 return smp_targeted_tlb_shootdown_native(pmap, addr1, addr2, in hv_vm_tlb_flush()
164 CPU_COPY(pmap_invalidate_cpu_mask(pmap), &tmp_mask); in hv_vm_tlb_flush()
165 CPU_COPY(pmap_invalidate_cpu_mask(pmap), &mask); in hv_vm_tlb_flush()
181 cr3 = pmap->pm_cr3; in hv_vm_tlb_flush()
232 curcpu_cb(pmap, addr1, addr2); in hv_vm_tlb_flush()
237 status = hv_flush_tlb_others_ex(pmap, addr1, addr2, mask, op, sc); in hv_vm_tlb_flush()
245 return smp_targeted_tlb_shootdown_native(pmap, addr1, in hv_vm_tlb_flush()
250 hv_flush_tlb_others_ex(pmap_t pmap, vm_offset_t addr1, vm_offset_t addr2, in hv_flush_tlb_others_ex() argument
[all …]
/freebsd/sys/arm/arm/
H A Ddb_interface.c160 struct pmap *pmap; in db_validate_address() local
162 if (!p || !p->p_vmspace || !p->p_vmspace->vm_map.pmap || in db_validate_address()
169 pmap = kernel_pmap; in db_validate_address()
171 pmap = p->p_vmspace->vm_map.pmap; in db_validate_address()
173 return (pmap_extract(pmap, addr) == 0); in db_validate_address()
/freebsd/tests/atf_python/sys/netlink/
H A Dutils.py74 pmap = build_propmap(cls)
76 pmap = {}
78 pmap.update(build_propmap(_cls))
79 bmap = get_bitmask_map(pmap, val)
/freebsd/include/rpc/
H A Dpmap_prot.h86 struct pmap { struct
94 struct pmap pml_map; argument
99 extern bool_t xdr_pmap(XDR *, struct pmap *);

123456