Lines Matching refs:led_config
131 struct au8522_led_config *led_config = state->config.led_cfg; in au8522_led_gpio_enable() local
135 if (!led_config || !led_config->gpio_output || in au8522_led_gpio_enable()
136 !led_config->gpio_output_enable || !led_config->gpio_output_disable) in au8522_led_gpio_enable()
140 (led_config->gpio_output & ~0xc000)); in au8522_led_gpio_enable()
143 val &= ~((led_config->gpio_output_enable >> 8) & 0xff); in au8522_led_gpio_enable()
144 val |= (led_config->gpio_output_enable & 0xff); in au8522_led_gpio_enable()
147 val &= ~((led_config->gpio_output_disable >> 8) & 0xff); in au8522_led_gpio_enable()
148 val |= (led_config->gpio_output_disable & 0xff); in au8522_led_gpio_enable()
151 (led_config->gpio_output & ~0xc000), val); in au8522_led_gpio_enable()
161 struct au8522_led_config *led_config = state->config.led_cfg; in au8522_led_ctrl() local
165 if (!led_config || !led_config->gpio_leds || in au8522_led_ctrl()
166 !led_config->num_led_states || !led_config->led_states) in au8522_led_ctrl()
186 (led_config->gpio_leds & ~0xc000)); in au8522_led_ctrl()
189 for (i = 0; i < led_config->num_led_states; i++) in au8522_led_ctrl()
190 val &= ~led_config->led_states[i]; in au8522_led_ctrl()
193 if (led < led_config->num_led_states) in au8522_led_ctrl()
194 val |= led_config->led_states[led]; in au8522_led_ctrl()
195 else if (led_config->num_led_states) in au8522_led_ctrl()
197 led_config->led_states[led_config->num_led_states - 1]; in au8522_led_ctrl()
200 (led_config->gpio_leds & ~0xc000), val); in au8522_led_ctrl()