Lines Matching refs:fcnt
677 int fcnt;
696 fcnt = df->f1 - df->f2; /* frame count actually buffered */
697 if (fcnt < 0)
698 fcnt += (MAX_D_FRAMES + 1); /* if wrap around */
699 if (fcnt > (MAX_D_FRAMES - 1)) {
754 int maxlen, fcnt;
781 fcnt = le16_to_cpu(*z2t) - le16_to_cpu(*z1t);
782 if (fcnt <= 0)
783 fcnt += B_FIFO_SIZE;
784 /* fcnt contains available bytes in fifo */
785 fcnt = B_FIFO_SIZE - fcnt;
789 if (test_bit(FLG_FILLEMPTY, &bch->Flags) && !fcnt) {
803 "fcnt(%d) maxl(%d) nz1(%x) dst(%p)\n",
804 fcnt, maxlen, new_z1, dst);
805 fcnt += count;
820 if (count > (poll << 1) - fcnt)
821 count = (poll << 1) - fcnt;
835 printk(KERN_DEBUG "hfcpci_FFt fcnt(%d) "
837 fcnt, maxlen, new_z1, dst);
838 fcnt += count;
865 fcnt = bz->f1 - bz->f2; /* frame count actually buffered */
866 if (fcnt < 0)
867 fcnt += (MAX_B_FRAMES + 1); /* if wrap around */
868 if (fcnt > (MAX_B_FRAMES - 1)) {