Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 14 of 14) sorted by relevance

/block/
Dt10-pi.c30 static blk_status_t t10_pi_generate(struct blk_integrity_iter *iter, in t10_pi_generate() argument
35 for (i = 0 ; i < iter->data_size ; i += iter->interval) { in t10_pi_generate()
36 struct t10_pi_tuple *pi = iter->prot_buf; in t10_pi_generate()
38 pi->guard_tag = fn(iter->data_buf, iter->interval); in t10_pi_generate()
42 pi->ref_tag = cpu_to_be32(lower_32_bits(iter->seed)); in t10_pi_generate()
46 iter->data_buf += iter->interval; in t10_pi_generate()
47 iter->prot_buf += sizeof(struct t10_pi_tuple); in t10_pi_generate()
48 iter->seed++; in t10_pi_generate()
54 static blk_status_t t10_pi_verify(struct blk_integrity_iter *iter, in t10_pi_verify() argument
61 for (i = 0 ; i < iter->data_size ; i += iter->interval) { in t10_pi_verify()
[all …]
Dblk-map.c17 struct iov_iter iter; member
33 bmd->iter = *data; in bio_alloc_map_data()
34 bmd->iter.iov = bmd->iov; in bio_alloc_map_data()
46 static int bio_copy_from_iter(struct bio *bio, struct iov_iter *iter) in bio_copy_from_iter() argument
57 iter); in bio_copy_from_iter()
59 if (!iov_iter_count(iter)) in bio_copy_from_iter()
77 static int bio_copy_to_iter(struct bio *bio, struct iov_iter iter) in bio_copy_to_iter() argument
88 &iter); in bio_copy_to_iter()
90 if (!iov_iter_count(&iter)) in bio_copy_to_iter()
121 ret = bio_copy_to_iter(bio, bmd->iter); in bio_uncopy_user()
[all …]
Dfops.c55 struct iov_iter *iter, unsigned int nr_pages) in __blkdev_direct_IO_simple() argument
66 if ((pos | iov_iter_alignment(iter)) & in __blkdev_direct_IO_simple()
87 ret = bio_iov_iter_get_pages(&bio, iter); in __blkdev_direct_IO_simple()
92 if (iov_iter_rw(iter) == READ) { in __blkdev_direct_IO_simple()
94 if (iter_is_iovec(iter)) in __blkdev_direct_IO_simple()
191 static ssize_t __blkdev_direct_IO(struct kiocb *iocb, struct iov_iter *iter, in __blkdev_direct_IO() argument
201 bool is_read = (iov_iter_rw(iter) == READ), is_sync; in __blkdev_direct_IO()
206 if ((pos | iov_iter_alignment(iter)) & in __blkdev_direct_IO()
223 dio->should_dirty = is_read && iter_is_iovec(iter); in __blkdev_direct_IO()
240 ret = bio_iov_iter_get_pages(bio, iter); in __blkdev_direct_IO()
[all …]
Dbio.c535 struct bvec_iter iter; in zero_fill_bio() local
537 bio_for_each_segment(bv, bio, iter) in zero_fill_bio()
555 struct bvec_iter iter; in bio_truncate() local
565 bio_for_each_segment(bv, bio, iter) { in bio_truncate()
1039 static void __bio_iov_bvec_set(struct bio *bio, struct iov_iter *iter) in __bio_iov_bvec_set() argument
1043 bio->bi_vcnt = iter->nr_segs; in __bio_iov_bvec_set()
1044 bio->bi_io_vec = (struct bio_vec *)iter->bvec; in __bio_iov_bvec_set()
1045 bio->bi_iter.bi_bvec_done = iter->iov_offset; in __bio_iov_bvec_set()
1046 bio->bi_iter.bi_size = iter->count; in __bio_iov_bvec_set()
1051 static int bio_iov_bvec_set(struct bio *bio, struct iov_iter *iter) in bio_iov_bvec_set() argument
[all …]
Dbounce.c78 struct bvec_iter iter; in copy_to_high_bio_irq() local
86 bio_for_each_segment(tovec, to, iter) { in copy_to_high_bio_irq()
142 struct bvec_iter iter; in bounce_clone_bio() local
187 bio_for_each_segment(bv, bio_src, iter) in bounce_clone_bio()
214 struct bvec_iter iter; in __blk_queue_bounce() local
219 bio_for_each_segment(from, *bio_orig, iter) { in __blk_queue_bounce()
Dbio-integrity.c160 struct blk_integrity_iter iter; in bio_integrity_process() local
166 iter.disk_name = bio->bi_bdev->bd_disk->disk_name; in bio_integrity_process()
167 iter.interval = 1 << bi->interval_exp; in bio_integrity_process()
168 iter.seed = proc_iter->bi_sector; in bio_integrity_process()
169 iter.prot_buf = bvec_virt(bip->bip_vec); in bio_integrity_process()
174 iter.data_buf = kaddr; in bio_integrity_process()
175 iter.data_size = bv.bv_len; in bio_integrity_process()
176 ret = proc_fn(&iter); in bio_integrity_process()
Dgenhd.c706 struct class_dev_iter iter; in printk_all_partitions() local
709 class_dev_iter_init(&iter, &block_class, NULL, &disk_type); in printk_all_partitions()
710 while ((dev = class_dev_iter_next(&iter))) { in printk_all_partitions()
748 class_dev_iter_exit(&iter); in printk_all_partitions()
756 struct class_dev_iter *iter; in disk_seqf_start() local
759 iter = kmalloc(sizeof(*iter), GFP_KERNEL); in disk_seqf_start()
760 if (!iter) in disk_seqf_start()
763 seqf->private = iter; in disk_seqf_start()
764 class_dev_iter_init(iter, &block_class, NULL, &disk_type); in disk_seqf_start()
766 dev = class_dev_iter_next(iter); in disk_seqf_start()
[all …]
Dblk-integrity.c32 struct bvec_iter iter; in blk_rq_count_integrity_sg() local
35 bio_for_each_integrity_vec(iv, bio, iter) { in blk_rq_count_integrity_sg()
74 struct bvec_iter iter; in blk_rq_map_integrity_sg() local
77 bio_for_each_integrity_vec(iv, bio, iter) { in blk_rq_map_integrity_sg()
364 static blk_status_t blk_integrity_nop_fn(struct blk_integrity_iter *iter) in blk_integrity_nop_fn() argument
Dblk-crypto-fallback.c160 struct bvec_iter iter; in blk_crypto_fallback_clone_bio() local
176 bio_for_each_segment(bv, bio_src, iter) in blk_crypto_fallback_clone_bio()
217 struct bvec_iter iter; in blk_crypto_fallback_split_bio_if_needed() local
219 bio_for_each_segment(bv, bio, iter) { in blk_crypto_fallback_split_bio_if_needed()
390 struct bvec_iter iter; in blk_crypto_fallback_decrypt_bio() local
418 __bio_for_each_segment(bv, bio, iter, f_ctx->crypt_iter) { in blk_crypto_fallback_decrypt_bio()
Dblk-merge.c252 struct bvec_iter iter; in blk_bio_segment_split() local
257 bio_for_each_bvec(bv, bio, iter) { in blk_bio_segment_split()
391 struct req_iterator iter; in blk_recalc_rq_segments() local
414 rq_for_each_bvec(bv, rq, iter) in blk_recalc_rq_segments()
507 struct bvec_iter iter; in __blk_bios_map_sg() local
512 bio_for_each_bvec(bvec, bio, iter) { in __blk_bios_map_sg()
Dsed-opal.c852 struct opal_resp_tok *iter; in response_parse() local
886 iter = resp->toks; in response_parse()
891 token_length = response_parse_tiny(iter, pos); in response_parse()
893 token_length = response_parse_short(iter, pos); in response_parse()
895 token_length = response_parse_medium(iter, pos); in response_parse()
897 token_length = response_parse_long(iter, pos); in response_parse()
899 token_length = response_parse_token(iter, pos); in response_parse()
906 iter++; in response_parse()
1073 struct opal_suspend_data *iter; in add_suspend_info() local
1075 list_for_each_entry(iter, &dev->unlk_lst, node) { in add_suspend_info()
[all …]
Dblk-crypto.c229 struct bvec_iter iter; in bio_crypt_check_alignment() local
232 bio_for_each_segment(bv, bio, iter) { in bio_crypt_check_alignment()
Dblk-cgroup.c861 struct class_dev_iter iter; in blkcg_fill_root_iostats() local
864 class_dev_iter_init(&iter, &block_class, NULL, &disk_type); in blkcg_fill_root_iostats()
865 while ((dev = class_dev_iter_next(&iter))) { in blkcg_fill_root_iostats()
Dblk-core.c1509 struct req_iterator iter; in rq_flush_dcache_pages() local
1512 rq_for_each_segment(bvec, rq, iter) in rq_flush_dcache_pages()