Lines Matching refs:bz

393 hfcpci_empty_bfifo(struct bchannel *bch, struct bzfifo *bz,  in hfcpci_empty_bfifo()  argument
402 zp = &bz->za[bz->f2]; /* point to Z-Regs */ in hfcpci_empty_bfifo()
406 new_f2 = (bz->f2 + 1) & MAX_B_FRAMES; in hfcpci_empty_bfifo()
415 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo()
416 bz->f2 = new_f2; /* next buffer */ in hfcpci_empty_bfifo()
442 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo()
443 bz->f2 = new_f2; /* next buffer */ in hfcpci_empty_bfifo()
744 struct bzfifo *bz; in hfcpci_fill_fifo() local
760 bz = &((union fifo_area *)(hc->hw.fifos))->b_chans.txbz_b2; in hfcpci_fill_fifo()
763 bz = &((union fifo_area *)(hc->hw.fifos))->b_chans.txbz_b1; in hfcpci_fill_fifo()
768 z1t = &bz->za[MAX_B_FRAMES].z1; in hfcpci_fill_fifo()
850 __func__, bch->nr, bz->f1, bz->f2, in hfcpci_fill_fifo()
851 bz->za[bz->f1].z1); in hfcpci_fill_fifo()
852 fcnt = bz->f1 - bz->f2; /* frame count actually buffered */ in hfcpci_fill_fifo()
862 maxlen = le16_to_cpu(bz->za[bz->f2].z2) - in hfcpci_fill_fifo()
863 le16_to_cpu(bz->za[bz->f1].z1) - 1; in hfcpci_fill_fifo()
876 new_z1 = le16_to_cpu(bz->za[bz->f1].z1) + count; in hfcpci_fill_fifo()
881 new_f1 = ((bz->f1 + 1) & MAX_B_FRAMES); in hfcpci_fill_fifo()
883 dst = bdata + (le16_to_cpu(bz->za[bz->f1].z1) - B_SUB_VAL); in hfcpci_fill_fifo()
884 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - le16_to_cpu(bz->za[bz->f1].z1); in hfcpci_fill_fifo()
896 bz->za[new_f1].z1 = cpu_to_le16(new_z1); /* for next buffer */ in hfcpci_fill_fifo()
897 bz->f1 = new_f1; /* next frame */ in hfcpci_fill_fifo()