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
630 fled_id = FLED1; in max77693_led_parse_dt()
633 fled_id = FLED1; in max77693_led_parse_dt()
636 fled_id = FLED2; in max77693_led_parse_dt()
645 if (sub_nodes[fled_id]) { in max77693_led_parse_dt()
652 sub_nodes[fled_id] = child_node; in max77693_led_parse_dt()
653 sub_leds[fled_id].fled_id = fled_id; in max77693_led_parse_dt()
655 cfg->label[fled_id] = in max77693_led_parse_dt()
660 &cfg->iout_torch_max[fled_id]); in max77693_led_parse_dt()
662 cfg->iout_torch_max[fled_id] = TORCH_IOUT_MIN; in max77693_led_parse_dt()
667 &cfg->iout_flash_max[fled_id]); in max77693_led_parse_dt()
669 cfg->iout_flash_max[fled_id] = FLASH_IOUT_MIN; in max77693_led_parse_dt()
675 &cfg->flash_timeout_max[fled_id]); in max77693_led_parse_dt()
677 cfg->flash_timeout_max[fled_id] = FLASH_TIMEOUT_MIN; in max77693_led_parse_dt()
797 int fled_id = sub_led->fled_id; in max77693_init_flash_settings() local
806 led_cfg->iout_flash_max[fled_id]; in max77693_init_flash_settings()
813 setting->max = led_cfg->flash_timeout_max[fled_id]; in max77693_init_flash_settings()
827 int fled_id = sub_led->fled_id; in max77693_led_external_strobe_set() local
833 ret = max77693_add_mode(led, MODE_FLASH_EXTERNAL(fled_id)); in max77693_led_external_strobe_set()
835 ret = max77693_clear_mode(led, MODE_FLASH_EXTERNAL(fled_id)); in max77693_led_external_strobe_set()
887 int fled_id = sub_led->fled_id; in max77693_init_fled_cdev() local
896 led_cdev->name = led_cfg->label[fled_id]; in max77693_init_fled_cdev()
902 led_cfg->iout_torch_max[fled_id]) / in max77693_init_fled_cdev()