Lines Matching refs:fcnt
679 int fcnt; in hfcpci_fill_dfifo() local
698 fcnt = df->f1 - df->f2; /* frame count actually buffered */ in hfcpci_fill_dfifo()
699 if (fcnt < 0) in hfcpci_fill_dfifo()
700 fcnt += (MAX_D_FRAMES + 1); /* if wrap around */ in hfcpci_fill_dfifo()
701 if (fcnt > (MAX_D_FRAMES - 1)) { in hfcpci_fill_dfifo()
756 int maxlen, fcnt; in hfcpci_fill_fifo() local
788 fcnt = le16_to_cpu(*z2t) - le16_to_cpu(*z1t); in hfcpci_fill_fifo()
789 if (fcnt <= 0) in hfcpci_fill_fifo()
790 fcnt += B_FIFO_SIZE; in hfcpci_fill_fifo()
793 if (count > fcnt) in hfcpci_fill_fifo()
794 count = fcnt; in hfcpci_fill_fifo()
805 fcnt, maxlen, new_z1, dst); in hfcpci_fill_fifo()
818 fcnt = B_FIFO_SIZE - fcnt; in hfcpci_fill_fifo()
824 if (count > (poll << 1) - fcnt) in hfcpci_fill_fifo()
825 count = (poll << 1) - fcnt; in hfcpci_fill_fifo()
841 fcnt, maxlen, new_z1, dst); in hfcpci_fill_fifo()
842 fcnt += count; in hfcpci_fill_fifo()
866 fcnt = bz->f1 - bz->f2; /* frame count actually buffered */ in hfcpci_fill_fifo()
867 if (fcnt < 0) in hfcpci_fill_fifo()
868 fcnt += (MAX_B_FRAMES + 1); /* if wrap around */ in hfcpci_fill_fifo()
869 if (fcnt > (MAX_B_FRAMES - 1)) { in hfcpci_fill_fifo()