Lines Matching refs:bytes_read
228 u16 bytes_read; member
623 rr3->bytes_read = len; in redrat3_read_packet_start()
625 rr3->bytes_read, pktlen); in redrat3_read_packet_start()
639 if (len + rr3->bytes_read > sizeof(rr3->irdata)) { in redrat3_read_packet_continue()
641 rr3->bytes_read = 0; in redrat3_read_packet_continue()
645 memcpy(irdata + rr3->bytes_read, rr3->bulk_in_buf, len); in redrat3_read_packet_continue()
647 rr3->bytes_read += len; in redrat3_read_packet_continue()
648 dev_dbg(rr3->dev, "bytes_read %d, pktlen %d\n", rr3->bytes_read, in redrat3_read_packet_continue()
659 if (rr3->bytes_read == 0 && len >= sizeof(struct redrat3_header)) { in redrat3_get_ir_data()
661 } else if (rr3->bytes_read != 0) { in redrat3_get_ir_data()
663 } else if (rr3->bytes_read == 0) { in redrat3_get_ir_data()
669 if (rr3->bytes_read < be16_to_cpu(rr3->irdata.header.length) + in redrat3_get_ir_data()
683 rr3->bytes_read = 0; in redrat3_get_ir_data()
721 rr3->bytes_read = 0; in redrat3_handle_async()