Lines Matching refs:mux
112 #define LED_ACTIVE(mux, led) (!!(mux & (0x0001 << led))) argument
448 static int lp5523_mux_parse(const char *buf, u16 *mux, size_t len) in lp5523_mux_parse() argument
469 *mux = tmp_mux; in lp5523_mux_parse()
489 char mux[LP5523_MAX_LEDS + 1]; in show_engine_leds() local
491 lp5523_mux_to_array(chip->engines[nr - 1].led_mux, mux); in show_engine_leds()
493 return sprintf(buf, "%s\n", mux); in show_engine_leds()
499 static int lp5523_load_mux(struct lp55xx_chip *chip, u16 mux, int nr) in lp5523_load_mux() argument
515 ret = lp55xx_write(chip, LP5523_REG_PROG_MEM , (u8)(mux >> 8)); in lp5523_load_mux()
519 ret = lp55xx_write(chip, LP5523_REG_PROG_MEM + 1, (u8)(mux)); in lp5523_load_mux()
523 engine->led_mux = mux; in lp5523_load_mux()
534 u16 mux = 0; in store_engine_leds() local
537 if (lp5523_mux_parse(buf, &mux, len)) in store_engine_leds()
548 if (lp5523_load_mux(chip, mux, nr)) in store_engine_leds()