Home
last modified time | relevance | path

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

1234

/linux-6.6.21/include/linux/
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 …]
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-6.6.21/drivers/block/
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-6.6.21/block/
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()
82 if (sg->length + iv.bv_len > queue_max_segment_size(q)) in blk_rq_map_integrity_sg()
85 sg->length += iv.bv_len; in blk_rq_map_integrity_sg()
95 sg_set_page(sg, iv.bv_page, iv.bv_len, iv.bv_offset); in blk_rq_map_integrity_sg()
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()
600 if (nsegs >= nr_segs || bytes > UINT_MAX - bv->bv_len) in blk_rq_map_user_bvec()
602 if (bytes + bv->bv_len > nr_iter) in blk_rq_map_user_bvec()
604 if (bv->bv_offset + bv->bv_len > PAGE_SIZE) in blk_rq_map_user_bvec()
608 bytes += bv->bv_len; in blk_rq_map_user_bvec()
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()
236 unsigned len = min(bv->bv_len, max_len); in bvec_split_segs()
256 return len > 0 || bv->bv_len > max_len; in bvec_split_segs()
295 bytes + bv.bv_len <= max_bytes && in bio_split_rw()
296 bv.bv_offset + bv.bv_len <= PAGE_SIZE) { in bio_split_rw()
298 bytes += bv.bv_len; in bio_split_rw()
466 unsigned nbytes = bvec->bv_len; in blk_bvec_map_sg()
501 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in __blk_bvec_map_sg()
511 int nbytes = bvec->bv_len; in __blk_segment_map_sg_merge()
[all …]
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()
214 bytes += from.bv_len; in __blk_queue_bounce()
Dt10-pi.c156 for (j = 0; j < iv.bv_len; j += tuple_sz) { in t10_pi_type1_prepare()
202 for (j = 0; j < iv.bv_len && intervals; j += tuple_sz) { in t10_pi_type1_complete()
395 for (j = 0; j < iv.bv_len; j += tuple_sz) { in ext_pi_type1_prepare()
430 for (j = 0; j < iv.bv_len && intervals; j += tuple_sz) { in ext_pi_type1_complete()
Dblk.h96 if (addr1 + vec1->bv_len != addr2) in biovec_phys_mergeable()
100 if ((addr1 | mask) != ((addr2 + vec2->bv_len - 1) | mask)) in biovec_phys_mergeable()
109 ((bprv->bv_offset + bprv->bv_len) & lim->virt_boundary_mask); in __bvec_gap_to_prev()
317 bio->bi_io_vec->bv_len + bio->bi_io_vec->bv_offset > PAGE_SIZE; in bio_may_exceed_limits()
Dbio.c643 if (done + bv.bv_len > new_size) { in bio_truncate()
651 bv.bv_len - offset); in bio_truncate()
654 done += bv.bv_len; in bio_truncate()
909 size_t bv_end = bv->bv_offset + bv->bv_len; in bvec_try_merge_page()
928 bv->bv_len += len; in bvec_try_merge_page()
947 if (len > queue_max_segment_size(q) - bv->bv_len) in bvec_try_merge_hw_page()
1405 unsigned int bytes = min(src_bv.bv_len, dst_bv.bv_len); in bio_copy_data_iter()
Dblk-crypto-fallback.c219 num_sectors += bv.bv_len >> SECTOR_SHIFT; in blk_crypto_fallback_split_bio_if_needed()
335 for (j = 0; j < enc_bvec->bv_len; j += data_unit_size) { in blk_crypto_fallback_encrypt_bio()
423 for (i = 0; i < bv.bv_len; i += data_unit_size) { in blk_crypto_fallback_decrypt_bio()
/linux-6.6.21/drivers/md/
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()
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()
Ddm-log-writes.c367 block->vecs[i].bv_len, 0); in log_one_block()
368 if (ret != block->vecs[i].bv_len) { in log_one_block()
380 block->vecs[i].bv_len, 0); in log_one_block()
381 if (ret != block->vecs[i].bv_len) { in log_one_block()
387 sector += block->vecs[i].bv_len >> SECTOR_SHIFT; in log_one_block()
750 block->vecs[i].bv_len = bv.bv_len; in log_writes_map()
/linux-6.6.21/drivers/md/bcache/
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()
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-6.6.21/drivers/s390/block/
Ddasd_fba.c462 if (bv.bv_len & (blksize - 1)) in dasd_fba_build_cp_regular()
465 count += bv.bv_len >> (block->s2b_shift + 9); in dasd_fba_build_cp_regular()
466 if (idal_is_needed (page_address(bv.bv_page), bv.bv_len)) in dasd_fba_build_cp_regular()
467 cidaw += bv.bv_len / blksize; in dasd_fba_build_cp_regular()
509 memcpy(copy + bv.bv_offset, dst, bv.bv_len); in dasd_fba_build_cp_regular()
513 for (off = 0; off < bv.bv_len; off += blksize) { in dasd_fba_build_cp_regular()
587 for (off = 0; off < bv.bv_len; off += blksize) { in dasd_fba_free_cp()
598 memcpy(dst, cda, bv.bv_len); in dasd_fba_free_cp()
Ddasd_diag.c536 if (bv.bv_len & (blksize - 1)) in dasd_diag_build_cp()
539 count += bv.bv_len >> (block->s2b_shift + 9); in dasd_diag_build_cp()
556 for (off = 0; off < bv.bv_len; off += blksize) { in dasd_diag_build_cp()
/linux-6.6.21/net/ceph/
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()
912 ceph_msg_data_advance(cursor, bv.bv_len); in calc_sg_cnt_cursor()
960 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in init_sgs_cursor()
963 ceph_msg_data_advance(cursor, bv.bv_len); in init_sgs_cursor()
1119 len = min_t(int, len, bv.bv_len); in process_v2_sparse_read()
1897 con->v2.in_bvec.bv_len); in prepare_read_data_cont()
[all …]
/linux-6.6.21/fs/squashfs/
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()
Dlzo_wrapper.c77 int avail = min(bytes, ((int)bvec->bv_len) - offset); in lzo_uncompress()
Dzlib_wrapper.c83 avail = min(length, ((int)bvec->bv_len) - offset); in zlib_uncompress()
Dlz4_wrapper.c102 int avail = min(bytes, ((int)bvec->bv_len) - offset); in lz4_uncompress()
/linux-6.6.21/drivers/xen/
Dbiomerge.c15 return bfn1 + PFN_DOWN(vec1->bv_offset + vec1->bv_len) == bfn2; in xen_biovec_phys_mergeable()
/linux-6.6.21/lib/
Diov_iter.c58 len = min(min(n, (size_t)(p->bv_len - skip)), \
65 if (skip == p->bv_len) { \
614 if (likely(size < bvec->bv_len)) in iov_iter_bvec_advance()
616 size -= bvec->bv_len; in iov_iter_bvec_advance()
682 size_t n = (--bvec)->bv_len; in iov_iter_revert()
716 return min(i->count, i->bvec->bv_len - i->iov_offset); in iov_iter_single_seg_count()
840 size_t len = i->bvec[k].bv_len - skip; in iov_iter_aligned_bvec()
925 size_t len = i->bvec[k].bv_len - skip; in iov_iter_alignment_bvec()
1087 len = i->bvec->bv_len - skip; in first_bvec_segment()
1145 if (i->iov_offset == i->bvec->bv_len) { in __iov_iter_get_pages_alloc()
[all …]

1234