Lines Matching refs:report_data
444 struct cytp_data *cytp, struct cytp_report_data *report_data) in cypress_parse_packet() argument
449 memset(report_data, 0, sizeof(struct cytp_report_data)); in cypress_parse_packet()
451 report_data->contact_cnt = cypress_get_finger_count(header_byte); in cypress_parse_packet()
452 report_data->tap = (header_byte & ABS_MULTIFINGER_TAP) ? 1 : 0; in cypress_parse_packet()
454 if (report_data->contact_cnt == 1) { in cypress_parse_packet()
455 report_data->contacts[0].x = in cypress_parse_packet()
457 report_data->contacts[0].y = in cypress_parse_packet()
460 report_data->contacts[0].z = packet[4]; in cypress_parse_packet()
462 } else if (report_data->contact_cnt >= 2) { in cypress_parse_packet()
463 report_data->contacts[0].x = in cypress_parse_packet()
465 report_data->contacts[0].y = in cypress_parse_packet()
468 report_data->contacts[0].z = packet[4]; in cypress_parse_packet()
470 report_data->contacts[1].x = in cypress_parse_packet()
472 report_data->contacts[1].y = in cypress_parse_packet()
475 report_data->contacts[1].z = report_data->contacts[0].z; in cypress_parse_packet()
478 report_data->left = (header_byte & BTN_LEFT_BIT) ? 1 : 0; in cypress_parse_packet()
479 report_data->right = (header_byte & BTN_RIGHT_BIT) ? 1 : 0; in cypress_parse_packet()
487 if (report_data->tap) in cypress_parse_packet()
488 report_data->left = 0; in cypress_parse_packet()
493 int n = report_data->contact_cnt; in cypress_parse_packet()
496 report_data->contact_cnt); in cypress_parse_packet()
501 report_data->contacts[i].x, in cypress_parse_packet()
502 report_data->contacts[i].y, in cypress_parse_packet()
503 report_data->contacts[i].z); in cypress_parse_packet()
504 psmouse_dbg(psmouse, "left = %d\n", report_data->left); in cypress_parse_packet()
505 psmouse_dbg(psmouse, "right = %d\n", report_data->right); in cypress_parse_packet()
506 psmouse_dbg(psmouse, "middle = %d\n", report_data->middle); in cypress_parse_packet()
518 struct cytp_report_data report_data; in cypress_process_packet() local
524 cypress_parse_packet(psmouse, cytp, &report_data); in cypress_process_packet()
526 n = report_data.contact_cnt; in cypress_process_packet()
531 contact = &report_data.contacts[i]; in cypress_process_packet()
539 contact = &report_data.contacts[i]; in cypress_process_packet()
549 input_mt_report_finger_count(input, report_data.contact_cnt); in cypress_process_packet()
551 input_report_key(input, BTN_LEFT, report_data.left); in cypress_process_packet()
552 input_report_key(input, BTN_RIGHT, report_data.right); in cypress_process_packet()
553 input_report_key(input, BTN_MIDDLE, report_data.middle); in cypress_process_packet()