Home
last modified time | relevance | path

Searched refs:current_ma (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.7.0/drivers/charger/
Dcharger_bq25180.c61 static int bq25180_ma_to_ichg(uint32_t current_ma, uint8_t *ichg) in bq25180_ma_to_ichg() argument
63 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()
/Zephyr-Core-3.7.0/scripts/generate_usb_vif/
Dgenerate_vif.py104 current_ma = current * 10
107 power_mw = (current_ma * voltage_mv) // 1000
145 current_ma = current * 10
146 power_mw = (current_ma * max_voltage_mv) // 1000
/Zephyr-Core-3.7.0/drivers/sensor/maxim/max17055/
Dmax17055.c170 int current_ma; in max17055_channel_get() local
172 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()