Lines Matching refs:b_read
189 unsigned int b_read; /* Amount of read data in curr. pkt. */
193 struct mutex fetch_lock; /* Protect b_read, b_out */
775 rp->b_read = 0;
825 if (rp->b_read < hdrbytes) {
826 step_len = min(nbytes, (size_t)(hdrbytes - rp->b_read));
827 ptr = ((char *)ep) + rp->b_read;
834 rp->b_read += step_len;
838 if (rp->b_read >= hdrbytes) {
840 step_len -= rp->b_read - hdrbytes;
844 offset += rp->b_read - hdrbytes;
853 rp->b_read += step_len;
860 if (rp->b_read >= hdrbytes + ep->len_cap) {
864 rp->b_read = 0;
891 rp->b_read = 0;
1054 rp->b_read = rp->b_in = rp->b_out = rp->b_cnt = 0;