• Home
  • Raw
  • Download

Lines Matching refs:page

741 		struct page *page, unsigned int len, unsigned int off,  in page_is_mergeable()  argument
746 phys_addr_t page_addr = page_to_phys(page); in page_is_mergeable()
750 if (xen_domain() && !xen_biovec_phys_mergeable(bv, page)) in page_is_mergeable()
756 return (bv->bv_page + bv_end / PAGE_SIZE) == (page + off / PAGE_SIZE); in page_is_mergeable()
765 struct page *page, unsigned len, in bio_try_merge_hw_seg() argument
771 phys_addr_t addr2 = page_to_phys(page) + offset + len - 1; in bio_try_merge_hw_seg()
777 return __bio_try_merge_page(bio, page, len, offset, same_page); in bio_try_merge_hw_seg()
794 struct page *page, unsigned int len, unsigned int offset, in bio_add_hw_page() argument
806 if (bio_try_merge_hw_seg(q, bio, page, len, offset, same_page)) in bio_add_hw_page()
825 bvec->bv_page = page; in bio_add_hw_page()
849 struct page *page, unsigned int len, unsigned int offset) in bio_add_pc_page() argument
852 return bio_add_hw_page(q, bio, page, len, offset, in bio_add_pc_page()
873 bool __bio_try_merge_page(struct bio *bio, struct page *page, in __bio_try_merge_page() argument
882 if (page_is_mergeable(bv, page, len, off, same_page)) { in __bio_try_merge_page()
906 void __bio_add_page(struct bio *bio, struct page *page, in __bio_add_page() argument
914 bv->bv_page = page; in __bio_add_page()
921 if (!bio_flagged(bio, BIO_WORKINGSET) && unlikely(PageWorkingset(page))) in __bio_add_page()
936 int bio_add_page(struct bio *bio, struct page *page, in bio_add_page() argument
941 if (!__bio_try_merge_page(bio, page, len, offset, &same_page)) { in bio_add_page()
944 __bio_add_page(bio, page, len, offset); in bio_add_page()
984 static void bio_put_pages(struct page **pages, size_t size, size_t off) in bio_put_pages()
992 #define PAGE_PTRS_PER_BVEC (sizeof(struct bio_vec) / sizeof(struct page *))
1009 struct page **pages = (struct page **)bv; in __bio_iov_iter_get_pages()
1028 struct page *page = pages[i]; in __bio_iov_iter_get_pages() local
1032 if (__bio_try_merge_page(bio, page, len, offset, &same_page)) { in __bio_iov_iter_get_pages()
1034 put_page(page); in __bio_iov_iter_get_pages()
1040 __bio_add_page(bio, page, len, offset); in __bio_iov_iter_get_pages()
1056 struct page **pages = (struct page **)bv; in __bio_iov_append_get_pages()
1075 struct page *page = pages[i]; in __bio_iov_append_get_pages() local
1079 if (bio_add_hw_page(q, bio, page, len, offset, in __bio_iov_append_get_pages()
1086 put_page(page); in __bio_iov_append_get_pages()