Lines Matching refs:bz

405 hfcpci_empty_bfifo(struct bchannel *bch, struct bzfifo *bz,  in hfcpci_empty_bfifo()  argument
414 zp = &bz->za[bz->f2]; /* point to Z-Regs */ in hfcpci_empty_bfifo()
418 new_f2 = (bz->f2 + 1) & MAX_B_FRAMES; in hfcpci_empty_bfifo()
427 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo()
428 bz->f2 = new_f2; /* next buffer */ in hfcpci_empty_bfifo()
454 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo()
455 bz->f2 = new_f2; /* next buffer */ in hfcpci_empty_bfifo()
756 struct bzfifo *bz; in hfcpci_fill_fifo() local
767 bz = &((union fifo_area *)(hc->hw.fifos))->b_chans.txbz_b2; in hfcpci_fill_fifo()
770 bz = &((union fifo_area *)(hc->hw.fifos))->b_chans.txbz_b1; in hfcpci_fill_fifo()
775 z1t = &bz->za[MAX_B_FRAMES].z1; in hfcpci_fill_fifo()
863 __func__, bch->nr, bz->f1, bz->f2, in hfcpci_fill_fifo()
864 bz->za[bz->f1].z1); in hfcpci_fill_fifo()
865 fcnt = bz->f1 - bz->f2; /* frame count actually buffered */ in hfcpci_fill_fifo()
875 maxlen = le16_to_cpu(bz->za[bz->f2].z2) - in hfcpci_fill_fifo()
876 le16_to_cpu(bz->za[bz->f1].z1) - 1; in hfcpci_fill_fifo()
889 new_z1 = le16_to_cpu(bz->za[bz->f1].z1) + count; in hfcpci_fill_fifo()
894 new_f1 = ((bz->f1 + 1) & MAX_B_FRAMES); in hfcpci_fill_fifo()
896 dst = bdata + (le16_to_cpu(bz->za[bz->f1].z1) - B_SUB_VAL); in hfcpci_fill_fifo()
897 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - le16_to_cpu(bz->za[bz->f1].z1); in hfcpci_fill_fifo()
909 bz->za[new_f1].z1 = cpu_to_le16(new_z1); /* for next buffer */ in hfcpci_fill_fifo()
910 bz->f1 = new_f1; /* next frame */ in hfcpci_fill_fifo()