Home
last modified time | relevance | path

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

12345678910>>...36

/freebsd-14.2/tests/sys/kern/
H A Dsubr_physmem_test.c42 physmem_hardware_region(2 * PAGE_SIZE, PAGE_SIZE); in ATF_TC_BODY()
50 physmem_hardware_region(2 * PAGE_SIZE, 2 * PAGE_SIZE); in ATF_TC_BODY()
57 physmem_hardware_region(4 * PAGE_SIZE, PAGE_SIZE); in ATF_TC_BODY()
64 physmem_hardware_region(4 * PAGE_SIZE, 2 * PAGE_SIZE); in ATF_TC_BODY()
71 physmem_hardware_region(6 * PAGE_SIZE, PAGE_SIZE / 2); in ATF_TC_BODY()
78 physmem_hardware_region(6 * PAGE_SIZE + PAGE_SIZE / 2, PAGE_SIZE / 2); in ATF_TC_BODY()
91 physmem_hardware_region(2 * PAGE_SIZE, 5 * PAGE_SIZE); in ATF_TC_BODY()
102 physmem_exclude_region(4 * PAGE_SIZE - 1, PAGE_SIZE + 2, in ATF_TC_BODY()
119 physmem_hardware_region(PAGE_SIZE, PAGE_SIZE / 2); in ATF_TC_BODY()
121 physmem_hardware_region( 2 * PAGE_SIZE, PAGE_SIZE); in ATF_TC_BODY()
[all …]
/freebsd-14.2/sys/arm64/arm64/
H A Dminidump_machdep.c90 maxdumpsz = PAGE_SIZE; in blk_write()
92 if ((sz % PAGE_SIZE) != 0) { in blk_write()
100 if ((((uintptr_t)pa) % PAGE_SIZE) != 0) { in blk_write()
177 pmapsize += PAGE_SIZE; in cpu_minidumpsys()
186 i++, pa += PAGE_SIZE) in cpu_minidumpsys()
221 dumpsize += PAGE_SIZE; in cpu_minidumpsys()
225 dumpsize += PAGE_SIZE; in cpu_minidumpsys()
241 #if PAGE_SIZE == PAGE_SIZE_4K in cpu_minidumpsys()
243 #elif PAGE_SIZE == PAGE_SIZE_16K in cpu_minidumpsys()
317 PAGE_SIZE); in cpu_minidumpsys()
[all …]
H A Dlocore.S511 add x26, x26, #PAGE_SIZE
519 add x24, x26, #PAGE_SIZE
531 add x27, x24, #PAGE_SIZE
907 .space PAGE_SIZE
909 .space PAGE_SIZE
911 .space PAGE_SIZE
913 .space PAGE_SIZE
915 .space PAGE_SIZE
917 .space PAGE_SIZE
919 .space PAGE_SIZE
[all …]
/freebsd-14.2/sys/riscv/riscv/
H A Dminidump_machdep.c95 maxdumpsz = PAGE_SIZE; in blk_write()
97 if ((sz % PAGE_SIZE) != 0) { in blk_write()
105 if ((((uintptr_t)pa) % PAGE_SIZE) != 0) { in blk_write()
184 pmapsize += PAGE_SIZE; in cpu_minidumpsys()
206 pa = (l3e >> PTE_PPN0_S) * PAGE_SIZE; in cpu_minidumpsys()
223 dumpsize += PAGE_SIZE; in cpu_minidumpsys()
227 dumpsize += PAGE_SIZE; in cpu_minidumpsys()
312 pa = (l2e >> PTE_PPN0_S) * PAGE_SIZE; in cpu_minidumpsys()
319 error = blk_write(di, NULL, pa, PAGE_SIZE); in cpu_minidumpsys()
322 PAGE_SIZE); in cpu_minidumpsys()
[all …]
/freebsd-14.2/sys/dev/drm2/
H A Ddrm_buffer.c46 int nr_pages = size / PAGE_SIZE + 1; in drm_buffer_alloc()
57 malloc(min(PAGE_SIZE, size - idx * PAGE_SIZE), in drm_buffer_alloc()
75 int nr_pages = size / PAGE_SIZE + 1; in drm_buffer_copy_from_user()
88 (char *)user_data + idx * PAGE_SIZE, in drm_buffer_copy_from_user()
89 min(PAGE_SIZE, size - idx * PAGE_SIZE))) { in drm_buffer_copy_from_user()
110 int nr_pages = buf->size / PAGE_SIZE + 1; in drm_buffer_free()
139 if (idx + objsize <= PAGE_SIZE) { in drm_buffer_read_object()
143 int beginsz = PAGE_SIZE - idx; in drm_buffer_read_object()
H A Ddrm_buffer.h53 return buf->iterator / PAGE_SIZE; in drm_buffer_page()
60 return buf->iterator & (PAGE_SIZE - 1); in drm_buffer_index()
132 return &buffer->data[iter / PAGE_SIZE][iter & (PAGE_SIZE - 1)]; in drm_buffer_pointer_to_dword()
146 return &buffer->data[iter / PAGE_SIZE][iter & (PAGE_SIZE - 1)]; in drm_buffer_pointer_to_byte()
/freebsd-14.2/sys/dev/xdma/
H A Dxdma_iommu.c68 va &= ~(PAGE_SIZE - 1); in xdma_iommu_remove_entry()
69 pmap_remove(&xio->p, va, va + PAGE_SIZE); in xdma_iommu_remove_entry()
73 vmem_free(xio->vmem, va, PAGE_SIZE); in xdma_iommu_remove_entry()
88 for (; size > 0; size -= PAGE_SIZE) { in xdma_iommu_enter()
94 va += PAGE_SIZE; in xdma_iommu_enter()
95 pa += PAGE_SIZE; in xdma_iommu_enter()
106 size = roundup2(size, PAGE_SIZE); in xdma_iommu_add_entry()
114 addr |= pa & (PAGE_SIZE - 1); in xdma_iommu_add_entry()
142 xio->vmem = vmem_create("xDMA vmem", 0, 0, PAGE_SIZE, in xdma_iommu_init()
143 PAGE_SIZE, M_FIRSTFIT | M_WAITOK); in xdma_iommu_init()
/freebsd-14.2/sys/amd64/include/
H A Dparam.h95 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
98 #define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */ macro
99 #define PAGE_MASK (PAGE_SIZE-1)
101 #define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t)))
107 #define NPDPEPG (PAGE_SIZE/(sizeof (pdp_entry_t)))
113 #define NPML4EPG (PAGE_SIZE/(sizeof (pml4_entry_t)))
119 #define NPML5EPG (PAGE_SIZE/(sizeof (pml5_entry_t)))
133 #define IOPERM_BITMAP_SIZE (IOPAGES * PAGE_SIZE + 1)
159 #define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024))
H A Dintr_machdep.h42 #define DBLFAULT_STACK_SIZE PAGE_SIZE
43 #define NMI_STACK_SIZE PAGE_SIZE
44 #define MCE_STACK_SIZE PAGE_SIZE
45 #define DBG_STACK_SIZE PAGE_SIZE
/freebsd-14.2/sys/i386/i386/
H A Dminidump_machdep_base.c82 maxdumpsz = min(di->maxiosize, MAXDUMPPGS * PAGE_SIZE); in blk_write()
84 maxdumpsz = PAGE_SIZE; in blk_write()
86 if ((sz % PAGE_SIZE) != 0) { in blk_write()
94 if (pa != 0 && (((uintptr_t)ptr) % PAGE_SIZE) != 0) { in blk_write()
119 for (i = 0; i < len; i += PAGE_SIZE) in blk_write()
183 ptesize += PAGE_SIZE; in cpu_minidumpsys()
193 pa += PAGE_SIZE; in cpu_minidumpsys()
223 dumpsize += PAGE_SIZE; in cpu_minidumpsys()
228 dumpsize += PAGE_SIZE; in cpu_minidumpsys()
303 error = blk_write(di, 0, pa, PAGE_SIZE); in cpu_minidumpsys()
[all …]
/freebsd-14.2/sys/amd64/amd64/
H A Dminidump_machdep.c93 maxdumpsz = PAGE_SIZE; in blk_write()
95 if ((sz % PAGE_SIZE) != 0) { in blk_write()
103 if ((((uintptr_t)pa) % PAGE_SIZE) != 0) { in blk_write()
135 for (i = 0; i < len; i += PAGE_SIZE) in blk_write()
194 pmapsize += PAGE_SIZE; in cpu_minidumpsys()
214 pa += PAGE_SIZE; in cpu_minidumpsys()
233 pa += PAGE_SIZE; in cpu_minidumpsys()
265 dumpsize += PAGE_SIZE; in cpu_minidumpsys()
270 dumpsize += PAGE_SIZE; in cpu_minidumpsys()
364 error = blk_write(di, (char *)pd, 0, PAGE_SIZE); in cpu_minidumpsys()
[all …]
/freebsd-14.2/sys/arm/arm/
H A Dminidump_machdep.c85 maxdumpsz = PAGE_SIZE; in blk_write()
92 if ((sz % PAGE_SIZE) != 0) { in blk_write()
122 for (i = 0; i < len; i += PAGE_SIZE) in blk_write()
181 for (va = KERNBASE; va < kva_end; va += PAGE_SIZE) { in cpu_minidumpsys()
197 dumpsize += PAGE_SIZE; in cpu_minidumpsys()
201 dumpsize += PAGE_SIZE; in cpu_minidumpsys()
230 error = blk_write(di, dumpbuf, 0, PAGE_SIZE); in cpu_minidumpsys()
248 error = blk_write(di, dumpbuf, 0, PAGE_SIZE); in cpu_minidumpsys()
260 for (va = KERNBASE; va < kva_end; va += PAGE_SIZE) { in cpu_minidumpsys()
282 if (pa == (prev_pa + count * PAGE_SIZE)) in cpu_minidumpsys()
[all …]
/freebsd-14.2/sys/vm/
H A Dmemguard.c173 PAGE_SIZE; in memguard_fudge()
213 PAGE_SIZE, 0, M_WAITOK); in memguard_init()
306 size_v += 2 * PAGE_SIZE; in memguard_alloc()
315 req_size < PAGE_SIZE) { in memguard_alloc()
334 addr += PAGE_SIZE; in memguard_alloc()
345 if (req_size < PAGE_SIZE) { in memguard_alloc()
346 memguard_wasted += (PAGE_SIZE - req_size); in memguard_alloc()
354 addr += (PAGE_SIZE - req_size); in memguard_alloc()
394 for (i = 0; i < size; i += PAGE_SIZE) in memguard_free()
406 addr -= PAGE_SIZE; in memguard_free()
[all …]
H A Dvm_dumpset.h56 adj += howmany(dump_avail[i + 1], PAGE_SIZE) - in vm_page_dump_add()
57 dump_avail[i] / PAGE_SIZE; in vm_page_dump_add()
75 adj += howmany(dump_avail[i + 1], PAGE_SIZE) - in vm_page_dump_drop()
76 dump_avail[i] / PAGE_SIZE; in vm_page_dump_drop()
86 tot = howmany(dump_avail[i + 1], PAGE_SIZE) - in vm_page_dump_index_to_pa()
87 dump_avail[i] / PAGE_SIZE; in vm_page_dump_index_to_pa()
89 return ((vm_paddr_t)bit * PAGE_SIZE + in vm_page_dump_index_to_pa()
/freebsd-14.2/sys/powerpc/powerpc/
H A Dminidump_machdep.c69 static char pgbuf[PAGE_SIZE];
105 maxdumpsz = PAGE_SIZE; in blk_write()
107 if ((sz % PAGE_SIZE) != 0) { in blk_write()
115 if ((pa % PAGE_SIZE) != 0) { in blk_write()
142 for (i = 0; i < len; i += PAGE_SIZE) in blk_write()
207 if (pmapsize % PAGE_SIZE != 0) { in cpu_minidumpsys()
214 dumpsize = PAGE_SIZE; /* header */ in cpu_minidumpsys()
222 dumpsize += PAGE_SIZE; in cpu_minidumpsys()
258 error = blk_write(di, pgbuf, 0, PAGE_SIZE); in cpu_minidumpsys()
261 dump_total("header", PAGE_SIZE); in cpu_minidumpsys()
[all …]
/freebsd-14.2/lib/libc/tests/sys/
H A Dbrk_test.c56 error = brk((void *)((intptr_t)oldbrk + PAGE_SIZE * 2)); in ATF_TC_BODY()
89 oldbrk = sbrk(PAGE_SIZE * 2 + 1); in ATF_TC_BODY()
91 memset(oldbrk, 0, PAGE_SIZE * 2 + 1); in ATF_TC_BODY()
92 newbrk = sbrk(-(PAGE_SIZE * 2 + 1)); in ATF_TC_BODY()
120 newbrk = sbrk(PAGE_SIZE * 2); in ATF_TC_BODY()
123 n = (void *)(((uintptr_t)oldbrk + PAGE_SIZE) & ~PAGE_SIZE); in ATF_TC_BODY()
125 error = mincore(n, PAGE_SIZE, &v); in ATF_TC_BODY()
/freebsd-14.2/sys/net/
H A Dbpf_zerocopy.c211 zb->zb_numpages = len / PAGE_SIZE; in zbuf_setup()
217 uaddr + (i * PAGE_SIZE)); in zbuf_setup()
261 page = offset / PAGE_SIZE; in bpf_zerocopy_append_bytes()
262 poffset = offset % PAGE_SIZE; in bpf_zerocopy_append_bytes()
271 if (poffset == PAGE_SIZE) { in bpf_zerocopy_append_bytes()
275 KASSERT(poffset < PAGE_SIZE, in bpf_zerocopy_append_bytes()
316 page = offset / PAGE_SIZE; in bpf_zerocopy_append_mbuf()
317 poffset = offset % PAGE_SIZE; in bpf_zerocopy_append_mbuf()
332 if (poffset == PAGE_SIZE) { in bpf_zerocopy_append_mbuf()
336 KASSERT(poffset < PAGE_SIZE, in bpf_zerocopy_append_mbuf()
[all …]
/freebsd-14.2/sys/powerpc/include/
H A Dparam.h109 #define PAGE_SIZE (1 << PAGE_SHIFT) /* Page size */ macro
110 #define PAGE_MASK (PAGE_SIZE - 1)
111 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
112 #define NPDEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
138 #define USPACE (kstack_pages * PAGE_SIZE) /* total size of pcb */
158 #define pgtok(x) ((x) * (PAGE_SIZE / 1024UL))
/freebsd-14.2/sys/compat/linuxkpi/common/include/linux/
H A Dpage.h82 #define clear_page(page) memset(page, 0, PAGE_SIZE)
93 #define PAGE_MASK (~(PAGE_SIZE-1))
100 #define btoc(x) (((vm_offset_t)(x) + PAGE_SIZE - 1) >> PAGE_SHIFT)
102 #define round_page(x) ((((uintptr_t)(x)) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1))
104 #define trunc_page(x) ((uintptr_t)(x) & ~(PAGE_SIZE - 1))
/freebsd-14.2/tools/test/stress2/misc/
H A Dswapoff3.sh65 len = (size_t)free * PAGE_SIZE + swap / 4;
71 res = malloc(howmany(len, PAGE_SIZE));
75 for (i = 0; i < len; i += PAGE_SIZE)
81 for (i = 0; i < howmany(len, PAGE_SIZE); i++)
83 naddr = addr + i * PAGE_SIZE;
84 if (munmap(naddr, PAGE_SIZE) != 0)
86 if (mmap(naddr, PAGE_SIZE,
/freebsd-14.2/sys/dev/mthca/
H A Dmthca_allocator.c116 #define MTHCA_ARRAY_MASK (PAGE_SIZE / sizeof (void *) - 1)
162 int npage = (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; in mthca_array_init()
181 for (i = 0; i < (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; ++i) in mthca_array_cleanup()
231 npages = (size + PAGE_SIZE - 1) / PAGE_SIZE; in mthca_buf_alloc()
248 dma_alloc_coherent(&dev->pdev->dev, PAGE_SIZE, in mthca_buf_alloc()
294 for (i = 0; i < (size + PAGE_SIZE - 1) / PAGE_SIZE; ++i) in mthca_buf_free()
295 dma_free_coherent(&dev->pdev->dev, PAGE_SIZE, in mthca_buf_free()
/freebsd-14.2/sys/dev/qlxge/
H A Dqls_def.h76 PAGE_SIZE + \
77 (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1))
145 ((QLA_LBQ_SIZE + PAGE_SIZE + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1))
153 ((QLA_SBQ_SIZE + PAGE_SIZE + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1))
/freebsd-14.2/sys/powerpc/pseries/
H A Dplpar_iommu.c139 window->map->vmem = vmem_create("IOMMU mappings", PAGE_SIZE, in phyp_iommu_set_dma_tag()
140 trunc_page(VMEM_ADDR_MAX) - PAGE_SIZE, PAGE_SIZE, 0, in phyp_iommu_set_dma_tag()
182 (alignment < PAGE_SIZE) ? PAGE_SIZE : alignment, 0, in phyp_iommu_map()
188 KASSERT(alloced % PAGE_SIZE == 0, ("Alloc not page aligned")); in phyp_iommu_map()
195 for (j = 0; j < allocsize; j += PAGE_SIZE) { in phyp_iommu_map()
233 roundedsize/PAGE_SIZE); in phyp_iommu_unmap()
235 for (j = 0; j < roundedsize; j += PAGE_SIZE) in phyp_iommu_unmap()
/freebsd-14.2/sys/i386/include/
H A Dparam.h88 #define PAGE_SIZE (1 << PAGE_SHIFT) /* bytes/page */ macro
89 #define PAGE_MASK (PAGE_SIZE - 1)
90 #define NPTEPG (PAGE_SIZE / sizeof(pt_entry_t))
97 #define NPDEPG (PAGE_SIZE / sizeof(pd_entry_t))
160 #define pgtok(x) ((x) * (PAGE_SIZE / 1024))
/freebsd-14.2/sys/dev/pst/
H A Dpst-iop.c140 contigfree(reply, PAGE_SIZE, M_PSTIOP); in iop_attach()
247 PAGE_SIZE, 0))) { in iop_init_outqueue()
261 msg->host_pagesize = PAGE_SIZE; in iop_init_outqueue()
301 0x00010000, 0xFFFFFFFF, PAGE_SIZE, 0))) in iop_get_lct()
345 0x00010000, 0xFFFFFFFF, PAGE_SIZE, 0))) in iop_get_util_params()
349 0x00010000, 0xFFFFFFFF, PAGE_SIZE, 0))) in iop_get_util_params()
373 msg->sgl[1].count = PAGE_SIZE; in iop_get_util_params()
378 contigfree(reply, PAGE_SIZE, M_PSTIOP); in iop_get_util_params()
381 contigfree(param, PAGE_SIZE, M_PSTIOP); in iop_get_util_params()
492 data += min(count, PAGE_SIZE); in iop_create_sgl()
[all …]

12345678910>>...36