Home
last modified time | relevance | path

Searched refs:btn (Results 1 – 13 of 13) sorted by relevance

/drivers/input/keyboard/
Dhil_kbd.c251 unsigned int btn = ptr->data[cnt++]; in hil_dev_handle_ptr_events() local
252 int up = btn & 1; in hil_dev_handle_ptr_events()
254 btn &= 0xfe; in hil_dev_handle_ptr_events()
255 if (btn == 0x8e) in hil_dev_handle_ptr_events()
257 if (btn > 0x8c || btn < 0x80) in hil_dev_handle_ptr_events()
259 btn = (btn - 0x80) >> 1; in hil_dev_handle_ptr_events()
260 btn = ptr->btnmap[btn]; in hil_dev_handle_ptr_events()
261 input_report_key(dev, btn, !up); in hil_dev_handle_ptr_events()
/drivers/macintosh/
Dmac_hid.c75 unsigned int btn; in mac_hid_emumouse_filter() local
81 btn = BTN_MIDDLE; in mac_hid_emumouse_filter()
83 btn = BTN_RIGHT; in mac_hid_emumouse_filter()
87 input_report_key(mac_hid_emumouse_dev, btn, value); in mac_hid_emumouse_filter()
/drivers/input/joystick/
Dguillemot.c45 short *btn; member
127 for (i = 0; i < 16 && guillemot->type->btn[i] >= 0; i++) in guillemot_poll()
128 input_report_key(dev, guillemot->type->btn[i], (data[2 + (i >> 3)] >> (i & 7)) & 1); in guillemot_poll()
232 for (i = 0; (t = guillemot->type->btn[i]) >= 0; i++) in guillemot_connect()
Dtmdc.c101 const short *btn; member
116 short *btn[2];
209 input_report_key(port->dev, port->btn[i + l], in tmdc_parse_packet()
283 port->btn = model->buttons; in tmdc_setup_port()
328 set_bit(port->btn[j + b], input_dev->keybit); in tmdc_setup_port()
Dinteract.c60 short *btn; member
262 for (i = 0; (t = interact_type[interact->type].btn[i]) >= 0; i++) in interact_connect()
/drivers/input/touchscreen/
Dcyttsp4_core.c543 int btn; in cyttsp4_si_get_btn_data() local
553 p = krealloc(si->btn, si->si_ofs.btn_keys_size, in cyttsp4_si_get_btn_data()
560 si->btn = p; in cyttsp4_si_get_btn_data()
570 for (btn = 0; btn < si->si_ofs.num_btns && in cyttsp4_si_get_btn_data()
571 btn < num_defined_keys; btn++) { in cyttsp4_si_get_btn_data()
574 si->btn[btn].key_code = key_table[btn]; in cyttsp4_si_get_btn_data()
575 si->btn[btn].state = CY_BTN_RELEASED; in cyttsp4_si_get_btn_data()
576 si->btn[btn].enabled = true; in cyttsp4_si_get_btn_data()
578 for (; btn < si->si_ofs.num_btns; btn++) { in cyttsp4_si_get_btn_data()
579 si->btn[btn].key_code = KEY_RESERVED; in cyttsp4_si_get_btn_data()
[all …]
Dcyttsp4_core.h302 struct cyttsp4_btn *btn; /* button states */ member
/drivers/input/misc/
Dsoc_button_array.c346 int i, btn, collection_uid = -1; in soc_button_get_button_info() local
404 for (i = 1, btn = 0; i < btns_desc->package.count; i++, btn++) { in soc_button_get_button_info()
408 &button_info[btn])) { in soc_button_get_button_info()
/drivers/input/joystick/iforce/
Diforce-packets.c127 for (i = 0; iforce->type->btn[i] >= 0; i++) in iforce_report_hats_buttons()
128 input_report_key(dev, iforce->type->btn[i], in iforce_report_hats_buttons()
Diforce-main.c336 for (i = 0; iforce->type->btn[i] >= 0; i++) in iforce_init_device()
337 set_bit(iforce->type->btn[i], input_dev->keybit); in iforce_init_device()
Diforce.h70 signed short *btn; member
Diforce-ff.c171 for (i = 1; iforce->type->btn[i] >= 0; i++) in find_button()
172 if (iforce->type->btn[i] == button) in find_button()
/drivers/input/mouse/
Dsentelic.c314 static int fsp_get_buttons(struct psmouse *psmouse, int *btn) in fsp_get_buttons() argument
327 *btn = buttons[(val & 0x30) >> 4]; in fsp_get_buttons()