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

12345

/barrelfish-master/lib/devif/backends/net/mlx4/drivers/infiniband/hw/mlx4/
H A Ddoorbell.c47 struct mlx4_ib_user_db_page *page; local
53 list_for_each_entry(page, &context->db_page_list, list)
54 if (page->user_virt == (virt & PAGE_MASK))
57 page = kmalloc(sizeof *page, GFP_KERNEL);
58 if (!page) {
63 page->user_virt = (virt & PAGE_MASK);
64 page->refcnt = 0;
65 page->umem = ib_umem_get(&context->ibucontext, virt & PAGE_MASK,
67 if (IS_ERR(page
[all...]
/barrelfish-master/lib/devif/backends/net/mlx4/include/linux/
H A Dgfp.h34 #include <linux/page.h>
41 #include <linux/page.h>
67 page_address(struct page *page)
70 if (page->object != kmem_object && page->object != kernel_object)
73 IDX_TO_OFF(page->pindex)));
88 free_page(unsigned long page)
91 if (page == 0)
93 kmem_free(kmem_arena, page, PAGE_SIZ
183 struct page *page; local
[all...]
H A Dvmalloc.h33 #include <linux/page.h>
38 void *vmap(struct page **pages, unsigned int count, unsigned long flags,
H A Dmm.h33 #include <linux/page.h>
70 lowmem_page_address(struct page *page) { argument
72 return page->virt_addr;
H A Dpage.h42 struct page { struct
43 genpaddr_t phys_addr; /* physical address of page */
44 void *virt_addr;/* virtual address of page XXX: not sure if we need it*/
51 #define clear_page(page) memset((page), 0, PAGE_SIZE)
H A Dscatterlist.h34 #include <linux/page.h>
54 struct page *page; member in union:scatterlist::__anon849
77 #define sg_page(sg) (sg)->sl_un.page
85 static inline void sg_set_page(struct scatterlist *sg, struct page *page, argument
87 sg_page(sg) = page;
/barrelfish-master/usr/drivers/usb/usb_manager/controller/ehci/
H A Dusb_ehci_memory.c88 struct usb_page *page; local
90 /* get a free page or allocate a new one*/
92 page = usb_mem_page_alloc();
94 page = free_pages;
95 free_pages = page->next;
99 uint32_t num_qh = page->free.size / size_qh;
102 qh = page->free.buffer;
103 usb_paddr_t qh_self = page->free.phys_addr;
124 page->free.size -= (num_qh * size_qh);
125 page
187 struct usb_page *page; local
269 struct usb_page *page; local
340 struct usb_page *page; local
402 struct usb_page *page; local
429 struct usb_page *page = used_pages; local
457 struct usb_page *page; local
[all...]
/barrelfish-master/lib/pci/confspace/
H A Dpcie_confspace.c72 static bool is_mapped(uint64_t page) argument
74 return mapped_bitfield[page / NBBY] & (1 << page % NBBY);
77 static void set_mapped(uint64_t page) argument
79 mapped_bitfield[page / NBBY] |= (1 << page % NBBY);
82 static lvaddr_t map_page(uint64_t page) argument
86 if (!is_mapped(page)) {
87 err = memobj->m.f.pagefault(&memobj->m, vregion, page * BASE_PAGE_SIZE, 0);
92 set_mapped(page);
106 uint64_t page = (addr.bus << 8) | (addr.device << 3) | addr.function; local
[all...]
/barrelfish-master/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,
/barrelfish-master/usr/bench/cow/
H A Dpagecopy.c18 void* page; local
19 page = mmap(NULL, getpagesize(), PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
20 if (page == MAP_FAILED) {
24 return page;
/barrelfish-master/lib/devif/backends/net/mlx4/drivers/infiniband/hw/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);
285 struct page *page = NULL; local
308 * so if we found the page, dma_handl
444 mthca_uarc_virt(struct mthca_dev *dev, struct mthca_uar *uar, int page) argument
687 struct mthca_db_page *page; local
785 struct mthca_db_page *page; local
[all...]
H A Dmthca_config_reg.h37 #include <linux/page.h>
H A Dmthca_allocator.c121 if (array->page_list[p].page)
122 return array->page_list[p].page[index & MTHCA_ARRAY_MASK];
132 if (!array->page_list[p].page)
133 array->page_list[p].page = (void **) get_zeroed_page(GFP_ATOMIC);
135 if (!array->page_list[p].page)
138 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = value;
149 free_page((unsigned long) array->page_list[p].page);
150 array->page_list[p].page = NULL;
152 array->page_list[p].page[index & MTHCA_ARRAY_MASK] = NULL;
155 pr_debug("Array %p index %d page
[all...]
/barrelfish-master/usr/drivers/usb/usb_manager/
H A Dusb_memory.c27 * \param page the given usb_page to allocate from
32 struct usb_page *page, struct usb_memory_block *ret_mem)
34 // check if there is enough free space on this usb page
35 struct usb_memory_block *free_pg = &page->free;
58 // update free memory in page
77 // check if we have a free page left
100 err = vspace_map_one_frame_attr(&ret->page.buffer, USB_PAGE_SIZE, ret->cap,
106 ret->page.phys_addr = ret->frame_id.base;
107 ret->page.size = USB_PAGE_SIZE;
109 ret->free.phys_addr = ret->page
31 usb_mem_next_block(uint32_t size, uint32_t align, struct usb_page *page, struct usb_memory_block *ret_mem) argument
189 usb_mem_dma_free(struct usb_dma_page *page) argument
[all...]
/barrelfish-master/usr/drivers/usb/usb_manager/include/
H A Dusb_memory.h44 * USB memory page
52 * - phys_addr: physial base address of the usb page
53 * - size: size of the usb page
59 struct usb_memory_block page; member in struct:usb_page
67 * USB memory page
74 * - phys_addr: physial base address of the usb page
75 * - size: size of the usb page
102 struct usb_page *page; member in struct:usb_page_list_entry
112 uint32_t usb_mem_next_block(uint32_t size, uint32_t align, struct usb_page *page,
116 void usb_mem_dma_free(struct usb_dma_page *page);
[all...]
/barrelfish-master/lib/libc/db/btree/
H A Dbt_seq.c83 /* Toss any page pinned across calls. */
92 * the page the cursor references if they're successful.
113 __bt_setcur(t, e.page->pgno, e.index);
120 * key/data, toss the page.
123 mpool_put(t->bt_mp, e.page, 0);
125 t->bt_pinned = e.page;
141 * Pins the page the cursor references.
187 ep->page = h;
209 ep->page = h;
225 * Pins the page th
[all...]
H A Dbt_search.c76 /* Do a binary search on the current page. */
77 t->bt_cur.page = h;
94 * If it's a leaf page, we're almost done. If no duplicates
96 * it's possible that there were matching keys on this page,
97 * which later deleted, and we're on a page with no matches
99 * end of a page, check the adjacent page.
120 * decrement by one, and record the internal page which should
121 * be a parent page for the key. If a split later occurs, the
122 * inserted page wil
[all...]
H A Dbt_get.c69 /* Toss any page pinned across calls. */
84 mpool_put(t->bt_mp, e->page, 0);
92 * key/data, toss the page.
95 mpool_put(t->bt_mp, e->page, 0);
97 t->bt_pinned = e->page;
/barrelfish-master/lib/barrelfish/arch/x86_32/
H A Dpmap.c5 * x86_32 specific management of page tables
10 * sized page is the number of page table levels + 1.
13 * Warning: Additional slots will be required to map a BASE_PAGE_SIZE size page,
89 * \brief Returns the vnode for the page directory mapping a given vspace address
160 // Get the page table and do mapping specific alterations
182 printf("page already exists in 0x%"
186 // clean out empty page tables. We do this here because we benefit
187 // from having the page tables in place when doing lots of small
194 struct vnode *page local
471 struct vnode *pdir = NULL, *pt = NULL, *page = NULL; local
500 struct vnode *pt = NULL, *page = NULL; local
559 struct vnode* page = NULL; local
634 struct vnode *pt = NULL, *page = NULL; local
689 struct vnode* page = NULL; local
[all...]
/barrelfish-master/lib/barrelfish/arch/x86_64/
H A Dpmap.c5 * x86_64 specific management of page tables
10 * sized page is the number of page table levels + 1.
13 * Warning: Additional slots will be required to map a BASE_PAGE_SIZE size page,
67 // returns whether va1 and va2 share a page directory entry
74 // returns whether va1 and va2 share a page directory pointer table entry
79 // returns whether va1 and va2 share a page map level 4 entry
136 * \brief Returns the vnode for the page directory mapping a given vspace
213 * \brief Returns the vnode for the page directory pointer table mapping for a
226 * \brief Returns the vnode for the page director
318 struct vnode *page = slab_alloc(&pmap->p.m.slab); local
608 struct vnode *page; member in struct:find_mapping_info
625 struct vnode *pdpt = NULL, *pdir = NULL, *pt = NULL, *page = NULL; local
[all...]
/barrelfish-master/lib/devif/backends/net/mlx4/drivers/net/mlx4/
H A Dicm.c99 struct page *page; local
101 page = alloc_pages(order);
102 if (!page)
105 sg_set_page(mem, page, BASE_PAGE_SIZE << order, 0);
108 mem->address = page->phys_addr;
110 /*printf("page->virt_addr: %p; page->phys_addr: %lx\n",page->virt_addr, page
288 struct page *page = NULL; local
[all...]
/barrelfish-master/lib/libc/db/hash/
H A Dhash_buf.c68 #include "page.h"
96 * page previous to an overflow page that we are trying to find.
104 BUFHEAD *prev_bp, /* If prev_bp set, indicates a new overflow page. */
137 __get_page(hashp, bp->page, addr, !prev_bp, is_disk, 0))
150 * We need a buffer for this page. Either allocate one, or evict a resident
168 /* It is bad to overwrite the page under the cursor. */
195 if ((bp->page = (char *)calloc(1, hashp->BSIZE)) == NULL) {
205 * If this is an overflow page with addr 0, it's already been
213 shortp = (u_int16_t *)bp->page;
[all...]
H A Dhash_bigkey.c70 #include "page.h"
94 cp = bufp->page; /* Character pointer of p. */
127 * next page; otherwise the invariant that the
128 * data must end on a page with FREESPACE
146 p = (u_int16_t *)bufp->page;
147 cp = bufp->page;
157 * same page as the key ends, FREESPACE is at least one.
175 cp = bufp->page;
185 * Called when bufp's page contains a partial key (index should be 1)
188 * free bufp because the page pointin
[all...]
/barrelfish-master/include/vm/
H A Dsg_pager.c76 * Offset should be page aligned.
82 * The scatter/gather list must only include page-aligned
142 vm_page_t m_paddr, page; local
158 * Lookup the physical address of the requested page. An initial
160 * page is found since '0' can be a valid page-aligned physical
173 KASSERT(paddr != 1, ("invalid SG page index"));
175 /* If "paddr" is a real page, perform a sanity check on "memattr". */
183 /* Return a fake page for the requested page
[all...]
/barrelfish-master/usr/tests/nested_paging_test/
H A Dmain.c54 struct capref page; local
56 err = frame_alloc(&page, 4ull * HUGE_PAGE_SIZE, &size);
60 err = frame_identify(page, &fi);
79 debug_printf("value mismatch at page %lu: expected %ld, got %d\n",

Completed in 216 milliseconds

12345