Lines Matching refs:input
540 struct input_dev *input = hidinput->input;
541 struct hid_device *device = input_get_drvdata(input);
576 set_bit(EV_REP, input->evbit);
770 set_bit(REL_WHEEL, input->relbit);
856 __set_bit(INPUT_PROP_POINTER, input->propbit);
858 __set_bit(INPUT_PROP_DIRECT, input->propbit);
866 if (!test_bit(BTN_TOUCH, input->keybit)) {
868 set_bit(EV_KEY, input->evbit);
869 set_bit(BTN_TOUCH, input->keybit);
933 bit = input->mscbit;
1451 set_bit(REL_HWHEEL, input->relbit);
1522 set_bit(EV_REP, input->evbit);
1566 set_bit(EV_REP, input->evbit);
1586 set_bit(EV_REP, input->evbit);
1638 set_bit(usage->type, input->evbit);
1678 input_set_abs_params(input, usage->code, a, b, (b - a) >> 0x8, (b - a) >> 0x4);
1680 input_set_abs_params(input, usage->code, a, b, 0, 0);
1683 input_abs_set_res(input, usage->code, hidinput_calc_abs_res(field, usage->code));
1685 /* use a larger default input buffer for MT devices */
1686 if (usage->code == ABS_MT_POSITION_X && input->hint_events_per_packet == 0) {
1687 input_set_events_per_packet(input, 0x3C);
1694 input_set_abs_params(input, i, -1, 1, 0, 0);
1695 set_bit(i, input->absbit);
1707 set_bit(KEY_VOLUMEUP, input->keybit);
1708 set_bit(KEY_VOLUMEDOWN, input->keybit);
1712 set_bit(EV_MSC, input->evbit);
1713 set_bit(MSC_SCAN, input->mscbit);
1723 static void hidinput_handle_scroll(struct hid_usage *usage, struct input_dev *input, __s32 value)
1752 input_event(input, EV_REL, code, lo_res);
1753 input_event(input, EV_REL, usage->code, hi_res);
1758 struct input_dev *input;
1774 input = field->hidinput->input;
1790 input_event(input, usage->type, usage->code, hid_hat_to_axis[hat_dir].x);
1791 input_event(input, usage->type, usage->code + 1, hid_hat_to_axis[hat_dir].y);
1802 input_event(input, usage->type, (*quirks & HID_QUIRK_INVERT) ? BTN_TOOL_RUBBER : usage->code, 1);
1805 input_event(input, usage->type, usage->code, 0);
1806 input_event(input, usage->type, BTN_TOOL_RUBBER, 0);
1813 input_event(input, EV_KEY, BTN_TOUCH, value > a + ((b - a) >> 0x3));
1831 hidinput_handle_scroll(usage, input, value);
1841 input_event(input, EV_KEY, direction, 1);
1842 input_sync(input);
1843 input_event(input, EV_KEY, direction, 0);
1844 input_sync(input);
1852 * When it's not, clamp the value to match Microsoft's input
1876 * the input layer. If we filter the 'dead' keys on the HID level, we
1886 if (usage->type == EV_KEY && (!test_bit(usage->code, input->key)) == value) {
1887 input_event(input, EV_MSC, MSC_SCAN, usage->hid);
1890 input_event(input, usage->type, usage->code, value);
1893 input_sync(input);
1894 input_event(input, usage->type, usage->code, 0);
1906 list_for_each_entry(hidinput, &hid->inputs, list) input_sync(hidinput->input);
2249 hidinput->input = input_dev;
2260 hid_err(hid, "Out of memory during hid input probe\n");
2270 r |= hidinput->input->evbit[i];
2274 r |= hidinput->input->keybit[i];
2278 r |= hidinput->input->relbit[i];
2282 r |= hidinput->input->absbit[i];
2286 r |= hidinput->input->mscbit[i];
2290 r |= hidinput->input->ledbit[i];
2294 r |= hidinput->input->sndbit[i];
2298 r |= hidinput->input->ffbit[i];
2302 r |= hidinput->input->swbit[i];
2314 input_free_device(hidinput->input);
2377 * Register the input device; print a message.
2378 * Configure the input layer interface
2461 /* no need to register an input device not populated */
2466 if (input_register_device(hidinput->input)) {
2502 input_unregister_device(hidinput->input);
2504 input_free_device(hidinput->input);
2511 * parent input_dev at all. Once all input devices are removed, we