• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/hid/

Lines Matching defs:input

2  * $Id: hid-input.c,v 1.1.1.1 2007/08/03 18:52:30 Exp $
68 #define map_abs(c) do { usage->code = c; usage->type = EV_ABS; bit = input->absbit; max = ABS_MAX; } while (0)
69 #define map_rel(c) do { usage->code = c; usage->type = EV_REL; bit = input->relbit; max = REL_MAX; } while (0)
70 #define map_key(c) do { usage->code = c; usage->type = EV_KEY; bit = input->keybit; max = KEY_MAX; } while (0)
71 #define map_led(c) do { usage->code = c; usage->type = EV_LED; bit = input->ledbit; max = LED_MAX; } while (0)
146 static int hidinput_pb_event(struct hid_device *hid, struct input_dev *input,
155 input_event(input, usage->type, usage->code, value);
180 input_event(input, usage->type, trans->to, value);
187 test_bit(LED_NUML, input->led)) {
196 input_event(input, usage->type, trans->to, value);
206 input_event(input, usage->type, trans->to, value);
214 static void hidinput_pb_setup(struct input_dev *input)
218 set_bit(KEY_NUMLOCK, input->keybit);
222 set_bit(trans->to, input->keybit);
225 set_bit(trans->to, input->keybit);
228 set_bit(trans->to, input->keybit);
232 static inline int hidinput_pb_event(struct hid_device *hid, struct input_dev *input,
238 static inline void hidinput_pb_setup(struct input_dev *input)
329 struct input_dev *input = hidinput->input;
330 struct hid_device *device = input_get_drvdata(input);
352 set_bit(EV_REP, input->evbit);
475 if (!test_bit(BTN_TOUCH, input->keybit)) {
477 set_bit(EV_KEY, input->evbit);
478 set_bit(BTN_TOUCH, input->keybit);
672 set_bit(EV_REP, input->evbit);
695 set_bit(EV_REP, input->evbit);
700 hidinput_pb_setup(input);
709 set_bit(EV_REP, input->evbit);
779 set_bit(usage->type, input->evbit);
805 input_set_abs_params(input, usage->code, a, b, (b - a) >> 8, (b - a) >> 4);
806 else input_set_abs_params(input, usage->code, a, b, 0, 0);
814 input_set_abs_params(input, i, -1, 1, 0, 0);
815 set_bit(i, input->absbit);
836 struct input_dev *input;
842 input = field->hidinput->input;
855 input_event(input, usage->type, usage->code, -value);
860 input_event(input, usage->type, REL_HWHEEL, value);
864 if ((hid->quirks & HID_QUIRK_POWERBOOK_HAS_FN) && hidinput_pb_event(hid, input, usage, value))
872 input_event(input, usage->type, usage->code , hid_hat_to_axis[hat_dir].x);
873 input_event(input, usage->type, usage->code + 1, hid_hat_to_axis[hat_dir].y);
884 input_event(input, usage->type, (*quirks & HID_QUIRK_INVERT) ? BTN_TOOL_RUBBER : usage->code, 1);
887 input_event(input, usage->type, usage->code, 0);
888 input_event(input, usage->type, BTN_TOOL_RUBBER, 0);
895 input_event(input, EV_KEY, BTN_TOUCH, value > a + ((b - a) >> 3));
911 input_event(input, usage->type, usage->code, value);
914 input_event(input, usage->type, usage->code, 0);
922 input_sync(hidinput->input);
958 * Register the input device; print a message.
959 * Configure the input layer interface
997 err("Out of memory during hid input probe");
1016 hidinput->input = input_dev;
1032 input_register_device(hidinput->input);
1038 input_register_device(hidinput->input);
1050 input_unregister_device(hidinput->input);