Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 48) sorted by relevance

12

/block/
Dblk-cgroup-rwstat.c10 int i, ret; in blkg_rwstat_init() local
12 for (i = 0; i < BLKG_RWSTAT_NR; i++) { in blkg_rwstat_init()
13 ret = percpu_counter_init(&rwstat->cpu_cnt[i], 0, gfp); in blkg_rwstat_init()
15 while (--i >= 0) in blkg_rwstat_init()
16 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_init()
19 atomic64_set(&rwstat->aux_cnt[i], 0); in blkg_rwstat_init()
27 int i; in blkg_rwstat_exit() local
29 for (i = 0; i < BLKG_RWSTAT_NR; i++) in blkg_rwstat_exit()
30 percpu_counter_destroy(&rwstat->cpu_cnt[i]); in blkg_rwstat_exit()
54 int i; in __blkg_prfill_rwstat() local
[all …]
Dblk-cgroup-rwstat.h92 int i; in blkg_rwstat_read() local
94 for (i = 0; i < BLKG_RWSTAT_NR; i++) in blkg_rwstat_read()
95 result->cnt[i] = in blkg_rwstat_read()
96 percpu_counter_sum_positive(&rwstat->cpu_cnt[i]); in blkg_rwstat_read()
121 int i; in blkg_rwstat_reset() local
123 for (i = 0; i < BLKG_RWSTAT_NR; i++) { in blkg_rwstat_reset()
124 percpu_counter_set(&rwstat->cpu_cnt[i], 0); in blkg_rwstat_reset()
125 atomic64_set(&rwstat->aux_cnt[i], 0); in blkg_rwstat_reset()
140 int i; in blkg_rwstat_add_aux() local
142 for (i = 0; i < BLKG_RWSTAT_NR; i++) in blkg_rwstat_add_aux()
[all …]
Dblk-cgroup.c75 int i; in blkg_free() local
80 for (i = 0; i < BLKCG_MAX_POLS; i++) in blkg_free()
81 if (blkg->pd[i]) in blkg_free()
82 blkcg_policy[i]->pd_free_fn(blkg->pd[i]); in blkg_free()
155 int i, cpu; in blkg_alloc() local
180 for (i = 0; i < BLKCG_MAX_POLS; i++) { in blkg_alloc()
181 struct blkcg_policy *pol = blkcg_policy[i]; in blkg_alloc()
192 blkg->pd[i] = pd; in blkg_alloc()
194 pd->plid = i; in blkg_alloc()
237 int i, ret; in blkg_create() local
[all …]
Dblk-crypto-fallback.c149 int i; in blk_crypto_fallback_encrypt_endio() local
151 for (i = 0; i < enc_bio->bi_vcnt; i++) in blk_crypto_fallback_encrypt_endio()
152 mempool_free(enc_bio->bi_io_vec[i].bv_page, in blk_crypto_fallback_encrypt_endio()
214 unsigned int i = 0; in blk_crypto_split_bio_if_needed() local
221 if (++i == BIO_MAX_PAGES) in blk_crypto_split_bio_if_needed()
248 int i; in blk_crypto_dun_to_iv() local
250 for (i = 0; i < BLK_CRYPTO_DUN_ARRAY_SIZE; i++) in blk_crypto_dun_to_iv()
251 iv->dun[i] = cpu_to_le64(dun[i]); in blk_crypto_dun_to_iv()
272 unsigned int i, j; in blk_crypto_fallback_encrypt_bio() local
315 for (i = 0; i < enc_bio->bi_vcnt; i++) { in blk_crypto_fallback_encrypt_bio()
[all …]
Dkyber-iosched.c370 int i; in kyber_queue_data_alloc() local
385 for (i = 0; i < KYBER_NUM_DOMAINS; i++) { in kyber_queue_data_alloc()
386 WARN_ON(!kyber_depth[i]); in kyber_queue_data_alloc()
387 WARN_ON(!kyber_batch_size[i]); in kyber_queue_data_alloc()
388 ret = sbitmap_queue_init_node(&kqd->domain_tokens[i], in kyber_queue_data_alloc()
389 kyber_depth[i], -1, false, in kyber_queue_data_alloc()
392 while (--i >= 0) in kyber_queue_data_alloc()
393 sbitmap_queue_free(&kqd->domain_tokens[i]); in kyber_queue_data_alloc()
398 for (i = 0; i < KYBER_OTHER; i++) { in kyber_queue_data_alloc()
399 kqd->domain_p99[i] = -1; in kyber_queue_data_alloc()
[all …]
Dblk-crypto.c56 size_t i; in bio_crypt_ctx_init() local
71 for (i = 0; i < BLK_ENCRYPTION_MODE_MAX; i++) { in bio_crypt_ctx_init()
72 BUG_ON(blk_crypto_modes[i].keysize > BLK_CRYPTO_MAX_KEY_SIZE); in bio_crypt_ctx_init()
73 BUG_ON(blk_crypto_modes[i].ivsize > BLK_CRYPTO_MAX_IV_SIZE); in bio_crypt_ctx_init()
122 int i; in bio_crypt_dun_increment() local
124 for (i = 0; inc && i < BLK_CRYPTO_DUN_ARRAY_SIZE; i++) { in bio_crypt_dun_increment()
125 dun[i] += inc; in bio_crypt_dun_increment()
130 if (dun[i] < inc) in bio_crypt_dun_increment()
153 int i; in bio_crypt_dun_is_contiguous() local
156 for (i = 0; i < BLK_CRYPTO_DUN_ARRAY_SIZE; i++) { in bio_crypt_dun_is_contiguous()
[all …]
Dblk-mq.c227 unsigned int i; in blk_mq_quiesce_queue() local
232 queue_for_each_hw_ctx(q, hctx, i) { in blk_mq_quiesce_queue()
262 unsigned int i; in blk_mq_wake_waiters() local
264 queue_for_each_hw_ctx(q, hctx, i) in blk_mq_wake_waiters()
985 int i; in blk_mq_timeout_work() local
1014 queue_for_each_hw_ctx(q, hctx, i) { in blk_mq_timeout_work()
1352 int i; in blk_mq_release_budgets() local
1354 for (i = 0; i < nr_budgets; i++) in blk_mq_release_budgets()
1743 int i; in blk_mq_run_hw_queues() local
1748 queue_for_each_hw_ctx(q, hctx, i) { in blk_mq_run_hw_queues()
[all …]
Dblk-mq-sysfs.c160 unsigned int i, first = 1; in blk_mq_hw_sysfs_cpus_show() local
163 for_each_cpu(i, hctx->cpumask) { in blk_mq_hw_sysfs_cpus_show()
165 ret = snprintf(pos + page, size - pos, "%u", i); in blk_mq_hw_sysfs_cpus_show()
167 ret = snprintf(pos + page, size - pos, ", %u", i); in blk_mq_hw_sysfs_cpus_show()
230 int i; in blk_mq_unregister_hctx() local
235 hctx_for_each_ctx(hctx, ctx, i) in blk_mq_unregister_hctx()
245 int i, j, ret; in blk_mq_register_hctx() local
254 hctx_for_each_ctx(hctx, ctx, i) { in blk_mq_register_hctx()
263 if (j < i) in blk_mq_register_hctx()
273 int i; in blk_mq_unregister_dev() local
[all …]
Dblk-mq-debugfs.c79 int i; in blk_flags_show() local
81 for (i = 0; i < sizeof(flags) * BITS_PER_BYTE; i++) { in blk_flags_show()
82 if (!(flags & BIT(i))) in blk_flags_show()
87 if (i < flag_name_count && flag_name[i]) in blk_flags_show()
88 seq_puts(m, flag_name[i]); in blk_flags_show()
90 seq_printf(m, "%d", i); in blk_flags_show()
187 int i; in queue_write_hint_show() local
189 for (i = 0; i < BLK_MAX_WRITE_HINTS; i++) in queue_write_hint_show()
190 seq_printf(m, "hint%d: %llu\n", i, q->write_hints[i]); in queue_write_hint_show()
199 int i; in queue_write_hint_store() local
[all …]
Dkeyslot-manager.c84 unsigned int i; in blk_ksm_init() local
125 for (i = 0; i < slot_hashtable_size; i++) in blk_ksm_init()
126 INIT_HLIST_HEAD(&ksm->slot_hashtable[i]); in blk_ksm_init()
515 unsigned int i; in blk_ksm_intersect_modes() local
520 for (i = 0; i < ARRAY_SIZE(child->crypto_modes_supported); in blk_ksm_intersect_modes()
521 i++) { in blk_ksm_intersect_modes()
522 parent->crypto_modes_supported[i] &= in blk_ksm_intersect_modes()
523 child->crypto_modes_supported[i]; in blk_ksm_intersect_modes()
550 int i; in blk_ksm_is_superset() local
558 for (i = 0; i < ARRAY_SIZE(ksm_superset->crypto_modes_supported); i++) { in blk_ksm_is_superset()
[all …]
Dblk-map.c136 int i = 0, ret; in bio_copy_user_iov() local
165 i = map_data->offset / PAGE_SIZE; in bio_copy_user_iov()
176 if (i == map_data->nr_entries * nr_pages) { in bio_copy_user_iov()
181 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov()
182 page += (i % nr_pages); in bio_copy_user_iov()
184 i++; in bio_copy_user_iov()
356 unsigned long i, len = 0; in bio_invalidate_vmalloc_pages() local
358 for (i = 0; i < bio->bi_vcnt; i++) in bio_invalidate_vmalloc_pages()
359 len += bio->bi_io_vec[i].bv_len; in bio_invalidate_vmalloc_pages()
390 int offset, i; in bio_map_kern() local
[all …]
Dblk-mq-debugfs-zoned.c12 unsigned int i; in queue_zone_wlock_show() local
17 for (i = 0; i < q->nr_zones; i++) in queue_zone_wlock_show()
18 if (test_bit(i, q->seq_zones_wlock)) in queue_zone_wlock_show()
19 seq_printf(m, "%u\n", i); in queue_zone_wlock_show()
Dbadblocks.c131 int i; in badblocks_update_acked() local
137 for (i = 0; i < bb->count ; i++) { in badblocks_update_acked()
138 if (!BB_ACK(p[i])) { in badblocks_update_acked()
442 int i; in ack_all_badblocks() local
444 for (i = 0; i < bb->count ; i++) { in ack_all_badblocks()
445 if (!BB_ACK(p[i])) { in ack_all_badblocks()
446 sector_t start = BB_OFFSET(p[i]); in ack_all_badblocks()
447 int len = BB_LEN(p[i]); in ack_all_badblocks()
449 p[i] = BB_MAKE(start, len, 1); in ack_all_badblocks()
470 int i; in badblocks_show() local
[all …]
Dbio.c71 unsigned int i, entry = -1; in bio_find_or_create_slab() local
75 i = 0; in bio_find_or_create_slab()
76 while (i < bio_slab_nr) { in bio_find_or_create_slab()
77 bslab = &bio_slabs[i]; in bio_find_or_create_slab()
80 entry = i; in bio_find_or_create_slab()
86 i++; in bio_find_or_create_slab()
124 unsigned int i; in bio_put_slab() local
128 for (i = 0; i < bio_slab_nr; i++) { in bio_put_slab()
129 if (bs->bio_slab == bio_slabs[i].slab) { in bio_put_slab()
130 bslab = &bio_slabs[i]; in bio_put_slab()
[all …]
Dblk-wbt.h80 unsigned int i, ret = 0; in wbt_inflight() local
82 for (i = 0; i < WBT_NUM_RWQ; i++) in wbt_inflight()
83 ret += atomic_read(&rwb->rq_wait[i].inflight); in wbt_inflight()
Dblk-wbt.c118 int i; in rwb_wake_all() local
120 for (i = 0; i < WBT_NUM_RWQ; i++) { in rwb_wake_all()
121 struct rq_wait *rqw = &rwb->rq_wait[i]; in rwb_wake_all()
746 int i; in wbt_inflight_show() local
748 for (i = 0; i < WBT_NUM_RWQ; i++) in wbt_inflight_show()
749 seq_printf(m, "%d: inflight %d\n", i, in wbt_inflight_show()
750 atomic_read(&rwb->rq_wait[i].inflight)); in wbt_inflight_show()
820 int i; in wbt_init() local
832 for (i = 0; i < WBT_NUM_RWQ; i++) in wbt_init()
833 rq_wait_init(&rwb->rq_wait[i]); in wbt_init()
/block/partitions/
Defi.c177 int i, part = 0, ret = 0; /* invalid by default */ in is_pmbr_valid() local
182 for (i = 0; i < 4; i++) { in is_pmbr_valid()
183 ret = pmbr_part_valid(&mbr->partition_record[i]); in is_pmbr_valid()
185 part = i; in is_pmbr_valid()
198 for (i = 0; i < 4; i++) in is_pmbr_valid()
199 if ((mbr->partition_record[i].os_type != in is_pmbr_valid()
201 (mbr->partition_record[i].os_type != 0x00)) in is_pmbr_valid()
670 unsigned int i = 0; in utf16_le_to_7bit() local
674 while (i < size) { in utf16_le_to_7bit()
675 u8 c = le16_to_cpu(in[i]) & 0xff; in utf16_le_to_7bit()
[all …]
Dacorn.c330 int i; in valid_ics_sector() local
332 for (i = 0, sum = 0x50617274; i < 508; i++) in valid_ics_sector()
333 sum += data[i]; in valid_ics_sector()
421 int i; in valid_ptec_sector() local
430 for (i = 0; i < 511; i++) in valid_ptec_sector()
431 checksum += data[i]; in valid_ptec_sector()
452 int i; in adfspart_check_POWERTEC() local
465 for (i = 0, p = (const struct ptec_part *)data; i < 12; i++, p++) { in adfspart_check_POWERTEC()
514 int i, slot = 1; in adfspart_check_EESOX() local
523 for (i = 0; i < 256; i++) in adfspart_check_EESOX()
[all …]
Daix.c223 int i; in aix_partition() local
229 for (i = 0; foundlvs < numlvs && i < state->limit; i += 1) { in aix_partition()
230 lvip[i].pps_per_lv = be16_to_cpu(p[i].num_lps); in aix_partition()
231 if (lvip[i].pps_per_lv) in aix_partition()
242 int i; in aix_partition() local
247 for (i = 0; i < numpps; i += 1) { in aix_partition()
248 struct ppe *p = pvd->ppe + i; in aix_partition()
273 (i + 1 - lp_ix) * pp_blocks_size + psn_part1, in aix_partition()
284 for (i = 0; i < state->limit; i += 1) in aix_partition()
285 if (lvip[i].pps_found && !lvip[i].lv_is_contiguous) { in aix_partition()
[all …]
Dultrix.c14 int i; in ultrix_partition() local
36 for (i=0; i<8; i++) in ultrix_partition()
37 if (label->pt_part[i].pi_nblocks) in ultrix_partition()
38 put_partition(state, i+1, in ultrix_partition()
39 label->pt_part[i].pi_blkoff, in ultrix_partition()
40 label->pt_part[i].pi_nblocks); in ultrix_partition()
Dmac.c25 int i; in mac_fix_string() local
27 for (i = len - 1; i >= 0 && stg[i] == ' '; i--) in mac_fix_string()
28 stg[i] = 0; in mac_fix_string()
110 int i, l; in mac_partition() local
116 for (i = 0; i <= l - 4; ++i) { in mac_partition()
117 if (strncasecmp(part->name + i, "root", in mac_partition()
Dcmdline.c89 int i; in cmdline_parts_verifier() local
93 for (i = slot+1; i < state->limit && state->parts[i].has_info; in cmdline_parts_verifier()
94 i++) { in cmdline_parts_verifier()
97 state->parts[i].from, in cmdline_parts_verifier()
98 state->parts[i].size)) { in cmdline_parts_verifier()
108 state->parts[i].info.volname, in cmdline_parts_verifier()
109 (u64)state->parts[i].from << 9, in cmdline_parts_verifier()
110 (u64)state->parts[i].size << 9); in cmdline_parts_verifier()
Dsysv68.c51 int i, slices; in sysv68_partition() local
69 i = be32_to_cpu(b->dk_ios.ios_slcblk); in sysv68_partition()
72 data = read_part_sector(state, i, &sect); in sysv68_partition()
80 for (i = 0; i < slices; i++, slice++) { in sysv68_partition()
87 snprintf(tmp, sizeof(tmp), "(s%u)", i); in sysv68_partition()
Dmsdos.c141 int i; in parse_extended() local
172 for (i = 0; i < 4; i++, p++) { in parse_extended()
183 if (i >= 2) { in parse_extended()
208 for (i = 0; i < 4; i++, p++) in parse_extended()
211 if (i == 4) in parse_extended()
255 int i; in parse_solaris_x86() local
282 for (i = 0; i < max_nparts && state->next < state->limit; i++) { in parse_solaris_x86()
283 struct solaris_x86_slice *s = &v->v_slice[i]; in parse_solaris_x86()
288 snprintf(tmp, sizeof(tmp), " [s%d]", i); in parse_solaris_x86()
535 int i; in parse_minix() local
[all …]
Dsun.c23 int i; in sun_partition() local
109 for (i = 0; i < nparts; i++, p++) { in sun_partition()
119 if (be16_to_cpu(label->vtoc.infos[i].id) == LINUX_RAID_PARTITION) in sun_partition()
121 else if (be16_to_cpu(label->vtoc.infos[i].id) == SUN_WHOLE_DISK) in sun_partition()

12