Lines Matching refs:qd_idx

125 	if (sh->qd_idx == sh->disks - 1)  in raid6_d0()
128 return sh->qd_idx + 1; in raid6_d0()
150 if (idx == sh->qd_idx) in raid6_idx_to_slot()
945 while (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in stripe_add_to_batch_list()
1638 if (i == sh->qd_idx || i == sh->pd_idx || in set_syndrome_sources()
1670 int qd_idx = sh->qd_idx; in ops_run_compute6_1() local
1698 if (target == qd_idx) { in ops_run_compute6_1()
1711 if (i == target || i == qd_idx) in ops_run_compute6_1()
1794 int qd_idx = sh->qd_idx; in ops_run_compute6_2() local
1797 if (target == qd_idx) in ops_run_compute6_2()
1804 if (i == data_target || i == qd_idx) in ops_run_compute6_2()
2003 int qd_idx = sh->qd_idx; in ops_complete_reconstruct() local
2019 if (dev->written || i == pd_idx || i == qd_idx) { in ops_complete_reconstruct()
2159 if (sh->pd_idx == i || sh->qd_idx == i) in ops_run_reconstruct6()
2167 set_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); in ops_run_reconstruct6()
2222 int qd_idx = sh->qd_idx; in ops_run_check_p() local
2242 if (i == pd_idx || i == qd_idx) in ops_run_check_p()
2853 if (sh->qd_idx >= 0 && sh->pd_idx == i) in raid5_end_read_request()
3000 int pd_idx, qd_idx; in raid5_compute_sector() local
3028 pd_idx = qd_idx = -1; in raid5_compute_sector()
3069 qd_idx = pd_idx + 1; in raid5_compute_sector()
3072 qd_idx = 0; in raid5_compute_sector()
3078 qd_idx = pd_idx + 1; in raid5_compute_sector()
3081 qd_idx = 0; in raid5_compute_sector()
3087 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
3092 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
3098 qd_idx = 1; in raid5_compute_sector()
3103 qd_idx = data_disks + 1; in raid5_compute_sector()
3111 qd_idx = pd_idx + 1; in raid5_compute_sector()
3114 qd_idx = 0; in raid5_compute_sector()
3127 qd_idx = pd_idx + 1; in raid5_compute_sector()
3130 qd_idx = 0; in raid5_compute_sector()
3139 qd_idx = (pd_idx + raid_disks - 1) % raid_disks; in raid5_compute_sector()
3149 qd_idx = raid_disks - 1; in raid5_compute_sector()
3156 qd_idx = raid_disks - 1; in raid5_compute_sector()
3162 qd_idx = raid_disks - 1; in raid5_compute_sector()
3168 qd_idx = raid_disks - 1; in raid5_compute_sector()
3174 qd_idx = raid_disks - 1; in raid5_compute_sector()
3185 sh->qd_idx = qd_idx; in raid5_compute_sector()
3242 if (i == sh->qd_idx) in raid5_compute_blocknr()
3307 || sh2.qd_idx != sh->qd_idx) { in raid5_compute_blocknr()
3375 int i, pd_idx = sh->pd_idx, qd_idx = sh->qd_idx, disks = sh->disks; in schedule_reconstruction() local
3424 (!(test_bit(R5_UPTODATE, &sh->dev[qd_idx].flags) || in schedule_reconstruction()
3425 test_bit(R5_Wantcompute, &sh->dev[qd_idx].flags)))); in schedule_reconstruction()
3429 if (i == pd_idx || i == qd_idx) in schedule_reconstruction()
3461 int qd_idx = sh->qd_idx; in schedule_reconstruction() local
3462 struct r5dev *dev = &sh->dev[qd_idx]; in schedule_reconstruction()
3901 s->failed_num[i] == sh->qd_idx) && in need_this_block()
3923 s->failed_num[i] != sh->qd_idx && in need_this_block()
3962 ((sh->qd_idx >= 0 && sh->pd_idx == disk_idx) || in fetch_block()
4128 if (sh->qd_idx >= 0) { in handle_stripe_clean_event()
4129 clear_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
4130 clear_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
4209 i == sh->pd_idx || i == sh->qd_idx || in handle_stripe_dirtying()
4221 i != sh->pd_idx && i != sh->qd_idx && in handle_stripe_dirtying()
4274 i == sh->pd_idx || i == sh->qd_idx || in handle_stripe_dirtying()
4299 i != sh->pd_idx && i != sh->qd_idx && in handle_stripe_dirtying()
4442 int qd_idx = sh->qd_idx; in handle_parity_checks6() local
4526 dev = &sh->dev[qd_idx]; in handle_parity_checks6()
4597 &sh->dev[qd_idx].flags); in handle_parity_checks6()
4598 *target = qd_idx; in handle_parity_checks6()
4625 if (i != sh->pd_idx && i != sh->qd_idx) { in handle_stripe_expansion()
4659 j != sh2->qd_idx && in handle_stripe_expansion()
5032 atomic_read(&sh->count), sh->pd_idx, sh->qd_idx, in handle_stripe()
5099 BUG_ON(sh->qd_idx >= 0 && in handle_stripe()
5100 !test_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags) && in handle_stripe()
5101 !test_bit(R5_Discard, &sh->dev[sh->qd_idx].flags)); in handle_stripe()
5105 (i == sh->pd_idx || i == sh->qd_idx || in handle_stripe()
5115 ((i == sh->pd_idx || i == sh->qd_idx) && in handle_stripe()
5131 qdev = &sh->dev[sh->qd_idx]; in handle_stripe()
5132 s.q_failed = (s.failed >= 1 && s.failed_num[0] == sh->qd_idx) in handle_stripe()
5133 || (s.failed >= 2 && s.failed_num[1] == sh->qd_idx) in handle_stripe()
5834 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
5848 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
5932 if (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in add_all_stripe_bios()
5952 if (dd_idx == sh->pd_idx || dd_idx == sh->qd_idx) in add_all_stripe_bios()
6376 j == sh->qd_idx) in reshape_request()