Lines Matching refs:nr_pages
691 int nr_pages; in bio_get_nr_vecs() local
693 nr_pages = min_t(unsigned, in bio_get_nr_vecs()
697 return min_t(unsigned, nr_pages, BIO_MAX_PAGES); in bio_get_nr_vecs()
1161 int nr_pages = 0; in bio_copy_user_iov() local
1181 nr_pages += end - start; in bio_copy_user_iov()
1185 nr_pages++; in bio_copy_user_iov()
1202 bio = bio_kmalloc(gfp_mask, nr_pages); in bio_copy_user_iov()
1212 nr_pages = 1 << map_data->page_order; in bio_copy_user_iov()
1224 if (i == map_data->nr_entries * nr_pages) { in bio_copy_user_iov()
1229 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov()
1230 page += (i % nr_pages); in bio_copy_user_iov()
1286 int nr_pages = 0; in bio_map_user_iov() local
1306 nr_pages += end - start; in bio_map_user_iov()
1314 if (!nr_pages) in bio_map_user_iov()
1317 bio = bio_kmalloc(gfp_mask, nr_pages); in bio_map_user_iov()
1322 pages = kcalloc(nr_pages, sizeof(struct page *), gfp_mask); in bio_map_user_iov()
1391 for (j = 0; j < nr_pages; j++) { in bio_map_user_iov()
1457 const int nr_pages = end - start; in bio_map_kern() local
1461 bio = bio_kmalloc(gfp_mask, nr_pages); in bio_map_kern()
1466 for (i = 0; i < nr_pages; i++) { in bio_map_kern()
1531 int nr_pages = 0; in bio_copy_kern() local
1539 nr_pages = end - start; in bio_copy_kern()
1540 bio = bio_kmalloc(gfp_mask, nr_pages); in bio_copy_kern()