Searched refs:btn (Results 1 – 12 of 12) sorted by relevance
/drivers/input/keyboard/ |
D | hil_kbd.c | 251 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/ |
D | mac_hid.c | 74 unsigned int btn; in mac_hid_emumouse_filter() local 80 btn = BTN_MIDDLE; in mac_hid_emumouse_filter() 82 btn = BTN_RIGHT; in mac_hid_emumouse_filter() 86 input_report_key(mac_hid_emumouse_dev, btn, value); in mac_hid_emumouse_filter()
|
/drivers/input/joystick/ |
D | guillemot.c | 61 short *btn; member 143 for (i = 0; i < 16 && guillemot->type->btn[i] >= 0; i++) in guillemot_poll() 144 input_report_key(dev, guillemot->type->btn[i], (data[2 + (i >> 3)] >> (i & 7)) & 1); in guillemot_poll() 248 for (i = 0; (t = guillemot->type->btn[i]) >= 0; i++) in guillemot_connect()
|
D | tmdc.c | 117 const short *btn; member 132 short *btn[2]; 225 input_report_key(port->dev, port->btn[i + l], in tmdc_parse_packet() 299 port->btn = model->buttons; in tmdc_setup_port() 344 set_bit(port->btn[j + b], input_dev->keybit); in tmdc_setup_port()
|
D | interact.c | 76 short *btn; member 278 for (i = 0; (t = interact_type[interact->type].btn[i]) >= 0; i++) in interact_connect()
|
/drivers/input/touchscreen/ |
D | cyttsp4_core.c | 511 int btn; in cyttsp4_si_get_btn_data() local 521 p = krealloc(si->btn, si->si_ofs.btn_keys_size, in cyttsp4_si_get_btn_data() 528 si->btn = p; in cyttsp4_si_get_btn_data() 538 for (btn = 0; btn < si->si_ofs.num_btns && in cyttsp4_si_get_btn_data() 539 btn < num_defined_keys; btn++) { in cyttsp4_si_get_btn_data() 542 si->btn[btn].key_code = key_table[btn]; in cyttsp4_si_get_btn_data() 543 si->btn[btn].state = CY_BTN_RELEASED; in cyttsp4_si_get_btn_data() 544 si->btn[btn].enabled = true; in cyttsp4_si_get_btn_data() 546 for (; btn < si->si_ofs.num_btns; btn++) { in cyttsp4_si_get_btn_data() 547 si->btn[btn].key_code = KEY_RESERVED; in cyttsp4_si_get_btn_data() [all …]
|
D | cyttsp4_core.h | 326 struct cyttsp4_btn *btn; /* button states */ member
|
/drivers/input/joystick/iforce/ |
D | iforce-packets.c | 200 for (i = 0; iforce->type->btn[i] >= 0; i++) in iforce_process_packet() 201 input_report_key(dev, iforce->type->btn[i], data[(i >> 3) + 5] & (1 << (i & 7))); in iforce_process_packet()
|
D | iforce.h | 95 signed short *btn; member
|
D | iforce-main.c | 389 for (i = 0; iforce->type->btn[i] >= 0; i++) in iforce_init_device() 390 set_bit(iforce->type->btn[i], input_dev->keybit); in iforce_init_device()
|
D | iforce-ff.c | 190 for (i = 1; iforce->type->btn[i] >= 0; i++) in find_button() 191 if (iforce->type->btn[i] == button) in find_button()
|
/drivers/input/mouse/ |
D | sentelic.c | 327 static int fsp_get_buttons(struct psmouse *psmouse, int *btn) in fsp_get_buttons() argument 340 *btn = buttons[(val & 0x30) >> 4]; in fsp_get_buttons()
|