Lines Matching refs:rcnt
456 int rcnt, total; in receive_dmsg() local
465 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); in receive_dmsg()
466 if (rcnt < 0) in receive_dmsg()
467 rcnt += D_FIFO_SIZE; in receive_dmsg()
468 rcnt++; in receive_dmsg()
475 rcnt); in receive_dmsg()
477 if ((rcnt > MAX_DFRAME_LEN + 3) || (rcnt < 4) || in receive_dmsg()
483 rcnt, in receive_dmsg()
491 cpu_to_le16((le16_to_cpu(zp->z2) + rcnt) & in receive_dmsg()
494 dch->rx_skb = mI_alloc_skb(rcnt - 3, GFP_ATOMIC); in receive_dmsg()
500 total = rcnt; in receive_dmsg()
501 rcnt -= 3; in receive_dmsg()
502 ptr = skb_put(dch->rx_skb, rcnt); in receive_dmsg()
504 if (le16_to_cpu(zp->z2) + rcnt <= D_FIFO_SIZE) in receive_dmsg()
505 maxlen = rcnt; /* complete transfer */ in receive_dmsg()
513 rcnt -= maxlen; in receive_dmsg()
515 if (rcnt) { /* rest remaining */ in receive_dmsg()
518 memcpy(ptr, ptr1, rcnt); /* rest */ in receive_dmsg()
601 int rcnt, real_fifo; in main_rec_hfcpci() local
626 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); in main_rec_hfcpci()
627 if (rcnt < 0) in main_rec_hfcpci()
628 rcnt += B_FIFO_SIZE; in main_rec_hfcpci()
629 rcnt++; in main_rec_hfcpci()
634 le16_to_cpu(zp->z2), rcnt); in main_rec_hfcpci()
635 hfcpci_empty_bfifo(bch, rxbz, bdata, rcnt); in main_rec_hfcpci()
636 rcnt = rxbz->f1 - rxbz->f2; in main_rec_hfcpci()
637 if (rcnt < 0) in main_rec_hfcpci()
638 rcnt += MAX_B_FRAMES + 1; in main_rec_hfcpci()
639 if (hc->hw.last_bfifo_cnt[real_fifo] > rcnt + 1) { in main_rec_hfcpci()
640 rcnt = 0; in main_rec_hfcpci()
643 hc->hw.last_bfifo_cnt[real_fifo] = rcnt; in main_rec_hfcpci()
644 if (rcnt > 1) in main_rec_hfcpci()