/freebsd-10.2-release/sys/boot/powerpc/ps3/ |
H A D | ps3mmu.c | 86 for (spa = pa; spa < pa + length; spa += PAGE_SIZE) { 88 virtual_avail += PAGE_SIZE;
|
/freebsd-10.2-release/sys/boot/uboot/lib/ |
H A D | copy.c | 46 #define KERN_ALIGN PAGE_SIZE 136 return roundup2(addr, PAGE_SIZE);
|
/freebsd-10.2-release/sys/powerpc/aim/ |
H A D | uma_machdep.c | 78 bzero(va, PAGE_SIZE); 91 (vm_offset_t)mem + PAGE_SIZE);
|
H A D | mmu_oea64.c | 523 if (pa_base % PAGE_SIZE) 525 if (translations[i].om_va % PAGE_SIZE) 534 for (off = 0; off < translations[i].om_len; off += PAGE_SIZE) { 639 for (pa = off; pa < off + size; pa += PAGE_SIZE) 643 for (pa = off; pa < off + size; pa += PAGE_SIZE) 656 pa += PAGE_SIZE) 736 (kernelend & ~PAGE_MASK) + PAGE_SIZE; 754 phys_avail[j] = (kernelend & ~PAGE_MASK) + PAGE_SIZE; 790 PAGE_SIZE); 916 virtual_end += PAGE_SIZE; [all...] |
/freebsd-10.2-release/sys/sys/ |
H A D | pipe.h | 43 #define SMALL_PIPE_SIZE PAGE_SIZE 54 #define PIPENPAGES (BIG_PIPE_SIZE / PAGE_SIZE + 1)
|
H A D | pcpu.h | 75 #define DPCPU_SIZE roundup2(DPCPU_BYTES, PAGE_SIZE) 186 * should be denominator of PAGE_SIZE. 188 CTASSERT((PAGE_SIZE / sizeof(struct pcpu)) * sizeof(struct pcpu) == PAGE_SIZE);
|
/freebsd-10.2-release/sys/dev/terasic/mtl/ |
H A D | terasic_mtl_fdt.c | 96 if (rman_get_start(sc->mtl_reg_res) % PAGE_SIZE != 0) { 101 if (rman_get_size(sc->mtl_reg_res) % PAGE_SIZE != 0) { 119 if (rman_get_start(sc->mtl_pixel_res) % PAGE_SIZE != 0) { 124 if (rman_get_size(sc->mtl_pixel_res) % PAGE_SIZE != 0) { 142 if (rman_get_start(sc->mtl_text_res) % PAGE_SIZE != 0) { 147 if (rman_get_size(sc->mtl_text_res) % PAGE_SIZE != 0) {
|
/freebsd-10.2-release/sys/dev/random/ |
H A D | random_harvestq.c | 127 data = malloc(PAGE_SIZE, M_ENTROPY, M_WAITOK); 130 error = randomdev_read_file(*entropy_file, data, PAGE_SIZE); 132 printf("random: entropy cache '%s' provides %ld bytes\n", *entropy_file, (long)PAGE_SIZE); 133 error = randomdev_write_file(*entropy_file, zbuf, PAGE_SIZE); 136 for (i = 0; i < PAGE_SIZE; i += 16) 145 bzero(data, PAGE_SIZE);
|
/freebsd-10.2-release/sys/i386/xen/ |
H A D | locore.s | 111 .set PTD,PTmap + (PTDPTDI * PAGE_SIZE) 186 movl $((foo)*PAGE_SIZE), %eax ; \ 190 movl $((foo)*PAGE_SIZE),%ecx ; \ 210 addl $PAGE_SIZE,%eax ; /* increment physical address */ \ 278 leal (KSTACK_PAGES*PAGE_SIZE-PCB_SIZE)(%eax),%esp 285 movl %esi,(KSTACK_PAGES*PAGE_SIZE-PCB_SIZE+PCB_CR3)(%eax)
|
/freebsd-10.2-release/sys/xen/evtchn/ |
H A D | evtchn_dev.c | 114 if ( count > PAGE_SIZE ) 115 count = PAGE_SIZE; 182 uint16_t *kbuf = (uint16_t *)malloc(PAGE_SIZE, M_DEVBUF, M_WAITOK); 195 if ( count > PAGE_SIZE ) 196 count = PAGE_SIZE; 285 if ( (_ring = (uint16_t *)malloc(PAGE_SIZE, M_DEVBUF, M_WAITOK)) == NULL )
|
/freebsd-10.2-release/sys/dev/pst/ |
H A D | pst-iop.c | 140 contigfree(reply, PAGE_SIZE, M_PSTIOP); 247 PAGE_SIZE, 0))) { 261 msg->host_pagesize = PAGE_SIZE; 298 #define ALLOCSIZE (PAGE_SIZE + (256 * sizeof(struct i2o_lct_entry))) 301 0x00010000, 0xFFFFFFFF, PAGE_SIZE, 0))) 344 if (!(param = contigmalloc(PAGE_SIZE, M_PSTIOP, M_NOWAIT | M_ZERO, 345 0x00010000, 0xFFFFFFFF, PAGE_SIZE, 0))) 348 if (!(reply = contigmalloc(PAGE_SIZE, M_PSTIOP, M_NOWAIT | M_ZERO, 349 0x00010000, 0xFFFFFFFF, PAGE_SIZE, 0))) 373 msg->sgl[1].count = PAGE_SIZE; [all...] |
/freebsd-10.2-release/sys/vm/ |
H A D | vnode_pager.c | 318 pagesperblock = bsize / PAGE_SIZE; 323 blocksperpage = (PAGE_SIZE / bsize); 417 int size = PAGE_SIZE - base; 446 vm_page_clear_dirty(m, base, PAGE_SIZE - base); 487 *run *= bsize/PAGE_SIZE; 488 *run -= voffset/PAGE_SIZE; 523 for (i = 0; i < PAGE_SIZE / bsize; i++) { 613 size = PAGE_SIZE; 641 else if (count != PAGE_SIZE) 643 PAGE_SIZE [all...] |
/freebsd-10.2-release/sys/dev/pms/freebsd/driver/common/ |
H A D | lxencrypt.c | 57 static char s[PAGE_SIZE]; /* Assumes serialization */ 63 s[PAGE_SIZE - 1] = '\0'; 66 i = vsnprintf(s, PAGE_SIZE - 1, fmt, args); 167 i += careful_write(buf, i, PAGE_SIZE, "%4d: ", pCard->dek_index[table]); 170 i += careful_write(buf, i, PAGE_SIZE, "%02x", p[j]); 172 i += careful_write(buf, i, PAGE_SIZE, "\n"); 174 i += careful_write(buf, i, PAGE_SIZE, "Bad DEK index %d; range: 0 - %d\n", pCard->dek_index[table], DEK_MAX_TABLE_ITEMS); 178 //BUG_ON(i > PAGE_SIZE); 179 if (i > PAGE_SIZE) 180 i = PAGE_SIZE; [all...] |
/freebsd-10.2-release/libexec/rtld-elf/ |
H A D | map_object.c | 122 if ((segs[nsegs]->p_align & (PAGE_SIZE - 1)) != 0) { 152 if (phdr->p_offset > PAGE_SIZE || 153 phdr->p_offset + phdr->p_filesz > PAGE_SIZE) 222 mprotect(clear_page, PAGE_SIZE, data_prot|PROT_WRITE)) { 232 mprotect(clear_page, PAGE_SIZE, data_prot); 298 munmap(hdr, PAGE_SIZE); 304 munmap(hdr, PAGE_SIZE); 313 hdr = mmap(NULL, PAGE_SIZE, PROT_READ, MAP_PRIVATE | MAP_PREFAULT_READ, 355 (size_t)PAGE_SIZE) { 362 munmap(hdr, PAGE_SIZE); [all...] |
/freebsd-10.2-release/sys/kern/ |
H A D | imgact_gzip.c | 111 if (igz.idx >= PAGE_SIZE) 116 if (igz.idx >= PAGE_SIZE) 140 kmap_free_wakeup(exec_map, (vm_offset_t)igz.inbuf, PAGE_SIZE); local 168 gz->file_offset = PAGE_SIZE; 175 gz->virtual_offset = PAGE_SIZE; 183 gz->virtual_offset = PAGE_SIZE; 192 gz->bss_size = roundup(gz->a_out.a_bss, PAGE_SIZE); 306 if (igz->inbuf && igz->idx < (igz->offset + PAGE_SIZE)) { 310 kmap_free_wakeup(exec_map, (vm_offset_t)igz->inbuf, PAGE_SIZE); local 315 PAGE_SIZE, /* siz [all...] |
/freebsd-10.2-release/lib/libkvm/ |
H A D | kvm_minidump_i386.c | 117 pa = (idx * sizeof(*base) * NBBY + bit) * PAGE_SIZE; 119 off += PAGE_SIZE; 167 off = PAGE_SIZE + round_page(vmst->hdr.msgbufsize); 212 offset = va & (PAGE_SIZE - 1); 228 return (PAGE_SIZE - offset); 252 offset = va & (PAGE_SIZE - 1); 268 return (PAGE_SIZE - offset);
|
/freebsd-10.2-release/sbin/hastd/ |
H A D | ebuf.c | 76 size += PAGE_SIZE; 89 eb->eb_used = eb->eb_start + PAGE_SIZE / 4; 210 * Function adds size + (PAGE_SIZE / 4) bytes at the front of the buffer.. 220 newsize = eb->eb_end - eb->eb_start + (PAGE_SIZE / 4) + size; 226 newstart + (PAGE_SIZE / 4) + size + (eb->eb_used - eb->eb_start); 238 * Function adds size + ((3 * PAGE_SIZE) / 4) bytes at the back. 248 newsize = eb->eb_end - eb->eb_start + size + ((3 * PAGE_SIZE) / 4);
|
/freebsd-10.2-release/sys/arm/arm/ |
H A D | bcopy_page.S | 61 * number of bytes per page (PAGE_SIZE) is a multiple of 512 (BIG_LOOPS), 128 86 mov r2, #(PAGE_SIZE >> 9) 88 mov r2, #(PAGE_SIZE >> 7) 131 * number of bytes per page (PAGE_SIZE) is a multiple of 512 (BIG_LOOPS), 128 138 mov r2, #(PAGE_SIZE >> 9) 140 mov r2, #(PAGE_SIZE >> 7) 257 mov r1, #PAGE_SIZE
|
H A D | devmap.c | 266 size -= PAGE_SIZE; 267 tmpva += PAGE_SIZE; 268 pa += PAGE_SIZE; 294 size -= PAGE_SIZE; 295 tmpva += PAGE_SIZE;
|
H A D | mem.c | 117 c = (u_int)(PAGE_SIZE - ((int)iov->iov_base & PAGE_MASK)); 118 c = min(c, (u_int)(PAGE_SIZE - o)); 136 for (; addr < eaddr; addr += PAGE_SIZE)
|
/freebsd-10.2-release/sys/dev/drm2/radeon/ |
H A D | radeon_cs.c | 291 p->chunks[p->chunk_ib_idx].kpage[0] = malloc(PAGE_SIZE, DRM_MEM_DRIVER, M_NOWAIT); 292 p->chunks[p->chunk_ib_idx].kpage[1] = malloc(PAGE_SIZE, DRM_MEM_DRIVER, M_NOWAIT); 306 ((p->chunks[p->chunk_ib_idx].length_dw * 4) - 1) / PAGE_SIZE; 573 int size = PAGE_SIZE; 577 size = (ibc->length_dw * 4) % PAGE_SIZE; 579 size = PAGE_SIZE; 582 if (DRM_COPY_FROM_USER(p->ib.ptr + (i * (PAGE_SIZE/4)), 583 (char *)ibc->user_ptr + (i * PAGE_SIZE), 595 int size = PAGE_SIZE; 600 if (DRM_COPY_FROM_USER(p->ib.ptr + (i * (PAGE_SIZE/ [all...] |
/freebsd-10.2-release/sys/boot/userboot/userboot/ |
H A D | elf64_freebsd.c | 107 bzero(PT4, PAGE_SIZE); 108 bzero(PT3, PAGE_SIZE); 109 bzero(PT2, PAGE_SIZE);
|
/freebsd-10.2-release/sys/dev/drm/ |
H A D | ati_pcigart.c | 74 ret = bus_dma_tag_create(NULL, PAGE_SIZE, 0, /* tag, align, boundary */ 190 KASSERT(PAGE_SIZE >= ATI_PCIGART_PAGE_SIZE, ("page size too small")); 194 for (j = 0; j < (PAGE_SIZE / ATI_PCIGART_PAGE_SIZE); j++) {
|
/freebsd-10.2-release/sys/xen/ |
H A D | gnttab.c | 45 #define GREFS_PER_GRANT_FRAME (PAGE_SIZE / sizeof(grant_entry_t)) 60 #define RPP (PAGE_SIZE / sizeof(grant_ref_t)) 423 malloc(PAGE_SIZE, M_DEVBUF, M_NOWAIT); 530 area = kva_alloc(PAGE_SIZE * max_nr_grant_frames()); 536 PT_SET_MA(((caddr_t)shared) + i*PAGE_SIZE, 559 pmap_kremove((vm_offset_t) shared + i * PAGE_SIZE); 592 area = kva_alloc(PAGE_SIZE * max_nr_grant_frames()); 598 pmap_kenter((vm_offset_t) shared + i * PAGE_SIZE, 599 resume_frames + i * PAGE_SIZE); 617 error = xenpci_alloc_space(PAGE_SIZE * max_nr_gframe [all...] |
/freebsd-10.2-release/sys/amd64/amd64/ |
H A D | mem.c | 99 c = ulmin(iov->iov_len, PAGE_SIZE - (u_int)(v & PAGE_MASK)); 105 * PAGE_SIZE, the uiomove() call does not 147 p = pmap_mapdev(v, PAGE_SIZE); 149 pmap_unmapdev((vm_offset_t)p, PAGE_SIZE);
|