Searched refs:nr_pages (Results 1 – 5 of 5) sorted by relevance
/block/ |
D | blk-map.c | 137 int nr_pages; in bio_copy_user_iov() local 153 nr_pages = DIV_ROUND_UP(offset + len, PAGE_SIZE); in bio_copy_user_iov() 154 if (nr_pages > BIO_MAX_PAGES) in bio_copy_user_iov() 155 nr_pages = BIO_MAX_PAGES; in bio_copy_user_iov() 158 bio = bio_kmalloc(gfp_mask, nr_pages); in bio_copy_user_iov() 164 nr_pages = 1 << map_data->page_order; in bio_copy_user_iov() 176 if (i == map_data->nr_entries * nr_pages) { in bio_copy_user_iov() 181 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov() 182 page += (i % nr_pages); in bio_copy_user_iov() 387 const int nr_pages = end - start; in bio_map_kern() local [all …]
|
D | bio-integrity.c | 215 unsigned int len, nr_pages; in bio_integrity_prep() local 255 nr_pages = end - start; in bio_integrity_prep() 258 bip = bio_integrity_alloc(bio, GFP_NOIO, nr_pages); in bio_integrity_prep() 275 for (i = 0 ; i < nr_pages ; i++) { in bio_integrity_prep()
|
D | blk-lib.c | 13 struct bio *blk_next_bio(struct bio *bio, unsigned int nr_pages, gfp_t gfp) in blk_next_bio() argument 15 struct bio *new = bio_alloc(gfp, nr_pages); in blk_next_bio()
|
D | bio.c | 1006 unsigned short nr_pages = bio->bi_max_vecs - bio->bi_vcnt; in __bio_iov_iter_get_pages() local 1023 size = iov_iter_get_pages(iter, pages, LONG_MAX, nr_pages, &offset); in __bio_iov_iter_get_pages() 1051 unsigned short nr_pages = bio->bi_max_vecs - bio->bi_vcnt; in __bio_iov_append_get_pages() local 1070 size = iov_iter_get_pages(iter, pages, LONG_MAX, nr_pages, &offset); in __bio_iov_append_get_pages()
|
D | blk.h | 347 struct bio *blk_next_bio(struct bio *bio, unsigned int nr_pages, gfp_t gfp);
|