Home
last modified time | relevance | path

Searched refs:max_ma (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/drivers/leds/flash/
H A Dleds-rt8515.c238 u32 max_ma; in rt8515_determine_max_intensity() local
250 max_ma = RT8515_MAX_IOUT_MA; in rt8515_determine_max_intensity()
259 max_ma = (5500 * 1000) / res; in rt8515_determine_max_intensity()
264 max_intensity = (ua / 10) / max_ma; in rt8515_determine_max_intensity()
268 max_ma, (ua / 1000), max_intensity); in rt8515_determine_max_intensity()
272 max_intensity, hw_max, max_ma); in rt8515_determine_max_intensity()
/openbmc/linux/include/linux/usb/
H A Dpd.h263 #define PDO_VAR(min_mv, max_mv, max_ma) \ argument
265 PDO_VAR_MAX_VOLT(max_mv) | PDO_VAR_MAX_CURR(max_ma))
290 #define PDO_PPS_APDO(min_mv, max_mv, max_ma) \ argument
293 PDO_PPS_APDO_MAX_CURR(max_ma))
367 #define RDO_FIXED(idx, op_ma, max_ma, flags) \ argument
369 PDO_FIXED_OP_CURR(op_ma) | PDO_FIXED_MAX_CURR(max_ma))
H A Dtcpm.h138 int (*set_current_limit)(struct tcpc_dev *dev, u32 max_ma, u32 mv);
/openbmc/linux/include/dt-bindings/usb/
H A Dpd.h58 #define PDO_VAR(min_mv, max_mv, max_ma) \ argument
60 PDO_VAR_MAX_VOLT(max_mv) | PDO_VAR_MAX_CURR(max_ma))
83 #define PDO_PPS_APDO(min_mv, max_mv, max_ma) \ argument
86 PDO_PPS_APDO_MAX_CURR(max_ma))
/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c1026 tcpm_log(port, "Setting voltage/current limit %u mV %u mA", mv, max_ma); in tcpm_set_current_limit()
1029 port->current_limit = max_ma; in tcpm_set_current_limit()
1033 ret = port->tcpc->set_current_limit(port->tcpc, max_ma, mv); in tcpm_set_current_limit()
3326 unsigned int max_ma, max_mw; in tcpm_pd_build_request() local
3366 max_ma = ma; in tcpm_pd_build_request()
3375 max_ma = pdo_max_current(matching_snk_pdo); in tcpm_pd_build_request()
3390 *rdo = RDO_FIXED(src_pdo_index + 1, ma, max_ma, flags); in tcpm_pd_build_request()
3432 unsigned int out_mv, op_ma, op_mw, max_mv, max_ma, flags; in tcpm_pd_build_pps_request() local
3440 max_ma = port->pps_data.req_max_curr; in tcpm_pd_build_pps_request()
3459 if (op_ma > max_ma) { in tcpm_pd_build_pps_request()
[all …]
H A Dwcove.c325 static int wcove_set_current_limit(struct tcpc_dev *tcpc, u32 max_ma, u32 mv) in wcove_set_current_limit() argument