Lines Matching refs:pbe
148 struct pbe *restore_pblist;
2465 struct highmem_pbe *pbe; in get_highmem_page_buffer() local
2480 pbe = chain_alloc(ca, sizeof(struct highmem_pbe)); in get_highmem_page_buffer()
2481 if (!pbe) { in get_highmem_page_buffer()
2485 pbe->orig_page = page; in get_highmem_page_buffer()
2494 pbe->copy_page = tmp; in get_highmem_page_buffer()
2500 pbe->copy_page = virt_to_page(kaddr); in get_highmem_page_buffer()
2502 pbe->next = highmem_pblist; in get_highmem_page_buffer()
2503 highmem_pblist = pbe; in get_highmem_page_buffer()
2556 #define PBES_PER_LINKED_PAGE (LINKED_PAGE_DATA_SIZE / sizeof(struct pbe))
2675 struct pbe *pbe; in get_buffer() local
2697 pbe = chain_alloc(ca, sizeof(struct pbe)); in get_buffer()
2698 if (!pbe) { in get_buffer()
2702 pbe->orig_address = page_address(page); in get_buffer()
2703 pbe->address = __get_safe_page(ca->gfp_mask); in get_buffer()
2704 if (!pbe->address) in get_buffer()
2706 pbe->next = restore_pblist; in get_buffer()
2707 restore_pblist = pbe; in get_buffer()
2708 return pbe->address; in get_buffer()
2855 struct highmem_pbe *pbe = highmem_pblist; in restore_highmem() local
2858 if (!pbe) in restore_highmem()
2865 while (pbe) { in restore_highmem()
2866 swap_two_pages_data(pbe->copy_page, pbe->orig_page, buf); in restore_highmem()
2867 pbe = pbe->next; in restore_highmem()