Lines Matching refs:f1
233 bzr->f1 = MAX_B_FRAMES; in hfcpci_clear_fifo_rx()
234 bzr->f2 = bzr->f1; /* init F pointers to remain constant */ in hfcpci_clear_fifo_rx()
259 bzt->f1 = MAX_B_FRAMES; in hfcpci_clear_fifo_tx()
260 bzt->f2 = bzt->f1; /* init F pointers to remain constant */ in hfcpci_clear_fifo_tx()
344 while (((df->f1 & D_FREG_MASK) != (df->f2 & D_FREG_MASK)) && count--) { in receive_dmsg()
352 df->f1, df->f2, zp->z1, zp->z2, rcnt); in receive_dmsg()
476 if (bz->f1 != bz->f2) { in main_rec_hfcpci()
479 bcs->channel, bz->f1, bz->f2); in main_rec_hfcpci()
493 rcnt = bz->f1 - bz->f2; in main_rec_hfcpci()
534 df->f1, df->f2, in hfcpci_fill_dfifo()
535 df->za[df->f1 & D_FREG_MASK].z1); in hfcpci_fill_dfifo()
536 fcnt = df->f1 - df->f2; /* frame count actually buffered */ in hfcpci_fill_dfifo()
548 count = df->za[df->f2 & D_FREG_MASK].z2 - df->za[df->f1 & D_FREG_MASK].z1 - 1; in hfcpci_fill_dfifo()
561 new_z1 = (df->za[df->f1 & D_FREG_MASK].z1 + count) & (D_FIFO_SIZE - 1); in hfcpci_fill_dfifo()
562 new_f1 = ((df->f1 + 1) & D_FREG_MASK) | (D_FREG_MASK + 1); in hfcpci_fill_dfifo()
564 dst = df->data + df->za[df->f1 & D_FREG_MASK].z1; in hfcpci_fill_dfifo()
565 maxlen = D_FIFO_SIZE - df->za[df->f1 & D_FREG_MASK].z1; /* end fifo */ in hfcpci_fill_dfifo()
577 df->za[df->f1 & D_FREG_MASK].z1 = new_z1; /* new pos actual buffer */ in hfcpci_fill_dfifo()
578 df->f1 = new_f1; /* next frame */ in hfcpci_fill_dfifo()
667 bcs->channel, bz->f1, bz->f2, in hfcpci_fill_fifo()
668 bz->za[bz->f1].z1); in hfcpci_fill_fifo()
670 fcnt = bz->f1 - bz->f2; /* frame count actually buffered */ in hfcpci_fill_fifo()
679 count = bz->za[bz->f2].z2 - bz->za[bz->f1].z1 - 1; in hfcpci_fill_fifo()
694 new_z1 = bz->za[bz->f1].z1 + count; /* new buffer Position */ in hfcpci_fill_fifo()
698 new_f1 = ((bz->f1 + 1) & MAX_B_FRAMES); in hfcpci_fill_fifo()
700 dst = bdata + (bz->za[bz->f1].z1 - B_SUB_VAL); in hfcpci_fill_fifo()
701 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - bz->za[bz->f1].z1; /* end fifo */ in hfcpci_fill_fifo()
723 bz->f1 = new_f1; /* next frame */ in hfcpci_fill_fifo()
848 if (bz->f1 != bz->f2) { in receive_emsg()
851 bz->f1, bz->f2); in receive_emsg()
910 rcnt = bz->f1 - bz->f2; in receive_emsg()