Lines Matching defs:input

20 #include <linux/input.h>
21 #include <linux/input/mt.h>
365 static int cypress_set_input_params(struct input_dev *input,
373 __set_bit(EV_ABS, input->evbit);
374 input_set_abs_params(input, ABS_X, 0, cytp->tp_max_abs_x, 0, 0);
375 input_set_abs_params(input, ABS_Y, 0, cytp->tp_max_abs_y, 0, 0);
376 input_set_abs_params(input, ABS_PRESSURE,
378 input_set_abs_params(input, ABS_TOOL_WIDTH, 0, 255, 0, 0);
381 input_set_abs_params(input, ABS_MT_POSITION_X, 0, cytp->tp_max_abs_x, 0, 0);
382 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, cytp->tp_max_abs_y, 0, 0);
383 input_set_abs_params(input, ABS_MT_PRESSURE, 0, 255, 0, 0);
385 ret = input_mt_init_slots(input, CYTP_MAX_MT_SLOTS,
390 __set_bit(INPUT_PROP_SEMI_MT, input->propbit);
392 input_abs_set_res(input, ABS_X, cytp->tp_res_x);
393 input_abs_set_res(input, ABS_Y, cytp->tp_res_y);
395 input_abs_set_res(input, ABS_MT_POSITION_X, cytp->tp_res_x);
396 input_abs_set_res(input, ABS_MT_POSITION_Y, cytp->tp_res_y);
398 __set_bit(BTN_TOUCH, input->keybit);
399 __set_bit(BTN_TOOL_FINGER, input->keybit);
400 __set_bit(BTN_TOOL_DOUBLETAP, input->keybit);
401 __set_bit(BTN_TOOL_TRIPLETAP, input->keybit);
402 __set_bit(BTN_TOOL_QUADTAP, input->keybit);
403 __set_bit(BTN_TOOL_QUINTTAP, input->keybit);
405 __clear_bit(EV_REL, input->evbit);
406 __clear_bit(REL_X, input->relbit);
407 __clear_bit(REL_Y, input->relbit);
409 __set_bit(EV_KEY, input->evbit);
410 __set_bit(BTN_LEFT, input->keybit);
411 __set_bit(BTN_RIGHT, input->keybit);
412 __set_bit(BTN_MIDDLE, input->keybit);
516 struct input_dev *input = psmouse->dev;
536 input_mt_assign_slots(input, slots, pos, n, 0);
540 input_mt_slot(input, slots[i]);
541 input_mt_report_slot_state(input, MT_TOOL_FINGER, true);
542 input_report_abs(input, ABS_MT_POSITION_X, contact->x);
543 input_report_abs(input, ABS_MT_POSITION_Y, contact->y);
544 input_report_abs(input, ABS_MT_PRESSURE, contact->z);
547 input_mt_sync_frame(input);
549 input_mt_report_finger_count(input, report_data.contact_cnt);
551 input_report_key(input, BTN_LEFT, report_data.left);
552 input_report_key(input, BTN_RIGHT, report_data.right);
553 input_report_key(input, BTN_MIDDLE, report_data.middle);
555 input_sync(input);
682 psmouse_err(psmouse, "init: Unable to set input params.\n");