Searched refs:mode_bit (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/platform/x86/
H A Ddell-laptop.c1000 u8 mode_bit; member in struct:kbd_state
1034 * First, via kbd_state.mode_bit (assigning KBD_MODE_BIT_TRIGGER_* value).
1099 if (kbd_mode_levels[i] == state->mode_bit) kbd_get_level()
1115 if (level != 0 && state->mode_bit == KBD_MODE_BIT_OFF) kbd_set_level()
1116 state->mode_bit = kbd_previous_mode_bit; kbd_set_level()
1117 else if (level == 0 && state->mode_bit != KBD_MODE_BIT_OFF) { kbd_set_level()
1118 kbd_previous_mode_bit = state->mode_bit; kbd_set_level()
1119 state->mode_bit = KBD_MODE_BIT_OFF; kbd_set_level()
1127 state->mode_bit = kbd_mode_levels[level]; kbd_set_level()
1149 state->mode_bit = ffs(buffer->output[1] & 0xFFFF); kbd_get_state()
1150 if (state->mode_bit != 0) kbd_get_state()
1151 state->mode_bit--; kbd_get_state()
1171 buffer->input[1] = BIT(state->mode_bit) & 0xFFFF; kbd_set_state()
1299 kbd_previous_mode_bit = state.mode_bit; kbd_init_info()
1532 triggers_enabled = kbd_is_trigger_mode_bit(state.mode_bit); kbd_led_triggers_store()
1569 new_state.mode_bit = KBD_MODE_BIT_TRIGGER; kbd_led_triggers_store()
1574 if (!(kbd_info.modes & BIT(new_state.mode_bit))) kbd_led_triggers_store()
1579 if (new_state.mode_bit != KBD_MODE_BIT_OFF) kbd_led_triggers_store()
1580 kbd_previous_mode_bit = new_state.mode_bit; kbd_led_triggers_store()
1602 triggers_enabled = kbd_is_trigger_mode_bit(state.mode_bit); kbd_led_triggers_show()
1645 if (enable == kbd_is_als_mode_bit(state.mode_bit)) kbd_led_als_enabled_store()
1651 triggers_enabled = kbd_is_trigger_mode_bit(state.mode_bit); kbd_led_als_enabled_store()
1655 new_state.mode_bit = KBD_MODE_BIT_TRIGGER_ALS; kbd_led_als_enabled_store()
1657 new_state.mode_bit = KBD_MODE_BIT_ALS; kbd_led_als_enabled_store()
1660 new_state.mode_bit = KBD_MODE_BIT_TRIGGER; kbd_led_als_enabled_store()
1663 new_state.mode_bit = KBD_MODE_BIT_ON; kbd_led_als_enabled_store()
1666 if (!(kbd_info.modes & BIT(new_state.mode_bit))) kbd_led_als_enabled_store()
1672 kbd_previous_mode_bit = new_state.mode_bit; kbd_led_als_enabled_store()
1688 enabled = kbd_is_als_mode_bit(state.mode_bit); kbd_led_als_enabled_show()

Completed in 39 milliseconds