Searched refs:report_data (Results 1 – 2 of 2) sorted by relevance
449 struct cytp_data *cytp, struct cytp_report_data *report_data) in cypress_parse_packet() argument454 memset(report_data, 0, sizeof(struct cytp_report_data)); in cypress_parse_packet()456 report_data->contact_cnt = cypress_get_finger_count(header_byte); in cypress_parse_packet()457 report_data->tap = (header_byte & ABS_MULTIFINGER_TAP) ? 1 : 0; in cypress_parse_packet()459 if (report_data->contact_cnt == 1) { in cypress_parse_packet()460 report_data->contacts[0].x = in cypress_parse_packet()462 report_data->contacts[0].y = in cypress_parse_packet()465 report_data->contacts[0].z = packet[4]; in cypress_parse_packet()467 } else if (report_data->contact_cnt >= 2) { in cypress_parse_packet()468 report_data->contacts[0].x = in cypress_parse_packet()[all …]
2623 const struct cyapa_pip_report_data *report_data) in cyapa_pip_report_buttons() argument2626 u8 buttons = report_data->report_head[PIP_BUTTONS_OFFSET]; in cyapa_pip_report_buttons()2647 const struct cyapa_pip_report_data *report_data) in cyapa_pip_report_proximity() argument2650 u8 distance = report_data->report_head[PIP_PROXIMITY_DISTANCE_OFFSET] & in cyapa_pip_report_proximity()2696 const struct cyapa_pip_report_data *report_data) in cyapa_pip_report_touches() argument2702 touch_num = report_data->report_head[PIP_NUMBER_OF_TOUCH_OFFSET] & in cyapa_pip_report_touches()2707 &report_data->touch_records[i]); in cyapa_pip_report_touches()2716 struct cyapa_pip_report_data report_data; in cyapa_pip_irq_handler() local2727 ret = cyapa_i2c_pip_read(cyapa, (u8 *)&report_data, in cyapa_pip_irq_handler()2735 &report_data.report_head[PIP_RESP_LENGTH_OFFSET]); in cyapa_pip_irq_handler()[all …]