Lines Matching refs:mux
117 #define LED_ACTIVE(mux, led) (!!(mux & (0x0001 << led))) argument
453 static int lp5523_mux_parse(const char *buf, u16 *mux, size_t len) in lp5523_mux_parse() argument
474 *mux = tmp_mux; in lp5523_mux_parse()
494 char mux[LP5523_MAX_LEDS + 1]; in show_engine_leds() local
496 lp5523_mux_to_array(chip->engines[nr - 1].led_mux, mux); in show_engine_leds()
498 return sprintf(buf, "%s\n", mux); in show_engine_leds()
504 static int lp5523_load_mux(struct lp55xx_chip *chip, u16 mux, int nr) in lp5523_load_mux() argument
520 ret = lp55xx_write(chip, LP5523_REG_PROG_MEM , (u8)(mux >> 8)); in lp5523_load_mux()
524 ret = lp55xx_write(chip, LP5523_REG_PROG_MEM + 1, (u8)(mux)); in lp5523_load_mux()
528 engine->led_mux = mux; in lp5523_load_mux()
539 u16 mux = 0; in store_engine_leds() local
542 if (lp5523_mux_parse(buf, &mux, len)) in store_engine_leds()
553 if (lp5523_load_mux(chip, mux, nr)) in store_engine_leds()