Lines Matching refs:fled_id
62 int fled_id; member
133 sub_leds[sub_led->fled_id]); in sub_led_to_led()
147 int fled_id) in max77693_fled_used() argument
149 u8 fled_bit = (fled_id == FLED1) ? FLED1_IOUT : FLED2_IOUT; in max77693_fled_used()
239 int fled_id, enum max77693_led_mode mode) in max77693_add_allowed_modes() argument
242 led->allowed_modes |= (MODE_FLASH(fled_id) | in max77693_add_allowed_modes()
243 MODE_FLASH_EXTERNAL(fled_id)); in max77693_add_allowed_modes()
245 led->allowed_modes |= MODE_TORCH(fled_id); in max77693_add_allowed_modes()
249 int fled_id, enum max77693_led_mode mode, in max77693_distribute_currents() argument
253 iout[fled_id] = micro_amp; in max77693_distribute_currents()
254 max77693_add_allowed_modes(led, fled_id, mode); in max77693_distribute_currents()
273 int fled_id, u32 micro_amp) in max77693_set_torch_current() argument
279 max77693_distribute_currents(led, fled_id, TORCH, micro_amp, in max77693_set_torch_current()
282 if (fled_id == FLED1 || led->iout_joint) { in max77693_set_torch_current()
286 if (fled_id == FLED2 || led->iout_joint) { in max77693_set_torch_current()
299 int fled_id, in max77693_set_flash_current() argument
307 max77693_distribute_currents(led, fled_id, FLASH, micro_amp, in max77693_set_flash_current()
310 if (fled_id == FLED1 || led->iout_joint) { in max77693_set_flash_current()
317 if (fled_id == FLED2 || led->iout_joint) { in max77693_set_flash_current()
374 fault_open_mask = (sub_led->fled_id == FLED1) ? in max77693_get_flash_faults()
377 fault_short_mask = (sub_led->fled_id == FLED1) ? in max77693_get_flash_faults()
467 int fled_id, enum led_brightness value) in __max77693_led_brightness_set() argument
474 ret = max77693_clear_mode(led, MODE_TORCH(fled_id)); in __max77693_led_brightness_set()
482 ret = max77693_set_torch_current(led, fled_id, value * TORCH_IOUT_STEP); in __max77693_led_brightness_set()
490 ret = max77693_add_mode(led, MODE_TORCH(fled_id)); in __max77693_led_brightness_set()
508 __max77693_led_brightness_set(led, sub_led->fled_id, in max77693_led_brightness_set_work()
522 return __max77693_led_brightness_set(led, sub_led->fled_id, value); in max77693_led_brightness_set_sync()
545 ret = max77693_set_flash_current(led, sub_led->fled_id, brightness); in max77693_led_flash_brightness_set()
557 int fled_id = sub_led->fled_id; in max77693_led_flash_strobe_set() local
563 ret = max77693_clear_mode(led, MODE_FLASH(fled_id)); in max77693_led_flash_strobe_set()
573 led->strobing_sub_led_id = fled_id; in max77693_led_flash_strobe_set()
575 ret = max77693_add_mode(led, MODE_FLASH(fled_id)); in max77693_led_flash_strobe_set()
612 *state = !!(*state && (led->strobing_sub_led_id == sub_led->fled_id)); in max77693_led_flash_strobe_get()
642 int i, ret, fled_id; in max77693_led_parse_dt() local
667 fled_id = FLED1; in max77693_led_parse_dt()
670 fled_id = FLED1; in max77693_led_parse_dt()
673 fled_id = FLED2; in max77693_led_parse_dt()
682 if (sub_nodes[fled_id]) { in max77693_led_parse_dt()
688 sub_nodes[fled_id] = child_node; in max77693_led_parse_dt()
689 sub_leds[fled_id].fled_id = fled_id; in max77693_led_parse_dt()
691 cfg->label[fled_id] = in max77693_led_parse_dt()
696 &cfg->iout_torch_max[fled_id]); in max77693_led_parse_dt()
698 cfg->iout_torch_max[fled_id] = TORCH_IOUT_MIN; in max77693_led_parse_dt()
703 &cfg->iout_flash_max[fled_id]); in max77693_led_parse_dt()
705 cfg->iout_flash_max[fled_id] = FLASH_IOUT_MIN; in max77693_led_parse_dt()
711 &cfg->flash_timeout_max[fled_id]); in max77693_led_parse_dt()
713 cfg->flash_timeout_max[fled_id] = FLASH_TIMEOUT_MIN; in max77693_led_parse_dt()
833 int fled_id = sub_led->fled_id; in max77693_init_flash_settings() local
842 led_cfg->iout_flash_max[fled_id]; in max77693_init_flash_settings()
849 setting->max = led_cfg->flash_timeout_max[fled_id]; in max77693_init_flash_settings()
863 int fled_id = sub_led->fled_id; in max77693_led_external_strobe_set() local
869 ret = max77693_add_mode(led, MODE_FLASH_EXTERNAL(fled_id)); in max77693_led_external_strobe_set()
871 ret = max77693_clear_mode(led, MODE_FLASH_EXTERNAL(fled_id)); in max77693_led_external_strobe_set()
923 int fled_id = sub_led->fled_id; in max77693_init_fled_cdev() local
932 led_cdev->name = led_cfg->label[fled_id]; in max77693_init_fled_cdev()
939 led_cfg->iout_torch_max[fled_id]) / in max77693_init_fled_cdev()