Home
last modified time | relevance | path

Searched refs:out_mv (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/include/linux/usb/
H A Dpd.h395 #define RDO_PROG(idx, out_mv, op_ma, flags) \ argument
397 PDO_PROG_OUT_VOLT(out_mv) | PDO_PROG_OP_CURR(op_ma))
/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c3441 out_mv = port->pps_data.req_out_volt; in tcpm_pd_build_pps_request()
3446 op_mw = (op_ma * out_mv) / 1000; in tcpm_pd_build_pps_request()
3454 op_ma = (port->operating_snk_mw * 1000) / out_mv; in tcpm_pd_build_pps_request()
3455 if ((port->operating_snk_mw * 1000) % out_mv) in tcpm_pd_build_pps_request()
3461 out_mv = (port->operating_snk_mw * 1000) / op_ma; in tcpm_pd_build_pps_request()
3463 ++out_mv; in tcpm_pd_build_pps_request()
3464 out_mv += RDO_PROG_VOLT_MV_STEP - in tcpm_pd_build_pps_request()
3465 (out_mv % RDO_PROG_VOLT_MV_STEP); in tcpm_pd_build_pps_request()
3467 if (out_mv > max_mv) { in tcpm_pd_build_pps_request()
3482 src_pdo_index, out_mv, op_ma); in tcpm_pd_build_pps_request()
[all …]