Home
last modified time | relevance | path

Searched refs:bip (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.12.1/fs/xfs/
Dxfs_trans_buf.c66 struct xfs_buf_log_item *bip; in _xfs_trans_bjoin() local
76 bip = bp->b_log_item; in _xfs_trans_bjoin()
77 ASSERT(!(bip->bli_flags & XFS_BLI_STALE)); in _xfs_trans_bjoin()
78 ASSERT(!(bip->__bli_format.blf_flags & XFS_BLF_CANCEL)); in _xfs_trans_bjoin()
79 ASSERT(!(bip->bli_flags & XFS_BLI_LOGGED)); in _xfs_trans_bjoin()
81 bip->bli_recur = 0; in _xfs_trans_bjoin()
86 atomic_inc(&bip->bli_refcount); in _xfs_trans_bjoin()
92 xfs_trans_add_item(tp, &bip->bli_item); in _xfs_trans_bjoin()
125 struct xfs_buf_log_item *bip; in xfs_trans_get_buf_map() local
147 bip = bp->b_log_item; in xfs_trans_get_buf_map()
[all …]
Dxfs_buf_item.c88 struct xfs_buf_log_item *bip, in xfs_buf_item_size_segment() argument
94 struct xfs_buf *bp = bip->bli_buf; in xfs_buf_item_size_segment()
194 struct xfs_buf_log_item *bip = BUF_ITEM(lip); in xfs_buf_item_size() local
195 struct xfs_buf *bp = bip->bli_buf; in xfs_buf_item_size()
200 ASSERT(atomic_read(&bip->bli_refcount) > 0); in xfs_buf_item_size()
201 if (bip->bli_flags & XFS_BLI_STALE) { in xfs_buf_item_size()
207 trace_xfs_buf_item_size_stale(bip); in xfs_buf_item_size()
208 ASSERT(bip->__bli_format.blf_flags & XFS_BLF_CANCEL); in xfs_buf_item_size()
209 *nvecs += bip->bli_format_count; in xfs_buf_item_size()
210 for (i = 0; i < bip->bli_format_count; i++) { in xfs_buf_item_size()
[all …]
Dxfs_buf_item_recover.c432 struct xfs_buf_log_item *bip; in xlog_recover_validate_buf_type() local
436 bip = bp->b_log_item; in xlog_recover_validate_buf_type()
437 bip->bli_item.li_lsn = current_lsn; in xlog_recover_validate_buf_type()
Dxfs_trace.h590 TP_PROTO(struct xfs_buf_log_item *bip),
591 TP_ARGS(bip),
606 __entry->dev = bip->bli_buf->b_target->bt_dev;
607 __entry->bli_flags = bip->bli_flags;
608 __entry->bli_recur = bip->bli_recur;
609 __entry->bli_refcount = atomic_read(&bip->bli_refcount);
610 __entry->buf_bno = xfs_buf_daddr(bip->bli_buf);
611 __entry->buf_len = bip->bli_buf->b_length;
612 __entry->buf_flags = bip->bli_buf->b_flags;
613 __entry->buf_hold = atomic_read(&bip->bli_buf->b_hold);
[all …]
/linux-6.12.1/block/
Dbio-integrity.c33 struct bio_integrity_payload *bip = bio_integrity(bio); in bio_integrity_free() local
37 if (bip->bip_vec) in bio_integrity_free()
38 bvec_free(&bs->bvec_integrity_pool, bip->bip_vec, in bio_integrity_free()
39 bip->bip_max_vcnt); in bio_integrity_free()
40 mempool_free(bip, &bs->bio_integrity_pool); in bio_integrity_free()
42 kfree(bip); in bio_integrity_free()
62 struct bio_integrity_payload *bip; in bio_integrity_alloc() local
70 bip = kmalloc(struct_size(bip, bip_inline_vecs, nr_vecs), gfp_mask); in bio_integrity_alloc()
73 bip = mempool_alloc(&bs->bio_integrity_pool, gfp_mask); in bio_integrity_alloc()
77 if (unlikely(!bip)) in bio_integrity_alloc()
[all …]
Dt10-pi.c134 struct bio_integrity_payload *bip = bio_integrity(bio); in t10_pi_type1_prepare() local
135 u32 virt = bip_get_seed(bip) & 0xffffffff; in t10_pi_type1_prepare()
140 if (bip->bip_flags & BIP_MAPPED_INTEGRITY) in t10_pi_type1_prepare()
143 bip_for_each_vec(iv, bip, iter) { in t10_pi_type1_prepare()
160 bip->bip_flags |= BIP_MAPPED_INTEGRITY; in t10_pi_type1_prepare()
186 struct bio_integrity_payload *bip = bio_integrity(bio); in t10_pi_type1_complete() local
187 u32 virt = bip_get_seed(bip) & 0xffffffff; in t10_pi_type1_complete()
191 bip_for_each_vec(iv, bip, iter) { in t10_pi_type1_complete()
308 struct bio_integrity_payload *bip = bio_integrity(bio); in ext_pi_type1_prepare() local
309 u64 virt = lower_48_bits(bip_get_seed(bip)); in ext_pi_type1_prepare()
[all …]
Dblk.h216 struct bio_integrity_payload *bip = bio_integrity(bio); in bio_integrity_endio() local
218 if (bip && (bip->bip_flags & BIP_BLOCK_INTEGRITY)) in bio_integrity_endio()
231 struct bio_integrity_payload *bip = bio_integrity(req->bio); in integrity_req_gap_back_merge() local
235 &bip->bip_vec[bip->bip_vcnt - 1], in integrity_req_gap_back_merge()
242 struct bio_integrity_payload *bip = bio_integrity(bio); in integrity_req_gap_front_merge() local
246 &bip->bip_vec[bip->bip_vcnt - 1], in integrity_req_gap_front_merge()
/linux-6.12.1/include/linux/
Dbio-integrity.h35 #define bip_for_each_vec(bvl, bip, iter) \ argument
36 for_each_bvec(bvl, (bip)->bip_vec, iter, (bip)->bip_iter)
52 struct bio_integrity_payload *bip = bio_integrity(bio); in bio_integrity_flagged() local
54 if (bip) in bio_integrity_flagged()
55 return bip->bip_flags & flag; in bio_integrity_flagged()
60 static inline sector_t bip_get_seed(struct bio_integrity_payload *bip) in bip_get_seed() argument
62 return bip->bip_iter.bi_sector; in bip_get_seed()
65 static inline void bip_set_seed(struct bio_integrity_payload *bip, in bip_set_seed() argument
68 bip->bip_iter.bi_sector = seed; in bip_set_seed()
/linux-6.12.1/drivers/md/
Ddm-io-rewind.c58 struct bio_integrity_payload *bip = bio_integrity(bio); in dm_bio_integrity_rewind() local
62 bip->bip_iter.bi_sector -= bio_integrity_intervals(bi, bytes_done >> 9); in dm_bio_integrity_rewind()
63 dm_bvec_iter_rewind(bip->bip_vec, &bip->bip_iter, bytes); in dm_bio_integrity_rewind()
Ddm-integrity.c1877 struct bio_integrity_payload *bip = dio->bio_details.bi_integrity; in integrity_metadata() local
1879 if (bip) { in integrity_metadata()
1887 bip_for_each_vec(biv, bip, iter) { in integrity_metadata()
1945 struct bio_integrity_payload *bip; in dm_integrity_map() local
1993 bip = bio_integrity(bio); in dm_integrity_map()
1995 if (bip) { in dm_integrity_map()
2002 if (unlikely(wanted_tag_size != bip->bip_iter.bi_size)) { in dm_integrity_map()
2004 bip->bip_iter.bi_size, wanted_tag_size); in dm_integrity_map()
2009 if (unlikely(bip != NULL)) { in dm_integrity_map()
2090 struct bio_integrity_payload *bip = bio_integrity(bio); in __journal_read_write() local
[all …]
Draid5.c3448 struct bio **bip; in stripe_bio_overlaps() local
3458 bip = &sh->dev[dd_idx].towrite; in stripe_bio_overlaps()
3460 bip = &sh->dev[dd_idx].toread; in stripe_bio_overlaps()
3462 while (*bip && (*bip)->bi_iter.bi_sector < bi->bi_iter.bi_sector) { in stripe_bio_overlaps()
3463 if (bio_end_sector(*bip) > bi->bi_iter.bi_sector) in stripe_bio_overlaps()
3465 bip = &(*bip)->bi_next; in stripe_bio_overlaps()
3468 if (*bip && (*bip)->bi_iter.bi_sector < bio_end_sector(bi)) in stripe_bio_overlaps()
3508 struct bio **bip; in __add_stripe_bio() local
3512 bip = &sh->dev[dd_idx].towrite; in __add_stripe_bio()
3513 if (!*bip) in __add_stripe_bio()
[all …]
Ddm-crypt.c1177 struct bio_integrity_payload *bip; in dm_crypt_integrity_io_alloc() local
1184 bip = bio_integrity_alloc(bio, GFP_NOIO, 1); in dm_crypt_integrity_io_alloc()
1185 if (IS_ERR(bip)) in dm_crypt_integrity_io_alloc()
1186 return PTR_ERR(bip); in dm_crypt_integrity_io_alloc()
1190 bip->bip_iter.bi_sector = io->cc->start + io->sector; in dm_crypt_integrity_io_alloc()
/linux-6.12.1/drivers/nvdimm/
Dbtt.c1137 static int btt_rw_integrity(struct btt *btt, struct bio_integrity_payload *bip, in btt_rw_integrity() argument
1144 if (bip == NULL) in btt_rw_integrity()
1154 bv = bvec_iter_bvec(bip->bip_vec, bip->bip_iter); in btt_rw_integrity()
1176 if (!bvec_iter_advance(bip->bip_vec, &bip->bip_iter, cur_len)) in btt_rw_integrity()
1184 static int btt_rw_integrity(struct btt *btt, struct bio_integrity_payload *bip, in btt_rw_integrity() argument
1191 static int btt_read_pg(struct btt *btt, struct bio_integrity_payload *bip, in btt_read_pg() argument
1266 if (bip) { in btt_read_pg()
1267 ret = btt_rw_integrity(btt, bip, arena, postmap, READ); in btt_read_pg()
1304 static int btt_write_pg(struct btt *btt, struct bio_integrity_payload *bip, in btt_write_pg() argument
1363 if (bip) { in btt_write_pg()
[all …]
/linux-6.12.1/drivers/nvme/target/
Dio-cmd-bdev.c196 struct bio_integrity_payload *bip; in nvmet_bdev_alloc_bip() local
206 bip = bio_integrity_alloc(bio, GFP_NOIO, in nvmet_bdev_alloc_bip()
208 if (IS_ERR(bip)) { in nvmet_bdev_alloc_bip()
210 return PTR_ERR(bip); in nvmet_bdev_alloc_bip()
214 bip_set_seed(bip, bio->bi_iter.bi_sector >> in nvmet_bdev_alloc_bip()
/linux-6.12.1/Documentation/block/
Ddata-integrity.rst138 pointer to a struct bip which contains the bio integrity payload.
139 Essentially a bip is a trimmed down struct bio which holds a bio_vec
145 bip to the bio.
150 bio_free() will automatically free the bip.
216 `struct bip * bio_integrity_alloc(bio, gfp_mask, nr_pages);`
228 bio. The bio must have an existing bip,
235 integrity metadata must have a value of bip->bip_sector.
238 there is room in the bip bio_vec array (nr_pages).
/linux-6.12.1/drivers/target/
Dtarget_core_iblock.c681 struct bio_integrity_payload *bip; in iblock_alloc_bip() local
692 bip = bio_integrity_alloc(bio, GFP_NOIO, bio_max_segs(cmd->t_prot_nents)); in iblock_alloc_bip()
693 if (IS_ERR(bip)) { in iblock_alloc_bip()
695 return PTR_ERR(bip); in iblock_alloc_bip()
699 bip_set_seed(bip, bio->bi_iter.bi_sector >> in iblock_alloc_bip()
702 pr_debug("IBLOCK BIP Size: %u Sector: %llu\n", bip->bip_iter.bi_size, in iblock_alloc_bip()
703 (unsigned long long)bip->bip_iter.bi_sector); in iblock_alloc_bip()
/linux-6.12.1/fs/xfs/libxfs/
Dxfs_symlink_remote.c139 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_symlink_write_verify() local
152 if (bip) { in xfs_symlink_write_verify()
154 dsl->sl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_symlink_write_verify()
Dxfs_dir2_data.c383 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_data_write_verify() local
396 if (bip) in xfs_dir3_data_write_verify()
397 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_data_write_verify()
Dxfs_dir2_block.c90 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_block_write_verify() local
103 if (bip) in xfs_dir3_block_write_verify()
104 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_block_write_verify()
Dxfs_sb.c925 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_sb_write_verify() local
944 if (bip) in xfs_sb_write_verify()
945 dsb->sb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_sb_write_verify()
Dxfs_alloc.c846 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agfl_write_verify() local
859 if (bip) in xfs_agfl_write_verify()
860 XFS_BUF_TO_AGFL(bp)->agfl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agfl_write_verify()
3325 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agf_write_verify() local
3338 if (bip) in xfs_agf_write_verify()
3339 agf->agf_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agf_write_verify()
Dxfs_dir2_leaf.c256 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_leaf_write_verify() local
269 if (bip) in xfs_dir3_leaf_write_verify()
270 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_leaf_write_verify()
Dxfs_btree.c404 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_btree_fsblock_calc_crc() local
408 if (bip) in xfs_btree_fsblock_calc_crc()
409 block->bb_u.l.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_fsblock_calc_crc()
442 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_btree_agblock_calc_crc() local
446 if (bip) in xfs_btree_agblock_calc_crc()
447 block->bb_u.s.bb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_btree_agblock_calc_crc()
/linux-6.12.1/Documentation/filesystems/xfs/
Dxfs-self-describing-metadata.rst305 struct xfs_buf_log_item *bip = bp->b_fspriv;
317 if (bip) {
319 hdr->lsn = cpu_to_be64(bip->bli_item.li_lsn);
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/
Dmt792x.h95 struct mt76_connac_sta_key_conf bip; member

12