Lines Matching refs:p

26 Moe::Dataspace_noncont::unmap_page(Page const &p, bool ro) const throw()  in unmap_page()  argument
28 if (p.valid()) in unmap_page()
30 l4_fpage((unsigned long)*p, page_shift(), in unmap_page()
35 Moe::Dataspace_noncont::free_page(Page &p) const throw() in free_page()
37 unmap_page(p); in free_page()
38 if (p.valid() && !Moe::Pages::unshare(*p)) in free_page()
41 qalloc()->free_pages(*p, page_size()); in free_page()
44 p.set(0, 0); in free_page()
56 Page &p = alloc_page(offset); in map_address() local
60 if (flags.w() && (p.flags() & Page_cow)) in map_address()
62 if (Moe::Pages::ref_count(*p) == 1) in map_address()
63 p.set(*p, p.flags() & ~Page_cow); in map_address()
70 memcpy(np, *p, page_size()); in map_address()
78 unmap_page(p); in map_address()
79 Moe::Pages::unshare(*p); in map_address()
80 p.set(np, 0); in map_address()
84 if (!*p) in map_address()
86 p.set(qalloc()->alloc_pages(page_size(), page_size()), 0); in map_address()
87 Moe::Pages::share(*p); in map_address()
88 memset(*p, 0, page_size()); in map_address()
91 l4_cache_clean_data((l4_addr_t)*p, (l4_addr_t)(*p) + page_size()); in map_address()
94 return Address(l4_addr_t(*p), page_shift(), flags, offset & (page_size()-1)); in map_address()
235 unsigned long p; member in __anon7dd62bb00111::Mem_big::L1
238 Page *l2() const throw() { return (Page*)(p & ~0xfffUL); } in l2()
242 unsigned long cnt() const throw() { return p & 0xfffUL; } in cnt()
243 void inc() throw() { p = (p & ~0xfffUL) | (((p & 0xfffUL)+1) & 0xfffUL); } in inc()
244 void dec() throw() { p = (p & ~0xfffUL) | (((p & 0xfffUL)-1) & 0xfffUL); } in dec()
245 void set(void* _p) throw() { p = (unsigned long)_p; } in set()
273 for (L1 *p = (L1 *)_pages; p != (L1 *)_pages + entries1(); ++p) in ~Mem_big() local
275 if (**p) in ~Mem_big()
276 qalloc()->free_pages(**p, meta2_size()); in ~Mem_big()
277 p->set(0); in ~Mem_big()