Home
last modified time | relevance | path

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

/linux/drivers/platform/surface/
H A Dsurfacepro3_button.c80 int key_code = KEY_RESERVED; in surface_button_notify() local
89 key_code = KEY_POWER; in surface_button_notify()
96 key_code = KEY_LEFTMETA; in surface_button_notify()
103 key_code = KEY_VOLUMEUP; in surface_button_notify()
110 key_code = KEY_VOLUMEDOWN; in surface_button_notify()
120 if (key_code == KEY_RESERVED) in surface_button_notify()
126 input_report_key(input, key_code, pressed?1:0); in surface_button_notify()
/linux/drivers/input/rmi4/
H A Drmi_f21.c31 u16 key_code; member
73 input_report_key(f21->input, f21->key_code, pressed); in rmi_f21_attention()
91 f21->key_code = BTN_LEFT; in rmi_f21_initialize()
93 input->keycode = &f21->key_code; in rmi_f21_initialize()
94 input->keycodesize = sizeof(f21->key_code); in rmi_f21_initialize()
97 input_set_capability(input, EV_KEY, f21->key_code); in rmi_f21_initialize()
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/hid/
H A Dhid-picolcd_core.c129 unsigned int key_code; in picolcd_raw_keypad() local
142 key_code = data->keycode[raw_data[i]]; in picolcd_raw_keypad()
144 key_code = KEY_UNKNOWN; in picolcd_raw_keypad()
145 if (key_code != KEY_UNKNOWN) { in picolcd_raw_keypad()
147 raw_data[i], key_code); in picolcd_raw_keypad()
148 input_report_key(data->input_keys, key_code, 1); in picolcd_raw_keypad()
157 unsigned int key_code; in picolcd_raw_keypad() local
165 key_code = data->keycode[data->pressed_keys[j]]; in picolcd_raw_keypad()
167 key_code = KEY_UNKNOWN; in picolcd_raw_keypad()
168 if (key_code != KEY_UNKNOWN) { in picolcd_raw_keypad()
[all …]
/linux/drivers/platform/x86/
H A Dasus-tf103c-dock.c313 static void tf103c_dock_toprow_press(struct tf103c_dock_data *dock, int key_code) in tf103c_dock_toprow_press() argument
324 input_report_key(dock->input, key_code, true); in tf103c_dock_toprow_press()
328 static void tf103c_dock_toprow_release(struct tf103c_dock_data *dock, int key_code) in tf103c_dock_toprow_release() argument
330 input_report_key(dock->input, key_code, false); in tf103c_dock_toprow_release()
342 int key_code, fn = dock->altgr_pressed ^ fnlock; in tf103c_dock_toprow_event() local
352 key_code = tf103c_dock_toprow_codes[toprow_index][fn]; in tf103c_dock_toprow_event()
353 tf103c_dock_toprow_press(dock, key_code); in tf103c_dock_toprow_event()
356 *last_press = key_code; in tf103c_dock_toprow_event()
358 tf103c_dock_toprow_release(dock, key_code); in tf103c_dock_toprow_event()
/linux/drivers/input/misc/
H A Dyealink.c95 int key_code; /* last reported key */ member
219 if (yld->key_code >= 0) { in report_key()
221 input_report_key(idev, yld->key_code & 0xff, 0); in report_key()
222 if (yld->key_code >> 8) in report_key()
223 input_report_key(idev, yld->key_code >> 8, 0); in report_key()
226 yld->key_code = key; in report_key()
504 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()
556 dev->key_code = -1; /* no keys pressed */ in cm109_input_open()
/linux/drivers/input/touchscreen/
H A Dcyttsp5.c173 u32 key_code[HID_SYSINFO_MAX_BTN]; member
418 memset32(si->key_code, KEY_RESERVED, si->num_btns); in cyttsp5_parse_dt_key_code()
421 si->key_code, si->num_btns); in cyttsp5_parse_dt_key_code()
449 input_report_key(ts->input, si->key_code[cur_btn], in cyttsp5_btn_attention()
911 __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()
1445 input->keycode = ts->key_code; in mip4_probe()
1446 input->keycodesize = sizeof(*ts->key_code); in mip4_probe()
/linux/drivers/platform/x86/hp/
H A Dhp-wmi.c1619 int key_code; in hp_wmi_rfkill2_setup()
1659 key_code = hp_wmi_read_int(HPWMI_HOTKEY_QUERY); in hp_wmi_rfkill2_setup()
1660 if (key_code < 0) in hp_wmi_rfkill2_setup()
1664 key_code, 1, true)) in hp_wmi_rfkill2_setup()
1665 pr_info("Unknown key code - 0x%x\n", key_code); in hp_wmi_rfkill2_setup()
1672 key_code = event_data; in hp_wmi_rfkill2_setup()
1674 key_code = hp_wmi_read_int(HPWMI_HOTKEY_QUERY); in hp_wmi_rfkill2_setup()
1677 key_code, 1, true)) in hp_wmi_rfkill2_setup()
1678 pr_info("Unknown key code - 0x%x\n", key_code); in hp_wmi_rfkill2_setup()
1345 int key_code; hp_wmi_notify() local
/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