Lines Matching refs:sm1
87 static int read_voltages(int *sm0, int *sm1) in read_voltages() argument
104 *sm1 = tps6586x_read(is_v2 ? SM1_VOLTAGE_V2 : SM1_VOLTAGE_V1); in read_voltages()
105 if (*sm0 == -1 || *sm1 == -1) in read_voltages()
171 int sm0, sm1; in tps6586x_adjust_sm0_sm1() local
177 if (read_voltages(&sm0, &sm1)) { in tps6586x_adjust_sm0_sm1()
188 if (min_sm0_over_sm1 != -1 && sm0 < sm1 + min_sm0_over_sm1) { in tps6586x_adjust_sm0_sm1()
190 __func__, sm0, sm1, min_sm0_over_sm1); in tps6586x_adjust_sm0_sm1()
214 while (!bad && (sm0 != sm0_target || sm1 != sm1_target)) { in tps6586x_adjust_sm0_sm1()
217 debug("%d-%d %d-%d ", sm0, sm0_target, sm1, sm1_target); in tps6586x_adjust_sm0_sm1()
225 if (sm1 < sm1_target) in tps6586x_adjust_sm0_sm1()
231 if (sm1 != sm1_target) { in tps6586x_adjust_sm0_sm1()
232 sm1 = calculate_next_voltage(sm1, sm1_target, step); in tps6586x_adjust_sm0_sm1()
233 bad |= set_voltage(SM1_VOLTAGE_V1, sm1, rate); in tps6586x_adjust_sm0_sm1()
240 debug("%d-%d %d-%d done\n", sm0, sm0_target, sm1, sm1_target); in tps6586x_adjust_sm0_sm1()