Home
last modified time | relevance | path

Searched refs:psind (Results 1 – 22 of 22) sorted by relevance

/freebsd-14.2/lib/libc/sys/
H A Dshm_open.c52 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 Duipc_shm.c282 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 Dkern_proc.c2584 if (m->psind != 0 && addr + pagesizes[1] <= entry->end && in kern_proc_vmmap_resident()
/freebsd-14.2/sys/vm/
H A Dvm_fault.c344 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 Dvm_reserv.c409 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 Dpmap.h133 vm_prot_t prot, u_int flags, int8_t psind);
H A Dvm_page.h250 int8_t psind; /* pagesizes[] index (O) */ member
H A Dvm_map.c2725 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 Dvm_page.c511 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 Dposixshm_test.c1195 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 Dmemfd_create.c109 slc.psind = pgidx; in memfd_create()
/freebsd-14.2/sys/powerpc/aim/
H A Dmmu_oea64.c393 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 Dmmu_oea.c1138 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 Dmmu_radix.c2826 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 Dmman.h199 int psind; member
/freebsd-14.2/sys/i386/i386/
H A Dpmap_base.c678 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 Dpmap.c3617 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 Dpmap.c4308 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 Dpmap.c7048 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 Dpmap.c185 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 Dpmap.c2888 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 Dpmap-v6.c3842 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()