Lines Matching refs:led_state

568 	u8 led_state[MAX_LEDS];  member
1779 memcpy(sc->led_state, sixaxis_leds[id], sizeof(sixaxis_leds[id])); in sixaxis_set_leds_from_id()
1803 memcpy(sc->led_state, color_code[id], sizeof(color_code[id])); in dualshock4_set_leds_from_id()
1818 value[1] = sc->led_state[0] ? 0xff : 0x00; in buzz_set_leds()
1819 value[2] = sc->led_state[1] ? 0xff : 0x00; in buzz_set_leds()
1820 value[3] = sc->led_state[2] ? 0xff : 0x00; in buzz_set_leds()
1821 value[4] = sc->led_state[3] ? 0xff : 0x00; in buzz_set_leds()
1862 (value != drv_data->led_state[n] || in sony_led_set_brightness()
1866 drv_data->led_state[n] = value; in sony_led_set_brightness()
1894 return drv_data->led_state[n]; in sony_led_get_brightness()
1974 sc->led_state[3] = 1; in sony_leds_init()
1990 memcpy(sc->led_state, navigation_leds, sizeof(navigation_leds)); in sony_leds_init()
2032 led->brightness = sc->led_state[n]; in sony_leds_init()
2079 report->leds_bitmap |= sc->led_state[0] << 1; in sixaxis_send_output_report()
2080 report->leds_bitmap |= sc->led_state[1] << 2; in sixaxis_send_output_report()
2081 report->leds_bitmap |= sc->led_state[2] << 3; in sixaxis_send_output_report()
2082 report->leds_bitmap |= sc->led_state[3] << 4; in sixaxis_send_output_report()
2150 if (sc->led_state[3]) { in dualshock4_send_output_report()
2151 buf[offset++] = sc->led_state[0]; in dualshock4_send_output_report()
2152 buf[offset++] = sc->led_state[1]; in dualshock4_send_output_report()
2153 buf[offset++] = sc->led_state[2]; in dualshock4_send_output_report()
2185 report->r = sc->led_state[0]; in motion_send_output_report()
2186 report->g = sc->led_state[1]; in motion_send_output_report()
2187 report->b = sc->led_state[2]; in motion_send_output_report()