Home
last modified time | relevance | path

Searched refs:key_code (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/platform/surface/
H A Dsurfacepro3_button.c78 int key_code = KEY_RESERVED; in surface_button_notify() local
87 key_code = KEY_POWER; in surface_button_notify()
94 key_code = KEY_LEFTMETA; in surface_button_notify()
101 key_code = KEY_VOLUMEUP; in surface_button_notify()
108 key_code = KEY_VOLUMEDOWN; in surface_button_notify()
119 if (key_code == KEY_RESERVED) in surface_button_notify()
125 input_report_key(input, key_code, pressed?1:0); in surface_button_notify()
/linux/drivers/platform/x86/
H A Dxiaomi-wmi.c26 unsigned int key_code; member
60 data->key_code = *((const unsigned int *)context); in xiaomi_wmi_probe()
62 set_bit(data->key_code, data->input_dev->keybit); in xiaomi_wmi_probe()
72 input_report_key(data->input_dev, data->key_code, 1); in xiaomi_wmi_notify()
74 input_report_key(data->input_dev, data->key_code, 0); in xiaomi_wmi_notify()
H A Dasus-tf103c-dock.c314 static void tf103c_dock_toprow_press(struct tf103c_dock_data *dock, int key_code) in tf103c_dock_toprow_press() argument
325 input_report_key(dock->input, key_code, true); in tf103c_dock_toprow_press()
329 static void tf103c_dock_toprow_release(struct tf103c_dock_data *dock, int key_code) in tf103c_dock_toprow_release() argument
331 input_report_key(dock->input, key_code, false); in tf103c_dock_toprow_release()
343 int key_code, fn = dock->altgr_pressed ^ fnlock; in tf103c_dock_toprow_event() local
353 key_code = tf103c_dock_toprow_codes[toprow_index][fn]; in tf103c_dock_toprow_event()
354 tf103c_dock_toprow_press(dock, key_code); in tf103c_dock_toprow_event()
357 *last_press = key_code; in tf103c_dock_toprow_event()
359 tf103c_dock_toprow_release(dock, key_code); in tf103c_dock_toprow_event()
/linux/drivers/hid/
H A Dhid-picolcd_core.c128 unsigned int key_code; in picolcd_raw_keypad() local
141 key_code = data->keycode[raw_data[i]]; in picolcd_raw_keypad()
143 key_code = KEY_UNKNOWN; in picolcd_raw_keypad()
144 if (key_code != KEY_UNKNOWN) { in picolcd_raw_keypad()
146 raw_data[i], key_code); in picolcd_raw_keypad()
147 input_report_key(data->input_keys, key_code, 1); in picolcd_raw_keypad()
156 unsigned int key_code; in picolcd_raw_keypad() local
164 key_code = data->keycode[data->pressed_keys[j]]; in picolcd_raw_keypad()
166 key_code = KEY_UNKNOWN; in picolcd_raw_keypad()
167 if (key_code != KEY_UNKNOWN) { in picolcd_raw_keypad()
[all …]
/linux/drivers/input/keyboard/
H A Dmcs_touchkey.c49 unsigned int key_code; member
80 data->key_code = data->keycodes[key_val]; in mcs_touchkey_interrupt()
85 input_report_key(input, data->key_code, pressed); in mcs_touchkey_interrupt()
88 dev_dbg(&client->dev, "key %d %d %s\n", data->key_val, data->key_code, in mcs_touchkey_interrupt()
H A Dsamsung-keypad.c287 u32 row, col, key_code; in samsung_keypad_parse_dt() local
290 of_property_read_u32(key_np, "linux,code", &key_code); in samsung_keypad_parse_dt()
291 *keymap++ = KEY(row, col, key_code); in samsung_keypad_parse_dt()
/linux/drivers/input/rmi4/
H A Drmi_f3a.c41 u16 key_code = f3a->gpio_key_map[button]; in rmi_f3a_report_button() local
47 rmi_f03_overwrite_button(f3a->f03, key_code, key_down); in rmi_f3a_report_button()
51 __func__, key_code, key_down); in rmi_f3a_report_button()
52 input_report_key(f3a->input, key_code, key_down); in rmi_f3a_report_button()
H A Drmi_f30.c106 u16 key_code = f30->gpioled_key_map[button]; in rmi_f30_report_button() local
112 rmi_f03_overwrite_button(f30->f03, key_code, key_down); in rmi_f30_report_button()
116 __func__, key_code, key_down); in rmi_f30_report_button()
118 input_report_key(f30->input, key_code, key_down); in rmi_f30_report_button()
/linux/drivers/platform/x86/hp/
H A Dhp-wmi.c831 int key_code; in hp_wmi_notify() local
882 key_code = hp_wmi_read_int(HPWMI_HOTKEY_QUERY); in hp_wmi_notify()
883 if (key_code < 0) in hp_wmi_notify()
887 key_code, 1, true)) in hp_wmi_notify()
888 pr_info("Unknown key code - 0x%x\n", key_code); in hp_wmi_notify()
892 key_code = event_data; in hp_wmi_notify()
894 key_code = hp_wmi_read_int(HPWMI_HOTKEY_QUERY); in hp_wmi_notify()
897 key_code, 1, true)) in hp_wmi_notify()
898 pr_info("Unknown key code - 0x%x\n", key_code); in hp_wmi_notify()
/linux/drivers/input/misc/
H A Dyealink.c104 int key_code; /* last reported key */ member
226 if (yld->key_code >= 0) { in report_key()
228 input_report_key(idev, yld->key_code & 0xff, 0); in report_key()
229 if (yld->key_code >> 8) in report_key()
230 input_report_key(idev, yld->key_code >> 8, 0); in report_key()
233 yld->key_code = key; in report_key()
511 yld->key_code = -1; /* no keys pressed */ in input_open()
H A Dcm109.c126 int key_code; /* last reported key */ member
298 if (dev->key_code >= 0) { in report_key()
300 input_report_key(idev, dev->key_code, 0); in report_key()
303 dev->key_code = key; in report_key()
562 dev->key_code = -1; /* no keys pressed */ in cm109_input_open()
/linux/drivers/misc/ibmasm/
H A Dremote.c136 input->data.keyboard.key_code, in print_input()
137 input->data.keyboard.key_code, in print_input()
160 unsigned short code = input->data.keyboard.key_code; in send_keyboard_event()
H A Dremote.h56 unsigned short key_code; member
/linux/drivers/input/touchscreen/
H A Dcyttsp5.c174 u32 key_code[HID_SYSINFO_MAX_BTN]; member
419 memset32(si->key_code, KEY_RESERVED, si->num_btns); in cyttsp5_parse_dt_key_code()
422 si->key_code, si->num_btns); in cyttsp5_parse_dt_key_code()
450 input_report_key(ts->input, si->key_code[cur_btn], in cyttsp5_btn_attention()
908 __set_bit(si->key_code[i], ts->input->keybit); in cyttsp5_probe()
H A Dmelfas_mip4.c172 unsigned short key_code[MIP4_MAX_KEYS]; member
399 input_report_key(ts->input, ts->key_code[i], 0); in mip4_clear_input()
451 unsigned short keycode = ts->key_code[key - 1]; in mip4_report_keys()
1474 input->keycode = ts->key_code; in mip4_probe()
1475 input->keycodesize = sizeof(*ts->key_code); in mip4_probe()
H A Dcyttsp4_core.h294 int key_code; member
H A Dcyttsp4_core.c574 si->btn[btn].key_code = key_table[btn]; in cyttsp4_si_get_btn_data()
579 si->btn[btn].key_code = KEY_RESERVED; in cyttsp4_si_get_btn_data()
/linux/drivers/media/common/b2c2/
H A Dflexcop_ibi_value_be.h374 u32 key_code : 2; member
H A Dflexcop_ibi_value_le.h371 u32 key_code : 2; member
/linux/include/linux/greybus/
H A Dgreybus_protocols.h1169 __le16 key_code; member