Home
last modified time | relevance | path

Searched refs:PAGESIZE (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/titanic_41/usr/src/uts/sun4v/os/
H A Dmemseg.c93 if (!IS_P2ALIGNED((uint64_t)pp, PAGESIZE) && in memseg_alloc_meta()
113 ASSERT(PAGESIZE % sizeof (page_t)); in memseg_alloc_meta()
114 pp = (page_t *)P2ROUNDUP((uint64_t)pp, PAGESIZE); in memseg_alloc_meta()
118 if (!IS_P2ALIGNED((uint64_t)epp, PAGESIZE) && in memseg_alloc_meta()
130 ASSERT(PAGESIZE % sizeof (page_t)); in memseg_alloc_meta()
134 ASSERT(IS_P2ALIGNED((uint64_t)pp, PAGESIZE)); in memseg_alloc_meta()
143 if (page_find(&mpvp, (u_offset_t)(vaddr + i * PAGESIZE))) in memseg_alloc_meta()
145 (void *)&mpvp, (void *)(vaddr + i * PAGESIZE)); in memseg_alloc_meta()
180 ASSERT(IS_P2ALIGNED((uint64_t)off, PAGESIZE)); in memseg_free_meta()
193 off += PAGESIZE; in memseg_free_meta()
[all …]
H A Dppage.c179 va = vmem_alloc(heap_arena, PAGESIZE, VM_SLEEP); in ppmapin()
197 hat_unload(kas.a_hat, va, PAGESIZE, in ppmapout()
199 vmem_free(heap_arena, va, PAGESIZE); in ppmapout()
205 hat_unload(kas.a_hat, va, PAGESIZE, in ppmapout()
289 bcopy(fm_va, to_va, PAGESIZE); in ppcopy()
319 ASSERT((int)len > 0 && (int)off >= 0 && off + len <= PAGESIZE); in pagezero()
/titanic_41/usr/src/lib/libsqlite/tool/
H A Ddiffdb.c16 #define PAGESIZE 1024 macro
22 unsigned char a1[PAGESIZE], a2[PAGESIZE]; in main()
38 while( read(db1, a1, PAGESIZE)==PAGESIZE && read(db2,a2,PAGESIZE)==PAGESIZE ){ in main()
39 if( memcmp(a1,a2,PAGESIZE) ){ in main()
/titanic_41/usr/src/uts/intel/ia32/os/
H A Ddesctbls.c587 ASSERT((sizeof (*gdt0) * NGDT) <= PAGESIZE); in init_gdt()
590 PAGESIZE, PAGESIZE); in init_gdt()
591 bzero(gdt0, PAGESIZE); in init_gdt()
657 ASSERT((sizeof (*gdt0) * NGDT) <= PAGESIZE); in init_gdt()
660 PAGESIZE, PAGESIZE); in init_gdt()
661 bzero(gdt0, PAGESIZE); in init_gdt()
810 ASSERT((sizeof (*gdt0) * NGDT) <= PAGESIZE); in init_gdt()
813 PAGESIZE, PAGESIZE); in init_gdt()
814 bzero(gdt0, PAGESIZE); in init_gdt()
859 ASSERT((sizeof (*gdt0) * NGDT) <= PAGESIZE); in init_gdt()
[all …]
/titanic_41/usr/src/uts/common/fs/swapfs/
H A Dswap_vnops.c214 pp = page_create_va(vp, off, PAGESIZE, in swap_getapage()
232 PAGESIZE, flags, cr, NULL); in swap_getapage()
247 PAGESIZE); in swap_getapage()
257 pagezero(pp, 0, PAGESIZE); in swap_getapage()
289 pvn_plist_init(pp, pl, plsz, off, PAGESIZE, rw); in swap_getapage()
327 ASSERT(len == PAGESIZE); in swap_getconpage()
329 ASSERT(plsz == PAGESIZE); in swap_getconpage()
410 err = VOP_PAGEIO(pvp, pp, poff, PAGESIZE, B_READ, in swap_getconpage()
424 swap_phys_free(pvp, poff, PAGESIZE); in swap_getconpage()
431 pagezero(pp, 0, PAGESIZE); in swap_getconpage()
[all …]
/titanic_41/usr/src/uts/i86pc/sys/
H A Dmachparam.h105 #define PAGESIZE 0x1000 /* All of the above, for logical */ macro
107 #define PAGEOFFSET (PAGESIZE - 1)
113 #define DATA_ALIGN PAGESIZE
125 #define DEFAULTSTKSZ (DEFAULTSTKSZ_NPGS * PAGESIZE)
127 #define DEFAULTSTKSZ _MUL(DEFAULTSTKSZ_NPGS, PAGESIZE) /* as(1) lameness */
338 #define T_STACKSZ 2*PAGESIZE
345 #define STARTUP_STKSZ 3*PAGESIZE
/titanic_41/usr/src/uts/common/vm/
H A Dvm_pvn.c147 PAGESIZE, PG_EXCL | PG_WAIT, seg, addr)) == NULL) in pvn_read_kluster()
150 if (vp_len <= PAGESIZE || pvn_nofodklust) { in pvn_read_kluster()
152 *lenp = MIN(vp_len, PAGESIZE); in pvn_read_kluster()
159 for (deltab = PAGESIZE; off >= vp_off + deltab; in pvn_read_kluster()
160 deltab += PAGESIZE) { in pvn_read_kluster()
168 PAGESIZE, PG_EXCL, seg, addr - deltab)) in pvn_read_kluster()
176 deltab -= PAGESIZE; in pvn_read_kluster()
179 for (deltaf = PAGESIZE; off + deltaf < vp_end; in pvn_read_kluster()
180 deltaf += PAGESIZE) { in pvn_read_kluster()
188 PAGESIZE, PG_EXCL, seg, addr + deltaf)) in pvn_read_kluster()
[all …]
H A Dseg_kmem.c271 heap_arena = vmem_init("heap", kernelheap, heap_size, PAGESIZE, in kernelheap_init()
276 core_size, PAGESIZE, NULL, NULL, NULL, 0, VM_SLEEP); in kernelheap_init()
290 (void) vmem_xalloc(heap_arena, heap_lp_size, PAGESIZE, 0, 0, in kernelheap_init()
298 (void) vmem_xalloc(heap_arena, first_avail - kernelheap, PAGESIZE, in kernelheap_init()
303 SYSLIMIT32 - SYSBASE32 - HEAPTEXT_SIZE, PAGESIZE, NULL, in kernelheap_init()
310 (void) vmem_xalloc(heap32_arena, PANICBUFSIZE, PAGESIZE, 0, 0, in kernelheap_init()
314 (void) vmem_xalloc(heap32_arena, IVSIZE, PAGESIZE, 0, 0, in kernelheap_init()
326 HEAPTEXT_SIZE, PAGESIZE, NULL, NULL, heaptext_parent, 0, VM_SLEEP); in kernelheap_init()
337 static_arena = vmem_create("static", NULL, 0, PAGESIZE, in kernelheap_init()
353 hat_memload_arena = vmem_create("hat_memload", NULL, 0, PAGESIZE, in kernelheap_init()
[all …]
H A Dseg_kp.c213 kpsd->kpsd_arena = vmem_create("segkp", NULL, 0, PAGESIZE, in segkp_create()
214 vmem_alloc, vmem_free, heap_arena, 5 * PAGESIZE, VM_SLEEP); in segkp_create()
219 seg->s_size, PAGESIZE, NULL, NULL, NULL, 5 * PAGESIZE, in segkp_create()
419 len += PAGESIZE; in segkp_get_internal()
490 for (i = 0, va = vbase; i < np; i++, va += PAGESIZE) { in segkp_get_internal()
535 err = VOP_GETPAGE(vp, (offset_t)off, PAGESIZE, in segkp_get_internal()
536 NULL, pl, PAGESIZE, seg, va, S_CREATE, in segkp_get_internal()
551 (u_offset_t)(uintptr_t)va, PAGESIZE, in segkp_get_internal()
568 pagezero(pp, 0, PAGESIZE); in segkp_get_internal()
678 for (i = 0; i < np; i++, va += PAGESIZE) { in segkp_release_internal()
[all …]
H A Dvpm.c756 for (i = 0; len > 0; len -= PAGESIZE, i++) { in vpm_pagecreate()
769 if ((pp = page_create_va(vp, off, PAGESIZE, PG_WAIT, in vpm_pagecreate()
793 vml[i].vs_len = PAGESIZE; in vpm_pagecreate()
795 off += PAGESIZE; in vpm_pagecreate()
837 tlen = P2ROUNDUP(off + len, PAGESIZE) - baseoff; in vpm_map_pages()
841 if (tlen > (VPMMAXPGS * PAGESIZE)) { in vpm_map_pages()
842 tlen = VPMMAXPGS * PAGESIZE; in vpm_map_pages()
850 if (tlen > ((nseg - 1) * PAGESIZE)) { in vpm_map_pages()
851 tlen = ((nseg - 1) * PAGESIZE); in vpm_map_pages()
866 for (i = 0; len > 0; len -= PAGESIZE, i++, pplist[i] = NULL) { in vpm_map_pages()
[all …]
/titanic_41/usr/src/uts/sparc/os/
H A Dbootops.c228 if (size < PAGESIZE) { in bop_temp_alloc()
230 ALIGN(littlehand, PAGESIZE) - (uintptr_t)littlehand; in bop_temp_alloc()
240 size = roundup(size, PAGESIZE); in bop_temp_alloc()
320 if (P2PHASE_TYPED(virthint, PAGESIZE, size_t) != 0 || in bop_alloc_chunk()
321 align > PAGESIZE || size < PAGESIZE) in bop_alloc_chunk()
330 chunksz = P2ALIGN((size >> 1), PAGESIZE); in bop_alloc_chunk()
331 chunksz = MAX(chunksz, PAGESIZE); in bop_alloc_chunk()
338 PAGESIZE))) { in bop_alloc_chunk()
344 chunksz = P2ALIGN(chunksz, PAGESIZE); in bop_alloc_chunk()
345 } while (chunksz >= PAGESIZE); in bop_alloc_chunk()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Durw.c76 u_offset_t size = roundup(vattr.va_size, (u_offset_t)PAGESIZE); in page_valid()
118 (void) SEGOP_INCORE(seg, addr, PAGESIZE, &incore); in page_valid()
159 kaddr = vmem_alloc(heap_arena, PAGESIZE, VM_SLEEP); in mapin()
161 hat_devload(kas.a_hat, kaddr, PAGESIZE, pfnum, in mapin()
214 err = SEGOP_SETPROT(seg, page, PAGESIZE, prot | prot_rw); in urw()
244 if (SEGOP_FAULT(as->a_hat, seg, page, PAGESIZE, F_SOFTLOCK, rw)) { in urw()
246 (void) SEGOP_SETPROT(seg, page, PAGESIZE, prot); in urw()
255 ASSERT(len <= page + PAGESIZE - addr); in urw()
303 (void) SEGOP_FAULT(as->a_hat, seg, page, PAGESIZE, F_SOFTUNLOCK, rw); in urw()
306 (void) SEGOP_SETPROT(seg, page, PAGESIZE, prot); in urw()
H A Dbp_map.c71 bp_align = MAX(align, PAGESIZE); in bp_init()
108 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE); in bp_mapin_common()
174 addr += PAGESIZE; in bp_mapin_common()
180 hat_devload(kas.a_hat, kaddr, PAGESIZE, pfnum, in bp_mapin_common()
183 kaddr += PAGESIZE; in bp_mapin_common()
216 size = P2ROUNDUP(bp->b_bcount + off, PAGESIZE); in bp_mapout()
328 psize = MIN(PAGESIZE - poff, size); in bp_copy_common()
388 psize = MIN(PAGESIZE, size); in bp_copy_common()
407 psize = MIN(PAGESIZE, size); in bp_copy_common()
H A Dsubr.c323 vaddr = vmem_alloc(heap_arena, PAGESIZE, VM_SLEEP); in hot_patch_kernel_text()
325 (void) as_pagelock(&kas, &ppp, iaddr - off, PAGESIZE, S_WRITE); in hot_patch_kernel_text()
327 hat_devload(kas.a_hat, vaddr, PAGESIZE, in hot_patch_kernel_text()
348 as_pageunlock(&kas, ppp, iaddr - off, PAGESIZE, S_WRITE); in hot_patch_kernel_text()
349 hat_unload(kas.a_hat, vaddr, PAGESIZE, HAT_UNLOAD_UNLOCK); in hot_patch_kernel_text()
350 vmem_free(heap_arena, vaddr, PAGESIZE); in hot_patch_kernel_text()
H A Dgrow.c185 ASSERT(pgsz > PAGESIZE); in brk_internal()
187 pgsz = PAGESIZE; in brk_internal()
213 if (pgsz > PAGESIZE) { in brk_internal()
219 pgsz = PAGESIZE; in brk_internal()
233 PAGESIZE); in brk_internal()
318 ASSERT(IS_P2ALIGNED(oldsize, PAGESIZE)); in grow()
319 ASSERT(IS_P2ALIGNED(newsize, PAGESIZE)); in grow()
416 sp = (caddr_t)P2ALIGN((uintptr_t)sp, PAGESIZE); in grow_internal()
426 ASSERT(pgsz > PAGESIZE); in grow_internal()
430 pgsz = PAGESIZE; in grow_internal()
[all …]
H A Dschedctl.c195 (void) as_unmap(p->p_as, pagep->spc_uaddr, PAGESIZE); in schedctl_proc_cleanup()
250 (void) as_unmap(cp->p_as, pagep->spc_uaddr, PAGESIZE); in schedctl_fork()
458 sc_pagesize = PAGESIZE - (PAGESIZE % sizeof (sc_shared_t)); in schedctl_init()
588 map_addr(&addr, PAGESIZE, (offset_t)(uintptr_t)kaddr, 1, 0); in schedctl_map()
606 error = as_map(as, addr, PAGESIZE, segvn_create, &vn_a); in schedctl_map()
631 amp = anonmap_alloc(PAGESIZE, 0, ANON_SLEEP); in schedctl_getpage()
636 kaddr = segkp_get_withanonmap(segkp, PAGESIZE, in schedctl_getpage()
680 anon_free(amp->ahp, 0, PAGESIZE); in schedctl_freepage()
/titanic_41/usr/src/uts/common/io/
H A Dksyms.c70 #define BUF_SIZE (PAGESIZE - (size_t)offsetof(ksyms_buflist_t, buf))
111 kmem_free(list, PAGESIZE); in ksyms_buflist_free()
140 if ((list = kmem_alloc(PAGESIZE, KM_NOSLEEP)) == NULL) in ksyms_buflist_alloc()
183 size_t sz, rlen = roundup(size, PAGESIZE); in ksyms_mapin()
223 list_create(&hdr.blist, PAGESIZE, in ksyms_open()
261 (void) as_unmap(curproc->p_as, addr, roundup(realsize, PAGESIZE)); in ksyms_open()
272 roundup(ksyms_clones[clone].ksyms_size, PAGESIZE)); in ksyms_close()
293 buf = kmem_alloc(PAGESIZE, KM_SLEEP); in ksyms_symtbl_copy()
296 size = MIN(PAGESIZE, len); in ksyms_symtbl_copy()
308 kmem_free(buf, PAGESIZE); in ksyms_symtbl_copy()
[all …]
H A Dwinlockio.c343 #define MAX_LOCKS (PAGESIZE/sizeof (int))
615 if (len != PAGESIZE) { in winlock_devmap()
634 lp->umem_cookie, 0, PAGESIZE, WINLOCK_PROT, in winlock_devmap()
646 *maplen = PAGESIZE; in winlock_devmap()
663 ASSERT(len == PAGESIZE); in winlockmap_map()
891 lp->cookie = (next_lock + 1) * (uint_t)PAGESIZE; in seglock_createlock()
898 ASSERT((lp->cookie/PAGESIZE) <= next_lock); in seglock_createlock()
901 lp->lockptr = (int *)ddi_umem_alloc(PAGESIZE, in seglock_createlock()
904 lp->lockptr = ((int *)lockpage) + ((lp->cookie/PAGESIZE) - 1); in seglock_createlock()
1127 lockpage = ddi_umem_alloc(PAGESIZE, DDI_UMEM_SLEEP, in seglock_graballoc()
[all …]
/titanic_41/usr/src/ucbhead/sys/
H A Dparam.h233 #define PAGESIZE (sysconf(_SC_PAGESIZE)) /* All the above, for logical */ macro
234 #define PAGEOFFSET (PAGESIZE - 1)
244 #define ptob(x) ((x) * PAGESIZE)
245 #define btop(x) (((unsigned)(x)) / PAGESIZE)
246 #define btopr(x) ((((unsigned)(x) + PAGEOFFSET) / PAGESIZE))
/titanic_41/usr/src/uts/common/fs/proc/
H A Dprusrio.c60 bp = kmem_alloc(PAGESIZE, KM_SLEEP); in prusrio()
74 PAGESIZE - (addr & PAGEOFFSET)); in prusrio()
98 PAGESIZE - (addr & PAGEOFFSET)); in prusrio()
127 kmem_free(bp, PAGESIZE); in prusrio()
/titanic_41/usr/src/uts/common/cpr/
H A Dcpr_stat.c204 cp->cs_nosw_pages*PAGESIZE/1000, cp->cs_nosw_pages); in cpr_stat_event_print()
206 cp->cs_upage2statef*PAGESIZE/1000, cp->cs_upage2statef); in cpr_stat_event_print()
209 cp->cs_mclustsz/1000, cp->cs_mclustsz/PAGESIZE, in cpr_stat_event_print()
210 ((cp->cs_mclustsz%PAGESIZE)*10/PAGESIZE), in cpr_stat_event_print()
211 ((cp->cs_mclustsz%PAGESIZE)*100/PAGESIZE)%10); in cpr_stat_event_print()
/titanic_41/usr/src/uts/i86pc/os/
H A Dppage.c59 va = vmem_alloc(heap_arena, PAGESIZE, VM_SLEEP); in ppmapin()
67 hat_unload(kas.a_hat, va, PAGESIZE, HAT_UNLOAD_UNLOCK); in ppmapout()
68 vmem_free(heap_arena, va, PAGESIZE); in ppmapout()
/titanic_41/usr/src/uts/sun4v/sys/
H A Dmachparam.h128 #define PAGESIZE (1<<PAGESHIFT) macro
129 #define PAGEOFFSET (PAGESIZE - 1)
141 #define DEFAULTSTKSZ (3*PAGESIZE)
225 #define PPMAP_FAST_SIZE (MAXPP_SLOTS * PAGESIZE * NCPU)
/titanic_41/usr/src/uts/common/xen/io/
H A Dblkif_impl.h90 __RING_SIZE((blkif_sring_t *)NULL, PAGESIZE)
92 __RING_SIZE((blkif_x86_32_sring_t *)NULL, PAGESIZE)
94 __RING_SIZE((blkif_x86_64_sring_t *)NULL, PAGESIZE)
/titanic_41/usr/src/uts/sun4u/sys/
H A Dmachparam.h168 #define PAGESIZE (1<<PAGESHIFT) macro
169 #define PAGEOFFSET (PAGESIZE - 1)
181 #define DEFAULTSTKSZ (3*PAGESIZE)
265 #define PPMAP_FAST_SIZE (MAXPP_SLOTS * PAGESIZE * NCPU)

12345678910>>...13