Searched refs:bi (Results 1 – 3 of 3) sorted by relevance
/block/ |
D | blk-integrity.c | 249 struct blk_integrity *bi = &disk->queue->integrity; in integrity_attr_show() local 253 return entry->show(bi, page); in integrity_attr_show() 261 struct blk_integrity *bi = &disk->queue->integrity; in integrity_attr_store() local 267 ret = entry->store(bi, page, count); in integrity_attr_store() 272 static ssize_t integrity_format_show(struct blk_integrity *bi, char *page) in integrity_format_show() argument 274 if (bi->profile && bi->profile->name) in integrity_format_show() 275 return sprintf(page, "%s\n", bi->profile->name); in integrity_format_show() 280 static ssize_t integrity_tag_size_show(struct blk_integrity *bi, char *page) in integrity_tag_size_show() argument 282 return sprintf(page, "%u\n", bi->tag_size); in integrity_tag_size_show() 285 static ssize_t integrity_interval_show(struct blk_integrity *bi, char *page) in integrity_interval_show() argument [all …]
|
D | bio-integrity.c | 173 struct blk_integrity *bi = bdev_get_integrity(bio->bi_bdev); in bio_integrity_enabled() local 185 if (bi == NULL) in bio_integrity_enabled() 188 if (bio_data_dir(bio) == READ && bi->profile->verify_fn != NULL && in bio_integrity_enabled() 189 (bi->flags & BLK_INTEGRITY_VERIFY)) in bio_integrity_enabled() 192 if (bio_data_dir(bio) == WRITE && bi->profile->generate_fn != NULL && in bio_integrity_enabled() 193 (bi->flags & BLK_INTEGRITY_GENERATE)) in bio_integrity_enabled() 210 static inline unsigned int bio_integrity_intervals(struct blk_integrity *bi, in bio_integrity_intervals() argument 213 return sectors >> (bi->interval_exp - 9); in bio_integrity_intervals() 216 static inline unsigned int bio_integrity_bytes(struct blk_integrity *bi, in bio_integrity_bytes() argument 219 return bio_integrity_intervals(bi, sectors) * bi->tuple_size; in bio_integrity_bytes() [all …]
|
D | bio.c | 1729 void bio_flush_dcache_pages(struct bio *bi) in bio_flush_dcache_pages() argument 1734 bio_for_each_segment(bvec, bi, iter) in bio_flush_dcache_pages()
|