Lines Matching full:z2
343 bzr->za[MAX_B_FRAMES].z2 = cpu_to_le16( in hfcpci_clear_fifo_rx()
370 "z1(%x) z2(%x) state(%x)\n", in hfcpci_clear_fifo_tx()
373 le16_to_cpu(bzt->za[MAX_B_FRAMES].z2), in hfcpci_clear_fifo_tx()
378 bzt->za[MAX_B_FRAMES].z2 = cpu_to_le16(B_FIFO_SIZE + B_SUB_VAL - 2); in hfcpci_clear_fifo_tx()
384 "hfcpci_clear_fifo_tx%d f1(%x) f2(%x) z1(%x) z2(%x)\n", in hfcpci_clear_fifo_tx()
387 le16_to_cpu(bzt->za[MAX_B_FRAMES].z2)); in hfcpci_clear_fifo_tx()
404 new_z2 = le16_to_cpu(zp->z2) + count; /* new position in fifo */ in hfcpci_empty_bfifo()
416 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo()
427 if (le16_to_cpu(zp->z2) + count <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_bfifo()
431 le16_to_cpu(zp->z2); /* maximum */ in hfcpci_empty_bfifo()
433 ptr1 = bdata + (le16_to_cpu(zp->z2) - B_SUB_VAL); in hfcpci_empty_bfifo()
443 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo()
466 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); in receive_dmsg()
472 "hfcpci recd f1(%d) f2(%d) z1(%x) z2(%x) cnt(%d)\n", in receive_dmsg()
475 le16_to_cpu(zp->z2), in receive_dmsg()
491 df->za[df->f2 & D_FREG_MASK].z2 = in receive_dmsg()
492 cpu_to_le16((le16_to_cpu(zp->z2) + rcnt) & in receive_dmsg()
505 if (le16_to_cpu(zp->z2) + rcnt <= D_FIFO_SIZE) in receive_dmsg()
508 maxlen = D_FIFO_SIZE - le16_to_cpu(zp->z2); in receive_dmsg()
511 ptr1 = df->data + le16_to_cpu(zp->z2); in receive_dmsg()
523 df->za[df->f2 & D_FREG_MASK].z2 = cpu_to_le16(( in receive_dmsg()
524 le16_to_cpu(zp->z2) + total) & (D_FIFO_SIZE - 1)); in receive_dmsg()
627 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); in main_rec_hfcpci()
633 "hfcpci rec ch(%x) z1(%x) z2(%x) cnt(%d)\n", in main_rec_hfcpci()
635 le16_to_cpu(zp->z2), rcnt); in main_rec_hfcpci()
698 maxlen = le16_to_cpu(df->za[df->f2 & D_FREG_MASK].z2) - in hfcpci_fill_dfifo()
773 "cnt(%d) z1(%x) z2(%x)\n", bch->nr, count, in hfcpci_fill_fifo()
863 maxlen = le16_to_cpu(bz->za[bz->f2].z2) - in hfcpci_fill_fifo()