/freebsd-11-stable/lib/libkvm/ |
H A D | kvm_aarch64.h | 51 _Static_assert(PAGE_SIZE == AARCH64_PAGE_SIZE, "PAGE_SIZE mismatch");
|
/freebsd-11-stable/sys/powerpc/pseries/ |
H A D | plpar_iommu.c | 136 * 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 D | qls_def.h | 76 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 D | mp_machdep.c | 112 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 D | bpf_zerocopy.c | 164 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 D | at91_machdep.c | 114 /* 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 D | avila_machdep.c | 104 /* 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 D | mthca_allocator.c | 116 #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 D | vmparam.h | 79 #define SHAREDPAGE (VM_MAXUSER_ADDRESS - PAGE_SIZE) 87 #define FREEBSD32_SHAREDPAGE (VM_MAXUSER_ADDRESS32 - PAGE_SIZE)
|
/freebsd-11-stable/sys/powerpc/powerpc/ |
H A D | stack_machdep.c | 57 if (frame < PAGE_SIZE) 61 if (frame < PAGE_SIZE)
|
/freebsd-11-stable/sys/sparc64/include/ |
H A D | param.h | 111 #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 D | vmparam.h | 98 #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 D | uma_machdep.c | 63 0, MIPS_KSEG0_LARGEST_PHYS, PAGE_SIZE, 0)) 78 bzero(va, PAGE_SIZE);
|
H A D | mem.c | 102 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 D | dump_machdep.c | 76 a = pa + i * PAGE_SIZE; 98 phdr.p_align = PAGE_SIZE;
|
/freebsd-11-stable/sys/dev/drm2/ |
H A D | ati_pcigart.c | 45 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 D | vm_init.c | 150 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 D | param.h | 150 #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 D | locore.S | 186 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 D | vchiq_2835_arm.c | 148 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 D | acpi_machdep.c | 137 (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 D | mmap_test.c | 46 { (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 D | acpi_machdep.c | 121 (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 D | mlx5_alloc.c | 59 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 D | pv.c | 137 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;
|