/linux/include/linux/ |
H A D | bvec.h | 33 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 D | bio.h | 149 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 D | blk-integrity.c | 40 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 D | blk-merge.c | 32 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 D | t10-pi.c | 148 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 D | bounce.c | 98 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 D | blk-map.c | 58 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 D | bio.c | 654 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 D | blk.h | 112 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 D | blk-crypto-fallback.c | 220 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 D | n64cart.c | 69 (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 D | dm-ebs-target.c | 71 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 D | dm-io-rewind.c | 27 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 D | util.c | 244 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 D | debug.c | 137 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 D | dasd_fba.c | 458 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 D | messenger_v2.c | 156 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 D | block.c | 50 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 D | biomerge.c | 15 return bfn1 + PFN_DOWN(vec1->bv_offset + vec1->bv_len) == bfn2; in xen_biovec_phys_mergeable()
|
/linux/fs/bcachefs/ |
H A D | checksum.c | 281 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 D | util.c | 679 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 D | iterator.c | 123 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 D | iov_iter.c | 504 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 D | zdata.c | 1392 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 D | biovecs.rst | 14 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.
|