Lines Matching refs:mode_bit

1172 	u8 mode_bit;  member
1273 if (kbd_mode_levels[i] == state->mode_bit) in kbd_get_level()
1289 if (level != 0 && state->mode_bit == KBD_MODE_BIT_OFF) in kbd_set_level()
1290 state->mode_bit = kbd_previous_mode_bit; in kbd_set_level()
1291 else if (level == 0 && state->mode_bit != KBD_MODE_BIT_OFF) { in kbd_set_level()
1292 kbd_previous_mode_bit = state->mode_bit; in kbd_set_level()
1293 state->mode_bit = KBD_MODE_BIT_OFF; in kbd_set_level()
1301 state->mode_bit = kbd_mode_levels[level]; in kbd_set_level()
1319 state->mode_bit = ffs(buffer.output[1] & 0xFFFF); in kbd_get_state()
1320 if (state->mode_bit != 0) in kbd_get_state()
1321 state->mode_bit--; in kbd_get_state()
1342 input1 = BIT(state->mode_bit) & 0xFFFF; in kbd_set_state()
1475 kbd_previous_mode_bit = state.mode_bit; in kbd_init_info()
1740 triggers_enabled = kbd_is_trigger_mode_bit(state.mode_bit); in kbd_led_triggers_store()
1789 new_state.mode_bit = KBD_MODE_BIT_TRIGGER; in kbd_led_triggers_store()
1794 if (!(kbd_info.modes & BIT(new_state.mode_bit))) { in kbd_led_triggers_store()
1801 if (new_state.mode_bit != KBD_MODE_BIT_OFF) in kbd_led_triggers_store()
1802 kbd_previous_mode_bit = new_state.mode_bit; in kbd_led_triggers_store()
1824 triggers_enabled = kbd_is_trigger_mode_bit(state.mode_bit); in kbd_led_triggers_show()
1869 if (enable == kbd_is_als_mode_bit(state.mode_bit)) { in kbd_led_als_enabled_store()
1877 triggers_enabled = kbd_is_trigger_mode_bit(state.mode_bit); in kbd_led_als_enabled_store()
1881 new_state.mode_bit = KBD_MODE_BIT_TRIGGER_ALS; in kbd_led_als_enabled_store()
1883 new_state.mode_bit = KBD_MODE_BIT_ALS; in kbd_led_als_enabled_store()
1886 new_state.mode_bit = KBD_MODE_BIT_TRIGGER; in kbd_led_als_enabled_store()
1889 new_state.mode_bit = KBD_MODE_BIT_ON; in kbd_led_als_enabled_store()
1892 if (!(kbd_info.modes & BIT(new_state.mode_bit))) { in kbd_led_als_enabled_store()
1900 kbd_previous_mode_bit = new_state.mode_bit; in kbd_led_als_enabled_store()
1919 enabled = kbd_is_als_mode_bit(state.mode_bit); in kbd_led_als_enabled_show()