Searched refs:pages (Results 1 - 25 of 162) sorted by relevance

1234567

/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dparam.h30 #define ptob(pages) ((pages) << PAGE_SHIFT)
/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/
H A Dpagemap.h37 release_pages(struct page **pages, int nr) argument
42 put_page(pages[i]);
H A Dvmalloc.h39 void *vmap(struct page **pages, unsigned int count, unsigned long flags,
/freebsd-13-stable/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-13-stable/sys/sys/
H A Dkthread.h55 int flags, int pages, const char *, ...) __printflike(6, 7);
67 int flags, int pages,
72 int flags, int pages, const char *, ...) __printflike(7, 8);
/freebsd-13-stable/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-13-stable/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),
H A Dttm_page_alloc.c36 * - Pool collects resently freed pages for reuse
38 * - doesn't track currently in use pages
57 * struct ttm_page_pool - Pool to reuse recently allocated uc/wc pages.
63 * @list: Pool of free uc/wc pages for fast reuse.
65 * @npages: Number of pages in pool.
98 * @free_interval: minimum number of jiffies between freeing pages from pool.
101 * some pages to free.
102 * @small_allocation: Limit in number of pages what is small allocation.
232 /* Convert kb to number of pages */
275 static int set_pages_array_wb(vm_page_t *pages, in argument
286 set_pages_array_wc(vm_page_t *pages, int addrinarray) argument
297 set_pages_array_uc(vm_page_t *pages, int addrinarray) argument
330 ttm_pages_put(vm_page_t *pages, unsigned npages) argument
482 ttm_set_pages_caching(vm_page_t *pages, enum ttm_caching_state cstate, unsigned cpages) argument
509 ttm_handle_caching_state_failure(struct pglist *pages, int ttm_flags, enum ttm_caching_state cstate, vm_page_t *failed_pages, unsigned cpages) argument
527 ttm_alloc_new_pages(struct pglist *pages, int ttm_alloc_flags, int ttm_flags, enum ttm_caching_state cstate, unsigned count) argument
659 ttm_page_pool_get_pages(struct ttm_page_pool *pool, struct pglist *pages, int ttm_flags, enum ttm_caching_state cstate, unsigned count) argument
691 ttm_put_pages(vm_page_t *pages, unsigned npages, int flags, enum ttm_caching_state cstate) argument
734 ttm_get_pages(vm_page_t *pages, unsigned npages, int flags, enum ttm_caching_state cstate) argument
[all...]
H A Dttm_tt.c50 * 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-13-stable/contrib/mandoc/
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...]
H A Ddba.c45 struct dba_array *pages; member in struct:macro_entry
71 dba->pages = dba_array_new(npages, DBA_GROW);
93 dba_array_free(entry->pages);
101 dba_array_undel(dba->pages);
102 dba_array_FOREACH(dba->pages, page) {
110 dba_array_free(dba->pages);
119 * - The pages table.
134 dba_pages_write(dba->pages);
152 /*** functions for handling pages *************************************/
155 * Create a new page and append it to the pages tabl
158 dba_page_new(struct dba_array *pages, const char *arch, const char *desc, const char *file, enum form form) argument
271 dba_pages_write(struct dba_array *pages) argument
[all...]
H A Ddba.h32 struct dba_array *pages; member in struct:dba
/freebsd-13-stable/sys/kern/
H A Dkern_physio.c50 struct vm_page **pages; local
104 pages = NULL;
108 pages = malloc(sizeof(*pages) * maxpages, M_DEVBUF, M_WAITOK);
114 pages = pbuf->b_pages;
156 if (pages) {
160 prot, pages, maxpages)) < 0) {
167 pages, npages);
170 bp->bio_ma = pages;
185 if (pages) {
[all...]
/freebsd-13-stable/sys/vm/
H A Dvm_glue.c291 vm_thread_stack_create(struct domainset *ds, int pages) argument
305 if (vmem_xalloc(kernel_arena, (pages + KSTACK_GUARD_PAGES) * PAGE_SIZE,
311 ks = kva_alloc((pages + KSTACK_GUARD_PAGES) * PAGE_SIZE);
324 * Allocate physical pages to back the stack.
326 vm_thread_stack_back(ds, ks, ma, pages, VM_ALLOC_NORMAL);
327 for (i = 0; i < pages; i++)
329 pmap_qenter(ks, ma, pages);
335 vm_thread_stack_dispose(vm_offset_t ks, int pages) argument
343 pmap_qremove(ks, pages);
345 for (i = 0; i < pages;
362 vm_thread_new(struct thread *td, int pages) argument
398 int pages; local
[all...]
/freebsd-13-stable/contrib/libxo/
H A DMakefile.am36 GH_PAGES_DIR = gh-pages/
37 GH_PAGES_DIR_VER = gh-pages/${PACKAGE_VERSION}
56 && echo "Updating html on gh-pages ..." \
65 && git push origin gh-pages ) ; true
70 && echo "Updating xohtml files on gh-pages ..." \
77 && git push origin gh-pages ) ; true
85 get-gh-pages:
87 gh-pages -b gh-pages
99 && echo "Updating packages on gh-pages
[all...]
/freebsd-13-stable/sys/dev/agp/
H A Dagp_i810.h81 int agp_intel_gtt_map_memory(device_t dev, vm_page_t *pages, u_int num_entries,
86 u_int num_entries, vm_page_t *pages, u_int flags);
93 int intel_gtt_map_memory(vm_page_t *pages, u_int num_entries,
98 vm_page_t *pages, u_int flags);
/freebsd-13-stable/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-13-stable/sys/dev/drm2/
H A Ddrm_scatter.c31 * by mapping the pages into the GART.
50 kmem_free(entry->vaddr, IDX_TO_OFF(entry->pages));
77 entry->pages = atop(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 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-13-stable/contrib/llvm-project/lld/lib/ReaderWriter/MachO/
H A DCompactUnwindPass.cpp70 std::vector<UnwindInfoPage> &pages, uint32_t numLSDAs)
78 3 * (pages.size() + 1) * sizeof(uint32_t)),
82 addHeader(commonEncodings.size(), personalities.size(), pages.size());
85 addTopLevelIndexes(pages);
86 addLSDAIndexes(pages, numLSDAs);
87 addSecondLevelPages(pages);
156 void addTopLevelIndexes(std::vector<UnwindInfoPage> &pages) { argument
159 uint32_t numIndexes = pages.size() + 1;
168 for (unsigned i = 0; i < pages.size(); ++i) {
171 pages[
67 UnwindInfoAtom(ArchHandler &archHandler, const File &file, bool isBig, std::vector<const Atom *> &personalities, std::vector<uint32_t> &commonEncodings, std::vector<UnwindInfoPage> &pages, uint32_t numLSDAs) argument
192 addLSDAIndexes(std::vector<UnwindInfoPage> &pages, uint32_t numLSDAs) argument
208 addSecondLevelPages(std::vector<UnwindInfoPage> &pages) argument
326 std::vector<UnwindInfoPage> pages; variable
[all...]
/freebsd-13-stable/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-13-stable/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_2835_arm.c383 /* There is a potential problem with partial cache lines (pages?)
401 vm_page_t* pages; local
424 (num_pages * sizeof(pages[0]));
462 pages = (vm_page_t*)(addrs + num_pages);
466 (type == PAGELIST_READ ? VM_PROT_WRITE : 0 ) | VM_PROT_READ, pages, num_pages);
469 vm_page_unhold_pages(pages, actual_pages);
478 /* Group the pages into runs of contiguous pages */
480 base_addr = (void *)PHYS_TO_VCBUS(VM_PAGE_TO_PHYS(pages[0]));
486 addr = (void *)PHYS_TO_VCBUS(VM_PAGE_TO_PHYS(pages[
546 vm_page_t*pages; local
[all...]
/freebsd-13-stable/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-13-stable/usr.bin/systat/
H A Dsysput.c120 sysputpage(WINDOW *wd, int row, int col, int width, uint64_t pages, int flags) argument
126 pages <<= shifts;
127 sysputuint64(wd, row, col, width, pages, flags);
/freebsd-13-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mr.c96 u64 *pages; local
103 pages = (u64 *) __get_free_page(GFP_KERNEL);
104 if (!pages)
112 pages[i++] = sg_dma_address(sg) +
120 i, pages);
130 err = mlx4_write_mtt(dev->dev, mtt, n, i, pages);
133 free_page((unsigned long) pages);
294 mr->pages = (__be64 *)get_zeroed_page(GFP_KERNEL);
295 if (!mr->pages)
298 mr->page_map = dma_map_single(device->dma_device, mr->pages,
[all...]

Completed in 126 milliseconds

1234567