Home
last modified time | relevance | path

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

/freebsd/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/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.c2579 if (m->psind != 0 && addr + pagesizes[1] <= entry->end && in kern_proc_vmmap_resident()
/freebsd/sys/vm/
H A Dvm_fault.c342 int psind; in vm_fault_soft_fast() local
380 psind = 0; in vm_fault_soft_fast()
387 (pagesizes[m_super->psind] - 1)) && in vm_fault_soft_fast()
403 psind = m_super->psind; in vm_fault_soft_fast()
419 if (psind == 0 && !fs->wired) in vm_fault_soft_fast()
489 int bdry_idx, i, npages, psind, rv; in vm_fault_populate() local
617 psind = m->psind; in vm_fault_populate()
618 if (psind > 0 && ((vaddr & (pagesizes[psind] - 1)) != 0 || in vm_fault_populate()
621 psind = 0; in vm_fault_populate()
623 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.h131 vm_prot_t prot, u_int flags, int8_t psind);
H A Dvm_page.h248 int8_t psind; /* pagesizes[] index (O) */ member
H A Dvm_map.c2706 if (p->psind > 0 && ((addr + ptoa(tmpidx)) & in vm_map_pmap_enter()
2707 (pagesizes[p->psind] - 1)) == 0) { in vm_map_pmap_enter()
2708 mask = atop(pagesizes[p->psind]) - 1; in vm_map_pmap_enter()
H A Dvm_page.c509 m->psind = 0; in vm_page_init_page()
5506 npages = atop(pagesizes[m->psind]); in vm_page_ps_test()
/freebsd/tests/sys/posixshm/
H A Dposixshm_test.c1194 shm_open_large(int psind, int policy, size_t sz) in shm_open_large() argument
1198 fd = shm_create_largepage(SHM_ANON, O_CREAT | O_RDWR, psind, policy, 0); in shm_open_large()
1302 lpc.psind = 1; in ATF_TC_BODY()
1882 int fd, psind; in ATF_TC_BODY() local
1885 psind = 1; in ATF_TC_BODY()
1888 fd = shm_create_largepage(test_path, O_CREAT | O_RDWR, psind, in ATF_TC_BODY()
1894 ATF_REQUIRE_MSG(ftruncate(fd, ps[psind]) == 0, in ATF_TC_BODY()
1908 vec = malloc(ps[psind] / ps[0]); in ATF_TC_BODY()
1910 ATF_REQUIRE_MSG(mincore(addr, ps[psind], vec) == 0, in ATF_TC_BODY()
1912 ATF_REQUIRE_MSG((vec[0] & MINCORE_SUPER) == MINCORE_PSIND(psind), in ATF_TC_BODY()
[all …]
/freebsd/lib/libc/gen/
H A Dmemfd_create.c109 slc.psind = pgidx; in memfd_create()
/freebsd/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.c2827 vm_prot_t prot, u_int flags, int8_t psind) in mmu_radix_enter() argument
2843 m, prot, flags, psind); in mmu_radix_enter()
2885 if (psind == 1) { in mmu_radix_enter()
2888 KASSERT(m->psind > 0, ("pmap_enter: m->psind < psind")); in mmu_radix_enter()
2937 pmap, va, m, prot, flags, psind, pmap->pm_pid, in mmu_radix_enter()
3046 pmap, va, m, prot, flags, psind, in mmu_radix_enter()
3342 m->psind == 1 && mmu_radix_ps_enabled(pmap) && in mmu_radix_enter_object()
/freebsd/sys/sys/
H A Dmman.h197 int psind; member
/freebsd/sys/i386/i386/
H A Dpmap_base.c676 u_int flags, int8_t psind) in pmap_enter() argument
679 return (pmap_methods_ptr->pm_enter(pmap, va, m, prot, flags, psind)); in pmap_enter()
H A Dpmap.c3650 vm_prot_t prot, u_int flags, int8_t psind) in __CONCAT()
3690 newpte |= pmap_cache_bits(pmap, m->md.pat_mode, psind > 0); in __CONCAT()
3697 if (psind == 1) { in __CONCAT()
3700 KASSERT(m->psind > 0, ("pmap_enter: m->psind < psind")); in __CONCAT()
4121 m->psind == 1 && pg_ps_enabled && in __CONCAT()
/freebsd/sys/amd64/amd64/
H A Dpmap.c7040 int psind) in pmap_enter_largepage() argument
7046 KASSERT(psind > 0 && psind < MAXPAGESIZES && pagesizes[psind] != 0, in pmap_enter_largepage()
7047 ("psind %d unexpected", psind)); in pmap_enter_largepage()
7050 newpte & PG_FRAME, newpte, psind)); in pmap_enter_largepage()
7051 KASSERT((va & (pagesizes[psind] - 1)) == 0, in pmap_enter_largepage()
7052 ("unaligned va %#lx psind %d", va, psind)); in pmap_enter_largepage()
7067 if (psind == 2) { /* 1G */ in pmap_enter_largepage()
7150 u_int flags, int8_t psind) in pmap_enter() argument
7214 psind); in pmap_enter()
7217 if (psind == 1) { in pmap_enter()
[all …]
/freebsd/sys/arm64/arm64/
H A Dpmap.c4756 int psind) in pmap_enter_largepage() argument
4762 KASSERT(psind > 0 && psind < MAXPAGESIZES, in pmap_enter_largepage()
4763 ("psind %d unexpected", psind)); in pmap_enter_largepage()
4766 PTE_TO_PHYS(newpte), newpte, psind)); in pmap_enter_largepage()
4769 if (!pmap_bti_same(pmap, va, va + pagesizes[psind])) in pmap_enter_largepage()
4771 if (psind == 2) { in pmap_enter_largepage()
4862 u_int flags, int8_t psind) in pmap_enter() argument
4932 if (psind == 2) { in pmap_enter()
4940 if (psind == 1) { in pmap_enter()
4943 KASSERT(m->psind > 0, ("pmap_enter: m->psind < psind")); in pmap_enter()
[all …]
/freebsd/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);
1261 vm_prot_t prot, u_int flags, int8_t psind) in mmu_booke_enter() argument
1267 error = mmu_booke_enter_locked(pmap, va, m, prot, flags, psind); in mmu_booke_enter()
1275 vm_prot_t prot, u_int pmap_flags, int8_t psind __unused) in mmu_booke_enter_locked()
/freebsd/sys/riscv/riscv/
H A Dpmap.c2878 u_int flags, int8_t psind) in pmap_enter() argument
2929 if (psind == 1) { in pmap_enter()
2933 KASSERT(m->psind > 0, ("pmap_enter: m->psind < psind")); in pmap_enter()
3371 m->psind == 1 && pmap_ps_enabled(pmap) && in pmap_enter_object()
/freebsd/sys/arm/arm/
H A Dpmap-v6.c3839 u_int flags, int8_t psind) in pmap_enter() argument
3880 if (psind == 1) { in pmap_enter()
3884 KASSERT(m->psind > 0, ("%s: m->psind < psind", __func__)); in pmap_enter()
4802 m->psind == 1 && sp_enabled && in pmap_enter_object()