Lines Matching defs:led_config
635 struct au8522_led_config *led_config = state->config->led_cfg;
639 if (!led_config || !led_config->gpio_output ||
640 !led_config->gpio_output_enable || !led_config->gpio_output_disable)
644 (led_config->gpio_output & ~0xc000));
647 val &= ~((led_config->gpio_output_enable >> 8) & 0xff);
648 val |= (led_config->gpio_output_enable & 0xff);
651 val &= ~((led_config->gpio_output_disable >> 8) & 0xff);
652 val |= (led_config->gpio_output_disable & 0xff);
655 (led_config->gpio_output & ~0xc000), val);
665 struct au8522_led_config *led_config = state->config->led_cfg;
669 if (!led_config || !led_config->gpio_leds ||
670 !led_config->num_led_states || !led_config->led_states)
690 (led_config->gpio_leds & ~0xc000));
693 for (i = 0; i < led_config->num_led_states; i++)
694 val &= ~led_config->led_states[i];
697 if (led < led_config->num_led_states)
698 val |= led_config->led_states[led];
699 else if (led_config->num_led_states)
701 led_config->led_states[led_config->num_led_states - 1];
704 (led_config->gpio_leds & ~0xc000), val);
802 struct au8522_led_config *led_config = state->config->led_cfg;
807 if (!led_config)
813 strong = led_config->qam256_strong;
815 strong = led_config->qam64_strong;
817 strong = led_config->vsb8_strong;