Lines Matching refs:qd_idx

130 	if (sh->qd_idx == sh->disks - 1)  in raid6_d0()
133 return sh->qd_idx + 1; in raid6_d0()
155 if (idx == sh->qd_idx) in raid6_idx_to_slot()
955 while (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in stripe_add_to_batch_list()
1623 if (i == sh->qd_idx || i == sh->pd_idx || in set_syndrome_sources()
1655 int qd_idx = sh->qd_idx; in ops_run_compute6_1() local
1683 if (target == qd_idx) { in ops_run_compute6_1()
1696 if (i == target || i == qd_idx) in ops_run_compute6_1()
1779 int qd_idx = sh->qd_idx; in ops_run_compute6_2() local
1782 if (target == qd_idx) in ops_run_compute6_2()
1789 if (i == data_target || i == qd_idx) in ops_run_compute6_2()
1988 int qd_idx = sh->qd_idx; in ops_complete_reconstruct() local
2004 if (dev->written || i == pd_idx || i == qd_idx) { in ops_complete_reconstruct()
2144 if (sh->pd_idx == i || sh->qd_idx == i) in ops_run_reconstruct6()
2152 set_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); in ops_run_reconstruct6()
2207 int qd_idx = sh->qd_idx; in ops_run_check_p() local
2227 if (i == pd_idx || i == qd_idx) in ops_run_check_p()
2814 if (sh->qd_idx >= 0 && sh->pd_idx == i) in raid5_end_read_request()
2953 int pd_idx, qd_idx; in raid5_compute_sector() local
2981 pd_idx = qd_idx = -1; in raid5_compute_sector()
3022 qd_idx = pd_idx + 1; in raid5_compute_sector()
3025 qd_idx = 0; in raid5_compute_sector()
3031 qd_idx = pd_idx + 1; in raid5_compute_sector()
3034 qd_idx = 0; in raid5_compute_sector()
3040 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
3045 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
3051 qd_idx = 1; in raid5_compute_sector()
3056 qd_idx = data_disks + 1; in raid5_compute_sector()
3064 qd_idx = pd_idx + 1; in raid5_compute_sector()
3067 qd_idx = 0; in raid5_compute_sector()
3080 qd_idx = pd_idx + 1; in raid5_compute_sector()
3083 qd_idx = 0; in raid5_compute_sector()
3092 qd_idx = (pd_idx + raid_disks - 1) % raid_disks; in raid5_compute_sector()
3102 qd_idx = raid_disks - 1; in raid5_compute_sector()
3109 qd_idx = raid_disks - 1; in raid5_compute_sector()
3115 qd_idx = raid_disks - 1; in raid5_compute_sector()
3121 qd_idx = raid_disks - 1; in raid5_compute_sector()
3127 qd_idx = raid_disks - 1; in raid5_compute_sector()
3138 sh->qd_idx = qd_idx; in raid5_compute_sector()
3195 if (i == sh->qd_idx) in raid5_compute_blocknr()
3260 || sh2.qd_idx != sh->qd_idx) { in raid5_compute_blocknr()
3328 int i, pd_idx = sh->pd_idx, qd_idx = sh->qd_idx, disks = sh->disks; in schedule_reconstruction() local
3377 (!(test_bit(R5_UPTODATE, &sh->dev[qd_idx].flags) || in schedule_reconstruction()
3378 test_bit(R5_Wantcompute, &sh->dev[qd_idx].flags)))); in schedule_reconstruction()
3382 if (i == pd_idx || i == qd_idx) in schedule_reconstruction()
3414 int qd_idx = sh->qd_idx; in schedule_reconstruction() local
3415 struct r5dev *dev = &sh->dev[qd_idx]; in schedule_reconstruction()
3823 s->failed_num[i] == sh->qd_idx) && in need_this_block()
3845 s->failed_num[i] != sh->qd_idx && in need_this_block()
3884 ((sh->qd_idx >= 0 && sh->pd_idx == disk_idx) || in fetch_block()
4049 if (sh->qd_idx >= 0) { in handle_stripe_clean_event()
4050 clear_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
4051 clear_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
4137 i == sh->pd_idx || i == sh->qd_idx || in handle_stripe_dirtying()
4149 i != sh->pd_idx && i != sh->qd_idx && in handle_stripe_dirtying()
4201 i == sh->pd_idx || i == sh->qd_idx || in handle_stripe_dirtying()
4226 i != sh->pd_idx && i != sh->qd_idx && in handle_stripe_dirtying()
4369 int qd_idx = sh->qd_idx; in handle_parity_checks6() local
4453 dev = &sh->dev[qd_idx]; in handle_parity_checks6()
4523 &sh->dev[qd_idx].flags); in handle_parity_checks6()
4524 *target = qd_idx; in handle_parity_checks6()
4551 if (i != sh->pd_idx && i != sh->qd_idx) { in handle_stripe_expansion()
4585 j != sh2->qd_idx && in handle_stripe_expansion()
4955 atomic_read(&sh->count), sh->pd_idx, sh->qd_idx, in handle_stripe()
5023 BUG_ON(sh->qd_idx >= 0 && in handle_stripe()
5024 !test_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags) && in handle_stripe()
5025 !test_bit(R5_Discard, &sh->dev[sh->qd_idx].flags)); in handle_stripe()
5029 (i == sh->pd_idx || i == sh->qd_idx || in handle_stripe()
5039 ((i == sh->pd_idx || i == sh->qd_idx) && in handle_stripe()
5055 qdev = &sh->dev[sh->qd_idx]; in handle_stripe()
5056 s.q_failed = (s.failed >= 1 && s.failed_num[0] == sh->qd_idx) in handle_stripe()
5057 || (s.failed >= 2 && s.failed_num[1] == sh->qd_idx) in handle_stripe()
5734 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
5748 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
5794 if (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in stripe_ahead_of_reshape()
5824 if (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in add_all_stripe_bios()
5849 if (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in add_all_stripe_bios()
6077 while (dd_idx == sh.pd_idx || dd_idx == sh.qd_idx) in raid5_bio_lowest_chunk_sector()
6416 j == sh->qd_idx) in reshape_request()