Lines Matching refs:led_state
21 __u16 led_state; member
150 drv_data->led_state = 0; in steelseries_srws1_led_all_set_brightness()
152 drv_data->led_state = (1 << (SRWS1_NUMBER_LEDS + 1)) - 1; in steelseries_srws1_led_all_set_brightness()
154 steelseries_srws1_set_leds(hid, drv_data->led_state); in steelseries_srws1_led_all_set_brightness()
170 return (drv_data->led_state >> SRWS1_NUMBER_LEDS) ? LED_FULL : LED_OFF; in steelseries_srws1_led_all_get_brightness()
190 state = (drv_data->led_state >> i) & 1; in steelseries_srws1_led_set_brightness()
192 drv_data->led_state &= ~(1 << i); in steelseries_srws1_led_set_brightness()
193 steelseries_srws1_set_leds(hid, drv_data->led_state); in steelseries_srws1_led_set_brightness()
195 drv_data->led_state |= 1 << i; in steelseries_srws1_led_set_brightness()
196 steelseries_srws1_set_leds(hid, drv_data->led_state); in steelseries_srws1_led_set_brightness()
218 value = (drv_data->led_state >> i) & 1; in steelseries_srws1_led_get_brightness()
260 drv_data->led_state = 0; in steelseries_srws1_probe()