Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/platform/x86/
Dxiaomi-wmi.c23 unsigned int key_code; member
44 data->key_code = *((const unsigned int *)context); in xiaomi_wmi_probe()
46 set_bit(data->key_code, data->input_dev->keybit); in xiaomi_wmi_probe()
62 input_report_key(data->input_dev, data->key_code, 1); in xiaomi_wmi_notify()
64 input_report_key(data->input_dev, data->key_code, 0); in xiaomi_wmi_notify()
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()
Dhp-wmi.c762 int key_code; in hp_wmi_notify() local
813 key_code = hp_wmi_read_int(HPWMI_HOTKEY_QUERY); in hp_wmi_notify()
814 if (key_code < 0) in hp_wmi_notify()
818 key_code, 1, true)) in hp_wmi_notify()
819 pr_info("Unknown key code - 0x%x\n", key_code); in hp_wmi_notify()
/Linux-v6.1/drivers/platform/surface/
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-v6.1/drivers/hid/
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-v6.1/drivers/input/keyboard/
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()
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-v6.1/drivers/input/rmi4/
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()
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-v6.1/drivers/input/misc/
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()
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-v6.1/drivers/misc/ibmasm/
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()
Dremote.h56 unsigned short key_code; member
/Linux-v6.1/drivers/input/touchscreen/
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()
1482 input->keycode = ts->key_code; in mip4_probe()
1483 input->keycodesize = sizeof(*ts->key_code); in mip4_probe()
Dcyttsp4_core.h294 int key_code; member
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-v6.1/drivers/media/common/b2c2/
Dflexcop_ibi_value_le.h371 u32 key_code : 2; member
Dflexcop_ibi_value_be.h374 u32 key_code : 2; member
/Linux-v6.1/include/linux/greybus/
Dgreybus_protocols.h1173 __le16 key_code; member