Lines Matching refs:report_data

444 				struct cytp_data *cytp, struct cytp_report_data *report_data)
449 memset(report_data, 0, sizeof(struct cytp_report_data));
451 report_data->contact_cnt = cypress_get_finger_count(header_byte);
452 report_data->tap = (header_byte & ABS_MULTIFINGER_TAP) ? 1 : 0;
454 if (report_data->contact_cnt == 1) {
455 report_data->contacts[0].x =
457 report_data->contacts[0].y =
460 report_data->contacts[0].z = packet[4];
462 } else if (report_data->contact_cnt >= 2) {
463 report_data->contacts[0].x =
465 report_data->contacts[0].y =
468 report_data->contacts[0].z = packet[4];
470 report_data->contacts[1].x =
472 report_data->contacts[1].y =
475 report_data->contacts[1].z = report_data->contacts[0].z;
478 report_data->left = (header_byte & BTN_LEFT_BIT) ? 1 : 0;
479 report_data->right = (header_byte & BTN_RIGHT_BIT) ? 1 : 0;
487 if (report_data->tap)
488 report_data->left = 0;
493 int n = report_data->contact_cnt;
496 report_data->contact_cnt);
501 report_data->contacts[i].x,
502 report_data->contacts[i].y,
503 report_data->contacts[i].z);
504 psmouse_dbg(psmouse, "left = %d\n", report_data->left);
505 psmouse_dbg(psmouse, "right = %d\n", report_data->right);
506 psmouse_dbg(psmouse, "middle = %d\n", report_data->middle);
518 struct cytp_report_data report_data;
524 cypress_parse_packet(psmouse, cytp, &report_data);
526 n = report_data.contact_cnt;
531 contact = &report_data.contacts[i];
539 contact = &report_data.contacts[i];
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);