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

1234567891011>>

/freebsd-11-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-11-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-11-stable/sys/compat/linuxkpi/common/include/asm/
H A Dpgtable.h34 #include <linux/page.h>
41 typedef struct page *pgtable_t;
/freebsd-11-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-11-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-11-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 Dmm.h126 struct page *page; member in struct:vm_fault
162 lowmem_page_address(struct page *page) argument
164 return (page_address(page));
208 set_page_dirty(struct vm_page *page) argument
210 vm_page_dirty(page);
214 set_page_dirty_lock(struct vm_page *page) argument
216 vm_page_lock(page);
217 vm_page_dirty(page);
222 mark_page_accessed(struct vm_page *page) argument
228 get_page(struct vm_page *page) argument
251 put_page(struct vm_page *page) argument
[all...]
H A Dgfp.h39 #include <linux/page.h>
81 * Resolve a page into a virtual address:
85 extern void *linux_page_address(struct page *);
87 #define page_address(page) linux_page_address(page)
93 extern void linux_free_pages(vm_page_t page, unsigned int order);
95 static inline struct page *
102 static inline struct page *
109 static inline struct page *
117 __free_pages(struct page *pag argument
124 __free_page(struct page *page) argument
[all...]
H A Dpage.h29 * $FreeBSD: stable/11/sys/compat/linuxkpi/common/include/linux/page.h 328653 2018-02-01 13:01:44Z hselasky $
49 #define page vm_page macro
74 #define nth_page(page,n) pfn_to_page(page_to_pfn(page) + (n))
76 #define clear_page(page) memset(page, 0, PAGE_SIZE)
/freebsd-11-stable/contrib/ncurses/form/
H A Dfrm_page.c39 | Function : int set_form_page(FORM * form,int page)
41 | Description : Set the page number of the form.
44 | E_BAD_ARGUMENT - invalid form pointer or page number
50 set_form_page(FORM *form, int page) argument
54 T((T_CALLED("set_form_page(%p,%d)"), (void *)form, page));
56 if (!form || (page < 0) || (page >= form->maxpage))
61 form->curpage = (short)page;
70 if (form->curpage != page)
78 err = _nc_Set_Form_Page(form, page, (FIEL
[all...]
/freebsd-11-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-11-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-11-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.h98 /* shared page */
103 #define XENKBD_IN_RING(page) \
104 ((union xenkbd_in_event *)((char *)(page) + XENKBD_IN_RING_OFFS))
105 #define XENKBD_IN_RING_REF(page, idx) \
106 (XENKBD_IN_RING((page))[(idx) % XENKBD_IN_RING_LEN])
111 #define XENKBD_OUT_RING(page) \
112 ((union xenkbd_out_event *)((char *)(page) + XENKBD_OUT_RING_OFFS))
113 #define XENKBD_OUT_RING_REF(page, idx) \
114 (XENKBD_OUT_RING((page))[(idx) % XENKBD_OUT_RING_LEN])
/freebsd-11-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-11-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-11-stable/contrib/mdocml/
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-11-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-11-stable/sys/compat/linuxkpi/common/src/
H A Dlinux_page.c81 linux_page_address(struct page *page) argument
84 if (page->object != kmem_object && page->object != kernel_object) {
86 return ((void *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(page)));
92 IDX_TO_OFF(page->pindex)));
102 vm_page_t page; local
105 page = vm_page_alloc(NULL, 0, req);
106 if (page == NULL)
112 page
154 linux_free_pages(vm_page_t page, unsigned int order) argument
307 vm_page_t page; local
[all...]
/freebsd-11-stable/sys/dev/mthca/
H A Dmthca_memfree.c39 #include <linux/page.h>
60 } page[0]; member in struct:mthca_user_db_table
108 struct page *page; local
114 page = alloc_pages(gfp_mask | __GFP_ZERO, order);
115 if (!page)
118 sg_set_page(mem, page, PAGE_SIZE << order, 0);
282 struct page *page = NULL; local
305 * so if we found the page, dma_handl
438 mthca_uarc_virt(struct mthca_dev *dev, struct mthca_uar *uar, int page) argument
570 struct mthca_db_page *page; local
665 struct mthca_db_page *page; local
[all...]
/freebsd-11-stable/tests/sys/posixshm/
H A Dposixshm_test.c98 char *page; local
116 page = mmap(0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
117 if (page == MAP_FAILED)
120 page[0] = '1';
121 ATF_REQUIRE_MSG(munmap(page, pagesize) == 0, "munmap failed; errno=%d",
130 char *page; local
137 page = mmap(0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
138 if (page == MAP_FAILED)
141 if (page[0] != '1')
142 atf_tc_fail("missing data ('%c' != '1')", page[
155 char *page; local
184 char *page; local
277 char *page; local
351 char *page; local
365 char *page; local
[all...]

Completed in 206 milliseconds

1234567891011>>