| /freebsd-14.2/lib/libc/sys/ |
| H A D | shm_open.c | 52 shm_create_largepage(const char *path, int flags, int psind, int alloc_policy, in shm_create_largepage() argument 63 slc.psind = psind; in shm_create_largepage()
|
| /freebsd-14.2/sys/kern/ |
| H A D | uipc_shm.c | 282 int psind; in shm_largepage_phys_populate() local 306 int psind; in shm_largepage_phys_haspage() local 331 int psind; in shm_largepage_phys_dtor() local 334 if (psind != 0) { in shm_largepage_phys_dtor() 573 if (conf->psind <= 0 || conf->psind >= MAXPAGESIZES || in shm_ioctl() 574 pagesizes[conf->psind] == 0) in shm_ioctl() 820 int aflags, error, i, psind, try; in shm_dotruncate_largepage() local 831 psind = shmfd->shm_lp_psind; in shm_dotruncate_largepage() 832 if (psind == 0 && length != 0) in shm_dotruncate_largepage() 867 pagesizes[psind], 0, in shm_dotruncate_largepage() [all …]
|
| H A D | kern_proc.c | 2584 if (m->psind != 0 && addr + pagesizes[1] <= entry->end && in kern_proc_vmmap_resident()
|
| /freebsd-14.2/sys/vm/ |
| H A D | vm_fault.c | 344 int psind; in vm_fault_soft_fast() local 382 psind = 0; in vm_fault_soft_fast() 405 psind = m_super->psind; in vm_fault_soft_fast() 406 vaddr = rounddown2(vaddr, pagesizes[psind]); in vm_fault_soft_fast() 421 if (psind == 0 && !fs->wired) in vm_fault_soft_fast() 491 int bdry_idx, i, npages, psind, rv; in vm_fault_populate() local 619 psind = m->psind; in vm_fault_populate() 620 if (psind > 0 && ((vaddr & (pagesizes[psind] - 1)) != 0 || in vm_fault_populate() 623 psind = 0; in vm_fault_populate() 625 npages = atop(pagesizes[psind]); in vm_fault_populate() [all …]
|
| H A D | vm_reserv.c | 409 KASSERT(rv->pages->psind == 1, in vm_reserv_depopulate() 412 rv->pages->psind = 0; in vm_reserv_depopulate() 525 KASSERT(rv->pages->psind == 0, in vm_reserv_populate() 545 KASSERT(rv->pages->psind == 0, in vm_reserv_populate() 548 rv->pages->psind = 1; in vm_reserv_populate() 898 rv->pages->psind = 0; in vm_reserv_break()
|
| H A D | pmap.h | 133 vm_prot_t prot, u_int flags, int8_t psind);
|
| H A D | vm_page.h | 250 int8_t psind; /* pagesizes[] index (O) */ member
|
| H A D | vm_map.c | 2725 if (p->psind > 0 && ((addr + ptoa(tmpidx)) & in vm_map_pmap_enter() 2726 (pagesizes[p->psind] - 1)) == 0) { in vm_map_pmap_enter() 2727 mask = atop(pagesizes[p->psind]) - 1; in vm_map_pmap_enter()
|
| H A D | vm_page.c | 511 m->psind = 0; in vm_page_init_page() 5482 npages = atop(pagesizes[m->psind]); in vm_page_ps_test()
|
| /freebsd-14.2/tests/sys/posixshm/ |
| H A D | posixshm_test.c | 1195 shm_open_large(int psind, int policy, size_t sz) in shm_open_large() argument 1199 fd = shm_create_largepage(SHM_ANON, O_CREAT | O_RDWR, psind, policy, 0); in shm_open_large() 1303 lpc.psind = 1; in ATF_TC_BODY() 1883 int fd, psind; in ATF_TC_BODY() local 1886 psind = 1; in ATF_TC_BODY() 1889 fd = shm_create_largepage(test_path, O_CREAT | O_RDWR, psind, in ATF_TC_BODY() 1895 ATF_REQUIRE_MSG(ftruncate(fd, ps[psind]) == 0, in ATF_TC_BODY() 1909 vec = malloc(ps[psind] / ps[0]); in ATF_TC_BODY() 1911 ATF_REQUIRE_MSG(mincore(addr, ps[psind], vec) == 0, in ATF_TC_BODY() 1913 ATF_REQUIRE_MSG((vec[0] & MINCORE_SUPER) == MINCORE_PSIND(psind), in ATF_TC_BODY() [all …]
|
| /freebsd-14.2/lib/libc/gen/ |
| H A D | memfd_create.c | 109 slc.psind = pgidx; in memfd_create()
|
| /freebsd-14.2/sys/powerpc/aim/ |
| H A D | mmu_oea64.c | 393 u_int flags, int8_t psind); 1646 vm_prot_t prot, u_int flags, int8_t psind) in moea64_enter() argument 1661 if (psind > 0) in moea64_enter() 1826 int8_t psind; in moea64_enter_object() local 1835 m->psind == 1 && moea64_ps_enabled(pm)) in moea64_enter_object() 1836 psind = 1; in moea64_enter_object() 1838 psind = 0; in moea64_enter_object() 1842 if (psind == 1) in moea64_enter_object() 3676 vm_prot_t prot, u_int flags, int8_t psind) in moea64_sp_enter() argument 3690 KASSERT(psind == 1, ("%s: invalid psind: %d", __func__, psind)); in moea64_sp_enter() [all …]
|
| H A D | mmu_oea.c | 1138 u_int flags, int8_t psind) in moea_enter() argument 1145 error = moea_enter_locked(pmap, va, m, prot, flags, psind); in moea_enter() 1166 u_int flags, int8_t psind __unused) in moea_enter_locked()
|
| H A D | mmu_radix.c | 2826 vm_prot_t prot, u_int flags, int8_t psind) in mmu_radix_enter() argument 2842 m, prot, flags, psind); in mmu_radix_enter() 2884 if (psind == 1) { in mmu_radix_enter() 2887 KASSERT(m->psind > 0, ("pmap_enter: m->psind < psind")); in mmu_radix_enter() 2936 pmap, va, m, prot, flags, psind, pmap->pm_pid, in mmu_radix_enter() 3045 pmap, va, m, prot, flags, psind, in mmu_radix_enter() 3310 m->psind == 1 && mmu_radix_ps_enabled(pmap) && in mmu_radix_enter_object()
|
| /freebsd-14.2/sys/sys/ |
| H A D | mman.h | 199 int psind; member
|
| /freebsd-14.2/sys/i386/i386/ |
| H A D | pmap_base.c | 678 u_int flags, int8_t psind) in pmap_enter() argument 681 return (pmap_methods_ptr->pm_enter(pmap, va, m, prot, flags, psind)); in pmap_enter()
|
| H A D | pmap.c | 3617 vm_prot_t prot, u_int flags, int8_t psind) in __CONCAT() 3657 newpte |= pmap_cache_bits(pmap, m->md.pat_mode, psind > 0); in __CONCAT() 3664 if (psind == 1) { in __CONCAT() 3667 KASSERT(m->psind > 0, ("pmap_enter: m->psind < psind")); in __CONCAT() 4050 m->psind == 1 && pg_ps_enabled && in __CONCAT()
|
| /freebsd-14.2/sys/arm64/arm64/ |
| H A D | pmap.c | 4308 int psind) in pmap_enter_largepage() argument 4314 KASSERT(psind > 0 && psind < MAXPAGESIZES, in pmap_enter_largepage() 4315 ("psind %d unexpected", psind)); in pmap_enter_largepage() 4318 PTE_TO_PHYS(newpte), newpte, psind)); in pmap_enter_largepage() 4321 if (psind == 2) { in pmap_enter_largepage() 4412 u_int flags, int8_t psind) in pmap_enter() argument 4480 if (psind == 2) { in pmap_enter() 4485 rv = pmap_enter_largepage(pmap, va, new_l3, flags, psind); in pmap_enter() 4488 if (psind == 1) { in pmap_enter() 4491 KASSERT(m->psind > 0, ("pmap_enter: m->psind < psind")); in pmap_enter() [all …]
|
| /freebsd-14.2/sys/amd64/amd64/ |
| H A D | pmap.c | 7048 int psind) in pmap_enter_largepage() argument 7054 KASSERT(psind > 0 && psind < MAXPAGESIZES && pagesizes[psind] != 0, in pmap_enter_largepage() 7055 ("psind %d unexpected", psind)); in pmap_enter_largepage() 7058 newpte & PG_FRAME, newpte, psind)); in pmap_enter_largepage() 7059 KASSERT((va & (pagesizes[psind] - 1)) == 0, in pmap_enter_largepage() 7060 ("unaligned va %#lx psind %d", va, psind)); in pmap_enter_largepage() 7075 if (psind == 2) { /* 1G */ in pmap_enter_largepage() 7158 u_int flags, int8_t psind) in pmap_enter() argument 7222 psind); in pmap_enter() 7225 if (psind == 1) { in pmap_enter() [all …]
|
| /freebsd-14.2/sys/powerpc/booke/ |
| H A D | pmap.c | 185 vm_prot_t, u_int flags, int8_t psind); 296 vm_prot_t, u_int flags, int8_t psind); 1257 vm_prot_t prot, u_int flags, int8_t psind) in mmu_booke_enter() argument 1263 error = mmu_booke_enter_locked(pmap, va, m, prot, flags, psind); in mmu_booke_enter() 1271 vm_prot_t prot, u_int pmap_flags, int8_t psind __unused) in mmu_booke_enter_locked()
|
| /freebsd-14.2/sys/riscv/riscv/ |
| H A D | pmap.c | 2888 u_int flags, int8_t psind) in pmap_enter() argument 2939 if (psind == 1) { in pmap_enter() 2943 KASSERT(m->psind > 0, ("pmap_enter: m->psind < psind")); in pmap_enter() 3381 m->psind == 1 && pmap_ps_enabled(pmap) && in pmap_enter_object()
|
| /freebsd-14.2/sys/arm/arm/ |
| H A D | pmap-v6.c | 3842 u_int flags, int8_t psind) in pmap_enter() argument 3883 if (psind == 1) { in pmap_enter() 3887 KASSERT(m->psind > 0, ("%s: m->psind < psind", __func__)); in pmap_enter() 4805 m->psind == 1 && sp_enabled && in pmap_enter_object()
|