Lines Matching refs:kb_dev

134 	struct input_dev *kb_dev;  member
4939 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 1); in gpio2_mic_hotkey_event()
4940 input_sync(spec->kb_dev); in gpio2_mic_hotkey_event()
4941 input_report_key(spec->kb_dev, spec->alc_mute_keycode_map[ALC_KEY_MICMUTE_INDEX], 0); in gpio2_mic_hotkey_event()
4942 input_sync(spec->kb_dev); in gpio2_mic_hotkey_event()
4950 spec->kb_dev = input_allocate_device(); in alc_register_micmute_input_device()
4951 if (!spec->kb_dev) { in alc_register_micmute_input_device()
4958 spec->kb_dev->name = "Microphone Mute Button"; in alc_register_micmute_input_device()
4959 spec->kb_dev->evbit[0] = BIT_MASK(EV_KEY); in alc_register_micmute_input_device()
4960 spec->kb_dev->keycodesize = sizeof(spec->alc_mute_keycode_map[0]); in alc_register_micmute_input_device()
4961 spec->kb_dev->keycodemax = ARRAY_SIZE(spec->alc_mute_keycode_map); in alc_register_micmute_input_device()
4962 spec->kb_dev->keycode = spec->alc_mute_keycode_map; in alc_register_micmute_input_device()
4964 set_bit(spec->alc_mute_keycode_map[i], spec->kb_dev->keybit); in alc_register_micmute_input_device()
4966 if (input_register_device(spec->kb_dev)) { in alc_register_micmute_input_device()
4968 input_free_device(spec->kb_dev); in alc_register_micmute_input_device()
4969 spec->kb_dev = NULL; in alc_register_micmute_input_device()
5002 if (!spec->kb_dev) in alc280_fixup_hp_gpio2_mic_hotkey()
5007 input_unregister_device(spec->kb_dev); in alc280_fixup_hp_gpio2_mic_hotkey()
5008 spec->kb_dev = NULL; in alc280_fixup_hp_gpio2_mic_hotkey()
5031 if (!spec->kb_dev) in alc233_fixup_lenovo_line2_mic_hotkey()
5036 input_unregister_device(spec->kb_dev); in alc233_fixup_lenovo_line2_mic_hotkey()
5037 spec->kb_dev = NULL; in alc233_fixup_lenovo_line2_mic_hotkey()