Home
last modified time | relevance | path

Searched refs:PAGE_SIZE (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/f-stack/freebsd/amd64/include/
H A Dparam.h96 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
99 #define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */ macro
100 #define PAGE_MASK (PAGE_SIZE-1)
102 #define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t)))
108 #define NPDPEPG (PAGE_SIZE/(sizeof (pdp_entry_t)))
114 #define NPML4EPG (PAGE_SIZE/(sizeof (pml4_entry_t)))
120 #define NPML5EPG (PAGE_SIZE/(sizeof (pml5_entry_t)))
134 #define IOPERM_BITMAP_SIZE (IOPAGES * PAGE_SIZE + 1)
156 #define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024))
H A Dintr_machdep.h44 #define DBLFAULT_STACK_SIZE PAGE_SIZE
45 #define NMI_STACK_SIZE PAGE_SIZE
46 #define MCE_STACK_SIZE PAGE_SIZE
47 #define DBG_STACK_SIZE PAGE_SIZE
/f-stack/freebsd/arm64/arm64/
H A Dminidump_machdep.c141 maxdumpsz = PAGE_SIZE; in blk_write()
143 if ((sz % PAGE_SIZE) != 0) { in blk_write()
151 if ((((uintptr_t)pa) % PAGE_SIZE) != 0) { in blk_write()
221 pmapsize += PAGE_SIZE; in minidumpsys()
228 i++, pa += PAGE_SIZE) in minidumpsys()
257 dumpsize += PAGE_SIZE; in minidumpsys()
261 dumpsize += PAGE_SIZE; in minidumpsys()
338 j * PAGE_SIZE | ATTR_DEFAULT | in minidumpsys()
342 PAGE_SIZE); in minidumpsys()
357 tmpbuffer[i] = pa + (i * PAGE_SIZE) | in minidumpsys()
[all …]
H A Dlocore.S439 add x26, x26, #PAGE_SIZE
447 add x24, x26, #PAGE_SIZE
466 add x27, x24, #PAGE_SIZE
500 add x27, x27, #PAGE_SIZE
775 .space PAGE_SIZE
777 .space PAGE_SIZE
779 .space PAGE_SIZE
781 .space PAGE_SIZE
783 .space PAGE_SIZE
785 .space PAGE_SIZE
[all …]
/f-stack/freebsd/i386/i386/
H A Dminidump_machdep_base.c104 maxdumpsz = PAGE_SIZE; in blk_write()
106 if ((sz % PAGE_SIZE) != 0) { in blk_write()
114 if (pa != 0 && (((uintptr_t)ptr) % PAGE_SIZE) != 0) { in blk_write()
144 for (i = 0; i < len; i += PAGE_SIZE) in blk_write()
199 ptesize += PAGE_SIZE; in minidumpsys()
208 pa += PAGE_SIZE; in minidumpsys()
235 dumpsize += PAGE_SIZE; in minidumpsys()
240 dumpsize += PAGE_SIZE; in minidumpsys()
268 error = blk_write(di, (char *)&fakept, 0, PAGE_SIZE); in minidumpsys()
314 error = blk_write(di, 0, pa, PAGE_SIZE); in minidumpsys()
[all …]
/f-stack/freebsd/vm/
H A Dvm_dumpset.h54 adj += howmany(dump_avail[i + 1], PAGE_SIZE) - in dump_add_page()
55 dump_avail[i] / PAGE_SIZE; in dump_add_page()
73 adj += howmany(dump_avail[i + 1], PAGE_SIZE) - in dump_drop_page()
74 dump_avail[i] / PAGE_SIZE; in dump_drop_page()
84 tot = howmany(dump_avail[i + 1], PAGE_SIZE) - in vm_page_dump_index_to_pa()
85 dump_avail[i] / PAGE_SIZE; in vm_page_dump_index_to_pa()
87 return ((vm_paddr_t)bit * PAGE_SIZE + in vm_page_dump_index_to_pa()
H A Dmemguard.c175 PAGE_SIZE; in memguard_fudge()
215 PAGE_SIZE, 0, M_WAITOK); in memguard_init()
308 size_v += 2 * PAGE_SIZE; in memguard_alloc()
317 req_size < PAGE_SIZE) { in memguard_alloc()
336 addr += PAGE_SIZE; in memguard_alloc()
347 if (req_size < PAGE_SIZE) { in memguard_alloc()
348 memguard_wasted += (PAGE_SIZE - req_size); in memguard_alloc()
356 addr += (PAGE_SIZE - req_size); in memguard_alloc()
396 for (i = 0; i < size; i += PAGE_SIZE) in memguard_free()
408 addr -= PAGE_SIZE; in memguard_free()
[all …]
H A Dsg_pager.c92 if ((sg->sg_segs[i].ss_paddr % PAGE_SIZE) != 0 || in sg_pager_alloc()
93 (sg->sg_segs[i].ss_len % PAGE_SIZE) != 0) in sg_pager_alloc()
95 npages += sg->sg_segs[i].ss_len / PAGE_SIZE; in sg_pager_alloc()
172 if (space + sg->sg_segs[i].ss_len <= (offset * PAGE_SIZE)) { in sg_pager_getpages()
176 paddr = sg->sg_segs[i].ss_paddr + offset * PAGE_SIZE - space; in sg_pager_getpages()
H A Dvm_glue.c305 if (vmem_xalloc(kernel_arena, (pages + KSTACK_GUARD_PAGES) * PAGE_SIZE, in vm_thread_stack_create()
306 PAGE_SIZE * 2, 0, 0, VMEM_ADDR_MIN, VMEM_ADDR_MAX, in vm_thread_stack_create()
311 ks = kva_alloc((pages + KSTACK_GUARD_PAGES) * PAGE_SIZE); in vm_thread_stack_create()
320 ks += KSTACK_GUARD_PAGES * PAGE_SIZE; in vm_thread_stack_create()
354 kva_free(ks - (KSTACK_GUARD_PAGES * PAGE_SIZE), in vm_thread_stack_dispose()
355 (pages + KSTACK_GUARD_PAGES) * PAGE_SIZE); in vm_thread_stack_dispose()
476 kstack_pages * PAGE_SIZE, NULL, NULL, NULL, NULL, in kstack_cache_init()
509 stack_top = td->td_kstack + td->td_kstack_pages * PAGE_SIZE; in intr_prof_stack_use()
/f-stack/freebsd/arm/arm/
H A Dminidump_machdep.c105 maxdumpsz = min(di->maxiosize, MAXDUMPPGS * PAGE_SIZE); in blk_write()
107 maxdumpsz = PAGE_SIZE; in blk_write()
114 if ((sz % PAGE_SIZE) != 0) { in blk_write()
150 for (i = 0; i < len; i += PAGE_SIZE) in blk_write()
175 static char dumpbuf[PAGE_SIZE] __aligned(sizeof(uint64_t));
218 dumpsize += PAGE_SIZE; in minidumpsys()
222 dumpsize += PAGE_SIZE; in minidumpsys()
251 error = blk_write(di, dumpbuf, 0, PAGE_SIZE); in minidumpsys()
270 error = blk_write(di, dumpbuf, 0, PAGE_SIZE); in minidumpsys()
304 if (pa == (prev_pa + count * PAGE_SIZE)) in minidumpsys()
[all …]
/f-stack/freebsd/x86/xen/
H A Dpv.c204 uint64_t *PT3 = (u_int64_t *)(xenstack + PAGE_SIZE); in hammer_time_xen_legacy()
220 physfree = xenstack + 3 * PAGE_SIZE - KERNBASE; in hammer_time_xen_legacy()
261 physfree += PAGE_SIZE; in hammer_time_xen_legacy()
262 bzero_early(kenv, PAGE_SIZE); in hammer_time_xen_legacy()
263 init_static_kenv(kenv, PAGE_SIZE); in hammer_time_xen_legacy()
304 physfree = roundup2(start_info_paddr + PAGE_SIZE, PAGE_SIZE); in hammer_time_xen()
315 physfree += PAGE_SIZE; in hammer_time_xen()
322 physfree += PAGE_SIZE; in hammer_time_xen()
323 bzero_early(kenv, PAGE_SIZE); in hammer_time_xen()
324 init_static_kenv(kenv, PAGE_SIZE); in hammer_time_xen()
[all …]
/f-stack/freebsd/amd64/amd64/
H A Dminidump_machdep.c146 maxdumpsz = PAGE_SIZE; in blk_write()
148 if ((sz % PAGE_SIZE) != 0) { in blk_write()
156 if ((((uintptr_t)pa) % PAGE_SIZE) != 0) { in blk_write()
191 for (i = 0; i < len; i += PAGE_SIZE) in blk_write()
242 pmapsize += PAGE_SIZE; in minidumpsys()
261 pa += PAGE_SIZE; in minidumpsys()
279 pa += PAGE_SIZE; in minidumpsys()
308 dumpsize += PAGE_SIZE; in minidumpsys()
313 dumpsize += PAGE_SIZE; in minidumpsys()
405 error = blk_write(di, (char *)pd, 0, PAGE_SIZE); in minidumpsys()
[all …]
/f-stack/freebsd/mips/mips/
H A Dminidump_machdep.c63 static char tmpbuffer[PAGE_SIZE] __aligned(sizeof(uint64_t));
127 maxdumpsz = PAGE_SIZE; in write_buffer()
186 ptesize += PAGE_SIZE; in minidumpsys()
202 for (pa = 0; pa < phys_avail[0]; pa += PAGE_SIZE) { in minidumpsys()
215 dumpsize += PAGE_SIZE; in minidumpsys()
219 dumpsize += PAGE_SIZE; in minidumpsys()
246 error = write_buffer(di, tmpbuffer, PAGE_SIZE); in minidumpsys()
269 error = write_buffer(di, tmpbuffer, PAGE_SIZE); in minidumpsys()
287 if ((vm_offset_t)pte == (prev_pte + count * PAGE_SIZE)) in minidumpsys()
291 count * PAGE_SIZE); in minidumpsys()
[all …]
H A Dpmap.c864 va += PAGE_SIZE; in pmap_kenter_device()
865 pa += PAGE_SIZE; in pmap_kenter_device()
883 va += PAGE_SIZE; in pmap_kremove_device()
930 va += PAGE_SIZE; in pmap_map()
931 start += PAGE_SIZE; in pmap_map()
954 va += PAGE_SIZE; in pmap_qenter()
977 va += PAGE_SIZE; in pmap_qremove()
1104 PAGE_SIZE, 0)) in pmap_grow_direct_page()
3238 size -= PAGE_SIZE; in pmap_mapdev_attr()
3239 tmpva += PAGE_SIZE; in pmap_mapdev_attr()
[all …]
/f-stack/freebsd/net/
H A Dbpf_zerocopy.c213 zb->zb_numpages = len / PAGE_SIZE; in zbuf_setup()
219 uaddr + (i * PAGE_SIZE)); in zbuf_setup()
263 page = offset / PAGE_SIZE; in bpf_zerocopy_append_bytes()
264 poffset = offset % PAGE_SIZE; in bpf_zerocopy_append_bytes()
273 if (poffset == PAGE_SIZE) { in bpf_zerocopy_append_bytes()
277 KASSERT(poffset < PAGE_SIZE, in bpf_zerocopy_append_bytes()
318 page = offset / PAGE_SIZE; in bpf_zerocopy_append_mbuf()
319 poffset = offset % PAGE_SIZE; in bpf_zerocopy_append_mbuf()
334 if (poffset == PAGE_SIZE) { in bpf_zerocopy_append_mbuf()
338 KASSERT(poffset < PAGE_SIZE, in bpf_zerocopy_append_mbuf()
[all …]
/f-stack/freebsd/i386/include/
H A Dparam.h89 #define PAGE_SIZE (1 << PAGE_SHIFT) /* bytes/page */ macro
90 #define PAGE_MASK (PAGE_SIZE - 1)
91 #define NPTEPG (PAGE_SIZE / sizeof(pt_entry_t))
98 #define NPDEPG (PAGE_SIZE / sizeof(pd_entry_t))
161 #define pgtok(x) ((x) * (PAGE_SIZE / 1024))
/f-stack/freebsd/mips/include/
H A Dparam.h137 #define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */ macro
138 #define PAGE_MASK (PAGE_SIZE-1)
140 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
141 #define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t)))
186 #define pgtok(x) ((x) * (PAGE_SIZE / 1024))
/f-stack/freebsd/arm/include/
H A Dparam.h106 #define PAGE_SIZE (1 << PAGE_SHIFT) /* Page size */ macro
107 #define PAGE_MASK (PAGE_SIZE - 1)
128 #define USPACE_SVC_STACK_TOP (kstack_pages * PAGE_SIZE)
144 #define pgtok(x) ((x) * (PAGE_SIZE / 1024))
/f-stack/freebsd/amd64/vmm/amd/
H A Dsvm_softc.h34 #define SVM_IO_BITMAP_SIZE (3 * PAGE_SIZE)
35 #define SVM_MSR_BITMAP_SIZE (2 * PAGE_SIZE)
55 } __aligned(PAGE_SIZE);
61 uint8_t apic_page[VM_MAXCPU][PAGE_SIZE];
/f-stack/freebsd/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_2835_arm.c147 PAGE_SIZE, 0, /* alignment, boundary */ in vchiq_platform_init()
174 WARN_ON(((int)g_slot_mem & (PAGE_SIZE - 1)) != 0); in vchiq_platform_init()
412 offset = (vm_offset_t)buf & (PAGE_SIZE - 1); in create_pagelist()
413 num_pages = (count + offset + PAGE_SIZE - 1) / PAGE_SIZE; in create_pagelist()
428 PAGE_SIZE, 0, /* alignment, boundary */ in create_pagelist()
481 next_addr = base_addr + PAGE_SIZE; in create_pagelist()
487 if ((addr == next_addr) && (run < (PAGE_SIZE - 1))) { in create_pagelist()
488 next_addr += PAGE_SIZE; in create_pagelist()
494 next_addr = addr + PAGE_SIZE; in create_pagelist()
556 (pagelist->length + pagelist->offset + PAGE_SIZE - 1) / in free_pagelist()
[all …]
H A Dvchiq_pagelist.h37 #ifndef PAGE_SIZE
38 #define PAGE_SIZE 4096 macro
/f-stack/freebsd/sys/
H A Dparam.h157 #define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */
170 #define MAXDUMPPGS (DFLTPHYS/PAGE_SIZE)
187 #if PAGE_SIZE < 2048
189 #elif PAGE_SIZE <= 8192
190 #define MJUMPAGESIZE PAGE_SIZE
/f-stack/freebsd/opencrypto/
H A Dcriov.c76 if (off < PAGE_SIZE) \
78 processed += PAGE_SIZE - off; \
79 off -= PAGE_SIZE - off; \
168 count = min(PAGE_SIZE - off, len); in cvm_page_apply()
183 if ((skip + len - 1) / PAGE_SIZE > skip / PAGE_SIZE) in cvm_page_contiguous_segment()
186 pages += (skip / PAGE_SIZE); in cvm_page_contiguous_segment()
187 skip -= rounddown(skip, PAGE_SIZE); in cvm_page_contiguous_segment()
204 count = min(PAGE_SIZE - off, len); in cvm_page_copyback()
229 count = min(PAGE_SIZE - off, len); in cvm_page_copydata()
303 remain = MIN(PAGE_SIZE - cc->cc_offset, cc->cc_buf_len); in crypto_cursor_advance()
[all …]
/f-stack/freebsd/amd64/sgx/
H A Dsgx.c177 i = (addr - sc->epc_base) / PAGE_SIZE; in sgx_get_epc_page()
193 addr = (epc->index * PAGE_SIZE) + sc->epc_base; in sgx_put_epc_page()
194 vmem_free(sc->vmem_epc, addr, PAGE_SIZE); in sgx_put_epc_page()
366 offs = (pa - epc->phys) / PAGE_SIZE; in sgx_page_remove()
452 if (secs->size < 2 * PAGE_SIZE) in sgx_secs_validate()
509 (tcs->ossa & (PAGE_SIZE - 1)) || in sgx_tcs_validate()
510 (tcs->ofsbasgx & (PAGE_SIZE - 1)) || in sgx_tcs_validate()
511 (tcs->ogsbasgx & (PAGE_SIZE - 1)) || in sgx_tcs_validate()
654 secs = malloc(PAGE_SIZE, M_SGX, M_WAITOK | M_ZERO); in sgx_ioctl_create()
825 ret = copyin((void *)addp->src, tmp_vaddr, PAGE_SIZE); in sgx_ioctl_add_page()
[all …]
/f-stack/freebsd/arm64/include/
H A Dproc.h62 (total) = td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb); \
64 td->td_kstack_pages * PAGE_SIZE - \

12345678910>>...13