Home
last modified time | relevance | path

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

12

/linux/fs/xfs/
A Dxfs_trans_buf.c76 bip = bp->b_log_item; in _xfs_trans_bjoin()
81 bip->bli_recur = 0; in _xfs_trans_bjoin()
148 ASSERT(bip != NULL); in xfs_trans_get_buf_map()
150 bip->bli_recur++; in xfs_trans_get_buf_map()
184 ASSERT(bip != NULL); in xfs_trans_getsb()
186 bip->bli_recur++; in xfs_trans_getsb()
280 bip->bli_recur++; in xfs_trans_read_buf_map()
326 if (!bip) in xfs_trans_buf_is_dirty()
367 bip->bli_recur--; in xfs_trans_brelse()
409 ASSERT(bip != NULL); in xfs_trans_bhold()
[all …]
A Dxfs_buf_item.c86 struct xfs_buf_log_item *bip, in xfs_buf_item_size_segment() argument
238 xfs_buf_item_size_segment(bip, &bip->bli_formats[i], offset, in xfs_buf_item_size()
249 trace_xfs_buf_item_size(bip); in xfs_buf_item_size()
470 trace_xfs_buf_item_pin(bip); in xfs_buf_item_pin()
761 bip->bli_formats = &bip->__bli_format; in xfs_buf_item_get_format()
773 if (bip->bli_formats != &bip->__bli_format) { in xfs_buf_item_free_format()
775 bip->bli_formats = NULL; in xfs_buf_item_free_format()
800 if (bip) { in xfs_buf_item_init()
809 bip->bli_buf = bp; in xfs_buf_item_init()
842 bp->b_log_item = bip; in xfs_buf_item_init()
[all …]
A Dxfs_buf_item_recover.c420 struct xfs_buf_log_item *bip; in xlog_recover_validate_buf_type() local
424 bip = bp->b_log_item; in xlog_recover_validate_buf_type()
425 bip->bli_item.li_lsn = current_lsn; in xlog_recover_validate_buf_type()
A Dxfs_trace.h559 TP_PROTO(struct xfs_buf_log_item *bip),
560 TP_ARGS(bip),
575 __entry->dev = bip->bli_buf->b_target->bt_dev;
576 __entry->bli_flags = bip->bli_flags;
577 __entry->bli_recur = bip->bli_recur;
579 __entry->buf_bno = xfs_buf_daddr(bip->bli_buf);
580 __entry->buf_len = bip->bli_buf->b_length;
581 __entry->buf_flags = bip->bli_buf->b_flags;
585 __entry->li_flags = bip->bli_item.li_flags;
605 TP_PROTO(struct xfs_buf_log_item *bip), \
[all …]
/linux/block/
A Dbio-integrity.c29 if (bip->bip_vec) in __bio_integrity_free()
34 kfree(bip); in __bio_integrity_free()
60 bip = kmalloc(struct_size(bip, bip_inline_vecs, nr_vecs), gfp_mask); in bio_integrity_alloc()
70 memset(bip, 0, sizeof(*bip)); in bio_integrity_alloc()
79 bip->bip_vec = bip->bip_inline_vecs; in bio_integrity_alloc()
87 return bip; in bio_integrity_alloc()
129 if (bip->bip_vcnt >= bip->bip_max_vcnt) { in bio_integrity_add_page()
134 iv = bip->bip_vec + bip->bip_vcnt; in bio_integrity_add_page()
138 &bip->bip_vec[bip->bip_vcnt - 1], offset)) in bio_integrity_add_page()
144 bip->bip_vcnt++; in bio_integrity_add_page()
[all …]
A Dt10-pi.c140 struct bio_integrity_payload *bip = bio_integrity(bio); in t10_pi_type1_prepare() local
141 u32 virt = bip_get_seed(bip) & 0xffffffff; in t10_pi_type1_prepare()
146 if (bip->bip_flags & BIP_MAPPED_INTEGRITY) in t10_pi_type1_prepare()
149 bip_for_each_vec(iv, bip, iter) { in t10_pi_type1_prepare()
166 bip->bip_flags |= BIP_MAPPED_INTEGRITY; in t10_pi_type1_prepare()
190 struct bio_integrity_payload *bip = bio_integrity(bio); in t10_pi_type1_complete() local
191 u32 virt = bip_get_seed(bip) & 0xffffffff; in t10_pi_type1_complete()
195 bip_for_each_vec(iv, bip, iter) { in t10_pi_type1_complete()
A Dblk.h191 struct bio_integrity_payload *bip = bio_integrity(req->bio); in integrity_req_gap_back_merge() local
194 return bvec_gap_to_prev(req->q, &bip->bip_vec[bip->bip_vcnt - 1], in integrity_req_gap_back_merge()
201 struct bio_integrity_payload *bip = bio_integrity(bio); in integrity_req_gap_front_merge() local
204 return bvec_gap_to_prev(req->q, &bip->bip_vec[bip->bip_vcnt - 1], in integrity_req_gap_front_merge()
/linux/drivers/nvdimm/
A Dblk.c64 struct bio_integrity_payload *bip, u64 lba, int rw) in nd_blk_rw_integrity() argument
84 bv = bvec_iter_bvec(bip->bip_vec, bip->bip_iter); in nd_blk_rw_integrity()
101 if (!bvec_iter_advance(bip->bip_vec, &bip->bip_iter, cur_len)) in nd_blk_rw_integrity()
110 struct bio_integrity_payload *bip, u64 lba, int rw) in nd_blk_rw_integrity() argument
117 struct bio_integrity_payload *bip, struct page *page, in nsblk_do_bvec() argument
138 cur_len = bip ? min(len, sector_size) : len; in nsblk_do_bvec()
152 if (bip) { in nsblk_do_bvec()
153 err = nd_blk_rw_integrity(nsblk, bip, lba, rw); in nsblk_do_bvec()
167 struct bio_integrity_payload *bip; in nd_blk_submit_bio() local
178 bip = bio_integrity(bio); in nd_blk_submit_bio()
[all …]
A Dbtt.c1149 if (bip == NULL) in btt_rw_integrity()
1159 bv = bvec_iter_bvec(bip->bip_vec, bip->bip_iter); in btt_rw_integrity()
1183 if (!bvec_iter_advance(bip->bip_vec, &bip->bip_iter, cur_len)) in btt_rw_integrity()
1273 if (bip) { in btt_read_pg()
1274 ret = btt_rw_integrity(btt, bip, arena, postmap, READ); in btt_read_pg()
1370 if (bip) { in btt_write_pg()
1371 ret = btt_rw_integrity(btt, bip, arena, new_postmap, in btt_write_pg()
1433 ret = btt_read_pg(btt, bip, page, off, sector, len); in btt_do_bvec()
1437 ret = btt_write_pg(btt, bip, sector, page, off, len); in btt_do_bvec()
1445 struct bio_integrity_payload *bip = bio_integrity(bio); in btt_submit_bio() local
[all …]
/linux/include/linux/
A Dbio.h303 struct bio_integrity_payload *bip = bio_integrity(bio); in bio_integrity_flagged() local
305 if (bip) in bio_integrity_flagged()
306 return bip->bip_flags & flag; in bio_integrity_flagged()
311 static inline sector_t bip_get_seed(struct bio_integrity_payload *bip) in bip_get_seed() argument
313 return bip->bip_iter.bi_sector; in bip_get_seed()
316 static inline void bip_set_seed(struct bio_integrity_payload *bip, in bip_set_seed() argument
319 bip->bip_iter.bi_sector = seed; in bip_set_seed()
647 #define bip_for_each_vec(bvl, bip, iter) \ argument
648 for_each_bvec(bvl, (bip)->bip_vec, iter, (bip)->bip_iter)
/linux/drivers/nvme/target/
A Dio-cmd-bdev.c184 struct bio_integrity_payload *bip; in nvmet_bdev_alloc_bip() local
194 bip = bio_integrity_alloc(bio, GFP_NOIO, in nvmet_bdev_alloc_bip()
196 if (IS_ERR(bip)) { in nvmet_bdev_alloc_bip()
198 return PTR_ERR(bip); in nvmet_bdev_alloc_bip()
201 bip->bip_iter.bi_size = bio_integrity_bytes(bi, bio_sectors(bio)); in nvmet_bdev_alloc_bip()
203 bip_set_seed(bip, bio->bi_iter.bi_sector >> in nvmet_bdev_alloc_bip()
206 resid = bip->bip_iter.bi_size; in nvmet_bdev_alloc_bip()
/linux/drivers/target/
A Dtarget_core_iblock.c666 struct bio_integrity_payload *bip; in iblock_alloc_bip() local
677 bip = bio_integrity_alloc(bio, GFP_NOIO, bio_max_segs(cmd->t_prot_nents)); in iblock_alloc_bip()
678 if (IS_ERR(bip)) { in iblock_alloc_bip()
680 return PTR_ERR(bip); in iblock_alloc_bip()
683 bip->bip_iter.bi_size = bio_integrity_bytes(bi, bio_sectors(bio)); in iblock_alloc_bip()
685 bip_set_seed(bip, bio->bi_iter.bi_sector >> in iblock_alloc_bip()
688 pr_debug("IBLOCK BIP Size: %u Sector: %llu\n", bip->bip_iter.bi_size, in iblock_alloc_bip()
689 (unsigned long long)bip->bip_iter.bi_sector); in iblock_alloc_bip()
691 resid = bip->bip_iter.bi_size; in iblock_alloc_bip()
/linux/fs/xfs/libxfs/
A Dxfs_symlink_remote.c136 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_symlink_write_verify() local
149 if (bip) { in xfs_symlink_write_verify()
151 dsl->sl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_symlink_write_verify()
A Dxfs_dir2_data.c361 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_data_write_verify() local
374 if (bip) in xfs_dir3_data_write_verify()
375 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_data_write_verify()
A Dxfs_dir2_block.c89 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_block_write_verify() local
102 if (bip) in xfs_dir3_block_write_verify()
103 hdr3->lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_block_write_verify()
A Dxfs_sb.c802 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_sb_write_verify() local
821 if (bip) in xfs_sb_write_verify()
822 dsb->sb_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_sb_write_verify()
A Dxfs_alloc.c658 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agfl_write_verify() local
671 if (bip) in xfs_agfl_write_verify()
672 XFS_BUF_TO_AGFL(bp)->agfl_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agfl_write_verify()
3025 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_agf_write_verify() local
3038 if (bip) in xfs_agf_write_verify()
3039 agf->agf_lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_agf_write_verify()
A Dxfs_dir2_leaf.c227 struct xfs_buf_log_item *bip = bp->b_log_item; in xfs_dir3_leaf_write_verify() local
240 if (bip) in xfs_dir3_leaf_write_verify()
241 hdr3->info.lsn = cpu_to_be64(bip->bli_item.li_lsn); in xfs_dir3_leaf_write_verify()
/linux/drivers/nvme/host/
A Dioctl.c25 struct bio_integrity_payload *bip; in nvme_add_user_metadata() local
37 bip = bio_integrity_alloc(bio, GFP_KERNEL, 1); in nvme_add_user_metadata()
38 if (IS_ERR(bip)) { in nvme_add_user_metadata()
39 ret = PTR_ERR(bip); in nvme_add_user_metadata()
43 bip->bip_iter.bi_size = len; in nvme_add_user_metadata()
44 bip->bip_iter.bi_sector = seed; in nvme_add_user_metadata()
/linux/Documentation/block/
A 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.
223 `struct bip * bio_integrity_alloc(bio, gfp_mask, nr_pages);`
235 bio. The bio must have an existing bip,
242 integrity metadata must have a value of bip->bip_sector.
245 there is room in the bip bio_vec array (nr_pages).
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
A Dmcu.c488 struct mt7921_sta_key_conf *bip = &msta->bip; in mt7921_mcu_sta_key_tlv() local
511 sec_key->key_id = bip->keyidx; in mt7921_mcu_sta_key_tlv()
513 memcpy(sec_key->key, bip->key, 16); in mt7921_mcu_sta_key_tlv()
536 memcpy(bip->key, key->key, key->keylen); in mt7921_mcu_sta_key_tlv()
537 bip->keyidx = key->keyidx; in mt7921_mcu_sta_key_tlv()
/linux/drivers/md/
A Ddm-integrity.c1820 if (bip) { in integrity_metadata()
1827 bip_for_each_vec(biv, bip, iter) { in integrity_metadata()
1856 struct bio_integrity_payload *bip; in dm_integrity_map() local
1916 bip = bio_integrity(bio); in dm_integrity_map()
1918 if (bip) { in dm_integrity_map()
1926 bip->bip_iter.bi_size, wanted_tag_size); in dm_integrity_map()
1931 if (unlikely(bip != NULL)) { in dm_integrity_map()
2012 struct bio_integrity_payload *bip = bio_integrity(bio); in __journal_read_write() local
2016 if (bip) do { in __journal_read_write()
2017 struct bio_vec biv = bvec_iter_bvec(bip->bip_vec, bip->bip_iter); in __journal_read_write()
[all …]
A Draid5.c3410 struct bio **bip; in add_stripe_bio() local
3424 bip = &sh->dev[dd_idx].towrite; in add_stripe_bio()
3425 if (*bip == NULL) in add_stripe_bio()
3428 bip = &sh->dev[dd_idx].toread; in add_stripe_bio()
3429 while (*bip && (*bip)->bi_iter.bi_sector < bi->bi_iter.bi_sector) { in add_stripe_bio()
3432 bip = & (*bip)->bi_next; in add_stripe_bio()
3434 if (*bip && (*bip)->bi_iter.bi_sector < bio_end_sector(bi)) in add_stripe_bio()
3470 BUG_ON(*bip && bi->bi_next && (*bip) != bi->bi_next); in add_stripe_bio()
3471 if (*bip) in add_stripe_bio()
3472 bi->bi_next = *bip; in add_stripe_bio()
[all …]
A Ddm-crypt.c1140 struct bio_integrity_payload *bip; in dm_crypt_integrity_io_alloc() local
1147 bip = bio_integrity_alloc(bio, GFP_NOIO, 1); in dm_crypt_integrity_io_alloc()
1148 if (IS_ERR(bip)) in dm_crypt_integrity_io_alloc()
1149 return PTR_ERR(bip); in dm_crypt_integrity_io_alloc()
1153 bip->bip_iter.bi_size = tag_len; in dm_crypt_integrity_io_alloc()
1154 bip->bip_iter.bi_sector = io->cc->start + io->sector; in dm_crypt_integrity_io_alloc()
/linux/Documentation/filesystems/
A Dxfs-self-describing-metadata.rst304 struct xfs_buf_log_item *bip = bp->b_fspriv;
316 if (bip) {
318 hdr->lsn = cpu_to_be64(bip->bli_item.li_lsn);

Completed in 77 milliseconds

12