Lines Matching defs:input
62 * hid-input will convert this list into priorities:
67 * hid-input will then shift the priority by 8 bits to leave some space
73 * If drivers want to add fields before those, hid-input will
690 struct input_dev *input = hidinput->input;
691 struct hid_device *device = input_get_drvdata(input);
748 set_bit(EV_REP, input->evbit);
887 set_bit(REL_WHEEL, input->relbit);
944 __set_bit(INPUT_PROP_POINTER, input->propbit);
946 __set_bit(INPUT_PROP_DIRECT, input->propbit);
953 if (!test_bit(BTN_TOUCH, input->keybit)) {
955 set_bit(EV_KEY, input->evbit);
956 set_bit(BTN_TOUCH, input->keybit);
1025 if (!test_bit(BTN_TOOL_RUBBER, input->keybit)) {
1027 set_bit(BTN_TOOL_RUBBER, input->keybit);
1233 set_bit(REL_HWHEEL, input->relbit);
1295 set_bit(EV_REP, input->evbit);
1314 set_bit(EV_REP, input->evbit);
1327 set_bit(EV_REP, input->evbit);
1377 set_bit(usage->type, input->evbit);
1419 input_set_abs_params(input, usage->code, a, b, (b - a) >> 8, (b - a) >> 4);
1420 else input_set_abs_params(input, usage->code, a, b, 0, 0);
1422 input_abs_set_res(input, usage->code,
1425 /* use a larger default input buffer for MT devices */
1426 if (usage->code == ABS_MT_POSITION_X && input->hint_events_per_packet == 0)
1427 input_set_events_per_packet(input, 60);
1434 input_set_abs_params(input, i, -1, 1, 0, 0);
1435 set_bit(i, input->absbit);
1447 set_bit(KEY_VOLUMEUP, input->keybit);
1448 set_bit(KEY_VOLUMEDOWN, input->keybit);
1452 set_bit(EV_MSC, input->evbit);
1453 set_bit(MSC_SCAN, input->mscbit);
1464 struct input_dev *input,
1491 input_event(input, EV_REL, code, lo_res);
1492 input_event(input, EV_REL, usage->code, hi_res);
1495 static void hid_report_release_tool(struct hid_report *report, struct input_dev *input,
1499 if (!test_bit(tool, input->key))
1506 input_event(input, EV_KEY, BTN_TOUCH, 0);
1507 input_event(input, EV_KEY, tool, 0);
1508 input_event(input, EV_SYN, SYN_REPORT, 0);
1513 static void hid_report_set_tool(struct hid_report *report, struct input_dev *input,
1517 hid_report_release_tool(report, input, report->tool);
1519 input_event(input, EV_KEY, new_tool, 1);
1525 struct input_dev *input;
1544 input = field->hidinput->input;
1551 input_event(input, usage->type, usage->code , hid_hat_to_axis[hat_dir].x);
1552 input_event(input, usage->type, usage->code + 1, hid_hat_to_axis[hat_dir].y);
1559 * When it's not, clamp the value to match Microsoft's input
1589 hid_report_set_tool(report, input, BTN_TOOL_RUBBER);
1594 !test_bit(BTN_TOUCH, input->key)) {
1599 hid_report_release_tool(report, input, BTN_TOOL_RUBBER);
1603 /* let hid-input set BTN_TOUCH */
1613 hid_report_set_tool(report, input, BTN_TOOL_RUBBER);
1616 hid_report_release_tool(report, input, BTN_TOOL_RUBBER);
1633 hid_report_set_tool(report, input, report->tool);
1635 hid_report_release_tool(report, input, usage->code);
1659 input_event(input, EV_KEY, BTN_TOUCH, 1);
1683 hidinput_handle_scroll(usage, input, value);
1696 input_event(input, EV_KEY, direction, 1);
1697 input_sync(input);
1698 input_event(input, EV_KEY, direction, 0);
1699 input_sync(input);
1716 * the input layer. If we filter the 'dead' keys on the HID level, we
1728 (!test_bit(usage->code, input->key)) == value)
1729 input_event(input, EV_MSC, MSC_SCAN, usage->hid);
1731 input_event(input, usage->type, usage->code, value);
1735 input_sync(input);
1736 input_event(input, usage->type, usage->code, 0);
1748 input_sync(hidinput->input);
2094 hidinput->input = input_dev;
2105 hid_err(hid, "Out of memory during hid input probe\n");
2115 r |= hidinput->input->evbit[i];
2118 r |= hidinput->input->keybit[i];
2121 r |= hidinput->input->relbit[i];
2124 r |= hidinput->input->absbit[i];
2127 r |= hidinput->input->mscbit[i];
2130 r |= hidinput->input->ledbit[i];
2133 r |= hidinput->input->sndbit[i];
2136 r |= hidinput->input->ffbit[i];
2139 r |= hidinput->input->swbit[i];
2151 input_free_device(hidinput->input);
2271 * Register the input device; print a message.
2272 * Configure the input layer interface
2350 /* no need to register an input device not populated */
2355 if (input_register_device(hidinput->input))
2388 input_unregister_device(hidinput->input);
2390 input_free_device(hidinput->input);
2396 * parent input_dev at all. Once all input devices are removed, we
2404 #include "hid-input-test.c"