Lines Matching refs:rp
43 static inline int resync_alloc_pages(struct resync_pages *rp, in resync_alloc_pages() argument
49 rp->pages[i] = alloc_page(gfp_flags); in resync_alloc_pages()
50 if (!rp->pages[i]) in resync_alloc_pages()
58 put_page(rp->pages[i]); in resync_alloc_pages()
62 static inline void resync_free_pages(struct resync_pages *rp) in resync_free_pages() argument
67 put_page(rp->pages[i]); in resync_free_pages()
70 static inline void resync_get_all_pages(struct resync_pages *rp) in resync_get_all_pages() argument
75 get_page(rp->pages[i]); in resync_get_all_pages()
78 static inline struct page *resync_fetch_page(struct resync_pages *rp, in resync_fetch_page() argument
83 return rp->pages[idx]; in resync_fetch_page()
96 static void md_bio_reset_resync_pages(struct bio *bio, struct resync_pages *rp, in md_bio_reset_resync_pages() argument
103 struct page *page = resync_fetch_page(rp, idx); in md_bio_reset_resync_pages()