Lines Matching refs:fcnt_rx
550 int new_z2, fcnt_rx, fcnt_tx, maxlen;
558 fcnt_rx = le16_to_cpu(*z1r) - le16_to_cpu(*z2r);
559 if (!fcnt_rx)
562 if (fcnt_rx <= 0)
563 fcnt_rx += B_FIFO_SIZE; /* bytes actually buffered */
564 new_z2 = le16_to_cpu(*z2r) + fcnt_rx; /* new position in fifo */
568 if (fcnt_rx > MAX_DATA_SIZE) { /* flush, if oversized */
580 bch->rx_skb = mI_alloc_skb(fcnt_rx, GFP_ATOMIC);
582 ptr = skb_put(bch->rx_skb, fcnt_rx);
583 if (le16_to_cpu(*z2r) + fcnt_rx <= B_FIFO_SIZE + B_SUB_VAL)
584 maxlen = fcnt_rx; /* complete transfer */
592 fcnt_rx -= maxlen;
594 if (fcnt_rx) { /* rest remaining */
597 memcpy(ptr, ptr1, fcnt_rx); /* rest */