Searched refs:report_data (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/input/mouse/
H A Dcypress_ps2.c449 struct cytp_data *cytp, struct cytp_report_data *report_data) cypress_parse_packet()
454 memset(report_data, 0, sizeof(struct cytp_report_data)); cypress_parse_packet()
456 report_data->contact_cnt = cypress_get_finger_count(header_byte); cypress_parse_packet()
457 report_data->tap = (header_byte & ABS_MULTIFINGER_TAP) ? 1 : 0; cypress_parse_packet()
459 if (report_data->contact_cnt == 1) { cypress_parse_packet()
460 report_data->contacts[0].x = cypress_parse_packet()
462 report_data->contacts[0].y = cypress_parse_packet()
465 report_data->contacts[0].z = packet[4]; cypress_parse_packet()
467 } else if (report_data->contact_cnt >= 2) { cypress_parse_packet()
468 report_data->contacts[0].x = cypress_parse_packet()
470 report_data->contacts[0].y = cypress_parse_packet()
473 report_data->contacts[0].z = packet[4]; cypress_parse_packet()
475 report_data->contacts[1].x = cypress_parse_packet()
477 report_data->contacts[1].y = cypress_parse_packet()
480 report_data->contacts[1].z = report_data->contacts[0].z; cypress_parse_packet()
483 report_data->left = (header_byte & BTN_LEFT_BIT) ? 1 : 0; cypress_parse_packet()
484 report_data->right = (header_byte & BTN_RIGHT_BIT) ? 1 : 0; cypress_parse_packet()
492 if (report_data->tap) cypress_parse_packet()
493 report_data->left = 0; cypress_parse_packet()
498 int n = report_data->contact_cnt; cypress_parse_packet()
501 report_data->contact_cnt); cypress_parse_packet()
506 report_data->contacts[i].x, cypress_parse_packet()
507 report_data->contacts[i].y, cypress_parse_packet()
508 report_data->contacts[i].z); cypress_parse_packet()
509 psmouse_dbg(psmouse, "left = %d\n", report_data->left); cypress_parse_packet()
510 psmouse_dbg(psmouse, "right = %d\n", report_data->right); cypress_parse_packet()
511 psmouse_dbg(psmouse, "middle = %d\n", report_data->middle); cypress_parse_packet()
523 struct cytp_report_data report_data; cypress_process_packet() local
529 cypress_parse_packet(psmouse, cytp, &report_data); cypress_process_packet()
531 n = report_data.contact_cnt; cypress_process_packet()
536 contact = &report_data.contacts[i]; cypress_process_packet()
544 contact = &report_data.contacts[i]; cypress_process_packet()
554 input_mt_report_finger_count(input, report_data.contact_cnt); cypress_process_packet()
556 input_report_key(input, BTN_LEFT, report_data.left); cypress_process_packet()
557 input_report_key(input, BTN_RIGHT, report_data.right); cypress_process_packet()
558 input_report_key(input, BTN_MIDDLE, report_data.middle); cypress_process_packet()
448 cypress_parse_packet(struct psmouse *psmouse, struct cytp_data *cytp, struct cytp_report_data *report_data) cypress_parse_packet() argument
H A Dcyapa_gen5.c2590 const struct cyapa_gen5_report_data *report_data) cyapa_gen5_report_buttons()
2593 u8 buttons = report_data->report_head[GEN5_BUTTONS_OFFSET]; cyapa_gen5_report_buttons()
2651 const struct cyapa_gen5_report_data *report_data) cyapa_gen5_report_touches()
2657 touch_num = report_data->report_head[GEN5_NUMBER_OF_TOUCH_OFFSET] & cyapa_gen5_report_touches()
2662 &report_data->touch_records[i]); cyapa_gen5_report_touches()
2671 struct cyapa_gen5_report_data report_data; cyapa_gen5_irq_handler() local
2683 ret = cyapa_i2c_pip_read(cyapa, (u8 *)&report_data, cyapa_gen5_irq_handler()
2691 &report_data.report_head[GEN5_RESP_LENGTH_OFFSET]); cyapa_gen5_irq_handler()
2695 report_len, report_data.report_head[0], cyapa_gen5_irq_handler()
2696 report_data.report_head[1]); cyapa_gen5_irq_handler()
2704 ret = cyapa_i2c_pip_read(cyapa, (u8 *)&report_data, report_len); cyapa_gen5_irq_handler()
2711 report_id = report_data.report_head[GEN5_RESP_REPORT_ID_OFFSET]; cyapa_gen5_irq_handler()
2747 cyapa_gen5_report_touches(cyapa, &report_data); cyapa_gen5_irq_handler()
2749 cyapa_gen5_report_buttons(cyapa, &report_data); cyapa_gen5_irq_handler()
2589 cyapa_gen5_report_buttons(struct cyapa *cyapa, const struct cyapa_gen5_report_data *report_data) cyapa_gen5_report_buttons() argument
2650 cyapa_gen5_report_touches(struct cyapa *cyapa, const struct cyapa_gen5_report_data *report_data) cyapa_gen5_report_touches() argument

Completed in 185 milliseconds