/freebsd/tools/test/stress2/testcases/shm/ |
H A D | shm.c | 52 static size_t pgsize; variable 60 pgsize = sysconf(_SC_PAGESIZE); in setup() 64 if ((shmid = shmget(shmkey, 10 * pgsize, IPC_CREAT | IPC_EXCL | 0640)) == -1) { in setup() 153 i = (i + 1) % (10 * pgsize); in test() 155 i = (i + 1) % (10 * pgsize); in test() 165 i = (i + 1) % (10 * pgsize); in test() 176 i = (i + 1) % (10 * pgsize); in test()
|
/freebsd/crypto/openssl/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 …]
|
/freebsd/contrib/netbsd-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()
|
/freebsd/tools/regression/sysvshm/ |
H A D | shmtest.c | 63 static size_t pgsize; variable 96 pgsize = sysconf(_SC_PAGESIZE); in main() 113 if ((sender_shmid = shmget(shmkey, pgsize, IPC_CREAT | 0640)) == -1) in main() 269 if ((shmid = shmget(shmkey, pgsize, 0)) == -1) in receiver()
|
/freebsd/lib/libc/gen/ |
H A D | memfd_create.c | 55 size_t namelen, pgsize; in memfd_create() local 98 pgsize = (size_t)1 << ((flags & MFD_HUGE_MASK) >> MFD_HUGE_SHIFT); in memfd_create() 100 if (pgsize == pgs[pgidx]) in memfd_create()
|
/freebsd/contrib/netbsd-tests/kernel/ |
H A D | t_sysv.c | 82 size_t pgsize; variable 624 pgsize = sysconf(_SC_PAGESIZE); in ATF_TC_BODY() 629 ATF_REQUIRE_MSG((sender_shmid = shmget(shmkey, pgsize, in ATF_TC_BODY() 753 shmid = shmget(shmkey, pgsize, 0); in sharer() 782 pgsize = sysconf(_SC_PAGESIZE); in ATF_TC_BODY() 787 ATF_REQUIRE_MSG((shmid_remap = shmget(shmkey, pgsize, in ATF_TC_BODY() 791 ATF_REQUIRE_MSG((shm_buf = mmap(NULL, pgsize, PROT_READ | PROT_WRITE, in ATF_TC_BODY()
|
/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_res.c | 131 offset += sginfo->pgsize; in __fill_user_dma_pages() 132 tmp_size -= sginfo->pgsize; in __fill_user_dma_pages() 172 pbl->pg_size = sginfo->pgsize; in __alloc_pbl() 237 pg_size = hwq_attr->sginfo->pgsize; in bnxt_qplib_alloc_init_hwq() 288 sginfo.pgsize = npde * PAGE_SIZE; in bnxt_qplib_alloc_init_hwq() 294 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_init_hwq() 350 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_init_hwq() 437 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_tqm_rings() 552 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_hwctx()
|
H A D | ib_verbs.c | 655 mrinfo.sg.pgsize = PAGE_SIZE; in bnxt_re_legacy_create_fence_mr() 1269 srq->qplib_srq.sginfo.pgsize = PAGE_SIZE; in bnxt_re_create_srq() 1863 qp->qplib_qp.sq.sginfo.pgsize = PAGE_SIZE; in bnxt_re_create_shadow_qp() 1872 qp->qplib_qp.rq.sginfo.pgsize = PAGE_SIZE; in bnxt_re_create_shadow_qp() 1944 rq->sginfo.pgsize = PAGE_SIZE; in bnxt_re_init_rq_attr() 2018 sq->sginfo.pgsize = PAGE_SIZE; in bnxt_re_init_sq_attr() 3791 qplcq->sginfo.pgsize = PAGE_SIZE; in bnxt_re_create_cq() 4070 cq->qplib_cq.sginfo.pgsize = PAGE_SIZE; in bnxt_re_resize_cq() 4807 mrinfo.sg.pgsize = PAGE_SIZE; in bnxt_re_get_dma_mr() 4809 mrinfo.sg.pgsize = PAGE_SIZE; in bnxt_re_get_dma_mr() [all …]
|
H A D | qplib_rcfw.c | 1048 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_rcfw_channel() 1063 sginfo.pgsize = BNXT_QPLIB_CMDQE_PAGE_SIZE; in bnxt_qplib_alloc_rcfw_channel()
|
H A D | qplib_res.h | 238 u32 pgsize; member
|
H A D | qplib_fp.c | 596 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_nq_mem() 1191 sginfo.pgsize = req_size; in bnxt_qplib_create_qp() 1212 sginfo.pgsize = req_size; in bnxt_qplib_create_qp()
|
H A D | qplib_sp.c | 727 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_fast_reg_page_list()
|
/freebsd/lib/libcuse/ |
H A D | cuse_lib.c | 168 unsigned long pgsize; in cuse_vmalloc() local 181 pgsize = getpagesize(); in cuse_vmalloc() 182 info.page_count = howmany(size, pgsize); in cuse_vmalloc() 215 ptr = mmap(NULL, info.page_count * pgsize, in cuse_vmalloc()
|
/freebsd/tools/test/stress2/misc/ |
H A D | sem.sh | 72 size_t pgsize;
|
/freebsd/sys/amd64/vmm/ |
H A D | vmm_instruction_emul.c | 2084 uint64_t *ptpbase, ptpphys, pte, pgsize; in _vm_gla2gpa() local 2130 pgsize = 1UL << ptpshift; in _vm_gla2gpa() 2176 *gpa = pte32 | (gla & (pgsize - 1)); in _vm_gla2gpa() 2220 pgsize = 1UL << ptpshift; in _vm_gla2gpa() 2243 if (pgsize > 1 * GB) { in _vm_gla2gpa() 2265 *gpa = pte | (gla & (pgsize - 1)); in _vm_gla2gpa()
|
/freebsd/contrib/byacc/ |
H A D | aclocal.m4 | 2054 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page"
|
/freebsd/contrib/dialog/ |
H A D | aclocal.m4 | 5962 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page"
|