Lines Matching refs:packet

27 #define	GET_ABS_X(packet)	((packet[1] << 2) | ((packet[3] >> 2) & 0x03))  argument
28 #define GET_ABS_Y(packet) ((packet[2] << 2) | (packet[3] & 0x03)) argument
636 static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) in fsp_packet_debug() argument
645 switch (packet[0] >> FSP_PKT_TYPE_SHIFT) { in fsp_packet_debug()
648 abs_x = GET_ABS_X(packet); in fsp_packet_debug()
649 abs_y = GET_ABS_Y(packet); in fsp_packet_debug()
668 packet[0], packet[1], packet[2], packet[3], abs_x, abs_y); in fsp_packet_debug()
677 static void fsp_packet_debug(struct psmouse *psmouse, unsigned char packet[]) in fsp_packet_debug() argument
697 unsigned char *packet = psmouse->packet; in fsp_process_byte() local
708 fsp_packet_debug(psmouse, packet); in fsp_process_byte()
710 switch (psmouse->packet[0] >> FSP_PKT_TYPE_SHIFT) { in fsp_process_byte()
713 if ((packet[0] == 0x48 || packet[0] == 0x49) && in fsp_process_byte()
714 packet[1] == 0 && packet[2] == 0) { in fsp_process_byte()
720 packet[3] &= 0xf0; in fsp_process_byte()
723 abs_x = GET_ABS_X(packet); in fsp_process_byte()
724 abs_y = GET_ABS_Y(packet); in fsp_process_byte()
726 if (packet[0] & FSP_PB0_MFMC) { in fsp_process_byte()
734 if (packet[0] & FSP_PB0_MFMC_FGR2) { in fsp_process_byte()
764 if ((packet[0] & (FSP_PB0_LBTN|FSP_PB0_PHY_BTN)) == in fsp_process_byte()
770 packet[0] &= ~FSP_PB0_LBTN; in fsp_process_byte()
782 if (fgrs == 1 || (fgrs == 2 && !(packet[0] & FSP_PB0_MFMC_FGR2))) { in fsp_process_byte()
786 input_report_key(dev, BTN_LEFT, packet[0] & 0x01); in fsp_process_byte()
787 input_report_key(dev, BTN_RIGHT, packet[0] & 0x02); in fsp_process_byte()
796 packet[0] &= ~FSP_PB0_LBTN; in fsp_process_byte()
802 if (packet[3] != 0) { in fsp_process_byte()
803 if (packet[3] & BIT(0)) in fsp_process_byte()
805 if (packet[3] & BIT(1)) in fsp_process_byte()
807 if (packet[3] & BIT(2)) in fsp_process_byte()
809 if (packet[3] & BIT(3)) in fsp_process_byte()
813 packet[3] = button_status; in fsp_process_byte()
814 rscroll = (packet[3] >> 4) & 1; in fsp_process_byte()
815 lscroll = (packet[3] >> 5) & 1; in fsp_process_byte()
821 (int)(packet[3] & 8) - (int)(packet[3] & 7)); in fsp_process_byte()
829 psmouse_report_standard_packet(dev, packet); in fsp_process_byte()