Home
last modified time | relevance | path

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

/linux-6.6.21/include/linux/usb/
Dpd.h367 #define RDO_FIXED(idx, op_ma, max_ma, flags) \ argument
369 PDO_FIXED_OP_CURR(op_ma) | PDO_FIXED_MAX_CURR(max_ma))
395 #define RDO_PROG(idx, out_mv, op_ma, flags) \ argument
397 PDO_PROG_OUT_VOLT(out_mv) | PDO_PROG_OP_CURR(op_ma))
/linux-6.6.21/drivers/usb/typec/tcpm/
Dtcpm.c3423 unsigned int out_mv, op_ma, op_mw, max_mv, max_ma, flags; in tcpm_pd_build_pps_request() local
3433 op_ma = port->pps_data.req_op_curr; in tcpm_pd_build_pps_request()
3437 op_mw = (op_ma * out_mv) / 1000; in tcpm_pd_build_pps_request()
3445 op_ma = (port->operating_snk_mw * 1000) / out_mv; in tcpm_pd_build_pps_request()
3447 ++op_ma; in tcpm_pd_build_pps_request()
3448 op_ma += RDO_PROG_CURR_MA_STEP - (op_ma % RDO_PROG_CURR_MA_STEP); in tcpm_pd_build_pps_request()
3450 if (op_ma > max_ma) { in tcpm_pd_build_pps_request()
3451 op_ma = max_ma; in tcpm_pd_build_pps_request()
3452 out_mv = (port->operating_snk_mw * 1000) / op_ma; in tcpm_pd_build_pps_request()
3453 if ((port->operating_snk_mw * 1000) % op_ma) in tcpm_pd_build_pps_request()
[all …]