Searched refs:PAGE_SIZE (Results 51 - 75 of 784) sorted by relevance

1234567891011>>

/freebsd-11-stable/lib/libkvm/
H A Dkvm_aarch64.h51 _Static_assert(PAGE_SIZE == AARCH64_PAGE_SIZE, "PAGE_SIZE mismatch");
/freebsd-11-stable/sys/powerpc/pseries/
H A Dplpar_iommu.c136 * Allocate IOMMU range beginning at PAGE_SIZE. Some drivers
139 window->map->vmem = vmem_create("IOMMU mappings", PAGE_SIZE,
140 trunc_page(VMEM_ADDR_MAX) - PAGE_SIZE, PAGE_SIZE, 0,
182 (alignment < PAGE_SIZE) ? PAGE_SIZE : alignment, 0,
188 KASSERT(alloced % PAGE_SIZE == 0, ("Alloc not page aligned"));
195 for (j = 0; j < allocsize; j += PAGE_SIZE) {
233 roundedsize/PAGE_SIZE);
235 for (j = 0; j < roundedsize; j += PAGE_SIZE)
[all...]
/freebsd-11-stable/sys/dev/qlxge/
H A Dqls_def.h76 PAGE_SIZE + \
77 (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1))
146 ((QLA_LBQ_SIZE + PAGE_SIZE + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1))
155 ((QLA_SBQ_SIZE + PAGE_SIZE + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1))
/freebsd-11-stable/sys/amd64/amd64/
H A Dmp_machdep.c112 boot_address -= PAGE_SIZE; /* not enough, lower by 4k */
114 mptramp_pagetables = boot_address - (PAGE_SIZE * 3);
223 common_tss[cpu].tss_ist1 = (long)&doublefault_stack[PAGE_SIZE];
226 np = ((struct nmi_pcpu *) &nmi_stack[PAGE_SIZE]) - 1;
230 np = ((struct nmi_pcpu *) &mce_stack[PAGE_SIZE]) - 1;
234 np = ((struct nmi_pcpu *) &dbg_stack[PAGE_SIZE]) - 1;
276 np = ((struct nmi_pcpu *) &nmi_stack[PAGE_SIZE]) - 1;
280 np = ((struct nmi_pcpu *) &mce_stack[PAGE_SIZE]) - 1;
284 np = ((struct nmi_pcpu *) &dbg_stack[PAGE_SIZE]) - 1;
343 pt3 = pt4 + (PAGE_SIZE) / sizeo
[all...]
/freebsd-11-stable/sys/net/
H A Dbpf_zerocopy.c164 if (vm_fault_quick_hold_pages(map, uaddr, PAGE_SIZE, VM_PROT_READ |
208 if ((len / PAGE_SIZE) > BPF_MAX_PAGES)
218 zb->zb_numpages = len / PAGE_SIZE;
224 uaddr + (i * PAGE_SIZE));
268 page = offset / PAGE_SIZE;
269 poffset = offset % PAGE_SIZE;
274 count = min(len, PAGE_SIZE - poffset);
278 if (poffset == PAGE_SIZE) {
282 KASSERT(poffset < PAGE_SIZE,
323 page = offset / PAGE_SIZE;
[all...]
/freebsd-11-stable/sys/arm/at91/
H A Dat91_machdep.c114 /* this should be evenly divisable by PAGE_SIZE / L2_TABLE_SIZE_REAL (or 4) */
466 freemempos += (np * PAGE_SIZE); \
467 memset((char *)(var), 0, ((np) * PAGE_SIZE));
470 freemempos += PAGE_SIZE;
471 valloc_pages(kernel_l1pt, L1_TABLE_SIZE / PAGE_SIZE);
473 if (!(i % (PAGE_SIZE / L2_TABLE_SIZE_REAL))) {
475 L2_TABLE_SIZE / PAGE_SIZE);
478 (i % (PAGE_SIZE / L2_TABLE_SIZE_REAL)) *
493 valloc_pages(dpcpu, DPCPU_SIZE / PAGE_SIZE);
501 valloc_pages(msgbufpv, round_page(msgbufsize) / PAGE_SIZE);
[all...]
/freebsd-11-stable/sys/arm/xscale/ixp425/
H A Davila_machdep.c104 /* this should be evenly divisable by PAGE_SIZE / L2_TABLE_SIZE_REAL (or 4) */
189 #define next_page(a) next_chunk2(a,PAGE_SIZE)
230 freemempos -= (np * PAGE_SIZE); \
233 memset((char *)(var), 0, ((np) * PAGE_SIZE)); \
242 freemempos -= PAGE_SIZE;
244 valloc_pages(kernel_l1pt, L1_TABLE_SIZE / PAGE_SIZE);
247 if (!(loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL))) {
249 L2_TABLE_SIZE / PAGE_SIZE);
252 (loop % (PAGE_SIZE / L2_TABLE_SIZE_REAL)) *
275 valloc_pages(dpcpu, DPCPU_SIZE / PAGE_SIZE);
[all...]
/freebsd-11-stable/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;
181 for (i = 0; i < (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; ++i)
231 npages = (size + PAGE_SIZE - 1) / PAGE_SIZE;
248 dma_alloc_coherent(&dev->pdev->dev, PAGE_SIZE,
294 for (i = 0; i < (size + PAGE_SIZE - 1) / PAGE_SIZE;
[all...]
/freebsd-11-stable/sys/powerpc/include/
H A Dvmparam.h79 #define SHAREDPAGE (VM_MAXUSER_ADDRESS - PAGE_SIZE)
87 #define FREEBSD32_SHAREDPAGE (VM_MAXUSER_ADDRESS32 - PAGE_SIZE)
/freebsd-11-stable/sys/powerpc/powerpc/
H A Dstack_machdep.c57 if (frame < PAGE_SIZE)
61 if (frame < PAGE_SIZE)
/freebsd-11-stable/sys/sparc64/include/
H A Dparam.h111 #define PAGE_SHIFT PAGE_SHIFT_8K /* LOG2(PAGE_SIZE) */
112 #define PAGE_SIZE PAGE_SIZE_8K /* bytes/page */ macro
147 #define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024))
/freebsd-11-stable/sys/mips/include/
H A Dvmparam.h98 #define USRSTACK (VM_MAXUSER_ADDRESS - PAGE_SIZE)
100 #define FREEBSD32_USRSTACK (((vm_offset_t)0x80000000) - PAGE_SIZE)
/freebsd-11-stable/sys/mips/mips/
H A Duma_machdep.c63 0, MIPS_KSEG0_LARGEST_PHYS, PAGE_SIZE, 0))
78 bzero(va, PAGE_SIZE);
H A Dmem.c102 cnt = PAGE_SIZE - ((vm_offset_t)iov->iov_base &
104 cnt = min(cnt, PAGE_SIZE - off);
124 for (; va < eva; va += PAGE_SIZE)
/freebsd-11-stable/sys/arm/arm/
H A Ddump_machdep.c76 a = pa + i * PAGE_SIZE;
98 phdr.p_align = PAGE_SIZE;
/freebsd-11-stable/sys/dev/drm2/
H A Dati_pcigart.c45 PAGE_SIZE, BUS_SPACE_MAXADDR);
85 PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
149 max_real_pages = max_ati_pages / (PAGE_SIZE / ATI_PCIGART_PAGE_SIZE);
164 0, PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
175 for (j = 0; j < (PAGE_SIZE / ATI_PCIGART_PAGE_SIZE); j++) {
/freebsd-11-stable/sys/vm/
H A Dvm_init.c150 vmem_init(kernel_arena, "kernel arena", 0, 0, PAGE_SIZE, 0, 0);
156 PAGE_SIZE * 1024);
237 PAGE_SIZE, (mp_ncpus > 4) ? BKVASIZE * 8 : 0, 0);
253 firstaddr, size, PAGE_SIZE, 0, 0);
272 exec_map_entries * exec_map_entry_size + 64 * PAGE_SIZE, FALSE);
/freebsd-11-stable/sys/sys/
H A Dparam.h150 #define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */
159 #define MAXDUMPPGS (DFLTPHYS/PAGE_SIZE)
164 * MCLBYTES must be no larger than PAGE_SIZE.
176 #if PAGE_SIZE < 2048
178 #elif PAGE_SIZE <= 8192
179 #define MJUMPAGESIZE PAGE_SIZE
249 * backing memory uses a chunk size of a page (PAGE_SIZE).
/freebsd-11-stable/sys/arm64/arm64/
H A Dlocore.S186 mov x5, #(PAGE_SIZE * KSTACK_PAGES)
371 add x26, x26, #PAGE_SIZE
379 add x24, x26, #PAGE_SIZE
396 add x27, x24, #PAGE_SIZE
416 add x27, x27, #PAGE_SIZE
650 .space PAGE_SIZE
652 .space PAGE_SIZE
654 .space PAGE_SIZE
656 .space PAGE_SIZE
658 .space PAGE_SIZE
[all...]
/freebsd-11-stable/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_2835_arm.c148 PAGE_SIZE, 0, /* alignment, boundary */
175 WARN_ON(((int)g_slot_mem & (PAGE_SIZE - 1)) != 0);
416 offset = (vm_offset_t)buf & (PAGE_SIZE - 1);
417 num_pages = (count + offset + PAGE_SIZE - 1) / PAGE_SIZE;
432 PAGE_SIZE, 0, /* alignment, boundary */
492 next_addr = base_addr + PAGE_SIZE;
498 if ((addr == next_addr) && (run < (PAGE_SIZE - 1))) {
499 next_addr += PAGE_SIZE;
505 next_addr = addr + PAGE_SIZE;
[all...]
/freebsd-11-stable/sys/i386/acpica/
H A Dacpi_machdep.c137 (offset * PAGE_SIZE);
139 length -= PAGE_SIZE;
141 va += PAGE_SIZE;
142 pa += PAGE_SIZE;
143 length -= PAGE_SIZE;
163 va += PAGE_SIZE;
164 length -= PAGE_SIZE;
/freebsd-11-stable/tests/sys/vm/
H A Dmmap_test.c46 { (void *)(PAGE_SIZE - 1), { 0, 0 } },
47 { (void *)PAGE_SIZE, { 1, 1 } },
49 { (void *)(-PAGE_SIZE), { 0, 0 } },
50 { (void *)(-1 - PAGE_SIZE), { 0, 0 } },
51 { (void *)(-1 - PAGE_SIZE - 1), { 0, 0 } },
52 { (void *)(0x1000 * PAGE_SIZE), { 1, 1 } },
76 p = mmap((void *)map_at_zero_tests[i].addr, PAGE_SIZE,
/freebsd-11-stable/sys/amd64/acpica/
H A Dacpi_machdep.c121 (offset * PAGE_SIZE);
123 length -= PAGE_SIZE;
125 va += PAGE_SIZE;
126 pa += PAGE_SIZE;
127 length -= PAGE_SIZE;
147 va += PAGE_SIZE;
148 length -= PAGE_SIZE;
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/
H A Dmlx5_alloc.c59 KASSERT(segs[x].ds_len == PAGE_SIZE, ("Invalid segment size"));
77 buf->npages = howmany(size, PAGE_SIZE);
86 PAGE_SIZE, /* alignment */
91 PAGE_SIZE * buf->npages, /* maxsize */
93 PAGE_SIZE, /* maxsegsize */
111 PAGE_SIZE * buf->npages, &mlx5_buf_load_mem_cb,
125 memset(buf->direct.buf, 0, PAGE_SIZE * buf->npages);
/freebsd-11-stable/sys/x86/xen/
H A Dpv.c137 uint64_t *PT3 = (u_int64_t *)(xenstack + PAGE_SIZE);
138 uint64_t *PT2 = (u_int64_t *)(xenstack + 2 * PAGE_SIZE);
152 physfree = xenstack + 3 * PAGE_SIZE - KERNBASE;
175 for (i = 0; i < (PAGE_SIZE / sizeof(uint64_t)); i++) {
214 const size_t stacksize = kstack_pages * PAGE_SIZE;
220 (char *)kmem_malloc(kernel_arena, PAGE_SIZE, M_WAITOK | M_ZERO);
222 (char *)kmem_malloc(kernel_arena, PAGE_SIZE, M_WAITOK | M_ZERO);
224 (char *)kmem_malloc(kernel_arena, PAGE_SIZE, M_WAITOK | M_ZERO);
228 bootSTK = (char *)bootstacks[cpu] + kstack_pages * PAGE_SIZE - 8;

Completed in 381 milliseconds

1234567891011>>