/freebsd-10.3-release/contrib/binutils/libiberty/ |
H A D | physmem.c | 87 double pages = sysconf (_SC_PHYS_PAGES); local 89 if (0 <= pages && 0 <= pagesize) 90 return pages * pagesize; 99 double pages = pss.physical_memory; local 101 if (0 <= pages && 0 <= pagesize) 102 return pages * pagesize; 113 double pages = realmem.physmem; local 114 if (0 <= pages && 0 <= pagesize) 115 return pages * pagesize; 191 double pages local 205 double pages = psd.psd_free; local 219 double pages = realmem.availrmem; local 232 double pages = vmstats.free_count; local [all...] |
/freebsd-10.3-release/lib/libusbhid/ |
H A D | usage.c | 54 } *pages; variable in typeref:struct:usage_page 64 printf("%d\t%s\n", pages[i].usage, pages[i].name); 65 for (j = 0; j < pages[i].pagesize; j++) { 66 printf("\t%d\t%s\n", pages[i].page_contents[j].usage, 67 pages[i].page_contents[j].name); 127 if (pages == 0) { 129 pages = malloc(npagesmax * 133 pages = realloc(pages, [all...] |
/freebsd-10.3-release/sys/sys/ |
H A D | kthread.h | 53 int flags, int pages, const char *, ...) __printflike(6, 7); 65 int flags, int pages, 70 int flags, int pages, const char *, ...) __printflike(7, 8);
|
/freebsd-10.3-release/sys/ofed/include/linux/ |
H A D | vmalloc.h | 38 void *vmap(struct page **pages, unsigned int count, unsigned long flags,
|
/freebsd-10.3-release/contrib/gcclibs/libiberty/ |
H A D | physmem.c | 87 double pages = sysconf (_SC_PHYS_PAGES); local 89 if (0 <= pages && 0 <= pagesize) 90 return pages * pagesize; 99 double pages = pss.physical_memory; local 101 if (0 <= pages && 0 <= pagesize) 102 return pages * pagesize; 113 double pages = realmem.physmem; local 114 if (0 <= pages && 0 <= pagesize) 115 return pages * pagesize; 221 double pages local 235 double pages = psd.psd_free; local 249 double pages = realmem.availrmem; local 262 double pages = vmstats.free_count; local [all...] |
/freebsd-10.3-release/sys/dev/drm2/ttm/ |
H A D | ttm_agp_backend.c | 45 vm_page_t *pages; member in struct:ttm_agp_backend 59 vm_page_t page = ttm->pages[i]; 64 agp_be->pages[i] = page; 68 ret = -agp_bind_pages(agp_be->bridge, agp_be->pages, 89 free(agp_be->pages, M_TTM_AGP); 117 agp_be->pages = malloc(agp_be->ttm.num_pages * sizeof(*agp_be->pages),
|
H A D | ttm_page_alloc.c | 36 * - Pool collects resently freed pages for reuse 38 * - doesn't track currently in use pages 56 * struct ttm_page_pool - Pool to reuse recently allocated uc/wc pages. 62 * @list: Pool of free uc/wc pages for fast reuse. 64 * @npages: Number of pages in pool. 97 * @free_interval: minimum number of jiffies between freeing pages from pool. 100 * some pages to free. 101 * @small_allocation: Limit in number of pages what is small allocation. 235 /* Convert kb to number of pages */ 278 static int set_pages_array_wb(vm_page_t *pages, in argument 289 set_pages_array_wc(vm_page_t *pages, int addrinarray) argument 300 set_pages_array_uc(vm_page_t *pages, int addrinarray) argument 333 ttm_pages_put(vm_page_t *pages, unsigned npages) argument 485 ttm_set_pages_caching(vm_page_t *pages, enum ttm_caching_state cstate, unsigned cpages) argument 512 ttm_handle_caching_state_failure(struct pglist *pages, int ttm_flags, enum ttm_caching_state cstate, vm_page_t *failed_pages, unsigned cpages) argument 530 ttm_alloc_new_pages(struct pglist *pages, int ttm_alloc_flags, int ttm_flags, enum ttm_caching_state cstate, unsigned count) argument 662 ttm_page_pool_get_pages(struct ttm_page_pool *pool, struct pglist *pages, int ttm_flags, enum ttm_caching_state cstate, unsigned count) argument 694 ttm_put_pages(vm_page_t *pages, unsigned npages, int flags, enum ttm_caching_state cstate) argument 737 ttm_get_pages(vm_page_t *pages, unsigned npages, int flags, enum ttm_caching_state cstate) argument [all...] |
H A D | ttm_tt.c | 50 * Allocates storage for pointers to the pages that back the ttm. 54 ttm->pages = malloc(ttm->num_pages * sizeof(void *), 60 ttm->ttm.pages = malloc(ttm->ttm.num_pages * sizeof(void *), 99 * for range of pages in a ttm. 119 drm_clflush_pages(ttm->pages, ttm->num_pages); 122 cur_page = ttm->pages[i]; 138 cur_page = ttm->pages[j]; 171 if (likely(ttm->pages != NULL)) { 197 if (!ttm->pages) { 207 free(ttm->pages, M_TTM_P [all...] |
/freebsd-10.3-release/sys/ofed/drivers/net/mlx4/ |
H A D | en_resources.c | 86 struct page **pages; local 94 pages = kmalloc(sizeof *pages * buf->nbufs, GFP_KERNEL); 95 if (!pages) 99 pages[i] = virt_to_page(buf->page_list[i].buf); 101 buf->direct.buf = vmap(pages, buf->nbufs, VM_MAP, PAGE_KERNEL); 102 kfree(pages);
|
/freebsd-10.3-release/sys/dev/drm2/ |
H A D | ati_pcigart.c | 63 unsigned long pages; local 78 pages = (entry->pages <= max_pages) 79 ? entry->pages : max_pages; 81 for (i = 0; i < pages; i++) { 107 unsigned long pages; local 150 pages = (entry->pages <= max_real_pages) 151 ? entry->pages : max_real_pages; 160 for (i = 0; i < pages; [all...] |
H A D | drm_scatter.c | 31 * by mapping the pages into the GART. 50 kmem_free(kernel_arena, entry->vaddr, IDX_TO_OFF(entry->pages)); 77 entry->pages = OFF_TO_IDX(size); 78 entry->busaddr = malloc(entry->pages * sizeof(*entry->busaddr), 92 for (pindex = 0; pindex < entry->pages; pindex++) { 101 DRM_DEBUG("allocated %ju pages @ 0x%08zx, contents=%08lx\n", 102 entry->pages, entry->vaddr, *(unsigned long *)entry->vaddr);
|
H A D | drm_agpsupport.c | 205 unsigned long pages; local 216 pages = (request->size + PAGE_SIZE - 1) / PAGE_SIZE; 218 if (!(memory = agp_alloc_memory(dev->agp->bridge, type, pages << PAGE_SHIFT))) { 226 entry->pages = pages; 378 drm_free_agp(entry->memory, entry->pages); 425 * Binds a collection of pages into AGP memory at the given offset, returning 428 * No reference is held on the pages during this time -- it is up to the 433 struct page **pages, 446 DRM_ERROR("Failed to allocate memory for %ld pages\ 432 drm_agp_bind_pages(struct drm_device *dev, struct page **pages, unsigned long num_pages, uint32_t gtt_offset, u32 type) argument [all...] |
/freebsd-10.3-release/sys/dev/drm/ |
H A D | drm_scatter.c | 31 * by mapping the pages into the GART. 51 entry->pages = OFF_TO_IDX(size); 52 entry->busaddr = malloc(entry->pages * sizeof(*entry->busaddr), 62 for(pindex = 0; pindex < entry->pages; pindex++) { 78 DRM_DEBUG("allocated %ju pages @ 0x%08zx, contents=%08lx\n", 79 entry->pages, entry->vaddr, *(unsigned long *)entry->vaddr); 102 kmem_free(kernel_arena, entry->vaddr, IDX_TO_OFF(entry->pages));
|
H A D | ati_pcigart.c | 151 unsigned long pages; local 185 pages = (dev->sg->pages <= max_pages) 186 ? dev->sg->pages : max_pages; 192 for (i = 0; i < pages; i++) {
|
/freebsd-10.3-release/sys/kern/ |
H A D | kern_physio.c | 44 struct vm_page **pages; local 96 pages = NULL; 100 pages = malloc(sizeof(*pages) * maxpages, M_DEVBUF, M_WAITOK); 105 pages = pbuf->b_pages; 153 if (pages) { 157 prot, pages, maxpages)) < 0) { 163 pages, npages); 166 bp->bio_ma = pages; 180 if (pages) { [all...] |
H A D | subr_mbpool.c | 49 * Memory is allocated as DMA-able pages. Each page is divided into a number 83 u_int max_pages; /* maximum number of pages */ 89 u_int npages; /* current number of pages */ 91 struct mbpage pages[]; /* pages */ member in struct:mbpool 161 pg = &p->pages[i]; 210 pg = &p->pages[p->npages]; 260 *pap = p->pages[t->page].phy + t->chunk * p->chunk_size; 307 pg = &p->pages[i]; 333 pg = &p->pages[ [all...] |
H A D | kern_kthread.c | 82 struct proc **newpp, int flags, int pages, const char *fmt, ...) 93 pages, &p2, NULL, 0); 252 struct thread **newtdp, int flags, int pages, const char *fmt, ...) 265 newtd = thread_alloc(pages); 440 int flags, int pages, const char *procname, const char *fmt, ...) 449 procptr, flags, pages, "%s", procname); 467 tdptr, flags, pages, "%s", buf); 81 kproc_create(void (*func)(void *), void *arg, struct proc **newpp, int flags, int pages, const char *fmt, ...) argument 251 kthread_add(void (*func)(void *), void *arg, struct proc *p, struct thread **newtdp, int flags, int pages, const char *fmt, ...) argument 438 kproc_kthread_add(void (*func)(void *), void *arg, struct proc **procptr, struct thread **tdptr, int flags, int pages, const char *procname, const char *fmt, ...) argument
|
/freebsd-10.3-release/sys/dev/agp/ |
H A D | agp_i810.h | 79 int agp_intel_gtt_map_memory(device_t dev, vm_page_t *pages, u_int num_entries, 84 u_int num_entries, vm_page_t *pages, u_int flags); 90 int intel_gtt_map_memory(vm_page_t *pages, u_int num_entries, 95 vm_page_t *pages, u_int flags);
|
/freebsd-10.3-release/sys/vm/ |
H A D | vm_reserv.c | 65 * pages ("superpages"). Speculative allocation enables the fully-automatic 73 * The number of small pages that are contained in a level 0 reservation 90 * within the reservation's array of small pages. 100 * physical pages for the range [pindex, pindex + VM_LEVEL_0_NPAGES) of offsets 102 * small physical pages that are in use at any given time. When and if the 114 vm_page_t pages; /* first page of a superpage */ member in struct:vm_reserv 115 int popcnt; /* # of pages in use */ 128 * reservation's "pages" field. Invalid reservation structures have a NULL 129 * "pages" field. 233 KASSERT(rv->pages [all...] |
H A D | vm_glue.c | 197 * The limit for transient usage of wired pages should be 198 * larger than for "permanent" wired pages (mlock()). 324 vm_thread_new(struct thread *td, int pages) argument 333 if (pages <= 1) 334 pages = KSTACK_PAGES; 335 else if (pages > KSTACK_MAX_PAGES) 336 pages = KSTACK_MAX_PAGES; 338 if (pages == KSTACK_PAGES) { 356 ksobj = vm_object_allocate(OBJT_DEFAULT, pages); 366 if (vmem_xalloc(kernel_arena, (pages 412 vm_thread_stack_dispose(vm_object_t ksobj, vm_offset_t ks, int pages) argument 444 int pages; local 547 int i, pages; local 574 int i, j, k, pages, rv; local [all...] |
/freebsd-10.3-release/contrib/groff/ |
H A D | Makefile.comm | 175 @-pages="$(MAN1)"; \ 176 for p in $$pages; do \ 184 @-pages="$(MAN5)"; \ 185 for p in $$pages; do \ 192 @-pages="$(MAN7)"; \ 193 for p in $$pages; do \ 202 @-pages="$(MAN1)"; \ 203 for p in $$pages; do \ 208 @-pages="$(MAN5)"; \ 209 for p in $$pages; d [all...] |
/freebsd-10.3-release/contrib/jemalloc/src/ |
H A D | chunk_mmap.c | 132 # error "No method defined for purging unused dirty pages." 145 void *ret, *pages; local 153 pages = pages_map(NULL, alloc_size); 154 if (pages == NULL) 156 leadsize = ALIGNMENT_CEILING((uintptr_t)pages, alignment) - 157 (uintptr_t)pages; 158 ret = pages_trim(pages, alloc_size, leadsize, size);
|
/freebsd-10.3-release/sys/dev/drm2/radeon/ |
H A D | radeon_trace.h | 23 __field(u32, pages) 28 __entry->pages = bo->tbo.num_pages; 30 TP_printk("bo=%p, pages=%u", __entry->bo, __entry->pages)
|
/freebsd-10.3-release/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_alloc.c | 40 * multiple pages, so we don't require too much contiguous memory. 94 struct page **pages; local 96 pages = kmalloc(sizeof(*pages) * (buf->nbufs + 1), 99 pages[i] = virt_to_page(buf->page_list[i].buf); 100 pages[buf->nbufs] = pages[0]; 101 buf->direct.buf = vmap(pages, buf->nbufs + 1, VM_MAP, 103 kfree(pages);
|
/freebsd-10.3-release/contrib/apr/mmap/unix/ |
H A D | mmap.c | 82 uint32 pages = 0; local 110 pages = (size + B_PAGE_SIZE -1) / B_PAGE_SIZE; 111 aid = create_area("apr_mmap", &mm , B_ANY_ADDRESS, pages * B_PAGE_SIZE,
|