Lines Matching refs:pbe
148 struct pbe *restore_pblist;
2392 struct highmem_pbe *pbe; in get_highmem_page_buffer() local
2407 pbe = chain_alloc(ca, sizeof(struct highmem_pbe)); in get_highmem_page_buffer()
2408 if (!pbe) { in get_highmem_page_buffer()
2412 pbe->orig_page = page; in get_highmem_page_buffer()
2421 pbe->copy_page = tmp; in get_highmem_page_buffer()
2426 pbe->copy_page = virt_to_page(kaddr); in get_highmem_page_buffer()
2428 pbe->next = highmem_pblist; in get_highmem_page_buffer()
2429 highmem_pblist = pbe; in get_highmem_page_buffer()
2482 #define PBES_PER_LINKED_PAGE (LINKED_PAGE_DATA_SIZE / sizeof(struct pbe))
2577 struct pbe *pbe; in get_buffer() local
2599 pbe = chain_alloc(ca, sizeof(struct pbe)); in get_buffer()
2600 if (!pbe) { in get_buffer()
2604 pbe->orig_address = page_address(page); in get_buffer()
2605 pbe->address = safe_pages_list; in get_buffer()
2607 pbe->next = restore_pblist; in get_buffer()
2608 restore_pblist = pbe; in get_buffer()
2609 return pbe->address; in get_buffer()
2744 struct highmem_pbe *pbe = highmem_pblist; in restore_highmem() local
2747 if (!pbe) in restore_highmem()
2754 while (pbe) { in restore_highmem()
2755 swap_two_pages_data(pbe->copy_page, pbe->orig_page, buf); in restore_highmem()
2756 pbe = pbe->next; in restore_highmem()