Lines Matching defs:input

38 #include <linux/input/mt.h>
120 unsigned int mt_flags; /* flags to pass to input-mt */
517 static void set_abs(struct input_dev *input, unsigned int code,
523 input_set_abs_params(input, code, fmin, fmax, fuzz, 0);
524 input_abs_set_res(input, code, hidinput_calc_abs_res(field, code));
754 set_abs(hi->input, code, field, cls->sn_move);
762 hi->input->propbit);
763 input_set_abs_params(hi->input,
779 set_abs(hi->input, code, field, cls->sn_move);
789 input_set_abs_params(hi->input,
804 input_set_abs_params(hi->input,
813 input_set_capability(hi->input,
823 set_abs(hi->input, ABS_MT_TOUCH_MAJOR, field,
829 set_abs(hi->input, ABS_MT_TOUCH_MINOR, field,
837 hi->input->absbit))
838 input_set_abs_params(hi->input,
844 set_abs(hi->input, ABS_MT_PRESSURE, field,
849 input_set_capability(hi->input, EV_MSC, MSC_TIMESTAMP);
863 input_set_abs_params(hi->input, ABS_MT_ORIENTATION,
878 /* let hid-input decide for the others */
898 input_set_capability(hi->input, EV_KEY, code);
902 /* we do not want to map these: no input-oriented meaning */
911 struct input_dev *input)
927 return input_mt_get_slot_by_key(input, *slot->contactid);
932 struct input_dev *input)
940 input_mt_slot(input, slotnum);
941 input_mt_report_slot_inactive(input);
947 input_mt_sync_frame(input);
948 input_sync(input);
954 * so that it can decide what to send to the input layer.
957 struct input_dev *input)
960 input_event(input, EV_KEY, BTN_LEFT, app->left_button_state);
962 input_mt_sync_frame(input);
963 input_event(input, EV_MSC, MSC_TIMESTAMP, app->timestamp);
964 input_sync(input);
966 mt_release_pending_palms(td, app, input);
1008 static int mt_process_slot(struct mt_device *td, struct input_dev *input,
1012 struct input_mt *mt = input->mt;
1041 slotnum = mt_compute_slot(td, app, slot, input);
1081 input_mt_slot(input, slotnum);
1082 input_mt_report_slot_state(input, tool, active);
1108 max_azimuth = input_abs_get_max(input,
1128 input_abs_get_max(input, ABS_MT_POSITION_X) - *slot->x :
1131 input_abs_get_max(input, ABS_MT_POSITION_Y) - *slot->y :
1134 input_abs_get_max(input, ABS_MT_POSITION_X) - *slot->cx :
1137 input_abs_get_max(input, ABS_MT_POSITION_Y) - *slot->cy :
1140 input_event(input, EV_ABS, ABS_MT_POSITION_X, x);
1141 input_event(input, EV_ABS, ABS_MT_POSITION_Y, y);
1142 input_event(input, EV_ABS, ABS_MT_TOOL_X, cx);
1143 input_event(input, EV_ABS, ABS_MT_TOOL_Y, cy);
1144 input_event(input, EV_ABS, ABS_MT_DISTANCE, !*slot->tip_state);
1145 input_event(input, EV_ABS, ABS_MT_ORIENTATION, orientation);
1146 input_event(input, EV_ABS, ABS_MT_PRESSURE, *slot->p);
1147 input_event(input, EV_ABS, ABS_MT_TOUCH_MAJOR, major);
1148 input_event(input, EV_ABS, ABS_MT_TOUCH_MINOR, minor);
1164 struct input_dev *input = field->hidinput->input;
1192 input_event(input, usage->type, usage->code, value);
1202 struct input_dev *input;
1243 input = report->field[0]->hidinput->input;
1246 if (!mt_process_slot(td, input, app, slot))
1264 mt_sync_frame(td, app, input);
1301 struct input_dev *input = hi->input;
1323 __set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
1325 app->pending_palm_slots = devm_kcalloc(&hi->input->dev,
1332 ret = input_mt_init_slots(input, td->maxcontacts, app->mt_flags);
1380 * map usages to input keys.
1385 set_bit(EV_REP, hi->input->evbit);
1424 /* We own these mappings, tell hid-input to ignore them */
1458 if (field && field->hidinput && field->hidinput->input)
1459 input_sync(field->hidinput->input);
1481 * Some elan panels wrongly declare 2 input mode features,
1633 hi->input->name = hdev->name;
1640 __set_bit(BTN_STYLUS, hi->input->keybit);
1648 hi->input->name = devm_kasprintf(&hdev->dev, GFP_KERNEL,
1689 struct input_dev *input_dev = hidinput->input;
1714 * An input report came in just before we release the sticky fingers,
1768 * This allows the driver to handle different input sensors