Home
last modified time | relevance | path

Searched refs:bi_size (Results 1 – 25 of 99) sorted by relevance

1234

/linux/include/linux/
A Dbvec.h41 unsigned int bi_size; /* residual I/O count */ member
66 min((iter).bi_size, \
106 if (WARN_ONCE(bytes > iter->bi_size, in bvec_iter_advance()
108 iter->bi_size = 0; in bvec_iter_advance()
112 iter->bi_size -= bytes; in bvec_iter_advance()
139 iter->bi_size -= bytes; in bvec_iter_advance_single()
144 (iter).bi_size && \
152 .bi_size = UINT_MAX, \
A Dbio.h37 #define bvec_iter_sectors(iter) ((iter).bi_size >> 9)
55 bio->bi_iter.bi_size && in bio_has_data()
103 iter->bi_size -= bytes; in bio_advance_iter()
117 iter->bi_size -= bytes; in bio_advance_iter_single()
137 if (nbytes == bio->bi_iter.bi_size) { in bio_advance()
138 bio->bi_iter.bi_size = 0; in bio_advance()
146 (iter).bi_size && \
155 (iter).bi_size && \
171 #define bio_iter_last(bvec, iter) ((iter).bi_size == (bvec).bv_len)
/linux/block/
A Dblk-lib.c103 bio->bi_iter.bi_size = req_sects << 9; in __blkdev_issue_discard()
202 bio->bi_iter.bi_size = max_write_same_sectors << 9; in __blkdev_issue_write_same()
206 bio->bi_iter.bi_size = nr_sects << 9; in __blkdev_issue_write_same()
276 bio->bi_iter.bi_size = max_write_zeroes_sectors << 9; in __blkdev_issue_write_zeroes()
280 bio->bi_iter.bi_size = nr_sects << 9; in __blkdev_issue_write_zeroes()
309 int bi_size = 0; in __blkdev_issue_zero_pages() local
327 bi_size = bio_add_page(bio, ZERO_PAGE(0), sz, 0); in __blkdev_issue_zero_pages()
328 nr_sects -= bi_size >> 9; in __blkdev_issue_zero_pages()
329 sector += bi_size >> 9; in __blkdev_issue_zero_pages()
330 if (bi_size < sz) in __blkdev_issue_zero_pages()
A Dbio.c263 bio->bi_iter.bi_size = 0; in bio_init()
558 if (new_size >= bio->bi_iter.bi_size) in bio_truncate()
587 bio->bi_iter.bi_size = new_size; in bio_truncate()
789 if (bio->bi_iter.bi_size > UINT_MAX - len) in bio_full()
844 bio->bi_iter.bi_size += len; in __bio_try_merge_page()
921 bio->bi_iter.bi_size += len; in bio_add_hw_page()
1004 bio->bi_iter.bi_size += len; in __bio_add_page()
1065 bio->bi_iter.bi_size = size; in bio_iov_bvec_set()
1282 while (src_iter->bi_size && dst_iter->bi_size) { in bio_copy_data_iter()
1523 split->bi_iter.bi_size = sectors << 9; in bio_split()
[all …]
A Dfops.c89 ret = bio.bi_iter.bi_size; in __blkdev_direct_IO_simple()
246 task_io_account_write(bio->bi_iter.bi_size); in __blkdev_direct_IO()
251 dio->size += bio->bi_iter.bi_size; in __blkdev_direct_IO()
252 pos += bio->bi_iter.bi_size; in __blkdev_direct_IO()
348 dio->size = bio->bi_iter.bi_size; in __blkdev_direct_IO_async()
358 task_io_account_write(bio->bi_iter.bi_size); in __blkdev_direct_IO_async()
A Dblk-merge.c29 if (bv->bv_len == bio->bi_iter.bi_size) in bio_get_last_bvec()
32 bio_advance_iter(bio, &iter, iter.bi_size); in bio_get_last_bvec()
536 if (likely(bio->bi_iter.bi_size)) { in __blk_bios_map_sg()
979 req->__data_len += bio->bi_iter.bi_size; in bio_attempt_back_merge()
1005 req->__data_len += bio->bi_iter.bi_size; in bio_attempt_front_merge()
1028 req->__data_len += bio->bi_iter.bi_size; in bio_attempt_discard_merge()
A Dbounce.c177 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in bounce_clone_bio()
A Dblk-map.c201 map_data->offset += bio->bi_iter.bi_size; in bio_copy_user_iov()
215 iov_iter_advance(iter, bio->bi_iter.bi_size); in bio_copy_user_iov()
498 rq->__data_len += (bio)->bi_iter.bi_size; in blk_rq_append_bio()
A Dbio-integrity.c256 bip->bip_iter.bi_size = len; in bio_integrity_prep()
391 bip->bip_iter.bi_size = bio_integrity_bytes(bi, bio_sectors(bio)); in bio_integrity_trim()
A Dblk-crypto-internal.h42 bio->bi_iter.bi_size, req->crypt_ctx); in bio_crypt_ctx_front_mergeable()
/linux/include/linux/ceph/
A Dmessenger.h114 BUG_ON(!(it)->iter.bi_size); \
115 __cur_n = min((it)->iter.bi_size, __n); \
118 if (!(it)->iter.bi_size && (it)->bio->bi_next) { \
142 __cur_iter.bi_size = __cur_n; \
155 BUG_ON((n) > (it)->iter.bi_size); \
175 __cur_iter.bi_size = (n); \
181 BUG_ON((n) > (it)->iter.bi_size); \
182 (it)->iter.bi_size = (n); \
/linux/drivers/block/aoe/
A Daoecmd.c343 ah->scnt = f->iter.bi_size >> 9; in ata_rw_frameinit()
355 skb->len += f->iter.bi_size; in ata_rw_frameinit()
356 skb->data_len = f->iter.bi_size; in ata_rw_frameinit()
388 f->iter.bi_size); in aoecmd_ata_rw()
391 if (!buf->iter.bi_size) in aoecmd_ata_rw()
611 skb->len += f->iter.bi_size; in probe()
612 skb->data_len = f->iter.bi_size; in probe()
1019 iter.bi_size = cnt; in bvcpy()
1120 if (n > f->iter.bi_size) { in ktiocomplete()
1124 n, f->iter.bi_size); in ktiocomplete()
[all …]
/linux/drivers/md/bcache/
A Ddebug.c55 bio->bi_iter.bi_size = KEY_SIZE(&v->key) << 9; in bch_btree_verify()
120 check->bi_iter.bi_size = bio->bi_iter.bi_size; in bch_data_verify()
128 citer.bi_size = UINT_MAX; in bch_data_verify()
A Drequest.c124 bio->bi_iter.bi_size -= sectors << 9; in bch_data_invalidate()
426 if (i->sequential + bio->bi_iter.bi_size > i->sequential) in check_should_bypass()
427 i->sequential += bio->bi_iter.bi_size; in check_should_bypass()
838 s->iop.bio->bi_iter.bi_size = s->insert_bio_sectors << 9; in cached_dev_read_done()
924 cache_bio->bi_iter.bi_size = s->insert_bio_sectors << 9; in cached_dev_cache_miss()
1206 if (!bio->bi_iter.bi_size) { in cached_dev_submit_bio()
1252 swap(bio->bi_iter.bi_size, bytes); in flash_dev_cache_miss()
1254 swap(bio->bi_iter.bi_size, bytes); in flash_dev_cache_miss()
1258 if (!bio->bi_iter.bi_size) in flash_dev_cache_miss()
1292 if (!bio->bi_iter.bi_size) { in flash_dev_submit_bio()
A Dutil.c233 size_t size = bio->bi_iter.bi_size; in bch_bio_map()
236 BUG_ON(!bio->bi_iter.bi_size); in bch_bio_map()
/linux/Documentation/block/
A Dbiovecs.rst12 update bi_sector and bi_size, and advance bi_idx to the next biovec. If it
18 bi_size and bi_idx have been moved there; and instead of modifying bv_offset
29 bi_size.
71 bios. Note that this means we _only_ use bi_size to determine when we've
73 bi_size into account when constructing biovecs.
104 taking into account bi_bvec_done (and bi_size).
108 actually needed for iterating over the bio anymore - we only use bi_size.
/linux/include/trace/events/
A Dbcache.h30 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
104 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
139 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
170 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
239 __entry->nr_sector = bio->bi_iter.bi_size >> 9;
/linux/drivers/net/ethernet/intel/iavf/
A Diavf_txrx.c59 unsigned long bi_size; in iavf_clean_tx_ring() local
70 bi_size = sizeof(struct iavf_tx_buffer) * tx_ring->count; in iavf_clean_tx_ring()
71 memset(tx_ring->tx_bi, 0, bi_size); in iavf_clean_tx_ring()
617 int bi_size; in iavf_setup_tx_descriptors() local
624 bi_size = sizeof(struct iavf_tx_buffer) * tx_ring->count; in iavf_setup_tx_descriptors()
625 tx_ring->tx_bi = kzalloc(bi_size, GFP_KERNEL); in iavf_setup_tx_descriptors()
657 unsigned long bi_size; in iavf_clean_rx_ring() local
697 bi_size = sizeof(struct iavf_rx_buffer) * rx_ring->count; in iavf_clean_rx_ring()
698 memset(rx_ring->rx_bi, 0, bi_size); in iavf_clean_rx_ring()
736 int bi_size; in iavf_setup_rx_descriptors() local
[all …]
/linux/fs/btrfs/
A Dcompression.c207 unsigned int bi_size = 0; in dec_and_test_compressed_bio() local
218 bi_size += bvec->bv_len; in dec_and_test_compressed_bio()
223 ASSERT(bi_size && bi_size <= cb->compressed_len); in dec_and_test_compressed_bio()
224 last_io = refcount_sub_and_test(bi_size >> fs_info->sectorsize_bits, in dec_and_test_compressed_bio()
431 ASSERT(bio->bi_iter.bi_size); in submit_compressed_bio()
845 cb->len = bio->bi_iter.bi_size; in btrfs_submit_compressed_read()
870 cb->len = bio->bi_iter.bi_size; in btrfs_submit_compressed_read()
930 nr_sectors = DIV_ROUND_UP(comp_bio->bi_iter.bi_size, in btrfs_submit_compressed_read()
1477 if (!orig_bio->bi_iter.bi_size) in btrfs_decompress_buf2page()
/linux/arch/powerpc/boot/
A Dredboot.h21 unsigned int bi_size; /* Size of this structure */ member
/linux/drivers/block/rsxx/
A Ddev.c145 if (bio->bi_iter.bi_size == 0) { in rsxx_submit_bio()
165 (u64)bio->bi_iter.bi_sector << 9, bio->bi_iter.bi_size); in rsxx_submit_bio()
/linux/net/ceph/
A Dmessenger.c723 if (cursor->resid < it->iter.bi_size) in ceph_msg_data_bio_cursor_init()
724 it->iter.bi_size = cursor->resid; in ceph_msg_data_bio_cursor_init()
758 if (!bytes || (it->iter.bi_size && it->iter.bi_bvec_done && in ceph_msg_data_bio_advance()
762 if (!it->iter.bi_size) { in ceph_msg_data_bio_advance()
765 if (cursor->resid < it->iter.bi_size) in ceph_msg_data_bio_advance()
766 it->iter.bi_size = cursor->resid; in ceph_msg_data_bio_advance()
782 cursor->resid = min_t(size_t, length, data->bvec_pos.iter.bi_size); in ceph_msg_data_bvecs_cursor_init()
784 cursor->bvec_iter.bi_size = cursor->resid; in ceph_msg_data_bvecs_cursor_init()
1897 msg->data_length += bvec_pos->iter.bi_size; in ceph_msg_data_add_bvecs()
/linux/drivers/md/
A Dmd-faulty.c68 b->bi_iter.bi_size = bio->bi_iter.bi_size; in faulty_fail()
A Ddm.c833 if ((bio->bi_opf & REQ_PREFLUSH) && bio->bi_iter.bi_size) { in dm_io_dec_pending()
1157 unsigned bi_size = bio->bi_iter.bi_size >> SECTOR_SHIFT; in dm_accept_partial_bio() local
1162 BUG_ON(bi_size > *tio->len_ptr); in dm_accept_partial_bio()
1163 BUG_ON(n_sectors > bi_size); in dm_accept_partial_bio()
1165 *tio->len_ptr -= bi_size - n_sectors; in dm_accept_partial_bio()
1166 bio->bi_iter.bi_size = n_sectors << SECTOR_SHIFT; in dm_accept_partial_bio()
1255 bio->bi_iter.bi_size = to_bytes(len); in bio_setup_sector()
1288 clone->bi_iter.bi_size = to_bytes(len); in clone_bio()
A Ddm-log-writes.c225 bio->bi_iter.bi_size = 0; in write_metadata()
284 bio->bi_iter.bi_size = 0; in write_inline_data()
371 bio->bi_iter.bi_size = 0; in log_one_block()
394 bio->bi_iter.bi_size = 0; in log_one_block()

Completed in 64 milliseconds

1234