Lines Matching refs:fled_id
58 int fled_id; member
127 sub_leds[sub_led->fled_id]); in sub_led_to_led()
141 int fled_id) in max77693_fled_used() argument
143 u8 fled_bit = (fled_id == FLED1) ? FLED1_IOUT : FLED2_IOUT; in max77693_fled_used()
233 int fled_id, enum max77693_led_mode mode) in max77693_add_allowed_modes() argument
236 led->allowed_modes |= (MODE_FLASH(fled_id) | in max77693_add_allowed_modes()
237 MODE_FLASH_EXTERNAL(fled_id)); in max77693_add_allowed_modes()
239 led->allowed_modes |= MODE_TORCH(fled_id); in max77693_add_allowed_modes()
243 int fled_id, enum max77693_led_mode mode, in max77693_distribute_currents() argument
247 iout[fled_id] = micro_amp; in max77693_distribute_currents()
248 max77693_add_allowed_modes(led, fled_id, mode); in max77693_distribute_currents()
267 int fled_id, u32 micro_amp) in max77693_set_torch_current() argument
273 max77693_distribute_currents(led, fled_id, TORCH, micro_amp, in max77693_set_torch_current()
276 if (fled_id == FLED1 || led->iout_joint) { in max77693_set_torch_current()
280 if (fled_id == FLED2 || led->iout_joint) { in max77693_set_torch_current()
293 int fled_id, in max77693_set_flash_current() argument
301 max77693_distribute_currents(led, fled_id, FLASH, micro_amp, in max77693_set_flash_current()
304 if (fled_id == FLED1 || led->iout_joint) { in max77693_set_flash_current()
311 if (fled_id == FLED2 || led->iout_joint) { 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()
467 int fled_id = sub_led->fled_id, ret; in max77693_led_brightness_set() local
472 ret = max77693_clear_mode(led, MODE_TORCH(fled_id)); in max77693_led_brightness_set()
480 ret = max77693_set_torch_current(led, fled_id, value * TORCH_IOUT_STEP); in max77693_led_brightness_set()
488 ret = max77693_add_mode(led, MODE_TORCH(fled_id)); in max77693_led_brightness_set()
508 ret = max77693_set_flash_current(led, sub_led->fled_id, brightness); in max77693_led_flash_brightness_set()
520 int fled_id = sub_led->fled_id; in max77693_led_flash_strobe_set() local
526 ret = max77693_clear_mode(led, MODE_FLASH(fled_id)); in max77693_led_flash_strobe_set()
536 led->strobing_sub_led_id = fled_id; in max77693_led_flash_strobe_set()
538 ret = max77693_add_mode(led, MODE_FLASH(fled_id)); in max77693_led_flash_strobe_set()
575 *state = !!(*state && (led->strobing_sub_led_id == sub_led->fled_id)); in max77693_led_flash_strobe_get()
605 int i, ret, fled_id; in max77693_led_parse_dt() local
629 fled_id = FLED1; in max77693_led_parse_dt()
632 fled_id = FLED1; in max77693_led_parse_dt()
635 fled_id = FLED2; in max77693_led_parse_dt()
643 if (sub_nodes[fled_id]) { in max77693_led_parse_dt()
649 sub_nodes[fled_id] = of_node_get(child_node); in max77693_led_parse_dt()
650 sub_leds[fled_id].fled_id = fled_id; in max77693_led_parse_dt()
652 cfg->label[fled_id] = in max77693_led_parse_dt()
657 &cfg->iout_torch_max[fled_id]); in max77693_led_parse_dt()
659 cfg->iout_torch_max[fled_id] = TORCH_IOUT_MIN; in max77693_led_parse_dt()
664 &cfg->iout_flash_max[fled_id]); in max77693_led_parse_dt()
666 cfg->iout_flash_max[fled_id] = FLASH_IOUT_MIN; in max77693_led_parse_dt()
672 &cfg->flash_timeout_max[fled_id]); in max77693_led_parse_dt()
674 cfg->flash_timeout_max[fled_id] = FLASH_TIMEOUT_MIN; in max77693_led_parse_dt()
792 int fled_id = sub_led->fled_id; in max77693_init_flash_settings() local
801 led_cfg->iout_flash_max[fled_id]; in max77693_init_flash_settings()
808 setting->max = led_cfg->flash_timeout_max[fled_id]; in max77693_init_flash_settings()
822 int fled_id = sub_led->fled_id; in max77693_led_external_strobe_set() local
828 ret = max77693_add_mode(led, MODE_FLASH_EXTERNAL(fled_id)); in max77693_led_external_strobe_set()
830 ret = max77693_clear_mode(led, MODE_FLASH_EXTERNAL(fled_id)); in max77693_led_external_strobe_set()
882 int fled_id = sub_led->fled_id; in max77693_init_fled_cdev() local
891 led_cdev->name = led_cfg->label[fled_id]; in max77693_init_fled_cdev()
897 led_cfg->iout_torch_max[fled_id]) / in max77693_init_fled_cdev()