Lines Matching refs:phase
44 enum pmic_wrap_phase_id phase; member
56 .phase = NR_PMIC_WRAP_PHASE,
115 void mt_spm_pmic_wrap_set_phase(enum pmic_wrap_phase_id phase) in mt_spm_pmic_wrap_set_phase() argument
119 if (phase >= NR_PMIC_WRAP_PHASE) in mt_spm_pmic_wrap_set_phase()
122 if (pw.phase == phase) in mt_spm_pmic_wrap_set_phase()
128 pw.phase = phase; in mt_spm_pmic_wrap_set_phase()
132 for (idx = 0; idx < pw.set[phase].nr_idx; idx++) { in mt_spm_pmic_wrap_set_phase()
133 addr = pw.set[phase]._[idx].cmd_addr << SPM_DATA_SHIFT; in mt_spm_pmic_wrap_set_phase()
134 data = pw.set[phase]._[idx].cmd_wdata; in mt_spm_pmic_wrap_set_phase()
139 void mt_spm_pmic_wrap_set_cmd(enum pmic_wrap_phase_id phase, uint32_t idx, in mt_spm_pmic_wrap_set_cmd() argument
144 if (phase >= NR_PMIC_WRAP_PHASE) in mt_spm_pmic_wrap_set_cmd()
147 if (idx >= pw.set[phase].nr_idx) in mt_spm_pmic_wrap_set_cmd()
150 pw.set[phase]._[idx].cmd_wdata = cmd_wdata; in mt_spm_pmic_wrap_set_cmd()
154 if (pw.phase == phase) { in mt_spm_pmic_wrap_set_cmd()
155 addr = pw.set[phase]._[idx].cmd_addr << SPM_DATA_SHIFT; in mt_spm_pmic_wrap_set_cmd()
160 uint64_t mt_spm_pmic_wrap_get_cmd(enum pmic_wrap_phase_id phase, uint32_t idx) in mt_spm_pmic_wrap_get_cmd() argument
162 if (phase >= NR_PMIC_WRAP_PHASE) in mt_spm_pmic_wrap_get_cmd()
165 if (idx >= pw.set[phase].nr_idx) in mt_spm_pmic_wrap_get_cmd()
168 return pw.set[phase]._[idx].cmd_wdata; in mt_spm_pmic_wrap_get_cmd()