Lines Matching refs:fled_id
61 int fled_id; member
130 sub_leds[sub_led->fled_id]); in sub_led_to_led()
144 int fled_id) in max77693_fled_used() argument
146 u8 fled_bit = (fled_id == FLED1) ? FLED1_IOUT : FLED2_IOUT; in max77693_fled_used()
236 int fled_id, enum max77693_led_mode mode) in max77693_add_allowed_modes() argument
239 led->allowed_modes |= (MODE_FLASH(fled_id) | in max77693_add_allowed_modes()
240 MODE_FLASH_EXTERNAL(fled_id)); in max77693_add_allowed_modes()
242 led->allowed_modes |= MODE_TORCH(fled_id); in max77693_add_allowed_modes()
246 int fled_id, enum max77693_led_mode mode, in max77693_distribute_currents() argument
250 iout[fled_id] = micro_amp; in max77693_distribute_currents()
251 max77693_add_allowed_modes(led, fled_id, mode); in max77693_distribute_currents()
270 int fled_id, u32 micro_amp) in max77693_set_torch_current() argument
276 max77693_distribute_currents(led, fled_id, TORCH, micro_amp, in max77693_set_torch_current()
279 if (fled_id == FLED1 || led->iout_joint) { in max77693_set_torch_current()
283 if (fled_id == FLED2 || led->iout_joint) { in max77693_set_torch_current()
296 int fled_id, in max77693_set_flash_current() argument
304 max77693_distribute_currents(led, fled_id, FLASH, micro_amp, in max77693_set_flash_current()
307 if (fled_id == FLED1 || led->iout_joint) { in max77693_set_flash_current()
314 if (fled_id == FLED2 || led->iout_joint) { in max77693_set_flash_current()
371 fault_open_mask = (sub_led->fled_id == FLED1) ? in max77693_get_flash_faults()
374 fault_short_mask = (sub_led->fled_id == FLED1) ? in max77693_get_flash_faults()
470 int fled_id = sub_led->fled_id, ret; in max77693_led_brightness_set() local
475 ret = max77693_clear_mode(led, MODE_TORCH(fled_id)); in max77693_led_brightness_set()
483 ret = max77693_set_torch_current(led, fled_id, value * TORCH_IOUT_STEP); in max77693_led_brightness_set()
491 ret = max77693_add_mode(led, MODE_TORCH(fled_id)); in max77693_led_brightness_set()
511 ret = max77693_set_flash_current(led, sub_led->fled_id, brightness); in max77693_led_flash_brightness_set()
523 int fled_id = sub_led->fled_id; in max77693_led_flash_strobe_set() local
529 ret = max77693_clear_mode(led, MODE_FLASH(fled_id)); in max77693_led_flash_strobe_set()
539 led->strobing_sub_led_id = fled_id; in max77693_led_flash_strobe_set()
541 ret = max77693_add_mode(led, MODE_FLASH(fled_id)); in max77693_led_flash_strobe_set()
578 *state = !!(*state && (led->strobing_sub_led_id == sub_led->fled_id)); in max77693_led_flash_strobe_get()
608 int i, ret, fled_id; in max77693_led_parse_dt() local
633 fled_id = FLED1; in max77693_led_parse_dt()
636 fled_id = FLED1; in max77693_led_parse_dt()
639 fled_id = FLED2; in max77693_led_parse_dt()
648 if (sub_nodes[fled_id]) { in max77693_led_parse_dt()
655 sub_nodes[fled_id] = child_node; in max77693_led_parse_dt()
656 sub_leds[fled_id].fled_id = fled_id; in max77693_led_parse_dt()
658 cfg->label[fled_id] = in max77693_led_parse_dt()
663 &cfg->iout_torch_max[fled_id]); in max77693_led_parse_dt()
665 cfg->iout_torch_max[fled_id] = TORCH_IOUT_MIN; in max77693_led_parse_dt()
670 &cfg->iout_flash_max[fled_id]); in max77693_led_parse_dt()
672 cfg->iout_flash_max[fled_id] = FLASH_IOUT_MIN; in max77693_led_parse_dt()
678 &cfg->flash_timeout_max[fled_id]); in max77693_led_parse_dt()
680 cfg->flash_timeout_max[fled_id] = FLASH_TIMEOUT_MIN; in max77693_led_parse_dt()
800 int fled_id = sub_led->fled_id; in max77693_init_flash_settings() local
809 led_cfg->iout_flash_max[fled_id]; in max77693_init_flash_settings()
816 setting->max = led_cfg->flash_timeout_max[fled_id]; in max77693_init_flash_settings()
830 int fled_id = sub_led->fled_id; in max77693_led_external_strobe_set() local
836 ret = max77693_add_mode(led, MODE_FLASH_EXTERNAL(fled_id)); in max77693_led_external_strobe_set()
838 ret = max77693_clear_mode(led, MODE_FLASH_EXTERNAL(fled_id)); in max77693_led_external_strobe_set()
890 int fled_id = sub_led->fled_id; in max77693_init_fled_cdev() local
899 led_cdev->name = led_cfg->label[fled_id]; in max77693_init_fled_cdev()
905 led_cfg->iout_torch_max[fled_id]) / in max77693_init_fled_cdev()