Home
last modified time | relevance | path

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

/linux/include/linux/usb/
H A Dpd.h368 #define RDO_FIXED(idx, op_ma, max_ma, flags) \ argument
370 PDO_FIXED_OP_CURR(op_ma) | PDO_FIXED_MAX_CURR(max_ma))
396 #define RDO_PROG(idx, out_mv, op_ma, flags) \ argument
398 PDO_PROG_OUT_VOLT(out_mv) | PDO_PROG_OP_CURR(op_ma))
/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c4098 unsigned int out_mv, op_ma, op_mw, max_mv, max_ma, flags; in tcpm_pd_build_pps_request() local
4108 op_ma = port->pps_data.req_op_curr; in tcpm_pd_build_pps_request()
4112 op_mw = (op_ma * out_mv) / 1000; in tcpm_pd_build_pps_request()
4120 op_ma = (port->operating_snk_mw * 1000) / out_mv; in tcpm_pd_build_pps_request()
4122 ++op_ma; in tcpm_pd_build_pps_request()
4123 op_ma += RDO_PROG_CURR_MA_STEP - (op_ma % RDO_PROG_CURR_MA_STEP); in tcpm_pd_build_pps_request()
4125 if (op_ma > max_ma) { in tcpm_pd_build_pps_request()
4126 op_ma = max_ma; in tcpm_pd_build_pps_request()
4127 out_mv = (port->operating_snk_mw * 1000) / op_ma; in tcpm_pd_build_pps_request()
4128 if ((port->operating_snk_mw * 1000) % op_ma) in tcpm_pd_build_pps_request()
[all …]