Searched refs:current_ma (Results 1 – 3 of 3) sorted by relevance
61 static int bq25180_ma_to_ichg(uint32_t current_ma, uint8_t *ichg) in bq25180_ma_to_ichg() argument63 if (!IN_RANGE(current_ma, BQ25180_CURRENT_MIN_MA, BQ25180_CURRENT_MAX_MA)) { in bq25180_ma_to_ichg()65 "clamping to the nearest limit", current_ma); in bq25180_ma_to_ichg()67 current_ma = CLAMP(current_ma, BQ25180_CURRENT_MIN_MA, BQ25180_CURRENT_MAX_MA); in bq25180_ma_to_ichg()69 if (current_ma <= 35) { in bq25180_ma_to_ichg()70 *ichg = current_ma - 5; in bq25180_ma_to_ichg()74 *ichg = (current_ma - 40) / 10 + 31; in bq25180_ma_to_ichg()
104 current_ma = current * 10107 power_mw = (current_ma * voltage_mv) // 1000145 current_ma = current * 10146 power_mw = (current_ma * max_voltage_mv) // 1000
170 int current_ma; in max17055_channel_get() local172 current_ma = current_to_ma(config->rsense_mohms, priv->avg_current); in max17055_channel_get()173 set_millis(valp, current_ma); in max17055_channel_get()