Searched refs:out_mv (Results 1 – 2 of 2) sorted by relevance
395 #define RDO_PROG(idx, out_mv, op_ma, flags) \ argument397 PDO_PROG_OUT_VOLT(out_mv) | PDO_PROG_OP_CURR(op_ma))
3435 unsigned int out_mv, op_ma, op_mw, max_mv, max_ma, flags; in tcpm_pd_build_pps_request() local3455 out_mv = port->pps_data.req_out_volt; in tcpm_pd_build_pps_request()3465 op_mw = (op_ma * out_mv) / 1000; in tcpm_pd_build_pps_request()3473 op_ma = (port->operating_snk_mw * 1000) / out_mv; in tcpm_pd_build_pps_request()3474 if ((port->operating_snk_mw * 1000) % out_mv) in tcpm_pd_build_pps_request()3480 out_mv = (port->operating_snk_mw * 1000) / op_ma; in tcpm_pd_build_pps_request()3482 ++out_mv; in tcpm_pd_build_pps_request()3483 out_mv += RDO_PROG_VOLT_MV_STEP - in tcpm_pd_build_pps_request()3484 (out_mv % RDO_PROG_VOLT_MV_STEP); in tcpm_pd_build_pps_request()3486 if (out_mv > max_mv) { in tcpm_pd_build_pps_request()[all …]