Lines Matching defs:input

38 #include <linux/input/mt.h>
118 unsigned int mt_flags; /* flags to pass to input-mt */
487 static void set_abs(struct input_dev *input, unsigned int code,
493 input_set_abs_params(input, code, fmin, fmax, fuzz, 0);
494 input_abs_set_res(input, code, hidinput_calc_abs_res(field, code));
724 set_abs(hi->input, code, field, cls->sn_move);
732 hi->input->propbit);
733 input_set_abs_params(hi->input,
749 set_abs(hi->input, code, field, cls->sn_move);
759 input_set_abs_params(hi->input,
772 input_set_abs_params(hi->input,
781 input_set_capability(hi->input,
791 set_abs(hi->input, ABS_MT_TOUCH_MAJOR, field,
797 set_abs(hi->input, ABS_MT_TOUCH_MINOR, field,
805 hi->input->absbit))
806 input_set_abs_params(hi->input,
812 set_abs(hi->input, ABS_MT_PRESSURE, field,
817 input_set_capability(hi->input, EV_MSC, MSC_TIMESTAMP);
831 input_set_abs_params(hi->input, ABS_MT_ORIENTATION,
846 /* let hid-input decide for the others */
866 input_set_capability(hi->input, EV_KEY, code);
870 /* we do not want to map these: no input-oriented meaning */
879 struct input_dev *input)
895 return input_mt_get_slot_by_key(input, *slot->contactid);
900 struct input_dev *input)
908 input_mt_slot(input, slotnum);
909 input_mt_report_slot_inactive(input);
915 input_mt_sync_frame(input);
916 input_sync(input);
922 * so that it can decide what to send to the input layer.
925 struct input_dev *input)
928 input_event(input, EV_KEY, BTN_LEFT, app->left_button_state);
930 input_mt_sync_frame(input);
931 input_event(input, EV_MSC, MSC_TIMESTAMP, app->timestamp);
932 input_sync(input);
934 mt_release_pending_palms(td, app, input);
976 static int mt_process_slot(struct mt_device *td, struct input_dev *input,
980 struct input_mt *mt = input->mt;
1008 slotnum = mt_compute_slot(td, app, slot, input);
1048 input_mt_slot(input, slotnum);
1049 input_mt_report_slot_state(input, tool, active);
1071 max_azimuth = input_abs_get_max(input,
1087 input_event(input, EV_ABS, ABS_MT_POSITION_X, *slot->x);
1088 input_event(input, EV_ABS, ABS_MT_POSITION_Y, *slot->y);
1089 input_event(input, EV_ABS, ABS_MT_TOOL_X, *slot->cx);
1090 input_event(input, EV_ABS, ABS_MT_TOOL_Y, *slot->cy);
1091 input_event(input, EV_ABS, ABS_MT_DISTANCE, !*slot->tip_state);
1092 input_event(input, EV_ABS, ABS_MT_ORIENTATION, orientation);
1093 input_event(input, EV_ABS, ABS_MT_PRESSURE, *slot->p);
1094 input_event(input, EV_ABS, ABS_MT_TOUCH_MAJOR, major);
1095 input_event(input, EV_ABS, ABS_MT_TOUCH_MINOR, minor);
1111 struct input_dev *input = field->hidinput->input;
1139 input_event(input, usage->type, usage->code, value);
1149 struct input_dev *input;
1190 input = report->field[0]->hidinput->input;
1193 if (!mt_process_slot(td, input, app, slot))
1211 mt_sync_frame(td, app, input);
1248 struct input_dev *input = hi->input;
1270 __set_bit(INPUT_PROP_BUTTONPAD, input->propbit);
1272 app->pending_palm_slots = devm_kcalloc(&hi->input->dev,
1279 ret = input_mt_init_slots(input, td->maxcontacts, app->mt_flags);
1327 * map usages to input keys.
1332 set_bit(EV_REP, hi->input->evbit);
1371 /* We own these mappings, tell hid-input to ignore them */
1405 if (field && field->hidinput && field->hidinput->input)
1406 input_sync(field->hidinput->input);
1428 * Some elan panels wrongly declare 2 input mode features,
1580 hi->input->name = hdev->name;
1587 __set_bit(BTN_STYLUS, hi->input->keybit);
1598 hi->input->name = devm_kasprintf(&hdev->dev, GFP_KERNEL,
1639 struct input_dev *input_dev = hidinput->input;
1664 * An input report came in just before we release the sticky fingers,
1709 * This allows the driver to handle different input sensors