Lines Matching refs:engine
223 static int lp5562_get_engine_ram_base_addr(enum lp5562_led_sources engine, in lp5562_get_engine_ram_base_addr() argument
226 switch (engine) { in lp5562_get_engine_ram_base_addr()
255 static int lp5562_get_engine_reg_shift(enum lp5562_led_sources engine, in lp5562_get_engine_reg_shift() argument
258 switch (engine) { in lp5562_get_engine_reg_shift()
376 enum lp5562_led_sources engine) in lp5562_is_engine_executing() argument
382 ret = lp5562_get_engine_reg_shift(engine, &shift); in lp5562_is_engine_executing()
411 enum lp5562_led_sources *engine) in lp5562_get_available_engine() argument
418 *engine = src; in lp5562_get_available_engine()
440 enum lp5562_led_sources engine, in lp5562_set_engine_reg() argument
447 ret = lp5562_get_engine_reg_shift(engine, &shift); in lp5562_set_engine_reg()
471 enum lp5562_led_sources engine, in lp5562_set_engine_op_mode() argument
474 return lp5562_set_engine_reg(dev, engine, LP5562_OP_MODE, mode); in lp5562_set_engine_op_mode()
488 enum lp5562_led_sources engine, in lp5562_set_engine_exec_state() argument
493 ret = lp5562_set_engine_reg(dev, engine, LP5562_ENABLE, state); in lp5562_set_engine_exec_state()
514 enum lp5562_led_sources engine) in lp5562_start_program_exec() argument
516 if (lp5562_set_engine_op_mode(dev, engine, LP5562_OP_MODE_RUN)) { in lp5562_start_program_exec()
520 return lp5562_set_engine_exec_state(dev, engine, in lp5562_start_program_exec()
534 enum lp5562_led_sources engine) in lp5562_stop_program_exec() argument
536 if (lp5562_set_engine_op_mode(dev, engine, LP5562_OP_MODE_DISABLED)) { in lp5562_stop_program_exec()
540 return lp5562_set_engine_exec_state(dev, engine, in lp5562_stop_program_exec()
559 enum lp5562_led_sources engine, in lp5562_program_command() argument
572 ret = lp5562_get_engine_ram_base_addr(engine, &prog_base_addr); in lp5562_program_command()
608 enum lp5562_led_sources engine, in lp5562_program_set_brightness() argument
623 return lp5562_program_command(dev, engine, command_index, in lp5562_program_set_brightness()
645 enum lp5562_led_sources engine, in lp5562_program_ramp() argument
663 return lp5562_program_command(dev, engine, command_index, in lp5562_program_ramp()
681 enum lp5562_led_sources engine, in lp5562_program_wait() argument
689 return lp5562_program_ramp(dev, engine, command_index, in lp5562_program_wait()
708 enum lp5562_led_sources engine, in lp5562_program_go_to_start() argument
711 return lp5562_program_command(dev, engine, command_index, 0x00, 0x00); in lp5562_program_go_to_start()
738 enum lp5562_led_sources engine, in lp5562_update_blinking_brightness() argument
743 ret = lp5562_stop_program_exec(dev, engine); in lp5562_update_blinking_brightness()
748 ret = lp5562_set_engine_op_mode(dev, engine, LP5562_OP_MODE_LOAD); in lp5562_update_blinking_brightness()
754 ret = lp5562_program_set_brightness(dev, engine, 0, brightness_on); in lp5562_update_blinking_brightness()
759 ret = lp5562_start_program_exec(dev, engine); in lp5562_update_blinking_brightness()
774 enum lp5562_led_sources engine; in lp5562_led_blink() local
781 ret = lp5562_get_led_source(dev, led, &engine); in lp5562_led_blink()
787 if (engine == LP5562_SOURCE_PWM) { in lp5562_led_blink()
788 ret = lp5562_get_available_engine(dev, &engine); in lp5562_led_blink()
793 ret = lp5562_set_led_source(dev, led, engine); in lp5562_led_blink()
800 ret = lp5562_set_engine_op_mode(dev, engine, LP5562_OP_MODE_LOAD); in lp5562_led_blink()
805 ret = lp5562_program_set_brightness(dev, engine, command_index, in lp5562_led_blink()
811 ret = lp5562_program_wait(dev, engine, ++command_index, delay_on); in lp5562_led_blink()
816 ret = lp5562_program_set_brightness(dev, engine, ++command_index, in lp5562_led_blink()
822 ret = lp5562_program_wait(dev, engine, ++command_index, delay_off); in lp5562_led_blink()
827 ret = lp5562_program_go_to_start(dev, engine, ++command_index); in lp5562_led_blink()
832 ret = lp5562_start_program_exec(dev, engine); in lp5562_led_blink()