/linux-6.1.9/include/linux/ |
D | bvec.h | 34 unsigned int bv_len; member 67 __bvec_iter_bvec((bvec), (iter))->bv_len - (iter).bi_bvec_done) 78 .bv_len = mp_bvec_iter_len((bvec), (iter)), \ 97 .bv_len = bvec_iter_len((bvec), (iter)), \ 115 while (bytes && bytes >= bv[idx].bv_len) { in bvec_iter_advance() 116 bytes -= bv[idx].bv_len; in bvec_iter_advance() 134 if (done == bv[iter->bi_idx].bv_len) { in bvec_iter_advance_single() 146 bvec_iter_advance_single((bio_vec), &(iter), (bvl).bv_len)) 177 bv->bv_len = min_t(unsigned int, PAGE_SIZE - bv->bv_offset, in bvec_advance() 178 bvec->bv_len - iter_all->done); in bvec_advance() [all …]
|
D | bio.h | 147 bio_advance_iter_single((bio), &(iter), (bvl).bv_len)) 156 bio_advance_iter_single((bio), &(iter), (bvl).bv_len)) 170 #define bio_iter_last(bvec, iter) ((iter).bi_size == (bvec).bv_len) 285 fi->_seg_count = bvec->bv_len; in bio_first_folio()
|
/linux-6.1.9/drivers/block/ |
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-6.1.9/block/ |
D | blk-map.c | 56 bvec->bv_len, in bio_copy_from_iter() 62 if (ret < bvec->bv_len) in bio_copy_from_iter() 87 bvec->bv_len, in bio_copy_to_iter() 93 if (ret < bvec->bv_len) in bio_copy_to_iter() 356 len += bio->bi_io_vec[i].bv_len; in bio_invalidate_vmalloc_pages() 447 p += bvec->bv_len; in bio_copy_kern_endio_read() 590 if (nsegs >= nr_segs || bytes > UINT_MAX - bv->bv_len) in blk_rq_map_user_bvec() 592 if (bytes + bv->bv_len > nr_iter) in blk_rq_map_user_bvec() 594 if (bv->bv_offset + bv->bv_len > PAGE_SIZE) in blk_rq_map_user_bvec() 598 bytes += bv->bv_len; in blk_rq_map_user_bvec()
|
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() 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()
|
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() 227 unsigned len = min(bv->bv_len, max_len); in bvec_split_segs() 247 return len > 0 || bv->bv_len > max_len; in bvec_split_segs() 286 bytes + bv.bv_len <= max_bytes && in bio_split_rw() 287 bv.bv_offset + bv.bv_len <= PAGE_SIZE) { in bio_split_rw() 289 bytes += bv.bv_len; in bio_split_rw() 455 unsigned nbytes = bvec->bv_len; in blk_bvec_map_sg() 490 sg_set_page(*sg, bv.bv_page, bv.bv_len, bv.bv_offset); in __blk_bvec_map_sg() 500 int nbytes = bvec->bv_len; in __blk_segment_map_sg_merge() [all …]
|
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() 214 bytes += from.bv_len; in __blk_queue_bounce()
|
D | bio.c | 619 if (done + bv.bv_len > new_size) { in bio_truncate() 627 bv.bv_len - offset); in bio_truncate() 630 done += bv.bv_len; in bio_truncate() 858 size_t bv_end = bv->bv_offset + bv->bv_len; in page_is_mergeable() 905 bv->bv_len += len; in __bio_try_merge_page() 929 if (bv->bv_len + len > queue_max_segment_size(q)) in bio_try_merge_hw_seg() 980 bvec->bv_len = len; in bio_add_hw_page() 1064 bv->bv_len = len; in __bio_add_page() 1351 unsigned int bytes = min(src_bv.bv_len, dst_bv.bv_len); in bio_copy_data_iter()
|
D | t10-pi.c | 156 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()
|
D | blk.h | 98 if (addr1 + vec1->bv_len != addr2) in biovec_phys_mergeable() 102 if ((addr1 | mask) != ((addr2 + vec2->bv_len - 1) | mask)) in biovec_phys_mergeable() 111 ((bprv->bv_offset + bprv->bv_len) & lim->virt_boundary_mask); in __bvec_gap_to_prev() 320 bio->bi_io_vec->bv_len + bio->bi_io_vec->bv_offset > PAGE_SIZE; in bio_may_exceed_limits()
|
D | blk-crypto-fallback.c | 219 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.1.9/drivers/md/ |
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()
|
D | dm-ebs-target.c | 70 unsigned int bv_len = bv->bv_len; in __ebs_rw_bvec() local 75 if (unlikely(!bv->bv_page || !bv_len)) in __ebs_rw_bvec() 81 while (bv_len) { in __ebs_rw_bvec() 82 cur_len = min(dm_bufio_get_block_size(ec->bufio) - buf_off, bv_len); in __ebs_rw_bvec() 85 if (op == REQ_OP_READ || buf_off || bv_len < dm_bufio_get_block_size(ec->bufio)) in __ebs_rw_bvec() 112 bv_len -= cur_len; in __ebs_rw_bvec()
|
D | dm-log-writes.c | 366 block->vecs[i].bv_len, 0); in log_one_block() 367 if (ret != block->vecs[i].bv_len) { in log_one_block() 379 block->vecs[i].bv_len, 0); in log_one_block() 380 if (ret != block->vecs[i].bv_len) { in log_one_block() 386 sector += block->vecs[i].bv_len >> SECTOR_SHIFT; in log_one_block() 749 block->vecs[i].bv_len = bv.bv_len; in log_writes_map()
|
/linux-6.1.9/fs/squashfs/ |
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() 180 if (offset < bvec->bv_len - 1) { in squashfs_read_data()
|
/linux-6.1.9/drivers/md/bcache/ |
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()
|
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-6.1.9/drivers/s390/block/ |
D | dasd_fba.c | 462 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()
|
/linux-6.1.9/drivers/xen/ |
D | biomerge.c | 15 return bfn1 + PFN_DOWN(vec1->bv_offset + vec1->bv_len) == bfn2; in xen_biovec_phys_mergeable()
|
/linux-6.1.9/net/ceph/ |
D | messenger_v2.c | 154 bv.bv_len = min(iov_iter_count(it), in do_try_sendpage() 155 it->bvec->bv_len - it->iov_offset); in do_try_sendpage() 168 bv.bv_offset, bv.bv_len, in do_try_sendpage() 171 iov_iter_bvec(&msg.msg_iter, WRITE, &bv, 1, bv.bv_len); in do_try_sendpage() 236 iov_iter_bvec(&con->v2.in_iter, READ, &con->v2.in_bvec, 1, bv->bv_len); in set_in_bvec() 281 con->v2.out_bvec.bv_len); in set_out_bvec() 291 con->v2.out_bvec.bv_len = min(con->v2.out_zero, (int)PAGE_SIZE); in set_out_bvec_zero() 294 con->v2.out_bvec.bv_len); in set_out_bvec_zero() 869 bv->bv_len = len; in get_bvec_at() 904 ceph_msg_data_advance(cursor, bv.bv_len); in calc_sg_cnt_cursor() [all …]
|
/linux-6.1.9/drivers/block/zram/ |
D | zram_drv.c | 149 return bvec->bv_len != PAGE_SIZE; in is_partial_io() 184 *index += (*offset + bvec->bv_len) / PAGE_SIZE; in update_position() 185 *offset = (*offset + bvec->bv_len) % PAGE_SIZE; in update_position() 616 if (!bio_add_page(bio, bvec->bv_page, bvec->bv_len, bvec->bv_offset)) { in read_from_bdev_async() 689 bvec.bv_len = PAGE_SIZE; in writeback_store() 743 bio_add_page(&bio, bvec.bv_page, bvec.bv_len, in writeback_store() 1264 bvec.bv_len = PAGE_SIZE; in __zram_bvec_read() 1496 vec.bv_len = PAGE_SIZE; in zram_bvec_write() 1603 unsigned int unwritten = bvec.bv_len; in __zram_make_request() 1606 bv.bv_len = min_t(unsigned int, PAGE_SIZE - offset, in __zram_make_request() [all …]
|
/linux-6.1.9/drivers/nvme/target/ |
D | io-cmd-file.c | 80 bv->bv_len = sg->length; in nvmet_file_init_bvec() 150 len += req->f.bvec[bv_cnt].bv_len; in nvmet_file_execute_io() 151 total_len += req->f.bvec[bv_cnt].bv_len; in nvmet_file_execute_io()
|
/linux-6.1.9/lib/ |
D | iov_iter.c | 60 len = min(min(n, (size_t)(p->bv_len - skip)), \ 67 if (skip == p->bv_len) { \ 866 if (likely(size < bvec->bv_len)) in iov_iter_bvec_advance() 868 size -= bvec->bv_len; in iov_iter_bvec_advance() 956 size_t n = (--bvec)->bv_len; in iov_iter_revert() 990 return min(i->count, i->bvec->bv_len - i->iov_offset); in iov_iter_single_seg_count() 1127 size_t len = i->bvec[k].bv_len - skip; in iov_iter_aligned_bvec() 1224 size_t len = i->bvec[k].bv_len - skip; in iov_iter_alignment_bvec() 1422 len = i->bvec->bv_len - skip; in first_bvec_segment() 1481 if (i->iov_offset == i->bvec->bv_len) { in __iov_iter_get_pages_alloc() [all …]
|
/linux-6.1.9/fs/cifs/ |
D | fscache.c | 152 bvec[0].bv_len = PAGE_SIZE; in fscache_fallback_read_page() 182 bvec[0].bv_len = PAGE_SIZE; in fscache_fallback_write_page()
|
/linux-6.1.9/fs/nfs/ |
D | fscache.c | 254 bvec[0].bv_len = PAGE_SIZE; in fscache_fallback_read_page() 284 bvec[0].bv_len = PAGE_SIZE; in fscache_fallback_write_page()
|