Lines Matching refs:qd_idx

119 	if (sh->qd_idx == sh->disks - 1)  in raid6_d0()
122 return sh->qd_idx + 1; in raid6_d0()
144 if (idx == sh->qd_idx) in raid6_idx_to_slot()
871 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()
2919 int pd_idx, qd_idx; in raid5_compute_sector() local
2947 pd_idx = qd_idx = -1; in raid5_compute_sector()
2988 qd_idx = pd_idx + 1; in raid5_compute_sector()
2991 qd_idx = 0; in raid5_compute_sector()
2997 qd_idx = pd_idx + 1; in raid5_compute_sector()
3000 qd_idx = 0; in raid5_compute_sector()
3006 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
3011 qd_idx = (pd_idx + 1) % raid_disks; in raid5_compute_sector()
3017 qd_idx = 1; in raid5_compute_sector()
3022 qd_idx = data_disks + 1; in raid5_compute_sector()
3030 qd_idx = pd_idx + 1; in raid5_compute_sector()
3033 qd_idx = 0; in raid5_compute_sector()
3046 qd_idx = pd_idx + 1; in raid5_compute_sector()
3049 qd_idx = 0; in raid5_compute_sector()
3058 qd_idx = (pd_idx + raid_disks - 1) % raid_disks; in raid5_compute_sector()
3068 qd_idx = raid_disks - 1; in raid5_compute_sector()
3075 qd_idx = raid_disks - 1; in raid5_compute_sector()
3081 qd_idx = raid_disks - 1; in raid5_compute_sector()
3087 qd_idx = raid_disks - 1; in raid5_compute_sector()
3093 qd_idx = raid_disks - 1; in raid5_compute_sector()
3104 sh->qd_idx = qd_idx; in raid5_compute_sector()
3161 if (i == sh->qd_idx) in raid5_compute_blocknr()
3226 || sh2.qd_idx != sh->qd_idx) { in raid5_compute_blocknr()
3294 int i, pd_idx = sh->pd_idx, qd_idx = sh->qd_idx, disks = sh->disks; in schedule_reconstruction() local
3343 (!(test_bit(R5_UPTODATE, &sh->dev[qd_idx].flags) || in schedule_reconstruction()
3344 test_bit(R5_Wantcompute, &sh->dev[qd_idx].flags)))); in schedule_reconstruction()
3348 if (i == pd_idx || i == qd_idx) in schedule_reconstruction()
3380 int qd_idx = sh->qd_idx; in schedule_reconstruction() local
3381 struct r5dev *dev = &sh->dev[qd_idx]; in schedule_reconstruction()
3796 s->failed_num[i] == sh->qd_idx) && in need_this_block()
3818 s->failed_num[i] != sh->qd_idx && in need_this_block()
3857 ((sh->qd_idx >= 0 && sh->pd_idx == disk_idx) || in fetch_block()
4023 if (sh->qd_idx >= 0) { in handle_stripe_clean_event()
4024 clear_bit(R5_Discard, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
4025 clear_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags); in handle_stripe_clean_event()
4104 i == sh->pd_idx || i == sh->qd_idx || in handle_stripe_dirtying()
4116 i != sh->pd_idx && i != sh->qd_idx && in handle_stripe_dirtying()
4169 i == sh->pd_idx || i == sh->qd_idx || in handle_stripe_dirtying()
4194 i != sh->pd_idx && i != sh->qd_idx && in handle_stripe_dirtying()
4337 int qd_idx = sh->qd_idx; in handle_parity_checks6() local
4421 dev = &sh->dev[qd_idx]; in handle_parity_checks6()
4492 &sh->dev[qd_idx].flags); in handle_parity_checks6()
4493 *target = qd_idx; in handle_parity_checks6()
4520 if (i != sh->pd_idx && i != sh->qd_idx) { in handle_stripe_expansion()
4553 j != sh2->qd_idx && in handle_stripe_expansion()
4926 atomic_read(&sh->count), sh->pd_idx, sh->qd_idx, in handle_stripe()
4993 BUG_ON(sh->qd_idx >= 0 && in handle_stripe()
4994 !test_bit(R5_UPTODATE, &sh->dev[sh->qd_idx].flags) && in handle_stripe()
4995 !test_bit(R5_Discard, &sh->dev[sh->qd_idx].flags)); in handle_stripe()
4999 (i == sh->pd_idx || i == sh->qd_idx || in handle_stripe()
5009 ((i == sh->pd_idx || i == sh->qd_idx) && in handle_stripe()
5025 qdev = &sh->dev[sh->qd_idx]; in handle_stripe()
5026 s.q_failed = (s.failed >= 1 && s.failed_num[0] == sh->qd_idx) in handle_stripe()
5027 || (s.failed >= 2 && s.failed_num[1] == sh->qd_idx) in handle_stripe()
5719 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
5733 if (d == sh->pd_idx || d == sh->qd_idx) in make_discard_request()
6113 j == sh->qd_idx) in reshape_request()