Lines Matching refs:FLED1
27 #define MODE_FLASH_MASK (MODE_FLASH(FLED1) | MODE_FLASH(FLED2) | \
28 MODE_FLASH_EXTERNAL(FLED1) | \
30 #define MODE_TORCH_MASK (MODE_TORCH(FLED1) | MODE_TORCH(FLED2))
36 FLED1, enumerator
143 u8 fled_bit = (fled_id == FLED1) ? FLED1_IOUT : FLED2_IOUT; in max77693_fled_used()
153 for (i = FLED1; i <= FLED2; ++i) { in max77693_set_mode_reg()
171 if (mode & ~(MODE_TORCH(FLED1) | MODE_TORCH(FLED2))) { in max77693_set_mode_reg()
194 for (i = FLED1; i <= FLED2; ++i) in max77693_add_mode()
252 iout[FLED1] = min(micro_amp, iout_max[FLED1]); in max77693_distribute_currents()
253 iout[FLED2] = micro_amp - iout[FLED1]; in max77693_distribute_currents()
260 max77693_add_allowed_modes(led, FLED1, mode); in max77693_distribute_currents()
276 if (fled_id == FLED1 || led->iout_joint) { in max77693_set_torch_current()
277 iout1_reg = max77693_led_iout_to_reg(iout[FLED1]); in max77693_set_torch_current()
304 if (fled_id == FLED1 || led->iout_joint) { in max77693_set_flash_current()
305 iout1_reg = max77693_led_iout_to_reg(iout[FLED1]); in max77693_set_flash_current()
368 fault_open_mask = (sub_led->fled_id == FLED1) ? in max77693_get_flash_faults()
371 fault_short_mask = (sub_led->fled_id == FLED1) ? in max77693_get_flash_faults()
404 first_led = FLED1; in max77693_setup()
405 last_led = FLED1; in max77693_setup()
406 max_flash_curr[FLED1] = led_cfg->iout_flash_max[FLED1] + in max77693_setup()
409 first_led = max77693_fled_used(led, FLED1) ? FLED1 : FLED2; in max77693_setup()
410 last_led = max77693_fled_used(led, FLED2) ? FLED2 : FLED1; in max77693_setup()
411 max_flash_curr[FLED1] = led_cfg->iout_flash_max[FLED1]; in max77693_setup()
445 if (max77693_fled_used(led, FLED1) && max77693_fled_used(led, FLED2)) in max77693_setup()
629 fled_id = FLED1; in max77693_led_parse_dt()
631 } else if (led_sources[0] == FLED1) { in max77693_led_parse_dt()
632 fled_id = FLED1; in max77693_led_parse_dt()
680 (max77693_fled_used(led, FLED1) && in max77693_led_parse_dt()
706 if (iout[FLED1] > min) { in max77693_align_iout_current()
707 iout[FLED1] /= 2; in max77693_align_iout_current()
708 iout[FLED2] = iout[FLED1]; in max77693_align_iout_current()
710 iout[FLED1] = min; in max77693_align_iout_current()
716 for (i = FLED1; i <= FLED2; ++i) in max77693_align_iout_current()
731 max77693_fled_used(led, FLED1) && max77693_fled_used(led, FLED2)) in max77693_led_validate_configuration()
799 led_cfg->iout_flash_max[FLED1] + in max77693_init_flash_settings()
895 led_cfg->iout_torch_max[FLED1] + in max77693_init_fled_cdev()
970 init_fled_cdev[FLED1] = in max77693_led_probe()
971 led->iout_joint || max77693_fled_used(led, FLED1); in max77693_led_probe()
975 for (i = FLED1; i <= FLED2; ++i) { in max77693_led_probe()
1006 if (!init_fled_cdev[FLED1]) in max77693_led_probe()
1008 v4l2_flash_release(sub_leds[FLED1].v4l2_flash); in max77693_led_probe()
1009 led_classdev_flash_unregister(&sub_leds[FLED1].fled_cdev); in max77693_led_probe()
1014 for (i = FLED1; i <= FLED2; i++) in max77693_led_probe()
1024 if (led->iout_joint || max77693_fled_used(led, FLED1)) { in max77693_led_remove()
1025 v4l2_flash_release(sub_leds[FLED1].v4l2_flash); in max77693_led_remove()
1026 led_classdev_flash_unregister(&sub_leds[FLED1].fled_cdev); in max77693_led_remove()