Lines Matching refs:packet_length
128 int packet_length; member
590 if (dec->packet_length % 2) { in ttusb_dec_process_packet()
595 for (i = 0; i < dec->packet_length; i += 2) in ttusb_dec_process_packet()
603 packet_id = dec->packet[dec->packet_length - 4] << 8; in ttusb_dec_process_packet()
604 packet_id += dec->packet[dec->packet_length - 3]; in ttusb_dec_process_packet()
663 dec->packet_length = 0; in ttusb_dec_process_urb_frame()
673 dec->packet[dec->packet_length++] = *b++; in ttusb_dec_process_urb_frame()
675 if (dec->packet_length == 2) { in ttusb_dec_process_urb_frame()
702 dec->packet[dec->packet_length++] = *b++; in ttusb_dec_process_urb_frame()
705 dec->packet_length == 8) { in ttusb_dec_process_urb_frame()
712 dec->packet_length == 5) { in ttusb_dec_process_urb_frame()
724 dec->packet_length; in ttusb_dec_process_urb_frame()
727 memcpy(dec->packet + dec->packet_length, in ttusb_dec_process_urb_frame()
729 dec->packet_length += remainder; in ttusb_dec_process_urb_frame()
734 memcpy(&dec->packet[dec->packet_length], in ttusb_dec_process_urb_frame()
736 dec->packet_length += length; in ttusb_dec_process_urb_frame()
746 dec->packet[dec->packet_length++] = *b++; in ttusb_dec_process_urb_frame()
752 if (dec->packet_length == in ttusb_dec_process_urb_frame()