Home
last modified time | relevance | path

Searched refs:lp55xx_write (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/leds/
Dleds-lp5562.c109 lp55xx_write(led->chip, addr[led->chan_nr], led_current); in lp5562_set_led_current()
118 lp55xx_write(chip, LP5562_REG_ENABLE, LP5562_ENABLE_DEFAULT); in lp5562_run_engine()
121 lp55xx_write(chip, LP5562_REG_ENG_SEL, LP5562_ENG_SEL_PWM); in lp5562_run_engine()
122 lp55xx_write(chip, LP5562_REG_OP_MODE, LP5562_CMD_DIRECT); in lp5562_run_engine()
138 ret = lp55xx_write(chip, LP5562_REG_OP_MODE, LP5562_CMD_DIRECT); in lp5562_post_init_device()
148 ret = lp55xx_write(chip, LP5562_REG_CONFIG, cfg); in lp5562_post_init_device()
153 lp55xx_write(chip, LP5562_REG_R_PWM, 0); in lp5562_post_init_device()
154 lp55xx_write(chip, LP5562_REG_G_PWM, 0); in lp5562_post_init_device()
155 lp55xx_write(chip, LP5562_REG_B_PWM, 0); in lp5562_post_init_device()
156 lp55xx_write(chip, LP5562_REG_W_PWM, 0); in lp5562_post_init_device()
[all …]
Dleds-lp5523.c84 ret = lp55xx_write(chip, LP5523_REG_ENABLE, LP5523_ENABLE); in lp5523_post_init_device()
94 ret = lp55xx_write(chip, LP5523_REG_CONFIG, val); in lp5523_post_init_device()
99 ret = lp55xx_write(chip, LP5523_REG_ENABLE_LEDS_MSB, 0x01); in lp5523_post_init_device()
103 ret = lp55xx_write(chip, LP5523_REG_ENABLE_LEDS_LSB, 0xff); in lp5523_post_init_device()
136 ret = lp55xx_write(chip, LP5523_REG_CH1_PROG_START, 0x00); in lp5523_init_program_engine()
140 ret = lp55xx_write(chip, LP5523_REG_CH2_PROG_START, 0x10); in lp5523_init_program_engine()
144 ret = lp55xx_write(chip, LP5523_REG_CH3_PROG_START, 0x20); in lp5523_init_program_engine()
154 ret = lp55xx_write(chip, LP5523_REG_PROG_MEM + j, in lp5523_init_program_engine()
205 lp55xx_write(chip, LP5523_REG_LED_TEST_CTRL, LP5523_EN_LEDTEST | 16); in lp5523_selftest()
226 lp55xx_write(chip, LP5523_REG_LED_CURRENT_BASE + led->chan_nr, in lp5523_selftest()
[all …]
Dleds-lp5569.c128 ret = lp55xx_write(chip, LP5569_REG_CH1_PROG_START, LP5569_ENG1_PROG_ADDR); in lp5569_init_program_engine()
132 ret = lp55xx_write(chip, LP5569_REG_CH2_PROG_START, LP5569_ENG2_PROG_ADDR); in lp5569_init_program_engine()
136 ret = lp55xx_write(chip, LP5569_REG_CH3_PROG_START, LP5569_ENG3_PROG_ADDR); in lp5569_init_program_engine()
146 ret = lp55xx_write(chip, LP5569_REG_PROG_MEM + j, in lp5569_init_program_engine()
179 ret = lp55xx_write(chip, LP5569_REG_MISC, val); in lp5569_post_init_device()
198 ret = lp55xx_write(chip, LP5569_REG_ENABLE, LP5569_ENABLE); in lp5569_post_init_device()
219 ret = lp55xx_write(chip, LP5569_REG_ENABLE, 0); in lp5569_led_open_test()
240 ret = lp55xx_write(chip, LP5569_REG_ENABLE, LP5569_ENABLE); in lp5569_led_open_test()
249 ret = lp55xx_write(chip, LP5569_REG_LED_PWM_BASE + led_tmp->chan_nr, in lp5569_led_open_test()
294 lp55xx_write(chip, LP5569_REG_LED_PWM_BASE + led_tmp->chan_nr, 0); in lp5569_led_open_test()
[all …]
Dleds-lp5521.c95 lp55xx_write(chip, LP5521_REG_OP_MODE, LP5521_CMD_DIRECT); in lp5521_run_engine()
131 ret = lp55xx_write(chip, LP5521_REG_OP_MODE, LP5521_CMD_DIRECT); in lp5521_post_init_device()
142 ret = lp55xx_write(chip, LP5521_REG_CONFIG, val); in lp5521_post_init_device()
147 lp55xx_write(chip, LP5521_REG_R_PWM, 0); in lp5521_post_init_device()
148 lp55xx_write(chip, LP5521_REG_G_PWM, 0); in lp5521_post_init_device()
149 lp55xx_write(chip, LP5521_REG_B_PWM, 0); in lp5521_post_init_device()
152 ret = lp55xx_write(chip, LP5521_REG_ENABLE, LP5521_ENABLE_RUN_PROGRAM); in lp5521_post_init_device()
Dleds-lp55xx-common.c114 lp55xx_write(chip, cfg->reg_op_mode.addr, LP55xx_MODE_DISABLE_ALL_ENG); in lp55xx_stop_all_engine()
133 lp55xx_write(chip, LP55xx_REG_PROG_PAGE_SEL, in lp55xx_load_engine()
164 lp55xx_write(chip, cfg->reg_op_mode.addr, mode); in lp55xx_run_engine_common()
166 lp55xx_write(chip, cfg->reg_exec.addr, exec); in lp55xx_run_engine_common()
220 lp55xx_write(chip, LP55xx_REG_PROG_PAGE_SEL, in lp55xx_update_program_memory()
224 ret = lp55xx_write(chip, start_addr + i, in lp55xx_update_program_memory()
278 ret = lp55xx_write(chip, cfg->reg_led_pwm_base.addr + led->chan_nr, in lp55xx_led_brightness()
294 ret = lp55xx_write(chip, in lp55xx_multicolor_brightness()
312 lp55xx_write(led->chip, cfg->reg_led_current_base.addr + led->chan_nr, in lp55xx_set_led_current()
323 lp55xx_write(chip, cfg->reg_led_pwm_base.addr + i, 0); in lp55xx_turn_off_channels()
[all …]
Dleds-lp8501.c61 ret = lp55xx_write(chip, LP8501_REG_ENABLE, LP8501_ENABLE); in lp8501_post_init_device()
73 ret = lp55xx_write(chip, LP8501_REG_CONFIG, val); in lp8501_post_init_device()
Dleds-lp55xx-common.h227 extern int lp55xx_write(struct lp55xx_chip *chip, u8 reg, u8 val);