Lines Matching refs:qd_idx

118 	if (sh->qd_idx == sh->disks - 1)  in raid6_d0()
121 return sh->qd_idx + 1; in raid6_d0()
143 if (idx == sh->qd_idx) in raid6_idx_to_slot()
870 while (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in stripe_add_to_batch_list()
1567 if (i == sh->qd_idx || i == sh->pd_idx || in set_syndrome_sources()
1599 int qd_idx = sh->qd_idx; in ops_run_compute6_1() local
1627 if (target == qd_idx) { in ops_run_compute6_1()
1640 if (i == target || i == qd_idx) in ops_run_compute6_1()
1723 int qd_idx = sh->qd_idx; in ops_run_compute6_2() local
1726 if (target == qd_idx) in ops_run_compute6_2()
1733 if (i == data_target || i == qd_idx) in ops_run_compute6_2()
1932 int qd_idx = sh->qd_idx; in ops_complete_reconstruct() local
1948 if (dev->written || i == pd_idx || i == qd_idx) { in ops_complete_reconstruct()
2088 if (sh->pd_idx == i || sh->qd_idx == i) in ops_run_reconstruct6()
2096 set_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); in ops_run_reconstruct6()
2151 int qd_idx = sh->qd_idx; in ops_run_check_p() local
2171 if (i == pd_idx || i == qd_idx) in ops_run_check_p()
2770 if (sh->qd_idx >= 0 && sh->pd_idx == i) in raid5_end_read_request()
2922 int pd_idx, qd_idx; in raid5_compute_sector() local
2950 pd_idx = qd_idx = -1; in raid5_compute_sector()
2991 qd_idx = pd_idx + 1; in raid5_compute_sector()
2994 qd_idx = 0; in raid5_compute_sector()
3000 qd_idx = pd_idx + 1; in raid5_compute_sector()
3003 qd_idx = 0; in raid5_compute_sector()
3009 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
3014 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
3020 qd_idx = 1; in raid5_compute_sector()
3025 qd_idx = data_disks + 1; in raid5_compute_sector()
3033 qd_idx = pd_idx + 1; in raid5_compute_sector()
3036 qd_idx = 0; in raid5_compute_sector()
3049 qd_idx = pd_idx + 1; in raid5_compute_sector()
3052 qd_idx = 0; in raid5_compute_sector()
3061 qd_idx = (pd_idx + raid_disks - 1) % raid_disks; in raid5_compute_sector()
3071 qd_idx = raid_disks - 1; in raid5_compute_sector()
3078 qd_idx = raid_disks - 1; in raid5_compute_sector()
3084 qd_idx = raid_disks - 1; in raid5_compute_sector()
3090 qd_idx = raid_disks - 1; in raid5_compute_sector()
3096 qd_idx = raid_disks - 1; in raid5_compute_sector()
3107 sh->qd_idx = qd_idx; in raid5_compute_sector()
3164 if (i == sh->qd_idx) in raid5_compute_blocknr()
3229 || sh2.qd_idx != sh->qd_idx) { in raid5_compute_blocknr()
3297 int i, pd_idx = sh->pd_idx, qd_idx = sh->qd_idx, disks = sh->disks; in schedule_reconstruction() local
3346 (!(test_bit(R5_UPTODATE, &sh->dev[qd_idx].flags) || in schedule_reconstruction()
3347 test_bit(R5_Wantcompute, &sh->dev[qd_idx].flags)))); in schedule_reconstruction()
3351 if (i == pd_idx || i == qd_idx) in schedule_reconstruction()
3383 int qd_idx = sh->qd_idx; in schedule_reconstruction() local
3384 struct r5dev *dev = &sh->dev[qd_idx]; in schedule_reconstruction()
3799 s->failed_num[i] == sh->qd_idx) && in need_this_block()
3821 s->failed_num[i] != sh->qd_idx && in need_this_block()
3860 ((sh->qd_idx >= 0 && sh->pd_idx == disk_idx) || in fetch_block()
4026 if (sh->qd_idx >= 0) { in handle_stripe_clean_event()
4027 clear_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
4028 clear_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
4107 i == sh->pd_idx || i == sh->qd_idx || in handle_stripe_dirtying()
4119 i != sh->pd_idx && i != sh->qd_idx && in handle_stripe_dirtying()
4172 i == sh->pd_idx || i == sh->qd_idx || in handle_stripe_dirtying()
4197 i != sh->pd_idx && i != sh->qd_idx && in handle_stripe_dirtying()
4340 int qd_idx = sh->qd_idx; in handle_parity_checks6() local
4424 dev = &sh->dev[qd_idx]; in handle_parity_checks6()
4495 &sh->dev[qd_idx].flags); in handle_parity_checks6()
4496 *target = qd_idx; in handle_parity_checks6()
4523 if (i != sh->pd_idx && i != sh->qd_idx) { in handle_stripe_expansion()
4556 j != sh2->qd_idx && in handle_stripe_expansion()
4929 atomic_read(&sh->count), sh->pd_idx, sh->qd_idx, in handle_stripe()
4996 BUG_ON(sh->qd_idx >= 0 && in handle_stripe()
4997 !test_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags) && in handle_stripe()
4998 !test_bit(R5_Discard, &sh->dev[sh->qd_idx].flags)); in handle_stripe()
5002 (i == sh->pd_idx || i == sh->qd_idx || in handle_stripe()
5012 ((i == sh->pd_idx || i == sh->qd_idx) && in handle_stripe()
5028 qdev = &sh->dev[sh->qd_idx]; in handle_stripe()
5029 s.q_failed = (s.failed >= 1 && s.failed_num[0] == sh->qd_idx) in handle_stripe()
5030 || (s.failed >= 2 && s.failed_num[1] == sh->qd_idx) in handle_stripe()
5724 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
5738 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
6119 j == sh->qd_idx) in reshape_request()