Searched refs:bvec (Results 1 - 25 of 98) sorted by path

1234

/linux-master/arch/m68k/emu/
H A Dnfblock.c63 struct bio_vec bvec; local
70 bio_for_each_segment(bvec, bio, iter) {
71 len = bvec.bv_len;
74 page_to_phys(bvec.bv_page) + bvec.bv_offset);
/linux-master/arch/um/drivers/
H A Dubd_kern.c1215 struct bio_vec bvec; local
1225 rq_for_each_segment(bvec, req, iter) {
1228 io_req->io_desc[i].buffer = bvec_virt(&bvec);
1229 io_req->io_desc[i].length = bvec.bv_len;
/linux-master/arch/xtensa/platforms/iss/
H A Dsimdisk.c106 struct bio_vec bvec; local
110 bio_for_each_segment(bvec, bio, iter) {
111 char *buffer = bvec_kmap_local(&bvec);
112 unsigned len = bvec.bv_len >> SECTOR_SHIFT;
/linux-master/block/
H A Dbio-integrity.c206 static int bio_integrity_copy_user(struct bio *bio, struct bio_vec *bvec, argument
221 iov_iter_bvec(&iter, direction, bvec, nr_vecs, len);
232 * We need to preserve the original bvec and the number of vecs
244 bio_integrity_unpin_bvec(bvec, nr_vecs, false);
246 memcpy(&bip->bip_vec[1], bvec, nr_vecs * sizeof(*bvec));
265 static int bio_integrity_init_user(struct bio *bio, struct bio_vec *bvec, argument
274 memcpy(bip->bip_vec, bvec, nr_vecs * sizeof(*bvec));
281 static unsigned int bvec_from_pages(struct bio_vec *bvec, struc argument
317 struct bio_vec stack_vec[UIO_FASTIOV], *bvec = stack_vec; local
[all...]
H A Dbio.c659 * Don't touch bvec table here and make it really immutable, since
664 * correct bvec with the updated .bi_size for drivers.
1072 * Add the data at @page + @off to @bio as a new bvec. The caller must ensure
1073 * that @bio has space for another bvec.
1189 bio->bi_io_vec = (struct bio_vec *)iter->bvec;
1236 * Extracts pages from *iter and appends them to @bio's bvec array. The pages
1321 * pages. For bvec based iterators bio_iov_iter_get_pages() uses the provided
1437 struct bio_vec *bvec; local
1440 bio_for_each_segment_all(bvec, bio, iter_all)
1441 __free_page(bvec
[all...]
H A Dblk-map.c50 struct bio_vec *bvec; local
53 bio_for_each_segment_all(bvec, bio, iter_all) {
56 ret = copy_page_from_iter(bvec->bv_page,
57 bvec->bv_offset,
58 bvec->bv_len,
64 if (ret < bvec->bv_len)
81 struct bio_vec *bvec; local
84 bio_for_each_segment_all(bvec, bio, iter_all) {
87 ret = copy_page_to_iter(bvec->bv_page,
88 bvec
452 struct bio_vec *bvec; local
[all...]
H A Dblk-merge.c33 return; /* this bio only has a single bvec */
39 else /* in the middle of bvec */
45 * iter.bi_bvec_done records actual length of the last bvec
78 * one single bvec of 'nb', otherwise the 'nb' can't
208 * bvec_split_segs - verify whether or not a bvec should be split in the middle
210 * @bv: [in] bvec to examine
220 * When splitting a bio, it can happen that a bvec is encountered that is too
251 /* tell the caller to split the bvec if it is too big to fit */
459 struct bio_vec *bvec, struct scatterlist *sglist,
462 unsigned nbytes = bvec
458 blk_bvec_map_sg(struct request_queue *q, struct bio_vec *bvec, struct scatterlist *sglist, struct scatterlist **sg) argument
503 __blk_segment_map_sg_merge(struct request_queue *q, struct bio_vec *bvec, struct bio_vec *bvprv, struct scatterlist **sg) argument
527 struct bio_vec bvec, bvprv = { NULL }; local
[all...]
H A Dbounce.c82 * its bvec from start to end, but the @from->bi_iter can't be
105 struct bio_vec *bvec, orig_vec; local
112 bio_for_each_segment_all(bvec, bio, iter_all) {
114 if (bvec->bv_page != orig_vec.bv_page) {
115 dec_zone_page_state(bvec->bv_page, NR_BOUNCE);
116 mempool_free(bvec->bv_page, &page_pool);
239 * so retrieve bvec from the table directly. This way is safe
240 * because the 'bio' is single-page bvec.
/linux-master/drivers/block/
H A Dbrd.c208 * Process a single bvec of a bio.
247 struct bio_vec bvec; local
250 bio_for_each_segment(bvec, bio, iter) {
251 unsigned int len = bvec.bv_len;
255 WARN_ON_ONCE((bvec.bv_offset & (SECTOR_SIZE - 1)) ||
258 err = brd_do_bvec(brd, bvec.bv_page, len, bvec.bv_offset,
H A Dloop.c87 struct bio_vec *bvec; member in struct:loop_cmd
239 static int lo_write_bvec(struct file *file, struct bio_vec *bvec, loff_t *ppos) argument
244 iov_iter_bvec(&i, ITER_SOURCE, bvec, 1, bvec->bv_len);
248 if (likely(bw == bvec->bv_len))
253 (unsigned long long)*ppos, bvec->bv_len);
262 struct bio_vec bvec; local
266 rq_for_each_segment(bvec, rq, iter) {
267 ret = lo_write_bvec(lo->lo_backing_file, &bvec, &pos);
279 struct bio_vec bvec; local
395 struct bio_vec *bvec; local
[all...]
H A Dn64cart.c60 * Process a single bvec of a bio.
89 struct bio_vec bvec; local
94 bio_for_each_segment(bvec, bio, iter) {
95 if (!n64cart_do_bvec(dev, &bvec, pos)) {
99 pos += bvec.bv_len;
H A Dnbd.c686 struct bio_vec bvec; local
688 bio_for_each_segment(bvec, bio, iter) {
689 bool is_last = !next && bio_iter_last(bvec, iter);
693 req, bvec.bv_len);
694 iov_iter_bvec(&from, ITER_SOURCE, &bvec, 1, bvec.bv_len);
831 struct bio_vec bvec; local
834 rq_for_each_segment(bvec, req, iter) {
835 iov_iter_bvec(&to, ITER_DEST, &bvec, 1, bvec
[all...]
H A Dps3disk.c85 struct bio_vec bvec; local
87 rq_for_each_segment(bvec, req, iter) {
89 memcpy_from_bvec(dev->bounce_buf + offset, &bvec);
91 memcpy_to_bvec(&bvec, dev->bounce_buf + offset);
H A Dps3vram.c538 struct bio_vec bvec; local
542 bio_for_each_segment(bvec, bio, iter) {
544 char *ptr = bvec_virt(&bvec);
545 size_t len = bvec.bv_len, retlen;
/linux-master/drivers/block/drbd/
H A Ddrbd_main.c1543 struct bio_vec bvec; local
1560 bvec_set_page(&bvec, page, len, offset);
1561 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, &bvec, 1, len);
1590 struct bio_vec bvec; local
1594 bio_for_each_segment(bvec, bio, iter) {
1597 err = _drbd_no_send_page(peer_device, bvec.bv_page,
1598 bvec.bv_offset, bvec.bv_len,
1599 bio_iter_last(bvec, iter)
1609 struct bio_vec bvec; local
[all...]
H A Ddrbd_receiver.c1985 struct bio_vec bvec; local
2008 bio_for_each_segment(bvec, bio, iter) {
2009 void *mapped = bvec_kmap_local(&bvec);
2010 expect = min_t(int, data_size, bvec.bv_len);
H A Ddrbd_worker.c319 struct bio_vec bvec; local
326 bio_for_each_segment(bvec, bio, iter) {
329 src = bvec_kmap_local(&bvec);
330 crypto_shash_update(desc, src, bvec.bv_len);
/linux-master/drivers/block/null_blk/
H A Dmain.c1213 struct bio_vec bvec; local
1216 rq_for_each_segment(bvec, rq, iter) {
1217 len = bvec.bv_len;
1218 err = null_transfer(nullb, bvec.bv_page, len, bvec.bv_offset,
/linux-master/drivers/block/zram/
H A Dzram_drv.c146 static inline bool is_partial_io(struct bio_vec *bvec) argument
148 return bvec->bv_len != PAGE_SIZE;
152 static inline bool is_partial_io(struct bio_vec *bvec) argument
1385 static int zram_bvec_read_partial(struct zram *zram, struct bio_vec *bvec, argument
1395 memcpy_to_bvec(bvec, page_address(page) + offset);
1400 static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec, argument
1403 if (is_partial_io(bvec))
1404 return zram_bvec_read_partial(zram, bvec, index, offset);
1405 return zram_read_page(zram, bvec->bv_page, index, bio);
1536 static int zram_bvec_write_partial(struct zram *zram, struct bio_vec *bvec, argument
1554 zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index, int offset, struct bio *bio) argument
[all...]
/linux-master/drivers/infiniband/sw/siw/
H A Dsiw_qp_tx.c320 struct bio_vec bvec; local
334 bvec_set_page(&bvec, page[i], bytes, offset);
335 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, &bvec, 1, size);
/linux-master/drivers/md/
H A Ddm-flakey.c345 struct bio_vec bvec; local
351 bio_for_each_segment(bvec, bio, iter) {
353 unsigned char *segment = bvec_kmap_local(&bvec);
460 struct bio_vec bvec = bvec_iter_bvec(bio->bi_io_vec, iter); local
461 unsigned this_step = min(bvec.bv_len, to_copy);
462 void *map = bvec_kmap_local(&bvec);
H A Ddm-io.c214 * Functions for getting the pages from a bvec.
219 struct bio_vec bvec = bvec_iter_bvec((struct bio_vec *)dp->context_ptr, local
222 *p = bvec.bv_page;
223 *len = bvec.bv_len;
224 *offset = bvec.bv_offset;
227 dp->context_bi.bi_sector = (sector_t)bvec.bv_len;
244 * We just use bvec iterator to retrieve pages, so it is ok to
245 * access the bvec table directly here
H A Dmd.c1086 struct bio_vec bvec; local
1089 bio_init(&bio, rdev->meta_bdev, &bvec, 1, opf);
1091 bio_init(&bio, rdev->bdev, &bvec, 1, opf);
/linux-master/drivers/mtd/
H A Dmtd_blkdevs.c50 struct bio_vec bvec; local
76 rq_for_each_segment(bvec, req, iter)
77 flush_dcache_page(bvec.bv_page);
83 rq_for_each_segment(bvec, req, iter)
84 flush_dcache_page(bvec.bv_page);
/linux-master/drivers/mtd/ubi/
H A Dblock.c191 struct bio_vec bvec; local
222 rq_for_each_segment(bvec, req, iter)
223 flush_dcache_page(bvec.bv_page);

Completed in 383 milliseconds

1234