Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/usb/misc/
Dapple-mfi-fastcharge.c53 int current_ma; in apple_mfi_fc_set_charge_type() local
65 current_ma = TRICKLE_CURRENT_MA; in apple_mfi_fc_set_charge_type()
68 current_ma = FAST_CURRENT_MA; in apple_mfi_fc_set_charge_type()
78 current_ma, /* wValue, current offset */ in apple_mfi_fc_set_charge_type()
79 current_ma, /* wIndex, current offset */ in apple_mfi_fc_set_charge_type()
/linux-6.12.1/drivers/leds/flash/
Dleds-qcom-flash.c199 static int update_allowed_flash_current(struct qcom_flash_led *led, u32 *current_ma, bool strobe) in update_allowed_flash_current() argument
295 *current_ma = min_t(u32, *current_ma, avail_ma); in update_allowed_flash_current()
296 led->current_in_use_ma = *current_ma; in update_allowed_flash_current()
320 static int set_flash_current(struct qcom_flash_led *led, u32 current_ma, enum led_mode mode) in set_flash_current() argument
331 itarg_ua = (current_ma * UA_PER_MA) / led->chan_count + 1; in set_flash_current()
569 u32 current_ma = brightness * led->max_torch_current_ma / LED_FULL; in qcom_flash_led_brightness_set() local
581 rc = update_allowed_flash_current(led, &current_ma, enable); in qcom_flash_led_brightness_set()
585 rc = set_flash_current(led, current_ma, TORCH_MODE); in qcom_flash_led_brightness_set()
631 u32 current_ma = intensity / UA_PER_MA; in qcom_flash_intensity_to_led_brightness() local
633 current_ma = min_t(u32, current_ma, led->max_torch_current_ma); in qcom_flash_intensity_to_led_brightness()
[all …]
/linux-6.12.1/drivers/hwmon/
Dina3221.c444 int resistance_uo, current_ma, voltage_uv; in ina3221_write_curr() local
456 current_ma = clamp_val(val, in ina3221_write_curr()
460 voltage_uv = DIV_ROUND_CLOSEST(current_ma * resistance_uo, 1000); in ina3221_write_curr()