Lines Matching refs:B_FIFO_SIZE
232 bzr->za[MAX_B_FRAMES].z1 = B_FIFO_SIZE + B_SUB_VAL - 1; in hfcpci_clear_fifo_rx()
258 bzt->za[MAX_B_FRAMES].z1 = B_FIFO_SIZE + B_SUB_VAL - 1; in hfcpci_clear_fifo_tx()
284 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_fifo()
285 new_z2 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_empty_fifo()
304 if (zp->z2 + count <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_fifo()
307 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */ in hfcpci_empty_fifo()
413 fcnt += B_FIFO_SIZE; /* bytes actually buffered */ in hfcpci_empty_fifo_trans()
418 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_fifo_trans()
419 new_z2 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_empty_fifo_trans()
425 if (*z2r + fcnt <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_fifo_trans()
428 maxlen = B_FIFO_SIZE + B_SUB_VAL - *z2r; /* maximum */ in hfcpci_empty_fifo_trans()
485 rcnt += B_FIFO_SIZE; in main_rec_hfcpci()
620 fcnt += B_FIFO_SIZE; /* fcnt contains available bytes in fifo */ in hfcpci_fill_fifo()
621 fcnt = B_FIFO_SIZE - fcnt; /* remaining bytes to send */ in hfcpci_fill_fifo()
624 if (bcs->tx_skb->len < B_FIFO_SIZE - fcnt) { in hfcpci_fill_fifo()
629 if (new_z1 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_fill_fifo()
630 new_z1 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_fill_fifo()
633 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - *z1t; /* end of fifo */ in hfcpci_fill_fifo()
682 count += B_FIFO_SIZE; /* count now contains available bytes */ in hfcpci_fill_fifo()
696 if (new_z1 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_fill_fifo()
697 new_z1 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_fill_fifo()
702 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - bz->za[bz->f1].z1; /* end fifo */ in hfcpci_fill_fifo()
857 rcnt += B_FIFO_SIZE; in receive_emsg()
863 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in receive_emsg()
864 new_z2 -= B_FIFO_SIZE; /* buffer wrap */ in receive_emsg()
877 if (zp->z2 <= B_FIFO_SIZE + B_SUB_VAL) in receive_emsg()
880 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */ in receive_emsg()