Lines Matching refs:PageList
24 pub struct PageList<A> { struct
32 impl<A> Clone for PageList<A> { argument
42 impl<A> PageList<A> { impl
74 (A::PAGE_SIZE - mem::size_of::<PageList<A>>()) / mem::size_of::<PhysAddr>();
99 let page_list: PageList<A> = PageList::new(0, PhysAddr::new(0)); in new()
113 let page_list: PageList<A> = in new()
114 PageList::new(0, free_area[Self::order2index((MAX_ORDER - 1) as u8)]); in new()
139 let mut page_list: PageList<A> = Self::read_page(page_list_paddr); in new()
164 let mut page_list: PageList<A> = Self::read_page(page_list_paddr); in new()
180 let mut page_list: PageList<A> = Self::read_page(page_list_paddr); in new()
213 let mut page_list: PageList<A> = Self::read_page(page_list_paddr); in new()
245 let entry_addr = base_addr + mem::size_of::<PageList<A>>() + j * mem::size_of::<PhysAddr>(); in entry_addr()
253 pub fn write_page(curr_page: PhysAddr, page_list: PageList<A>) { in write_page()
283 let mut page_list: PageList<A> = Self::read_page(page_list_addr); in pop_front()
457 let mut page_list: PageList<A> = Self::read_page(page_list_paddr); in buddy_free()
518 let new_page_list = PageList::new(0, first_page_list_paddr); in buddy_free()
525 let first_page_list: PageList<A> = Self::read_page(first_page_list_paddr); in buddy_free()
531 Some(Self::read_page::<PageList<A>>(first_page_list.next_page)) in buddy_free()
561 let mut page_list = Self::read_page::<PageList<A>>(page_list_paddr); in buddy_free()