Lines Matching refs:pd_idx
504 set_bit(R5_InJournal, &sh->dev[sh->pd_idx].flags); in r5c_finish_cache_stripe()
509 set_bit(R5_InJournal, &sh->dev[sh->pd_idx].flags); in r5c_finish_cache_stripe()
928 if (i == sh->pd_idx || i == sh->qd_idx) in r5l_log_stripe()
947 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe()
949 r5l_append_payload_page(log, sh->dev[sh->pd_idx].page); in r5l_log_stripe()
953 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe()
955 r5l_append_payload_page(log, sh->dev[sh->pd_idx].page); in r5l_log_stripe()
1004 if (sh->log_io || !test_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags) || in r5l_write_stripe()
1834 r5l_recovery_read_page(log, ctx, sh->dev[sh->pd_idx].page, log_offset); in r5l_recovery_load_parity()
1835 sh->dev[sh->pd_idx].log_checksum = in r5l_recovery_load_parity()
1837 set_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags); in r5l_recovery_load_parity()
1872 if (disk_index == sh->qd_idx || disk_index == sh->pd_idx) in r5l_recovery_replay_one_stripe()
2176 test_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags)) { in r5c_recovery_analyze_meta_block()
2811 if (!log || !test_bit(R5_InJournal, &sh->dev[sh->pd_idx].flags)) in r5c_finish_stripe_write_out()
2815 clear_bit(R5_InJournal, &sh->dev[sh->pd_idx].flags); in r5c_finish_stripe_write_out()