/netbsd-src/sys/arch/mips/mips/ |
H A D | wired_map.c | 91 mips3_wired_enter_page(vaddr_t va, paddr_t pa, vsize_t pgsize) in mips3_wired_enter_page() argument 98 KASSERT((va & (pgsize - 1)) == 0); in mips3_wired_enter_page() 99 KASSERT((pa & (pgsize - 1)) == 0); in mips3_wired_enter_page() 102 va0 = va & ~MIPS3_WIRED_ENTRY_OFFMASK(pgsize); in mips3_wired_enter_page() 107 if ((va & pgsize) == 0) { in mips3_wired_enter_page() 140 mips3_wired_map[index].pgmask = MIPS3_PG_SIZE_TO_MASK(pgsize); in mips3_wired_enter_page()
|
/netbsd-src/sys/arch/mips/include/ |
H A D | wired_map.h | 69 #define MIPS3_WIRED_ENTRY_SIZE(pgsize) ((pgsize) * 2) argument 70 #define MIPS3_WIRED_ENTRY_OFFMASK(pgsize) (MIPS3_WIRED_ENTRY_SIZE(pgsize) - 1) argument
|
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/ |
H A D | mem_sec.c | 414 size_t pgsize; in sh_init() local 487 pgsize = PAGE_SIZE; in sh_init() 489 pgsize = (size_t)tmppgsize; in sh_init() 493 pgsize = (size_t)systemInfo.dwPageSize; in sh_init() 495 pgsize = PAGE_SIZE; in sh_init() 497 sh.map_size = pgsize + sh.arena_size + pgsize; in sh_init() 524 sh.arena = (char *)(sh.map_result + pgsize); in sh_init() 533 if (mprotect(sh.map_result, pgsize, PROT_NONE) < 0) in sh_init() 536 if (VirtualProtect(sh.map_result, pgsize, PAGE_NOACCESS, &flOldProtect) == FALSE) in sh_init() 541 aligned = (pgsize + sh.arena_size + (pgsize - 1)) & ~(pgsize - 1); in sh_init() [all …]
|
/netbsd-src/tests/fs/puffs/h_dtfs/ |
H A D | dtfs_vfsops.c | 200 int pgsize; in dtfs_fs_statvfs() local 203 pgsize = getpagesize(); in dtfs_fs_statvfs() 217 sbp->f_blocks = ROUND(btot, pgsize) / pgsize; in dtfs_fs_statvfs() 220 sbp->f_bsize = sbp->f_frsize = sbp->f_iosize = pgsize; in dtfs_fs_statvfs() 221 sbp->f_bfree = sbp->f_bavail = ROUND(bfree, pgsize) / pgsize; in dtfs_fs_statvfs()
|
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/ |
H A D | mem_sec.c | 386 size_t pgsize; in sh_init() local 440 pgsize = PAGE_SIZE; in sh_init() 442 pgsize = (size_t)tmppgsize; in sh_init() 445 pgsize = PAGE_SIZE; in sh_init() 447 sh.map_size = pgsize + sh.arena_size + pgsize; in sh_init() 465 sh.arena = (char *)(sh.map_result + pgsize); in sh_init() 473 if (mprotect(sh.map_result, pgsize, PROT_NONE) < 0) in sh_init() 477 aligned = (pgsize + sh.arena_size + (pgsize - 1)) & ~(pgsize - 1); in sh_init() 478 if (mprotect(sh.map_result + aligned, pgsize, PROT_NONE) < 0) in sh_init()
|
/netbsd-src/sys/arch/ews4800mips/sbd/ |
H A D | fb_sbdio.c | 383 vsize_t fb_off, reg_off, pgsize; in fb_pmap_enter() local 385 pgsize = MIPS3_WIRED_SIZE; in fb_pmap_enter() 392 if (mips3_wired_enter_page(va, fb_paddr, pgsize) == false) { in fb_pmap_enter() 397 if (mips3_wired_enter_page(va + pgsize, reg_paddr, pgsize) == false) { in fb_pmap_enter() 403 *reg_vaddr = va + pgsize + reg_off; in fb_pmap_enter()
|
/netbsd-src/usr.sbin/cpuctl/arch/ |
H A D | i386.c | 1031 uint32_t pgsize; in intel_cpu_cacheinfo() local 1039 pgsize = __SHIFTOUT(descs[1], CPUID_DATP_PGSIZE); in intel_cpu_cacheinfo() 1043 switch (pgsize) { in intel_cpu_cacheinfo() 1057 pgsize); in intel_cpu_cacheinfo() 1062 switch (pgsize) { in intel_cpu_cacheinfo() 1076 pgsize); in intel_cpu_cacheinfo() 1093 if (pgsize == CPUID_DATP_PGSIZE_4KB) in intel_cpu_cacheinfo() 1095 else if (pgsize == (CPUID_DATP_PGSIZE_4KB in intel_cpu_cacheinfo() 1098 else if (pgsize == (CPUID_DATP_PGSIZE_2MB in intel_cpu_cacheinfo() 1101 else if ((pgsize in intel_cpu_cacheinfo() [all...] |
/netbsd-src/common/lib/libprop/ |
H A D | prop_object.c | 909 size_t pgsize = (size_t)sysconf(_SC_PAGESIZE); in _prop_object_internalize_map_file() local 910 size_t pgmask = pgsize - 1; in _prop_object_internalize_map_file() 944 mf->poimf_xml = mmap(NULL, need_guard ? mf->poimf_mapsize + pgsize in _prop_object_internalize_map_file() 959 pgsize, PROT_READ, in _prop_object_internalize_map_file() 966 mf->poimf_mapsize += pgsize; in _prop_object_internalize_map_file()
|
/netbsd-src/tests/kernel/ |
H A D | t_sysv.c | 81 size_t pgsize; variable 628 pgsize = sysconf(_SC_PAGESIZE); in ATF_TC_BODY() 633 ATF_REQUIRE_MSG((sender_shmid = shmget(shmkey, pgsize, in ATF_TC_BODY() 751 shmid = shmget(shmkey, pgsize, 0); in sharer()
|
/netbsd-src/sys/arch/sparc/sparc/ |
H A D | pmap.c | 4194 int pgsize = PAGE_SIZE; in pmap_map() local 4198 va += pgsize; in pmap_map() 4199 pa += pgsize; in pmap_map()
|