Lines Matching refs:zp
410 struct zt *zp; in hfcpci_empty_bfifo() local
414 zp = &bz->za[bz->f2]; /* point to Z-Regs */ in hfcpci_empty_bfifo()
415 new_z2 = le16_to_cpu(zp->z2) + count; /* new position in fifo */ in hfcpci_empty_bfifo()
420 (*(bdata + (le16_to_cpu(zp->z1) - B_SUB_VAL)))) { in hfcpci_empty_bfifo()
438 if (le16_to_cpu(zp->z2) + count <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_bfifo()
442 le16_to_cpu(zp->z2); /* maximum */ in hfcpci_empty_bfifo()
444 ptr1 = bdata + (le16_to_cpu(zp->z2) - B_SUB_VAL); in hfcpci_empty_bfifo()
472 struct zt *zp; in receive_dmsg() local
476 zp = &df->za[df->f2 & D_FREG_MASK]; in receive_dmsg()
477 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); in receive_dmsg()
485 le16_to_cpu(zp->z1), in receive_dmsg()
486 le16_to_cpu(zp->z2), in receive_dmsg()
490 (df->data[le16_to_cpu(zp->z1)])) { in receive_dmsg()
496 df->data[le16_to_cpu(zp->z1)]); in receive_dmsg()
503 cpu_to_le16((le16_to_cpu(zp->z2) + rcnt) & in receive_dmsg()
516 if (le16_to_cpu(zp->z2) + rcnt <= D_FIFO_SIZE) in receive_dmsg()
519 maxlen = D_FIFO_SIZE - le16_to_cpu(zp->z2); in receive_dmsg()
522 ptr1 = df->data + le16_to_cpu(zp->z2); in receive_dmsg()
535 le16_to_cpu(zp->z2) + total) & (D_FIFO_SIZE - 1)); in receive_dmsg()
618 struct zt *zp; in main_rec_hfcpci() local
637 zp = &rxbz->za[rxbz->f2]; in main_rec_hfcpci()
639 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); in main_rec_hfcpci()
646 bch->nr, le16_to_cpu(zp->z1), in main_rec_hfcpci()
647 le16_to_cpu(zp->z2), rcnt); in main_rec_hfcpci()