Lines Matching +full:1 +full:mv
17 int mv; in get_cvb_voltage() local
19 /* apply only speedo scale: output mv = cvb_mv * v_scale */ in get_cvb_voltage()
20 mv = DIV_ROUND_CLOSEST(cvb->c2 * speedo, s_scale); in get_cvb_voltage()
21 mv = DIV_ROUND_CLOSEST((mv + cvb->c1) * speedo, s_scale) + cvb->c0; in get_cvb_voltage()
22 return mv; in get_cvb_voltage()
25 static int round_cvb_voltage(int mv, int v_scale, in round_cvb_voltage() argument
33 uv = max(mv * 1000, offset) - offset; in round_cvb_voltage()
43 static int round_voltage(int mv, const struct rail_alignment *align, int up) in round_voltage() argument
48 uv = max(mv * 1000, align->offset_uv) - align->offset_uv; in round_voltage()
49 uv = (uv + (up ? align->step_uv - 1 : 0)) / align->step_uv; in round_voltage()
52 return mv; in round_voltage()
114 if (table->speedo_id != -1 && table->speedo_id != speedo_id) in tegra_cvb_add_opp_table()
117 if (table->process_id != -1 && table->process_id != process_id) in tegra_cvb_add_opp_table()