Searched defs:pages (Results 1 - 25 of 98) sorted by relevance

1234

/freebsd-head/contrib/apr/mmap/unix/
H A Dmmap.c82 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,
/freebsd-head/contrib/mandoc/
H A Ddba.h32 struct dba_array *pages; member in struct:dba
H A Ddbm.c46 int32_t pages; member in struct:macro
68 static struct page *pages; variable in typeref:struct:page
82 * Map the pages and macros[] arrays.
95 warnx("dbm_open(%s): Invalid number of pages: %d",
99 pages = (struct page *)dbm_getint(5);
134 /*** functions for handling pages *************************************/
152 res.name = dbm_get(pages[ip].name);
155 res.sect = dbm_get(pages[ip].sect);
158 res.arch = pages[ip].arch ? dbm_get(pages[i
[all...]
/freebsd-head/sys/dev/drm2/
H A Ddrm_memory.c56 void drm_free_agp(DRM_AGP_MEM * handle, int pages) argument
H A Ddrm_agpsupport.c205 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-head/sys/kern/
H A Dkern_physio.c47 struct vm_page **pages; local
101 pages = NULL;
105 pages = malloc(sizeof(*pages) * maxpages, M_DEVBUF, M_WAITOK);
110 pages = pbuf->b_pages;
174 if (pages) {
178 prot, pages, maxpages)) < 0) {
184 pages, npages);
187 bp->bio_ma = pages;
201 if (pages) {
[all...]
H A Dkern_kthread.c84 struct proc **newpp, int flags, int pages, const char *fmt, ...)
97 fr.fr_pages = pages;
264 struct thread **newtdp, int flags, int pages, const char *fmt, ...)
277 newtd = thread_alloc(pages);
459 int flags, int pages, const char *procname, const char *fmt, ...)
468 procptr, flags, pages, "%s", procname);
486 tdptr, flags, pages, "%s", buf);
83 kproc_create(void (*func)(void *), void *arg, struct proc **newpp, int flags, int pages, const char *fmt, ...) argument
263 kthread_add(void (*func)(void *), void *arg, struct proc *p, struct thread **newtdp, int flags, int pages, const char *fmt, ...) argument
457 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
H A Dkern_thr.c611 kern_thr_alloc(struct proc *p, int pages, struct thread **ntd) argument
620 *ntd = thread_alloc(pages);
H A Dkern_kcov.c363 size_t n, pages; local
375 pages = info->bufsize / PAGE_SIZE;
384 for (n = 0; n < pages; n++) {
H A Dkern_fork.c817 int flags, pages; local
820 pages = fr->fr_pages;
917 if (pages == 0)
918 pages = kstack_pages;
923 td2 = thread_alloc(pages);
930 if (td2->td_kstack == 0 || td2->td_kstack_pages != pages) {
933 if (!thread_alloc_stack(td2, pages)) {
/freebsd-head/sys/compat/cloudabi/
H A Dcloudabi_vdso.c50 size_t i, pages, pages_length, vdso_length; local
52 /* Determine the number of pages needed to store the vDSO. */
54 pages = howmany(vdso_length, PAGE_SIZE);
55 pages_length = pages * PAGE_SIZE;
61 for (i = 0; i < pages; ++i) {
/freebsd-head/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_resources.c86 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-head/lib/libgeom/
H A Dgeom_stats.c109 uint pages; member in struct:snapshot
135 sp->pages = npages;
179 if (++sp->u >= sp->pages)
/freebsd-head/sys/dev/drm2/ttm/
H A Dttm_agp_backend.c45 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),
/freebsd-head/contrib/xz/src/common/
H A Dtuklib_physmem.c147 const long pages = sysconf(_SC_PHYS_PAGES); local
148 if (pagesize != -1 && pages != -1)
149 // According to docs, pagesize * pages can overflow.
154 ret = (uint64_t)pagesize * (uint64_t)pages;
/freebsd-head/usr.bin/systat/
H A Dsysput.c110 sysputpage(WINDOW *wd, int row, int col, int width, uint64_t pages, int flags) argument
116 pages <<= shifts;
117 sysputuint64(wd, row, col, width, pages, flags);
/freebsd-head/contrib/binutils/libiberty/
H A Dphysmem.c87 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-head/lib/libusbhid/
H A Dusage.c56 } *pages; variable in typeref:struct:usage_page
66 printf("%d\t%s\n", pages[i].usage, pages[i].name);
67 for (j = 0; j < pages[i].pagesize; j++) {
68 printf("\t%d\t%s\n", pages[i].page_contents[j].usage,
69 pages[i].page_contents[j].name);
129 if (pages == NULL) {
131 pages = malloc(npagesmax *
135 pages = realloc(pages,
[all...]
/freebsd-head/sys/compat/linuxkpi/common/src/
H A Dlinux_page.c195 int write, struct page **pages)
203 count = vm_fault_quick_hold_pages(map, start, len, prot, pages, nr_pages);
209 struct page **pages)
221 MPASS(pages != NULL);
227 for (count = 0, mp = pages, va = start; va < end;
253 struct page **pages, struct vm_area_struct **vmas)
259 !!(gup_flags & FOLL_WRITE), pages));
264 struct page **pages, struct vm_area_struct **vmas)
270 !!(gup_flags & FOLL_WRITE), pages));
194 linux_get_user_pages_internal(vm_map_t map, unsigned long start, int nr_pages, int write, struct page **pages) argument
208 __get_user_pages_fast(unsigned long start, int nr_pages, int write, struct page **pages) argument
251 get_user_pages_remote(struct task_struct *task, struct mm_struct *mm, unsigned long start, unsigned long nr_pages, int gup_flags, struct page **pages, struct vm_area_struct **vmas) argument
263 get_user_pages(unsigned long start, unsigned long nr_pages, int gup_flags, struct page **pages, struct vm_area_struct **vmas) argument
/freebsd-head/sys/sys/
H A Daio.h143 struct vm_page *pages[btoc(MAXPHYS)+1]; /* (*) */ member in struct:kaiocb::__anon7::__anon8
144 int npages; /* (*) number of pages */
/freebsd-head/contrib/subversion/subversion/libsvn_fs_fs/
H A Dcaching.c282 * MEMBUFFER are NULL and pages is non-zero. Sets *CACHE_P to NULL
296 apr_int64_t pages,
333 else if (pages)
336 cache_p, serializer, deserializer, klen, pages,
385 * (e.g. noderevs, L2P and P2L index pages)
293 create_cache(svn_cache__t **cache_p, svn_memcache_t *memcache, svn_membuffer_t *membuffer, apr_int64_t pages, apr_int64_t items_per_page, svn_cache__serialize_func_t serializer, svn_cache__deserialize_func_t deserializer, apr_ssize_t klen, const char *prefix, apr_uint32_t priority, svn_boolean_t has_namespace, svn_fs_t *fs, svn_boolean_t no_handler, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument
/freebsd-head/contrib/subversion/subversion/libsvn_fs_x/
H A Dcaching.c318 apr_int64_t pages,
360 else if (pages)
363 cache_p, serializer, deserializer, klen, pages,
417 * (e.g. noderevs, L2P and P2L index pages)
315 create_cache(svn_cache__t **cache_p, svn_memcache_t *memcache, svn_membuffer_t *membuffer, apr_int64_t pages, apr_int64_t items_per_page, svn_cache__serialize_func_t serializer, svn_cache__deserialize_func_t deserializer, apr_ssize_t klen, const char *prefix, apr_uint32_t priority, svn_boolean_t has_namespace, svn_fs_t *fs, svn_boolean_t no_handler, svn_boolean_t dummy_cache, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument
/freebsd-head/sys/dev/spibus/
H A Dspigen.c301 size_t n, pages; local
309 pages = size / PAGE_SIZE;
323 m = malloc(sizeof(*m) * pages, M_TEMP, M_WAITOK);
326 for (n = 0; n < pages; n++) {
333 pmap_qenter(mmap->kvaddr, m, pages);
/freebsd-head/sys/dev/agp/
H A Dagp_nvidia.c343 int i, pages; local
369 pages = sc->gatt->ag_entries * sizeof(u_int32_t) / PAGE_SIZE;
370 for(i = 0; i < pages; i++)
372 for(i = 0; i < pages; i++)
/freebsd-head/contrib/jemalloc/src/
H A Dpages.c4 #include "jemalloc/internal/pages.h"
164 void *pages = os_pages_map(NULL, alloc_size, alignment, commit); local
165 if (pages == NULL) {
168 size_t leadsize = ALIGNMENT_CEILING((uintptr_t)pages, alignment)
169 - (uintptr_t)pages;
170 ret = os_pages_trim(pages, alloc_size, leadsize, size, commit);

Completed in 122 milliseconds

1234