Searched defs:pgsz (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dinz_split_vpp.c40 size_t pgsz = sysconf(_SC_PAGESIZE); local
41 size_t mapsz = 10 * pgsz;
42 size_t clrsz = 5 * pgsz;
43 size_t clroff = 2 * pgsz;
44 size_t spltsz = 1 * pgsz;
45 size_t spltoff = 3 * pgsz;
H A Dinz_vpp.c38 size_t pgsz = sysconf(_SC_PAGESIZE); local
39 size_t mapsz = 10 * pgsz;
40 size_t clrsz = 5 * pgsz;
41 size_t clroff = 2 * pgsz;
/illumos-gate/usr/src/uts/common/syscall/
H A Dgetpagesizes.c80 size_t pgsz; local
92 pgsz = page_get_user_pagesize(i);
93 pgsza32[i] = (size32_t)pgsz;
94 if (pgsz > (size32_t)-1) {
H A Dmemcntl.c62 size_t pgsz; local
164 pgsz = STRUCT_FGET(mha, mha_pagesize);
168 * optimal pgsz if pgsz is 0.
178 * Disable autompss for this process unless pgsz == 0,
180 * pgsz == 0 case, leave the SAUTOLPG setting alone, as
186 if (pgsz != 0) {
193 if (pgsz == 0) {
201 pgsz = map_pgsz(type, p, 0, 0, 1);
216 if (pgsz
407 mem_getpgszc(size_t pgsz) argument
[all...]
H A Dlgrpsys.c64 ssize_t pgsz; local
239 pgsz = hat_getpagesize(hat,
241 if (pgsz != -1) {
243 pgsz;
/illumos-gate/usr/src/tools/elfextract/
H A Delfextract.c199 size_t pgsz; local
230 pgsz = getpagesize();
231 len = (stats.st_size + (pgsz - 1)) & (~(pgsz - 1));
/illumos-gate/usr/src/lib/libc/port/gen/
H A Darc4random.c122 size_t pgsz, mapsz; local
125 pgsz = sysconf(_SC_PAGESIZE);
126 if (pgsz == -1)
128 mapsz = P2ROUNDUP(sizeof (arc4_state_t), pgsz);
/illumos-gate/usr/src/cmd/tzreload/
H A Dtzreload.c117 int fd, pgsz; local
127 pgsz = sysconf(_SC_PAGESIZE);
136 if ((buf = calloc(1, pgsz)) == NULL) {
144 if (write(fd, buf, pgsz) != pgsz) {
/illumos-gate/usr/src/cmd/ppgsz/
H A Dppgsz.c122 /* pgsz array sufficient for max page sizes */
142 size_t pgsz = atosz(optarg); local
145 if (!ISP2(pgsz) || ((pgsz < pgsza[0]) && pgsz != 0)) {
146 pgsz = INVPGSZ;
149 if (pgsz == pgsza[i])
151 if (pgsz > pgsza[i]) {
152 pgsz = INVPGSZ;
157 if (pgsz
194 size_t pgsz[] = {INVPGSZ, INVPGSZ, INVPGSZ}; local
398 setpgsz(struct ps_prochandle *Pr, int dmodel, size_t pgsz[]) argument
434 setpgsz_anon(struct ps_prochandle *Pr, size_t pgsz, int dmodel) argument
[all...]
/illumos-gate/usr/src/lib/mpss/common/
H A Dmpss.c164 static size_t pgsz[PGSZELEM]; variable
176 if (sz == pgsz[i])
194 (void) getpagesizes(pgsz, nelem);
196 pgsz[nelem] = 0x800000;
/illumos-gate/usr/src/lib/liblgrp/common/
H A Dlgrp.c917 int pgsz; local
943 pgsz = getpagesize();
957 size = (lgrp_mem_size_t)pgsz *
961 size = (lgrp_mem_size_t)pgsz *
994 size += (lgrp_mem_size_t)pgsz *
998 size += (lgrp_mem_size_t)pgsz *
/illumos-gate/usr/src/uts/common/os/
H A Dgrow.c115 size_t pgsz, len; local
134 pgsz = map_pgsz(MAPPGSZ_HEAP, p, bssbase, len, 0);
135 szc = page_szc(pgsz);
166 addr = (caddr_t)P2ROUNDUP((uintptr_t)p->p_bssbase, pgsz);
170 if (addr >= p->p_bssbase && brkend > addr && IS_P2ALIGNED(len, pgsz)) {
190 size_t pgsz; local
201 pgsz = page_get_pagesize(szc);
202 ASSERT(pgsz > PAGESIZE);
204 pgsz = PAGESIZE;
222 * for heap size). If pgsz i
356 size_t pgsz; local
428 size_t pgsz; local
[all...]
H A Dexec.c1348 * so it's end is pgsz aligned.
1350 size_t pgsz = page_get_pagesize(szc); local
1351 ASSERT(IS_P2ALIGNED(zfodbase + zfodlen, pgsz));
1353 if (IS_P2ALIGNED(zfodbase, pgsz)) {
H A Dlgrp.c3627 lgrp_mem_choose(struct seg *seg, caddr_t vaddr, size_t pgsz) argument
3848 off = ((unsigned long)(vaddr - seg->s_base) / pgsz) %
/illumos-gate/usr/src/uts/sparc/os/
H A Dbootops.c557 size_t len, pgsz; local
568 pgsz = page_get_pagesize(i);
569 if (size < pgsz)
571 len = size & ~(pgsz - 1);
/illumos-gate/usr/src/cmd/trapstat/sun4/
H A Dtrapstat.c701 tstat_pgszdata_t *pgsz = data->tdata_pgsz; local
715 print_modepgsz(pre, &pgsz->tpgsz_user, &opgsz->tpgsz_user);
716 sum_modedata(&pgsz->tpgsz_user, &opgsz->tpgsz_user, sum);
722 print_modepgsz(pre, &pgsz->tpgsz_kernel, &opgsz->tpgsz_kernel);
723 sum_modedata(&pgsz->tpgsz_kernel, &opgsz->tpgsz_kernel, sum);
744 tstat_pgszdata_t *pgsz = data->tdata_pgsz; local
755 parsable_modepgsz(pre, &pgsz->tpgsz_user, &opgsz->tpgsz_user);
758 parsable_modepgsz(pre, &pgsz->tpgsz_kernel,
817 tstat_pgszdata_t *pgsz = data->tdata_pgsz; local
831 print_modedata(&pgsz
857 tstat_pgszdata_t *pgsz = data->tdata_pgsz; local
[all...]
/illumos-gate/usr/src/uts/sun4/vm/
H A Dvm_dep.c532 size_t pgsz = MMU_PAGESIZE; local
545 pgsz = hw_page_array[szc].hp_size;
547 pgsz > max_uheap_lpsize)
549 if (len >= pgsz) {
556 * size code is 0. Don't set pgsz less than current size.
558 if (addr == 0 && (pgsz < hw_page_array[p->p_brkpageszc].hp_size)) {
559 pgsz = hw_page_array[p->p_brkpageszc].hp_size;
562 return (pgsz);
568 size_t pgsz = MMU_PAGESIZE; local
581 pgsz
605 size_t pgsz; local
627 size_t pgsz = MMU_PAGESIZE; local
666 size_t pgsz; local
[all...]
/illumos-gate/usr/src/uts/common/vm/
H A Dseg_spt.c384 size_t pgsz; local
566 pgsz = page_get_pagesize(seg->s_szc);
568 for (a = addr, pidx = 0; pidx < npages; a += pgsz, pidx += pgcnt) {
569 sz = MIN(pgsz, ptob(npages - pidx));
1836 size_t pgsz; local
1872 pgsz = page_get_pagesize(sptseg->s_szc);
1874 shm_addr = (caddr_t)P2ALIGN((uintptr_t)(addr), pgsz);
1875 size = P2ROUNDUP((uintptr_t)(((addr + len) - shm_addr)), pgsz);
1922 for (; pidx < npages; a += pgsz, pidx += pgcnt) {
1924 a, pgsz,
2021 size_t pgsz; local
[all...]
H A Dvm_anon.c2864 size_t pgsz; local
2953 pgsz = page_get_pagesize(szc);
2954 pg_cnt = pgsz >> PAGESHIFT;
2955 if (IS_P2ALIGNED(addr, pgsz) && pg_cnt <= npgs &&
2970 lgrp = lgrp_mem_choose(seg, addr, pgsz);
2974 addr, pgsz, 0, lgrp);
3061 pg_cnt = pgsz >> PAGESHIFT;
H A Dvm_as.c1439 size_t pgsz; local
1479 pgsz = page_get_pagesize(nszc);
1480 a = (caddr_t)P2ROUNDUP((uintptr_t)addr, pgsz);
1509 a = (caddr_t)P2ALIGN((uintptr_t)eaddr, pgsz);
1534 pgsz = page_get_pagesize(szc);
2858 size_t pgsz = page_get_pagesize(szc); local
2861 if (!IS_P2ALIGNED(addr, pgsz) || !IS_P2ALIGNED(size, pgsz)) {
3139 size_t pgsz; local
3153 pgsz
[all...]
H A Dseg_vn.c249 #define CALC_LPG_REGION(pgsz, seg, addr, len, lpgaddr, lpgeaddr) { \
251 lpgaddr = (caddr_t)P2ALIGN((uintptr_t)(addr), pgsz); \
254 (len)), pgsz); \
414 size_t pgsz; local
431 pgsz = page_get_pagesize(szc);
432 if (pgsz <= PAGESIZE || !IS_P2ALIGNED(pgsz, pgsz)) {
550 size_t pgsz; local
589 pgsz
1916 size_t pgsz = page_get_pagesize(seg->s_szc); local
3363 size_t pgsz = page_get_pagesize(szc); local
3832 size_t pgsz = page_get_pagesize(szc); local
4641 size_t pgsz = page_get_pagesize(szc); local
4939 size_t pgsz; local
5674 size_t pgsz; local
6077 size_t pgsz = page_get_pagesize(szc); local
6357 size_t pgsz; local
6731 size_t pgsz; local
8357 size_t pgsz; local
8827 size_t pgsz; local
[all...]
H A Dvm_page.c1989 size_t pgsz; local
2028 pgsz = page_get_pagesize(szc);
2029 totpgs = curnpgs = npgs = pgsz >> PAGESHIFT;
2031 ASSERT(((uintptr_t)addr & (pgsz - 1)) == 0);
2036 lgrp = lgrp_mem_choose(seg, addr, pgsz);
2038 pp = page_get_freelist(vp, 0, seg, addr, pgsz,
2041 pp = page_get_freelist(vp, 0, seg, addr, pgsz,
2045 pp = page_get_freelist(vp, 0, seg, addr, pgsz,
2056 pgsz = page_get_pagesize(szc);
2057 curnpgs = pgsz >> PAGESHIF
5375 size_t pgsz; local
5557 size_t pgsz; local
[all...]
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c1387 size_t pgsz = page_get_pagesize(szc); local
1398 ASSERT(pgsz > PAGESIZE);
1400 extra_zfodsz = P2NPHASE((uintptr_t)ebss, pgsz);
/illumos-gate/usr/src/uts/i86pc/vm/
H A Dvm_machdep.c375 size_t pgsz = MMU_PAGESIZE; local
407 pgsz = LEVEL_SIZE(l);
414 if (addr == 0 && (pgsz < hw_page_array[mszc].hp_size)) {
415 pgsz = hw_page_array[mszc].hp_size;
417 return (pgsz);
426 return (pgsz);
437 size_t pgsz; local
445 pgsz = page_get_pagesize(i);
446 if (pgsz > max_lpsize) {
449 raddr = (caddr_t)P2ROUNDUP((uintptr_t)addr, pgsz);
1485 mtype_init(vnode_t *vp, caddr_t vaddr, uint_t *flags, size_t pgsz) argument
[all...]

Completed in 216 milliseconds