Lines Matching defs:fcnt_rx
538 int new_z2, fcnt_rx, fcnt_tx, maxlen;
546 fcnt_rx = le16_to_cpu(*z1r) - le16_to_cpu(*z2r);
547 if (!fcnt_rx)
550 if (fcnt_rx <= 0)
551 fcnt_rx += B_FIFO_SIZE; /* bytes actually buffered */
552 new_z2 = le16_to_cpu(*z2r) + fcnt_rx; /* new position in fifo */
564 bch->dropcnt += fcnt_rx;
568 maxlen = bchannel_get_rxbuf(bch, fcnt_rx);
570 pr_warn("B%d: No bufferspace for %d bytes\n", bch->nr, fcnt_rx);
572 ptr = skb_put(bch->rx_skb, fcnt_rx);
573 if (le16_to_cpu(*z2r) + fcnt_rx <= B_FIFO_SIZE + B_SUB_VAL)
574 maxlen = fcnt_rx; /* complete transfer */
582 fcnt_rx -= maxlen;
584 if (fcnt_rx) { /* rest remaining */
587 memcpy(ptr, ptr1, fcnt_rx); /* rest */