Lines Matching refs:fcnt
665 int fcnt; in hfcpci_fill_dfifo() local
684 fcnt = df->f1 - df->f2; /* frame count actually buffered */ in hfcpci_fill_dfifo()
685 if (fcnt < 0) in hfcpci_fill_dfifo()
686 fcnt += (MAX_D_FRAMES + 1); /* if wrap around */ in hfcpci_fill_dfifo()
687 if (fcnt > (MAX_D_FRAMES - 1)) { in hfcpci_fill_dfifo()
742 int maxlen, fcnt; in hfcpci_fill_fifo() local
774 fcnt = le16_to_cpu(*z2t) - le16_to_cpu(*z1t); in hfcpci_fill_fifo()
775 if (fcnt <= 0) in hfcpci_fill_fifo()
776 fcnt += B_FIFO_SIZE; in hfcpci_fill_fifo()
779 if (count > fcnt) in hfcpci_fill_fifo()
780 count = fcnt; in hfcpci_fill_fifo()
791 fcnt, maxlen, new_z1, dst); in hfcpci_fill_fifo()
804 fcnt = B_FIFO_SIZE - fcnt; in hfcpci_fill_fifo()
810 if (count > (poll << 1) - fcnt) in hfcpci_fill_fifo()
811 count = (poll << 1) - fcnt; in hfcpci_fill_fifo()
827 fcnt, maxlen, new_z1, dst); in hfcpci_fill_fifo()
828 fcnt += count; in hfcpci_fill_fifo()
852 fcnt = bz->f1 - bz->f2; /* frame count actually buffered */ in hfcpci_fill_fifo()
853 if (fcnt < 0) in hfcpci_fill_fifo()
854 fcnt += (MAX_B_FRAMES + 1); /* if wrap around */ in hfcpci_fill_fifo()
855 if (fcnt > (MAX_B_FRAMES - 1)) { in hfcpci_fill_fifo()