Home
last modified time | relevance | path

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

/Linux-v6.1/include/linux/usb/
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))
/Linux-v6.1/drivers/usb/typec/tcpm/
Dtcpm.c3435 unsigned int out_mv, op_ma, op_mw, max_mv, max_ma, flags; in tcpm_pd_build_pps_request() local
3455 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 …]