Home
last modified time | relevance | path

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

12345

/Linux-v6.6/include/linux/
Dbvec.h80 unsigned int bi_size; /* residual I/O count */ member
105 min((iter).bi_size, \
145 if (WARN_ONCE(bytes > iter->bi_size, in bvec_iter_advance()
147 iter->bi_size = 0; in bvec_iter_advance()
151 iter->bi_size -= bytes; in bvec_iter_advance()
178 iter->bi_size -= bytes; in bvec_iter_advance_single()
183 (iter).bi_size && \
191 .bi_size = UINT_MAX, \
Dbio.h39 #define bvec_iter_sectors(iter) ((iter).bi_size >> 9)
57 bio->bi_iter.bi_size && in bio_has_data()
104 iter->bi_size -= bytes; in bio_advance_iter()
118 iter->bi_size -= bytes; in bio_advance_iter_single()
138 if (nbytes == bio->bi_iter.bi_size) { in bio_advance()
139 bio->bi_iter.bi_size = 0; in bio_advance()
147 (iter).bi_size && \
156 (iter).bi_size && \
172 #define bio_iter_last(bvec, iter) ((iter).bi_size == (bvec).bv_len)
/Linux-v6.6/block/
Dblk-lib.c69 bio->bi_iter.bi_size = req_sects << 9; in __blkdev_issue_discard()
141 bio->bi_iter.bi_size = max_write_zeroes_sectors << 9; in __blkdev_issue_write_zeroes()
145 bio->bi_iter.bi_size = nr_sects << 9; in __blkdev_issue_write_zeroes()
173 int bi_size = 0; in __blkdev_issue_zero_pages() local
186 bi_size = bio_add_page(bio, ZERO_PAGE(0), sz, 0); in __blkdev_issue_zero_pages()
187 nr_sects -= bi_size >> 9; in __blkdev_issue_zero_pages()
188 sector += bi_size >> 9; in __blkdev_issue_zero_pages()
189 if (bi_size < sz) in __blkdev_issue_zero_pages()
330 bio->bi_iter.bi_size = len << SECTOR_SHIFT; in blkdev_issue_secure_erase()
Dbio.c256 bio->bi_iter.bi_size = 0; in bio_init()
636 if (new_size >= bio->bi_iter.bi_size) in bio_truncate()
666 bio->bi_iter.bi_size = new_size; in bio_truncate()
697 if (likely((bio->bi_iter.bi_size >> 9) <= maxsector)) in guard_bio_eod()
901 if (bio->bi_iter.bi_size > UINT_MAX - len) in bio_full()
972 if (((bio->bi_iter.bi_size + len) >> SECTOR_SHIFT) > max_sectors) in bio_add_hw_page()
980 bio->bi_iter.bi_size += len; in bio_add_hw_page()
998 bio->bi_iter.bi_size += len; in bio_add_hw_page()
1076 bio->bi_iter.bi_size += len; in __bio_add_page()
1098 if (bio->bi_iter.bi_size > UINT_MAX - len) in bio_add_page()
[all …]
Dbio-integrity.c129 if (((bip->bip_iter.bi_size + len) >> SECTOR_SHIFT) > in bio_integrity_add_page()
139 bip->bip_iter.bi_size += len; in bio_integrity_add_page()
157 bip->bip_iter.bi_size += len; in bio_integrity_add_page()
388 bip->bip_iter.bi_size = bio_integrity_bytes(bi, bio_sectors(bio)); in bio_integrity_trim()
Dbounce.c173 bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; in bounce_clone_bio()
Dfops.c81 ret = bio.bi_iter.bi_size; in __blkdev_direct_IO_simple()
239 task_io_account_write(bio->bi_iter.bi_size); in __blkdev_direct_IO()
241 dio->size += bio->bi_iter.bi_size; in __blkdev_direct_IO()
242 pos += bio->bi_iter.bi_size; in __blkdev_direct_IO()
342 dio->size = bio->bi_iter.bi_size; in __blkdev_direct_IO_async()
350 task_io_account_write(bio->bi_iter.bi_size); in __blkdev_direct_IO_async()
Dblk-merge.c32 if (bv->bv_len == bio->bi_iter.bi_size) in bio_get_last_bvec()
35 bio_advance_iter(bio, &iter, iter.bi_size); in bio_get_last_bvec()
554 if (likely(bio->bi_iter.bi_size)) { in __blk_bios_map_sg()
995 req->__data_len += bio->bi_iter.bi_size; in bio_attempt_back_merge()
1023 req->__data_len += bio->bi_iter.bi_size; in bio_attempt_front_merge()
1046 req->__data_len += bio->bi_iter.bi_size; in bio_attempt_discard_merge()
Dblk-throttle.h192 bio->bi_iter.bi_size); in blk_should_throtl()
/Linux-v6.6/drivers/md/
Ddm-io-rewind.c18 iter->bi_size += bytes; in dm_bvec_iter_rewind()
34 iter->bi_size -= bytes; in dm_bvec_iter_rewind()
117 iter->bi_size += bytes; in dm_bio_rewind_iter()
154 orig->bi_iter.bi_size)); in dm_io_rewind()
Ddm-flakey.c361 bio->bi_iter.bi_size); in corrupt_bio_common()
386 corrupt_byte = get_random_u32() % bio->bi_iter.bi_size; in corrupt_bio_random()
419 if (unlikely(bio->bi_iter.bi_size > UIO_MAXIOV << PAGE_SHIFT)) in clone_bio()
422 size = bio->bi_iter.bi_size; in clone_bio()
Dmd-faulty.c68 b->bi_iter.bi_size = bio->bi_iter.bi_size; in faulty_fail()
Ddm-writecache.c1345 if (next_boundary < bio->bi_iter.bi_size >> SECTOR_SHIFT) in writecache_map_remap_origin()
1362 if (bio->bi_iter.bi_size) in writecache_map_read()
1375 wc->stats.reads += (bio->bi_iter.bi_size - wc->block_size) >> wc->block_size_bits; in writecache_map_read()
1389 while (bio_size < bio->bi_iter.bi_size) { in writecache_bio_copy_ssd()
1425 wc->stats.writes += bio->bi_iter.bi_size >> wc->block_size_bits; in writecache_bio_copy_ssd()
1426 wc->stats.writes_allocate += (bio->bi_iter.bi_size - wc->block_size) >> wc->block_size_bits; in writecache_bio_copy_ssd()
1445 wc->stats.writes += bio->bi_iter.bi_size >> wc->block_size_bits; in writecache_map_write()
1473 wc->stats.writes_around += bio->bi_iter.bi_size >> wc->block_size_bits; in writecache_map_write()
1474 wc->stats.writes += bio->bi_iter.bi_size >> wc->block_size_bits; in writecache_map_write()
1493 } while (bio->bi_iter.bi_size); in writecache_map_write()
[all …]
/Linux-v6.6/include/linux/ceph/
Dmessenger.h140 BUG_ON(!(it)->iter.bi_size); \
141 __cur_n = min((it)->iter.bi_size, __n); \
144 if (!(it)->iter.bi_size && (it)->bio->bi_next) { \
168 __cur_iter.bi_size = __cur_n; \
181 BUG_ON((n) > (it)->iter.bi_size); \
201 __cur_iter.bi_size = (n); \
207 BUG_ON((n) > (it)->iter.bi_size); \
208 (it)->iter.bi_size = (n); \
/Linux-v6.6/drivers/block/rnbd/
Drnbd-srv-trace.h81 __field(u32, bi_size)
93 __entry->bi_size = le32_to_cpu(msg->bi_size);
108 __entry->bi_size,
/Linux-v6.6/drivers/block/aoe/
Daoecmd.c342 ah->scnt = f->iter.bi_size >> 9; in ata_rw_frameinit()
354 skb->len += f->iter.bi_size; in ata_rw_frameinit()
355 skb->data_len = f->iter.bi_size; in ata_rw_frameinit()
356 skb->truesize += f->iter.bi_size; in ata_rw_frameinit()
385 f->iter.bi_size = min_t(unsigned long, in aoecmd_ata_rw()
387 f->iter.bi_size); in aoecmd_ata_rw()
388 bio_advance_iter(buf->bio, &buf->iter, f->iter.bi_size); in aoecmd_ata_rw()
390 if (!buf->iter.bi_size) in aoecmd_ata_rw()
600 f->iter.bi_size = t->d->maxbcnt ? t->d->maxbcnt : DEFAULTBCNT; in probe()
603 for (frag = 0, n = f->iter.bi_size; n > 0; ++frag, n -= m) { in probe()
[all …]
/Linux-v6.6/drivers/md/bcache/
Ddebug.c55 bio->bi_iter.bi_size = KEY_SIZE(&v->key) << 9; in bch_btree_verify()
121 check->bi_iter.bi_size = bio->bi_iter.bi_size; in bch_data_verify()
129 citer.bi_size = UINT_MAX; in bch_data_verify()
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()
836 s->iop.bio->bi_iter.bi_size = s->insert_bio_sectors << 9; in cached_dev_read_done()
922 cache_bio->bi_iter.bi_size = s->insert_bio_sectors << 9; in cached_dev_cache_miss()
1210 if (!bio->bi_iter.bi_size) { in cached_dev_submit_bio()
1256 swap(bio->bi_iter.bi_size, bytes); in flash_dev_cache_miss()
1258 swap(bio->bi_iter.bi_size, bytes); in flash_dev_cache_miss()
1262 if (!bio->bi_iter.bi_size) in flash_dev_cache_miss()
1296 if (!bio->bi_iter.bi_size) { in flash_dev_submit_bio()
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-v6.6/Documentation/block/
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-v6.6/include/trace/events/
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-v6.6/drivers/net/ethernet/intel/iavf/
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()
651 int bi_size; in iavf_setup_tx_descriptors() local
658 bi_size = sizeof(struct iavf_tx_buffer) * tx_ring->count; in iavf_setup_tx_descriptors()
659 tx_ring->tx_bi = kzalloc(bi_size, GFP_KERNEL); in iavf_setup_tx_descriptors()
691 unsigned long bi_size; in iavf_clean_rx_ring() local
731 bi_size = sizeof(struct iavf_rx_buffer) * rx_ring->count; in iavf_clean_rx_ring()
732 memset(rx_ring->rx_bi, 0, bi_size); in iavf_clean_rx_ring()
770 int bi_size; in iavf_setup_rx_descriptors() local
[all …]
/Linux-v6.6/arch/powerpc/boot/
Dredboot.h21 unsigned int bi_size; /* Size of this structure */ member
/Linux-v6.6/net/ceph/
Dmessenger.c732 if (cursor->resid < it->iter.bi_size) in ceph_msg_data_bio_cursor_init()
733 it->iter.bi_size = cursor->resid; in ceph_msg_data_bio_cursor_init()
764 if (!bytes || (it->iter.bi_size && it->iter.bi_bvec_done && in ceph_msg_data_bio_advance()
768 if (!it->iter.bi_size) { in ceph_msg_data_bio_advance()
771 if (cursor->resid < it->iter.bi_size) in ceph_msg_data_bio_advance()
772 it->iter.bi_size = cursor->resid; in ceph_msg_data_bio_advance()
786 cursor->resid = min_t(size_t, length, data->bvec_pos.iter.bi_size); in ceph_msg_data_bvecs_cursor_init()
788 cursor->bvec_iter.bi_size = cursor->resid; in ceph_msg_data_bvecs_cursor_init()
1944 msg->data_length += bvec_pos->iter.bi_size; in ceph_msg_data_add_bvecs()
/Linux-v6.6/fs/btrfs/
Dbio.c307 while (iter->bi_size) { in btrfs_check_read_bio()
464 dev->devid, bio->bi_iter.bi_size); in btrfs_submit_dev_bio()
652 u64 length = bio->bi_iter.bi_size; in btrfs_submit_chunk()
813 u64 length = bbio->bio.bi_iter.bi_size; in btrfs_submit_repair_write()

12345