Home
last modified time | relevance | path

Searched refs:bv_len (Results 1 – 25 of 85) sorted by relevance

1234

/linux/include/linux/
H A Dbvec.h33 unsigned int bv_len; member
48 bv->bv_len = len; in bvec_set_page()
106 __bvec_iter_bvec((bvec), (iter))->bv_len - (iter).bi_bvec_done)
117 .bv_len = mp_bvec_iter_len((bvec), (iter)), \
136 .bv_len = bvec_iter_len((bvec), (iter)), \
154 while (bytes && bytes >= bv[idx].bv_len) { in bvec_iter_advance()
155 bytes -= bv[idx].bv_len; in bvec_iter_advance()
173 if (done == bv[iter->bi_idx].bv_len) { in bvec_iter_advance_single()
185 bvec_iter_advance_single((bio_vec), &(iter), (bvl).bv_len))
216 bv->bv_len = min_t(unsigned int, PAGE_SIZE - bv->bv_offset, in bvec_advance()
[all …]
H A Dbio.h149 bio_advance_iter_single((bio), &(iter), (bvl).bv_len))
158 bio_advance_iter_single((bio), &(iter), (bvl).bv_len))
172 #define bio_iter_last(bvec, iter) ((iter).bi_size == (bvec).bv_len)
297 fi->_seg_count = bvec->bv_len; in bio_first_folio()
/linux/block/
H A Dblk-integrity.c40 if (seg_size + iv.bv_len > queue_max_segment_size(q)) in blk_rq_count_integrity_sg()
43 seg_size += iv.bv_len; in blk_rq_count_integrity_sg()
47 seg_size = iv.bv_len; in blk_rq_count_integrity_sg()
81 if (sg->length + iv.bv_len > queue_max_segment_size(q)) in blk_rq_map_integrity_sg()
84 sg->length += iv.bv_len; in blk_rq_map_integrity_sg()
94 sg_set_page(sg, iv.bv_page, iv.bv_len, iv.bv_offset); in blk_rq_map_integrity_sg()
H A Dblk-merge.c32 if (bv->bv_len == bio->bi_iter.bi_size) in bio_get_last_bvec()
49 bv->bv_len = iter.bi_bvec_done; in bio_get_last_bvec()
278 unsigned len = min(bv->bv_len, max_len); in bvec_split_segs()
296 return len > 0 || bv->bv_len > max_len; in bvec_split_segs()
327 bytes + bv.bv_len <= max_bytes && in bio_split_rw_at()
328 bv.bv_offset + bv.bv_len <= PAGE_SIZE) { in bio_split_rw_at()
330 bytes += bv.bv_len; in bio_split_rw_at()
475 unsigned nbytes = bvec->bv_len; in blk_bvec_map_sg()
510 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in __blk_bvec_map_sg()
520 int nbytes = bvec->bv_len; in __blk_segment_map_sg_merge()
[all …]
H A Dt10-pi.c148 for (j = 0; j < iv.bv_len; j += tuple_sz) { in t10_pi_type1_prepare()
196 for (j = 0; j < iv.bv_len && intervals; j += tuple_sz) { in t10_pi_type1_complete()
322 for (j = 0; j < iv.bv_len; j += tuple_sz) { in ext_pi_type1_prepare()
359 for (j = 0; j < iv.bv_len && intervals; j += tuple_sz) { in ext_pi_type1_complete()
391 iter.data_size = bv.bv_len; in blk_integrity_generate()
428 iter.data_size = bv.bv_len; in blk_integrity_verify()
H A Dbounce.c98 bio_advance_iter(from, &from_iter, tovec.bv_len); in copy_to_high_bio_irq()
118 bio_advance_iter(bio_orig, &orig_iter, orig_vec.bv_len); in bounce_end_io()
215 bytes += from.bv_len; in __blk_queue_bounce()
H A Dblk-map.c58 bvec->bv_len, in bio_copy_from_iter()
64 if (ret < bvec->bv_len) in bio_copy_from_iter()
89 bvec->bv_len, in bio_copy_to_iter()
95 if (ret < bvec->bv_len) in bio_copy_to_iter()
366 len += bio->bi_io_vec[i].bv_len; in bio_invalidate_vmalloc_pages()
457 p += bvec->bv_len; in bio_copy_kern_endio_read()
H A Dbio.c654 if (done + bv.bv_len > new_size) { in bio_truncate()
662 bv.bv_len - offset); in bio_truncate()
665 done += bv.bv_len; in bio_truncate()
923 size_t bv_end = bv->bv_offset + bv->bv_len; in bvec_try_merge_page()
943 bv->bv_len += len; in bvec_try_merge_page()
962 if (len > queue_max_segment_size(q) - bv->bv_len) in bvec_try_merge_hw_page()
1497 unsigned int bytes = min(src_bv.bv_len, dst_bv.bv_len); in bio_copy_data_iter()
H A Dblk.h112 if (addr1 + vec1->bv_len != addr2) in biovec_phys_mergeable()
116 if ((addr1 | mask) != ((addr2 + vec2->bv_len - 1) | mask)) in biovec_phys_mergeable()
125 ((bprv->bv_offset + bprv->bv_len) & lim->virt_boundary_mask); in __bvec_gap_to_prev()
355 bio->bi_io_vec->bv_len + bio->bi_io_vec->bv_offset > PAGE_SIZE; in bio_may_need_split()
H A Dblk-crypto-fallback.c220 num_sectors += bv.bv_len >> SECTOR_SHIFT; in blk_crypto_fallback_split_bio_if_needed()
336 for (j = 0; j < enc_bvec->bv_len; j += data_unit_size) { in blk_crypto_fallback_encrypt_bio()
424 for (i = 0; i < bv.bv_len; i += data_unit_size) { in blk_crypto_fallback_decrypt_bio()
/linux/drivers/block/
H A Dn64cart.c69 (bv->bv_len & (MIN_ALIGNMENT - 1))); in n64cart_do_bvec()
79 n64cart_write_reg(PI_WRITE_REG, bv->bv_len - 1); in n64cart_do_bvec()
83 dma_unmap_page(dev, dma_addr, bv->bv_len, DMA_FROM_DEVICE); in n64cart_do_bvec()
99 pos += bvec.bv_len; in n64cart_submit_bio()
/linux/drivers/md/
H A Ddm-ebs-target.c71 unsigned int bv_len = bv->bv_len; in __ebs_rw_bvec() local
76 if (unlikely(!bv->bv_page || !bv_len)) in __ebs_rw_bvec()
82 while (bv_len) { in __ebs_rw_bvec()
83 cur_len = min(dm_bufio_get_block_size(ec->bufio) - buf_off, bv_len); in __ebs_rw_bvec()
86 if (op == REQ_OP_READ || buf_off || bv_len < dm_bufio_get_block_size(ec->bufio)) in __ebs_rw_bvec()
113 bv_len -= cur_len; in __ebs_rw_bvec()
H A Ddm-io-rewind.c27 while (idx >= 0 && bytes && bytes > bv[idx].bv_len) { in dm_bvec_iter_rewind()
28 bytes -= bv[idx].bv_len; in dm_bvec_iter_rewind()
41 iter->bi_bvec_done = bv[idx].bv_len - bytes; in dm_bvec_iter_rewind()
/linux/drivers/md/bcache/
H A Dutil.c244 start: bv->bv_len = min_t(size_t, PAGE_SIZE - bv->bv_offset, in bch_bio_map()
251 base += bv->bv_len; in bch_bio_map()
254 size -= bv->bv_len; in bch_bio_map()
H A Ddebug.c137 cache_set_err_on(memcmp(p1, p2, bv.bv_len), in bch_data_verify()
145 bio_advance_iter(check, &citer, bv.bv_len); in bch_data_verify()
/linux/drivers/s390/block/
H A Ddasd_fba.c458 if (bv.bv_len & (blksize - 1)) in dasd_fba_build_cp_regular()
461 count += bv.bv_len >> (block->s2b_shift + 9); in dasd_fba_build_cp_regular()
462 if (idal_is_needed (page_address(bv.bv_page), bv.bv_len)) in dasd_fba_build_cp_regular()
463 cidaw += bv.bv_len / blksize; in dasd_fba_build_cp_regular()
505 memcpy(copy + bv.bv_offset, dst, bv.bv_len); in dasd_fba_build_cp_regular()
509 for (off = 0; off < bv.bv_len; off += blksize) { in dasd_fba_build_cp_regular()
583 for (off = 0; off < bv.bv_len; off += blksize) { in dasd_fba_free_cp()
594 memcpy(dst, cda, bv.bv_len); in dasd_fba_free_cp()
/linux/net/ceph/
H A Dmessenger_v2.c156 it->bvec->bv_len - it->iov_offset), in do_try_sendpage()
173 iov_iter_bvec(&msg.msg_iter, ITER_SOURCE, &bv, 1, bv.bv_len); in do_try_sendpage()
237 iov_iter_bvec(&con->v2.in_iter, ITER_DEST, &con->v2.in_bvec, 1, bv->bv_len); in set_in_bvec()
282 con->v2.out_bvec.bv_len); in set_out_bvec()
294 con->v2.out_bvec.bv_len); in set_out_bvec_zero()
908 ceph_msg_data_advance(cursor, bv.bv_len); in calc_sg_cnt_cursor()
956 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in init_sgs_cursor()
959 ceph_msg_data_advance(cursor, bv.bv_len); in init_sgs_cursor()
1115 len = min_t(int, len, bv.bv_len); in process_v2_sparse_read()
1893 con->v2.in_bvec.bv_len); in prepare_read_data_cont()
[all …]
/linux/fs/squashfs/
H A Dblock.c50 int bytes_to_copy = min_t(int, bvec->bv_len - offset, in copy_bio_to_actor()
69 if (offset >= bvec->bv_len) { in copy_bio_to_actor()
303 if (offset < bvec->bv_len - 1) { in squashfs_read_data()
/linux/drivers/xen/
H A Dbiomerge.c15 return bfn1 + PFN_DOWN(vec1->bv_offset + vec1->bv_len) == bfn2; in xen_biovec_phys_mergeable()
/linux/fs/bcachefs/
H A Dchecksum.c281 bch2_checksum_update(&state, p, bv.bv_len); in __bch2_checksum_bio()
287 bv.bv_len); in __bch2_checksum_bio()
304 crypto_shash_update(desc, p, bv.bv_len); in __bch2_checksum_bio()
311 bv.bv_len); in __bch2_checksum_bio()
349 .length = bv.bv_len, in __bch2_encrypt_bio()
H A Dutil.c679 memcpy(dstp + bv.bv_offset, src, bv.bv_len); in memcpy_to_bio()
682 src += bv.bv_len; in memcpy_to_bio()
694 memcpy(dst, srcp + bv.bv_offset, bv.bv_len); in memcpy_from_bio()
697 dst += bv.bv_len; in memcpy_from_bio()
/linux/fs/netfs/
H A Diterator.c123 len = bvecs[ix].bv_len; in netfs_limit_bvec()
132 len = min3(n, bvecs[ix].bv_len - skip, max_size); in netfs_limit_bvec()
/linux/lib/
H A Diov_iter.c504 if (likely(size < bvec->bv_len)) in iov_iter_bvec_advance()
506 size -= bvec->bv_len; in iov_iter_bvec_advance()
633 size_t n = (--bvec)->bv_len; in iov_iter_revert()
670 return min(i->count, i->bvec->bv_len - i->iov_offset); in iov_iter_single_seg_count()
823 size_t len = bvec->bv_len; in iov_iter_aligned_bvec()
915 size_t len = bvec->bv_len - skip; in iov_iter_alignment_bvec()
1140 len = i->bvec->bv_len - skip; in first_bvec_segment()
1198 if (i->iov_offset == i->bvec->bv_len) { in __iov_iter_get_pages_alloc()
1267 size_t len = min(p->bv_len - skip, size); in bvec_npages()
1701 size = min(maxsize, i->bvec->bv_len - skip); in iov_iter_extract_bvec_pages()
/linux/fs/erofs/
H A Dzdata.c1392 bvec->bv_len = PAGE_SIZE; in z_erofs_fill_bio_vec()
1422 bvec->bv_len = round_up(zbv.end, bs) - bvec->bv_offset; in z_erofs_fill_bio_vec()
1635 if (cur + bvec.bv_len > end) in z_erofs_submit_queue()
1636 bvec.bv_len = end - cur; in z_erofs_submit_queue()
1637 DBG_BUGON(bvec.bv_len < sb->s_blocksize); in z_erofs_submit_queue()
1662 if (!bio_add_page(bio, bvec.bv_page, bvec.bv_len, in z_erofs_submit_queue()
1665 last_pa = cur + bvec.bv_len; in z_erofs_submit_queue()
1667 } while ((cur += bvec.bv_len) < end); in z_erofs_submit_queue()
/linux/Documentation/block/
H A Dbiovecs.rst14 bv_len by the number of bytes completed in that biovec.
19 and bv_len, struct bvec_iter has bi_bvec_done, which represents the number of
43 As of 5.12 bvec segments with zero bv_len are not supported.

1234