Searched refs:page (Results 1 - 25 of 311) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/ofed/libmlx5/
H A Ddbrec.c51 struct mlx5_db_page *page; local
60 page = malloc(sizeof *page + nlong * sizeof(long));
61 if (!page)
64 if (mlx5_alloc_buf(&page->buf, ps, ps)) {
65 free(page);
69 page->num_db = pp;
70 page->use_cnt = 0;
72 page->free[i] = ~0;
74 page
85 struct mlx5_db_page *page; local
118 struct mlx5_db_page *page; local
[all...]
/freebsd-13-stable/contrib/ofed/libmlx4/
H A Ddbrec.c57 struct mlx4_db_page *page; local
64 page = malloc(sizeof *page + pp / 8);
65 if (!page)
68 if (mlx4_alloc_buf(&page->buf, ps, ps)) {
69 free(page);
73 page->num_db = pp;
74 page->use_cnt = 0;
76 page->free[i] = ~0;
78 page
89 struct mlx4_db_page *page; local
121 struct mlx4_db_page *page; local
[all...]
/freebsd-13-stable/sys/compat/linuxkpi/common/include/asm/
H A Dpgtable.h34 #include <linux/page.h>
41 typedef struct page *pgtable_t;
/freebsd-13-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_doorbell.c47 struct mlx4_ib_user_db_page *page; local
52 list_for_each_entry(page, &context->db_page_list, list)
53 if (page->user_virt == (virt & PAGE_MASK))
56 page = kmalloc(sizeof *page, GFP_KERNEL);
57 if (!page) {
62 page->user_virt = (virt & PAGE_MASK);
63 page->refcnt = 0;
64 page->umem = ib_umem_get(&context->ibucontext, virt & PAGE_MASK,
66 if (IS_ERR(page
[all...]
/freebsd-13-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_doorbell.c44 struct mlx5_ib_user_db_page *page; local
49 list_for_each_entry(page, &context->db_page_list, list)
50 if (page->user_virt == (virt & PAGE_MASK))
53 page = kmalloc(sizeof(*page), GFP_KERNEL);
54 if (!page) {
59 page->user_virt = (virt & PAGE_MASK);
60 page->refcnt = 0;
61 page->umem = ib_umem_get(&context->ibucontext, virt & PAGE_MASK,
63 if (IS_ERR(page
[all...]
/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/
H A Dvmalloc.h34 #include <linux/page.h>
39 void *vmap(struct page **pages, unsigned int count, unsigned long flags,
H A Dgfp.h39 #include <linux/page.h>
84 * Resolve a page into a virtual address:
88 extern void *linux_page_address(struct page *);
90 #define page_address(page) linux_page_address(page)
96 extern void linux_free_pages(vm_page_t page, unsigned int order);
98 static inline struct page *
105 static inline struct page *
112 static inline struct page *
120 __free_pages(struct page *pag argument
127 __free_page(struct page *page) argument
[all...]
H A Dmm.h130 struct page *page; member in struct:vm_fault
166 lowmem_page_address(struct page *page) argument
168 return (page_address(page));
212 set_page_dirty(struct vm_page *page) argument
214 vm_page_dirty(page);
218 mark_page_accessed(struct vm_page *page) argument
220 vm_page_reference(page);
224 get_page(struct vm_page *page) argument
245 put_page(struct vm_page *page) argument
[all...]
H A Dpagemap.h37 release_pages(struct page **pages, int nr)
/freebsd-13-stable/contrib/ncurses/form/
H A Dfrm_page.c40 | Function : int set_form_page(FORM * form,int page)
42 | Description : Set the page number of the form.
45 | E_BAD_ARGUMENT - invalid form pointer or page number
51 set_form_page(FORM *form, int page) argument
55 T((T_CALLED("set_form_page(%p,%d)"), (void *)form, page));
57 if (!form || (page < 0) || (page >= form->maxpage))
62 form->curpage = (short)page;
71 if (form->curpage != page)
79 err = _nc_Set_Form_Page(form, page, (FIEL
[all...]
/freebsd-13-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/i86xpv/xdt/
H A Dtst.memenable.ksh55 xdt:mem::page-grant-map,
56 xdt:mem::page-grant-unmap,
57 xdt:mem::page-grant-transfer
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mlock.c58 static long page = 0; variable
71 buf = malloc(page);
74 if (page < 1024)
75 atf_tc_skip("page size too small");
77 for (size_t i = page; i >= 1; i = i - 1024) {
78 (void)mlock(buf, page - i);
79 (void)munlock(buf, page - i);
126 ATF_REQUIRE_ERRNO(ENOMEM, mlock(NULL, page) == -1);
133 ATF_REQUIRE_ERRNO(ENOMEM, mlock((char *)0, page) == -1);
136 ATF_REQUIRE_ERRNO(ENOMEM, munlock(NULL, page)
[all...]
H A Dt_mincore.c78 static long page = 0; variable
91 ATF_REQUIRE(mincore(addr, npgs * page, vec) == 0);
99 (void)fprintf(stderr, "page 0x%p is %sresident\n",
100 (char *)addr + (i * page), vec[i] ? "" : "not ");
119 map = mmap(NULL, page, PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
120 vec = malloc(page);
131 ATF_REQUIRE_ERRNO(ENOMEM, mincore(0, page, vec) == -1);
134 ATF_REQUIRE_ERRNO(EFAULT, mincore(map, page, (void *)-1) == -1);
137 ATF_REQUIRE(munmap(map, page) == 0);
143 atf_tc_set_md_var(tc, "descr", "Test page residenc
[all...]
H A Dt_minherit.c47 static long page; variable
51 void *map = mmap(NULL, page, PROT_READ|PROT_WRITE,
54 memset(map, v, page);
56 ATF_REQUIRE(minherit(map, page, f) == 0);
58 ATF_REQUIRE(minherit(map, page, f) == -1);
76 ATF_REQUIRE(memcmp(map1, map2, page) == 0);
82 ATF_REQUIRE(memcmp(map1, map2, page) == 0);
83 memset(map1, 0, page);
103 memset(map2, 0, page);
104 ATF_REQUIRE(memcmp(map1, map2, page)
[all...]
H A Dt_msync.c44 static long page = 0; variable
60 * one page to it, and map the file.
62 buf = malloc(page);
67 memset(buf, 'x', page);
76 ATF_REQUIRE_MSG(write(fd, buf, page) != -1, "write(2) failed: %s",
79 map = mmap(NULL, page, PROT_READ | PROT_WRITE, MAP_FILE|MAP_PRIVATE,
108 if (msync(map, page, flags) != 0) {
125 (void)munmap(map, page);
173 * Map a page and then unmap to get an unmapped address.
175 map = mmap(NULL, page, PROT_REA
[all...]
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dparam.h27 #include <asm/page.h>
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Dkmap_compat.h33 #define zfs_kmap_atomic(page) kmap_atomic(page)
/freebsd-13-stable/sys/xen/interface/io/
H A Dfbif.h113 /* shared page */
118 #define XENFB_IN_RING(page) \
119 ((union xenfb_in_event *)((char *)(page) + XENFB_IN_RING_OFFS))
120 #define XENFB_IN_RING_REF(page, idx) \
121 (XENFB_IN_RING((page))[(idx) % XENFB_IN_RING_LEN])
126 #define XENFB_OUT_RING(page) \
127 ((union xenfb_out_event *)((char *)(page) + XENFB_OUT_RING_OFFS))
128 #define XENFB_OUT_RING_REF(page, idx) \
129 (XENFB_OUT_RING((page))[(idx) % XENFB_OUT_RING_LEN])
143 * Framebuffer page director
[all...]
H A Dkbdif.h163 * page-gref
167 * a sole page in a single page sized event ring buffer.
169 * page-ref
173 * PFN of the shared page.
209 #define XENKBD_FIELD_RING_GREF "page-gref"
219 #define XENKBD_FIELD_RING_REF "page-ref"
227 * each other using a shared page and an event channel.
228 * Shared page contains a ring with event structures.
540 * Shared page
[all...]
/freebsd-13-stable/lib/libc/tests/gen/
H A Darc4random_test.c57 } *page; local
61 page = mmap(NULL, sizeof(struct shared_page), PROT_READ | PROT_WRITE,
63 ATF_REQUIRE_MSG(page != MAP_FAILED, "mmap failed; errno=%d", errno);
71 arc4random_buf(page->childbuf, BUFSIZE);
76 arc4random_buf(page->parentbuf, BUFSIZE);
79 ATF_CHECK_MSG(memcmp(page->parentbuf, page->childbuf, BUFSIZE) != 0,
/freebsd-13-stable/tools/regression/mlock/
H A Dmlock.c43 * munlock() return success on an anonymously mapped memory page when running
52 char *page; local
67 page = mmap(NULL, pagesize, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0);
68 if (page == MAP_FAILED)
71 if (mlock(page, pagesize) < 0)
74 if (munlock(page, pagesize) < 0)
80 if (mlock(page, pagesize) == 0)
85 if (munlock(page, pagesize) == 0)
/freebsd-13-stable/contrib/mandoc/
H A Ddba.c85 struct dba_array *page; local
102 dba_array_FOREACH(dba->pages, page) {
103 dba_array_free(dba_array_get(page, DBP_NAME));
104 dba_array_free(dba_array_get(page, DBP_SECT));
105 dba_array_free(dba_array_get(page, DBP_ARCH));
106 free(dba_array_get(page, DBP_DESC));
107 dba_array_free(dba_array_get(page, DBP_FILE));
108 dba_array_free(page);
155 * Create a new page and append it to the pages table.
161 struct dba_array *page, *entr local
188 dba_page_add(struct dba_array *page, int32_t ie, const char *str) argument
218 dba_page_alias(struct dba_array *page, const char *name, uint64_t mask) argument
273 struct dba_array *page, *entry; local
386 dba_macro_add(struct dba_array *macros, int32_t im, const char *value, struct dba_array *page) argument
435 struct dba_array *page; local
[all...]
H A Ddba_read.c39 struct dba_array *page; local
51 page = dba_page_new(dba->pages, pdata->arch,
54 dba_page_add(page, DBP_NAME, cp);
56 dba_page_add(page, DBP_SECT, cp);
59 dba_page_add(page, DBP_ARCH, cp);
62 dba_page_add(page, DBP_FILE, cp);
/freebsd-13-stable/contrib/subversion/subversion/libsvn_subr/
H A Dcache-inprocess.c53 /* Number of cache entries stored on each page. Must be at least 1. */
58 * used page, and SENTINEL->PREV is the least recently used page.
59 * All pages in this list are "full"; the page currently being
63 /* A page currently being filled with entries, or NULL if there's no
64 * partially-filled page. This page is not in SENTINEL's list. */
88 /* A cache page; all items on the page are allocated from the same
99 * (The cache will never allocate more than TOTAL_PAGES page
121 struct cache_page *page; member in struct:cache_entry
131 remove_page_from_list(struct cache_page *page) argument
139 insert_page(inprocess_cache_t *cache, struct cache_page *page) argument
153 move_page_to_front(inprocess_cache_t *cache, struct cache_page *page) argument
285 erase_page(inprocess_cache_t *cache, struct cache_page *page) argument
328 struct cache_page *page = existing_entry->page; local
343 struct cache_page *page = existing_entry->page; local
393 struct cache_page *page = cache->partial_page; local
[all...]
/freebsd-13-stable/sys/compat/linuxkpi/common/src/
H A Dlinux_page.c76 linux_page_address(struct page *page) argument
79 if (page->object != kernel_object) {
81 ((void *)(uintptr_t)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(page))) :
85 IDX_TO_OFF(page->pindex)));
91 vm_page_t page; local
100 page = vm_page_alloc(NULL, 0, req);
101 if (page == NULL)
107 page = vm_page_alloc_contig(NULL, 0, req,
110 if (page
149 linux_free_pages(vm_page_t page, unsigned int order) argument
[all...]

Completed in 321 milliseconds

1234567891011>>