Home
last modified time | relevance | path

Searched refs:nr_pages (Results 1 – 5 of 5) sorted by relevance

/block/
Dblk-map.c137 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 …]
Dbio-integrity.c215 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()
Dblk-lib.c13 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()
Dbio.c1006 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()
Dblk.h347 struct bio *blk_next_bio(struct bio *bio, unsigned int nr_pages, gfp_t gfp);