Lines Matching refs:nr_pages
692 int nr_pages; in bio_get_nr_vecs() local
694 nr_pages = min_t(unsigned, in bio_get_nr_vecs()
698 return min_t(unsigned, nr_pages, BIO_MAX_PAGES); in bio_get_nr_vecs()
1150 int nr_pages = 0; in bio_copy_user_iov() local
1169 nr_pages += end - start; in bio_copy_user_iov()
1174 nr_pages++; in bio_copy_user_iov()
1181 bio = bio_kmalloc(gfp_mask, nr_pages); in bio_copy_user_iov()
1191 nr_pages = 1 << map_data->page_order; in bio_copy_user_iov()
1203 if (i == map_data->nr_entries * nr_pages) { in bio_copy_user_iov()
1208 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov()
1209 page += (i % nr_pages); in bio_copy_user_iov()
1285 int nr_pages = 0; in __bio_map_user_iov() local
1303 nr_pages += end - start; in __bio_map_user_iov()
1311 if (!nr_pages) in __bio_map_user_iov()
1314 bio = bio_kmalloc(gfp_mask, nr_pages); in __bio_map_user_iov()
1319 pages = kcalloc(nr_pages, sizeof(struct page *), gfp_mask); in __bio_map_user_iov()
1388 for (i = 0; i < nr_pages; i++) { in __bio_map_user_iov()
1503 const int nr_pages = end - start; in __bio_map_kern() local
1507 bio = bio_kmalloc(gfp_mask, nr_pages); in __bio_map_kern()
1512 for (i = 0; i < nr_pages; i++) { in __bio_map_kern()