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()
929 if (i == sh->pd_idx || i == sh->qd_idx) in r5l_log_stripe()
948 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe()
950 r5l_append_payload_page(log, sh->dev[sh->pd_idx].page); in r5l_log_stripe()
954 sh->sector, sh->dev[sh->pd_idx].log_checksum, in r5l_log_stripe()
956 r5l_append_payload_page(log, sh->dev[sh->pd_idx].page); in r5l_log_stripe()
1005 if (sh->log_io || !test_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags) || in r5l_write_stripe()
1842 r5l_recovery_read_page(log, ctx, sh->dev[sh->pd_idx].page, log_offset); in r5l_recovery_load_parity()
1843 sh->dev[sh->pd_idx].log_checksum = in r5l_recovery_load_parity()
1845 set_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags); in r5l_recovery_load_parity()
1880 if (disk_index == sh->qd_idx || disk_index == sh->pd_idx) in r5l_recovery_replay_one_stripe()
2183 test_bit(R5_Wantwrite, &sh->dev[sh->pd_idx].flags)) { in r5c_recovery_analyze_meta_block()
2815 if (!log || !test_bit(R5_InJournal, &sh->dev[sh->pd_idx].flags)) in r5c_finish_stripe_write_out()
2819 clear_bit(R5_InJournal, &sh->dev[sh->pd_idx].flags); in r5c_finish_stripe_write_out()