Home
last modified time | relevance | path

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

/drivers/scsi/
Dsd_dif.c130 struct bio_integrity_payload *bip = bio_integrity(bio); in sd_dif_prepare() local
136 if (bip->bip_flags & BIP_MAPPED_INTEGRITY) in sd_dif_prepare()
139 virt = bip_get_seed(bip) & 0xffffffff; in sd_dif_prepare()
141 bip_for_each_vec(iv, bip, iter) { in sd_dif_prepare()
156 bip->bip_flags |= BIP_MAPPED_INTEGRITY; in sd_dif_prepare()
182 struct bio_integrity_payload *bip = bio_integrity(bio); in sd_dif_complete() local
186 virt = bip_get_seed(bip) & 0xffffffff; in sd_dif_complete()
188 bip_for_each_vec(iv, bip, iter) { in sd_dif_complete()
/drivers/nvdimm/
Dblk.c64 struct bio_integrity_payload *bip, u64 lba, in nd_blk_rw_integrity() argument
85 bv = bvec_iter_bvec(bip->bip_vec, bip->bip_iter); in nd_blk_rw_integrity()
102 bvec_iter_advance(bip->bip_vec, &bip->bip_iter, cur_len); in nd_blk_rw_integrity()
110 struct bio_integrity_payload *bip, u64 lba, in nd_blk_rw_integrity() argument
118 struct bio_integrity_payload *bip, struct page *page, in nd_blk_do_bvec() argument
137 cur_len = bip ? min(len, blk_dev->sector_size) : len; in nd_blk_do_bvec()
151 if (bip) { in nd_blk_do_bvec()
152 err = nd_blk_rw_integrity(blk_dev, bip, lba, rw); in nd_blk_do_bvec()
168 struct bio_integrity_payload *bip; in nd_blk_make_request() local
187 bip = bio_integrity(bio); in nd_blk_make_request()
[all …]
Dbtt.c904 static int btt_rw_integrity(struct btt *btt, struct bio_integrity_payload *bip, in btt_rw_integrity() argument
911 if (bip == NULL) in btt_rw_integrity()
921 bv = bvec_iter_bvec(bip->bip_vec, bip->bip_iter); in btt_rw_integrity()
943 bvec_iter_advance(bip->bip_vec, &bip->bip_iter, cur_len); in btt_rw_integrity()
950 static int btt_rw_integrity(struct btt *btt, struct bio_integrity_payload *bip, in btt_rw_integrity() argument
957 static int btt_read_pg(struct btt *btt, struct bio_integrity_payload *bip, in btt_read_pg() argument
1021 if (bip) { in btt_read_pg()
1022 ret = btt_rw_integrity(btt, bip, arena, postmap, READ); in btt_read_pg()
1044 static int btt_write_pg(struct btt *btt, struct bio_integrity_payload *bip, in btt_write_pg() argument
1086 if (bip) { in btt_write_pg()
[all …]
/drivers/target/
Dtarget_core_iblock.c593 struct bio_integrity_payload *bip; in iblock_alloc_bip() local
604 bip = bio_integrity_alloc(bio, GFP_NOIO, cmd->t_prot_nents); in iblock_alloc_bip()
605 if (!bip) { in iblock_alloc_bip()
610 bip->bip_iter.bi_size = (cmd->data_length / dev->dev_attrib.block_size) * in iblock_alloc_bip()
612 bip->bip_iter.bi_sector = bio->bi_iter.bi_sector; in iblock_alloc_bip()
614 pr_debug("IBLOCK BIP Size: %u Sector: %llu\n", bip->bip_iter.bi_size, in iblock_alloc_bip()
615 (unsigned long long)bip->bip_iter.bi_sector); in iblock_alloc_bip()
/drivers/md/
Draid5.c2965 struct bio **bip; in add_stripe_bio() local
2986 bip = &sh->dev[dd_idx].towrite; in add_stripe_bio()
2987 if (*bip == NULL) in add_stripe_bio()
2990 bip = &sh->dev[dd_idx].toread; in add_stripe_bio()
2991 while (*bip && (*bip)->bi_iter.bi_sector < bi->bi_iter.bi_sector) { in add_stripe_bio()
2992 if (bio_end_sector(*bip) > bi->bi_iter.bi_sector) in add_stripe_bio()
2994 bip = & (*bip)->bi_next; in add_stripe_bio()
2996 if (*bip && (*bip)->bi_iter.bi_sector < bio_end_sector(bi)) in add_stripe_bio()
3002 BUG_ON(*bip && bi->bi_next && (*bip) != bi->bi_next); in add_stripe_bio()
3003 if (*bip) in add_stripe_bio()
[all …]
/drivers/nvme/host/
Dpci.c525 struct bio_integrity_payload *bip; in nvme_dif_remap() local
533 bip = bio_integrity(req->bio); in nvme_dif_remap()
534 if (!bip) in nvme_dif_remap()
537 pmap = kmap_atomic(bip->bip_vec->bv_page) + bip->bip_vec->bv_offset; in nvme_dif_remap()
540 virt = bip_get_seed(bip); in nvme_dif_remap()