| /block/ |
| A D | blk-cgroup-rwstat.h | 93 int i; in blkg_rwstat_read() local 95 for (i = 0; i < BLKG_RWSTAT_NR; i++) in blkg_rwstat_read() 96 result->cnt[i] = in blkg_rwstat_read() 122 int i; in blkg_rwstat_reset() local 124 for (i = 0; i < BLKG_RWSTAT_NR; i++) { in blkg_rwstat_reset() 141 int i; in blkg_rwstat_add_aux() local 143 for (i = 0; i < BLKG_RWSTAT_NR; i++) in blkg_rwstat_add_aux() 144 sum[i] = percpu_counter_sum_positive(&from->cpu_cnt[i]); in blkg_rwstat_add_aux() 146 for (i = 0; i < BLKG_RWSTAT_NR; i++) in blkg_rwstat_add_aux() 147 atomic64_add(sum[i] + atomic64_read(&from->aux_cnt[i]), in blkg_rwstat_add_aux() [all …]
|
| A D | blk-ia-ranges.c | 112 int i, ret; in disk_register_independent_access_ranges() local 133 for (i = 0; i < iars->nr_ia_ranges; i++) { in disk_register_independent_access_ranges() 155 int i; in disk_unregister_independent_access_ranges() local 163 for (i = 0; i < iars->nr_ia_ranges; i++) in disk_unregister_independent_access_ranges() 179 int i; in disk_find_ia_range() local 181 for (i = 0; i < iars->nr_ia_ranges; i++) { in disk_find_ia_range() 197 int i; in disk_check_ia_ranges() local 207 for (i = 0; i < iars->nr_ia_ranges; i++) { in disk_check_ia_ranges() 235 int i; in disk_ia_ranges_changed() local 243 for (i = 0; i < old->nr_ia_ranges; i++) { in disk_ia_ranges_changed() [all …]
|
| A D | blk-cgroup-rwstat.c | 10 int i, ret; in blkg_rwstat_init() local 16 for (i = 0; i < BLKG_RWSTAT_NR; i++) in blkg_rwstat_init() 17 atomic64_set(&rwstat->aux_cnt[i], 0); in blkg_rwstat_init() 48 int i; in __blkg_prfill_rwstat() local 53 for (i = 0; i < BLKG_RWSTAT_NR; i++) in __blkg_prfill_rwstat() 54 seq_printf(sf, "%s %s %llu\n", dname, rwstr[i], in __blkg_prfill_rwstat() 55 rwstat->cnt[i]); in __blkg_prfill_rwstat() 102 unsigned int i; in blkg_rwstat_recursive_sum() local 119 for (i = 0; i < BLKG_RWSTAT_NR; i++) in blkg_rwstat_recursive_sum() 120 sum->cnt[i] += blkg_rwstat_read_counter(rwstat, i); in blkg_rwstat_recursive_sum()
|
| A D | blk-cgroup.c | 134 for (i = 0; i < BLKCG_MAX_POLS; i++) in blkg_free_workfn() 338 for (i = 0; i < BLKCG_MAX_POLS; i++) { in blkg_alloc() 416 for (i = 0; i < BLKCG_MAX_POLS; i++) { in blkg_create() 430 for (i = 0; i < BLKCG_MAX_POLS; i++) { in blkg_create() 545 for (i = 0; i < BLKCG_MAX_POLS; i++) { in blkg_destroy() 611 for (i = 0; i < BLKCG_MAX_POLS; i++) { in blkg_destroy_all() 626 for (i = 0; i < BLKG_IOSTAT_NR; i++) { in blkg_iostat_set() 673 for (i = 0; i < BLKCG_MAX_POLS; i++) { in blkcg_reset_stats() 1417 for (i = 0; i < BLKCG_MAX_POLS; i++) in blkcg_css_free() 1481 for (i--; i >= 0; i--) in blkcg_css_alloc() [all …]
|
| A D | kyber-iosched.c | 358 int i; in kyber_queue_data_alloc() local 374 for (i = 0; i < KYBER_NUM_DOMAINS; i++) { in kyber_queue_data_alloc() 387 for (i = 0; i < KYBER_OTHER; i++) { in kyber_queue_data_alloc() 428 for (i = 0; i < KYBER_NUM_DOMAINS; i++) in kyber_exit_sched() 439 for (i = 0; i < KYBER_NUM_DOMAINS; i++) in kyber_ctx_queue_init() 467 for (i = 0; i < hctx->nr_ctx; i++) in kyber_init_hctx() 470 for (i = 0; i < KYBER_NUM_DOMAINS; i++) { in kyber_init_hctx() 482 for (i = 0; i < KYBER_NUM_DOMAINS; i++) { in kyber_init_hctx() 512 for (i = 0; i < KYBER_NUM_DOMAINS; i++) in kyber_exit_hctx() 820 for (i = 0; i < KYBER_NUM_DOMAINS; i++) { in kyber_dispatch_request() [all …]
|
| A D | blk-crypto-fallback.c | 147 int i; in blk_crypto_fallback_encrypt_endio() local 149 for (i = 0; i < enc_bio->bi_vcnt; i++) in blk_crypto_fallback_encrypt_endio() 250 int i; in blk_crypto_dun_to_iv() local 252 for (i = 0; i < BLK_CRYPTO_DUN_ARRAY_SIZE; i++) in blk_crypto_dun_to_iv() 253 iv->dun[i] = cpu_to_le64(dun[i]); in blk_crypto_dun_to_iv() 318 for (i = 0; i < enc_bio->bi_vcnt; i++) { in blk_crypto_fallback_encrypt_bio() 425 for (i = 0; i < bv.bv_len; i += data_unit_size) { in blk_crypto_fallback_decrypt_bio() 537 int i; in blk_crypto_fallback_init() local 568 for (i = 0; i < BLK_ENCRYPTION_MODE_MAX; i++) in blk_crypto_fallback_init() 647 for (i = 0; i < blk_crypto_num_keyslots; i++) { in blk_crypto_fallback_start_using_mode() [all …]
|
| A D | blk-mq-sched.c | 381 unsigned long i; in blk_mq_sched_tags_teardown() local 393 unsigned long i; in blk_mq_sched_reg_debugfs() local 405 unsigned long i; in blk_mq_sched_unreg_debugfs() local 417 unsigned long i; in blk_mq_free_sched_tags() local 423 for (i = 0; i < et->nr_hw_queues; i++) in blk_mq_free_sched_tags() 424 blk_mq_free_map_and_rqs(set, et->tags[i], i); in blk_mq_free_sched_tags() 460 int i; in blk_mq_alloc_sched_tags() local 489 for (i = 0; i < et->nr_hw_queues; i++) { in blk_mq_alloc_sched_tags() 490 et->tags[i] = blk_mq_alloc_map_and_rqs(set, i, in blk_mq_alloc_sched_tags() 499 while (--i >= 0) in blk_mq_alloc_sched_tags() [all …]
|
| A D | blk-mq-sysfs.c | 85 unsigned int i, first = 1; in blk_mq_hw_sysfs_cpus_show() local 88 for_each_cpu(i, hctx->cpumask) { in blk_mq_hw_sysfs_cpus_show() 147 int i; in blk_mq_unregister_hctx() local 152 hctx_for_each_ctx(hctx, ctx, i) in blk_mq_unregister_hctx() 162 int i, j, ret; in blk_mq_register_hctx() local 180 if (j < i) in blk_mq_register_hctx() 223 unsigned long i, j; in blk_mq_sysfs_register() local 243 if (j < i) in blk_mq_sysfs_register() 257 unsigned long i; in blk_mq_sysfs_unregister() local 271 unsigned long i; in blk_mq_sysfs_unregister_hctxs() local [all …]
|
| A D | blk-crypto.c | 69 size_t i; in bio_crypt_ctx_init() local 87 for (i = 0; i < BLK_ENCRYPTION_MODE_MAX; i++) { in bio_crypt_ctx_init() 88 BUG_ON(blk_crypto_modes[i].keysize > in bio_crypt_ctx_init() 91 blk_crypto_modes[i].keysize); in bio_crypt_ctx_init() 139 int i; in bio_crypt_dun_increment() local 141 for (i = 0; inc && i < BLK_CRYPTO_DUN_ARRAY_SIZE; i++) { in bio_crypt_dun_increment() 142 dun[i] += inc; in bio_crypt_dun_increment() 147 if (dun[i] < inc) in bio_crypt_dun_increment() 170 int i; in bio_crypt_dun_is_contiguous() local 173 for (i = 0; i < BLK_CRYPTO_DUN_ARRAY_SIZE; i++) { in bio_crypt_dun_is_contiguous() [all …]
|
| A D | blk-mq.c | 466 for (i = 0; tag_mask; i++) { in __blk_mq_alloc_requests_batch() 3432 for (i = 0; i < drv_tags->nr_tags; i++) { in blk_mq_clear_rq_mapping() 3470 for (i = 0; i < tags->nr_tags; i++) { in blk_mq_free_rqs() 3509 for (i = 0; i < set->nr_maps; i++) { in hctx_idx_to_type() 3910 for (i = 0; i < queue_depth; i++) in blk_mq_clear_flush_rq_mapping() 4525 for (i = 0; i < set->nr_hw_queues; i++) { in __blk_mq_realloc_hw_ctxs() 4646 for (i = 0; i < set->nr_hw_queues; i++) { in __blk_mq_alloc_rq_maps() 4728 for (i = 0; i < set->nr_maps; i++) in blk_mq_update_queue_map() 4841 for (i = 0; i < set->nr_maps; i++) { in blk_mq_alloc_tag_set() 4862 for (i = 0; i < set->nr_maps; i++) { in blk_mq_alloc_tag_set() [all …]
|
| A D | blk-crypto-profile.c | 78 unsigned int i; in blk_crypto_profile_init() local 128 for (i = 0; i < slot_hashtable_size; i++) in blk_crypto_profile_init() 129 INIT_HLIST_HEAD(&profile->slot_hashtable[i]); in blk_crypto_profile_init() 580 unsigned int i; in blk_crypto_intersect_capabilities() local 585 for (i = 0; i < ARRAY_SIZE(child->modes_supported); i++) in blk_crypto_intersect_capabilities() 586 parent->modes_supported[i] &= child->modes_supported[i]; in blk_crypto_intersect_capabilities() 608 int i; in blk_crypto_has_capabilities() local 616 for (i = 0; i < ARRAY_SIZE(target->modes_supported); i++) { in blk_crypto_has_capabilities() 617 if (reference->modes_supported[i] & ~target->modes_supported[i]) in blk_crypto_has_capabilities()
|
| A D | blk-map.c | 137 int i = 0, ret; in bio_copy_user_iov() local 164 i = map_data->offset / PAGE_SIZE; in bio_copy_user_iov() 181 page += (i % nr_pages); in bio_copy_user_iov() 183 i++; in bio_copy_user_iov() 304 unsigned long i, len = 0; in bio_invalidate_vmalloc_pages() local 306 for (i = 0; i < bio->bi_vcnt; i++) in bio_invalidate_vmalloc_pages() 307 len += bio->bi_io_vec[i].bv_len; in bio_invalidate_vmalloc_pages() 515 struct iov_iter i; in blk_rq_map_user_iov() local 539 i = *iter; in blk_rq_map_user_iov() 552 } while (iov_iter_count(&i)); in blk_rq_map_user_iov() [all …]
|
| A D | blk-wbt.c | 186 int i; in rwb_wake_all() local 188 for (i = 0; i < WBT_NUM_RWQ; i++) { in rwb_wake_all() 189 struct rq_wait *rqw = &rwb->rq_wait[i]; in rwb_wake_all() 290 unsigned int i, ret = 0; in wbt_inflight() local 292 for (i = 0; i < WBT_NUM_RWQ; i++) in wbt_inflight() 822 int i; in wbt_inflight_show() local 824 for (i = 0; i < WBT_NUM_RWQ; i++) in wbt_inflight_show() 825 seq_printf(m, "%d: inflight %d\n", i, in wbt_inflight_show() 897 int i; in wbt_init() local 910 for (i = 0; i < WBT_NUM_RWQ; i++) in wbt_init() [all …]
|
| A D | disk-events.c | 174 int nr_events = 0, i; in disk_event_uevent() local 176 for (i = 0; i < ARRAY_SIZE(disk_uevents); i++) in disk_event_uevent() 177 if (events & disk->events & (1 << i)) in disk_event_uevent() 178 envp[nr_events++] = disk_uevents[i]; in disk_event_uevent() 328 int i; in __disk_events_show() local 330 for (i = 0; i < ARRAY_SIZE(disk_events_strs); i++) in __disk_events_show() 331 if (events & (1 << i)) { in __disk_events_show() 333 delim, disk_events_strs[i]); in __disk_events_show()
|
| A D | t10-pi.c | 41 unsigned int i; in t10_pi_generate() local 43 for (i = 0 ; i < iter->data_size ; i += iter->interval) { in t10_pi_generate() 68 unsigned int i; in t10_pi_verify() local 70 for (i = 0 ; i < iter->data_size ; i += iter->interval) { in t10_pi_verify() 220 unsigned int i; in ext_pi_crc64_generate() local 222 for (i = 0 ; i < iter->data_size ; i += iter->interval) { in ext_pi_crc64_generate() 253 unsigned int i; in ext_pi_crc64_verify() local 255 for (i = 0; i < iter->data_size; i += iter->interval) { in ext_pi_crc64_verify()
|
| A D | badblocks.c | 797 int i; in badblocks_update_acked() local 802 for (i = 0; i < bb->count ; i++) { in badblocks_update_acked() 803 if (!BB_ACK(p[i])) { in badblocks_update_acked() 1384 int i; in ack_all_badblocks() local 1386 for (i = 0; i < bb->count ; i++) { in ack_all_badblocks() 1387 if (!BB_ACK(p[i])) { in ack_all_badblocks() 1395 for (i = 0; i < bb->count ; i++) in ack_all_badblocks() 1417 int i; in badblocks_show() local 1428 i = 0; in badblocks_show() 1433 int ack = BB_ACK(p[i]); in badblocks_show() [all …]
|
| A D | bio-integrity.c | 71 int i; in bio_integrity_unpin_bvec() local 73 for (i = 0; i < nr_vecs; i++) in bio_integrity_unpin_bvec() 74 unpin_user_page(bv[i].bv_page); in bio_integrity_unpin_bvec() 236 int i, j; in bvec_from_pages() local 238 for (i = 0; i < nr_vecs; i = j) { in bvec_from_pages() 240 struct folio *folio = page_folio(pages[i]); in bvec_from_pages() 243 for (j = i + 1; j < nr_vecs; j++) { in bvec_from_pages() 254 bvec_set_page(&bvec[nr_bvecs], pages[i], size, offset); in bvec_from_pages()
|
| /block/partitions/ |
| A D | efi.c | 180 for (i = 0; i < 4; i++) { in is_pmbr_valid() 183 part = i; in is_pmbr_valid() 196 for (i = 0; i < 4; i++) in is_pmbr_valid() 680 unsigned int i = 0; in utf16_le_to_7bit() local 684 while (i < size) { in utf16_le_to_7bit() 685 u8 c = le16_to_cpu(in[i]) & 0x7f; in utf16_le_to_7bit() 689 out[i] = c; in utf16_le_to_7bit() 690 i++; in utf16_le_to_7bit() 717 u32 i; in efi_partition() local 728 for (i = 0; i < le32_to_cpu(gpt->num_partition_entries) && i < state->limit-1; i++) { in efi_partition() [all …]
|
| A D | acorn.c | 330 int i; in valid_ics_sector() local 332 for (i = 0, sum = 0x50617274; i < 508; i++) in valid_ics_sector() 421 int i; in valid_ptec_sector() local 430 for (i = 0; i < 511; 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() 523 for (i = 0; i < 256; i++) in adfspart_check_EESOX() 524 buffer[i] = data[i] ^ eesox_name[i & 15]; in adfspart_check_EESOX() 528 for (i = 0, p = (struct eesox_part *)buffer; i < 8; i++, p++) { in adfspart_check_EESOX() 535 if (i) in adfspart_check_EESOX() [all …]
|
| A D | aix.c | 207 int i; in aix_partition() local 213 for (i = 0; foundlvs < numlvs && i < state->limit; i += 1) { in aix_partition() 214 lvip[i].pps_per_lv = be16_to_cpu(p[i].num_lps); in aix_partition() 215 if (lvip[i].pps_per_lv) in aix_partition() 226 int i; in aix_partition() local 231 for (i = 0; i < numpps; i += 1) { in aix_partition() 232 struct ppe *p = pvd->ppe + i; in aix_partition() 268 for (i = 0; i < state->limit; i += 1) in aix_partition() 269 if (lvip[i].pps_found && !lvip[i].lv_is_contiguous) { in aix_partition() 272 snprintf(tmp, sizeof(tmp), "%s", n[i].name); in aix_partition() [all …]
|
| A D | ultrix.c | 14 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()
|
| A D | mac.c | 26 int i; in mac_fix_string() local 28 for (i = len - 1; i >= 0 && stg[i] == ' '; i--) in mac_fix_string() 29 stg[i] = 0; in mac_fix_string() 124 int i, l; in mac_partition() local 130 for (i = 0; i <= l - 4; ++i) { in mac_partition() 131 if (strncasecmp(part->name + i, "root", in mac_partition()
|
| A D | sysv68.c | 51 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, §); 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()
|
| A D | ibm.c | 95 int i; in get_label_by_type() local 97 for (i = 0; i < ARRAY_SIZE(dasd_vollabels); i++) { in get_label_by_type() 98 if (!memcmp(type, dasd_vollabels[i].type, DASD_VOL_TYPE_LEN)) in get_label_by_type() 99 return dasd_vollabels[i].idx; in get_label_by_type() 115 int i, testcount; in find_label() local 140 for (i = 0; i < testcount; ++i) { in find_label() 141 data = read_part_sector(state, testsect[i], §); in find_label() 152 *labelsect = testsect[i]; in find_label() 158 *labelsect = testsect[i]; in find_label()
|
| A D | msdos.c | 141 int i; in parse_extended() local 173 for (i = 0; i < 4; i++, p++) { in parse_extended() 184 if (i >= 2) { in parse_extended() 209 for (i = 0; i < 4; i++, p++) in parse_extended() 212 if (i == 4) in parse_extended() 256 int i; in parse_solaris_x86() local 283 for (i = 0; i < max_nparts && state->next < state->limit; i++) { in parse_solaris_x86() 284 struct solaris_x86_slice *s = &v->v_slice[i]; in parse_solaris_x86() 289 snprintf(tmp, sizeof(tmp), " [s%d]", i); in parse_solaris_x86() 536 int i; in parse_minix() local [all …]
|