Home
last modified time | relevance | path

Searched refs:pgsize (Results 1 – 17 of 17) sorted by relevance

/freebsd/tools/test/stress2/testcases/shm/
H A Dshm.c52 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 Dmem_sec.c414 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 Ddtfs_vfsops.c200 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/lib/libc/gen/
H A Dmemfd_create.c55 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/tools/regression/sysvshm/
H A Dshmtest.c63 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/contrib/netbsd-tests/kernel/
H A Dt_sysv.c82 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 Dqplib_res.c131 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 Dib_verbs.c655 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()
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()
5132 mrinfo.sg.pgsize = BIT(page_shift); in bnxt_re_reg_user_mr()
[all …]
H A Dqplib_rcfw.c1048 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 Dqplib_res.h238 u32 pgsize; member
H A Dqplib_fp.c596 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 Dqplib_sp.c727 sginfo.pgsize = PAGE_SIZE; in bnxt_qplib_alloc_fast_reg_page_list()
/freebsd/lib/libcuse/
H A Dcuse_lib.c168 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 Dsem.sh72 size_t pgsize;
/freebsd/sys/amd64/vmm/
H A Dvmm_instruction_emul.c2070 uint64_t *ptpbase, ptpphys, pte, pgsize; in _vm_gla2gpa() local
2116 pgsize = 1UL << ptpshift; in _vm_gla2gpa()
2162 *gpa = pte32 | (gla & (pgsize - 1)); in _vm_gla2gpa()
2206 pgsize = 1UL << ptpshift; in _vm_gla2gpa()
2229 if (pgsize > 1 * GB) { in _vm_gla2gpa()
2251 *gpa = pte | (gla & (pgsize - 1)); in _vm_gla2gpa()
/freebsd/contrib/byacc/
H A Daclocal.m41737 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page"
/freebsd/contrib/dialog/
H A Daclocal.m45962 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title=\"\$ROOT(\$TYPE)\" -compress -pgsize $cf_man2html_page"