Lines Matching refs:zp
398 struct zt *zp; in hfcpci_empty_bfifo() local
402 zp = &bz->za[bz->f2]; /* point to Z-Regs */ in hfcpci_empty_bfifo()
403 new_z2 = le16_to_cpu(zp->z2) + count; /* new position in fifo */ in hfcpci_empty_bfifo()
408 (*(bdata + (le16_to_cpu(zp->z1) - B_SUB_VAL)))) { in hfcpci_empty_bfifo()
426 if (le16_to_cpu(zp->z2) + count <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_bfifo()
430 le16_to_cpu(zp->z2); /* maximum */ in hfcpci_empty_bfifo()
432 ptr1 = bdata + (le16_to_cpu(zp->z2) - B_SUB_VAL); in hfcpci_empty_bfifo()
460 struct zt *zp; in receive_dmsg() local
464 zp = &df->za[df->f2 & D_FREG_MASK]; in receive_dmsg()
465 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); in receive_dmsg()
473 le16_to_cpu(zp->z1), in receive_dmsg()
474 le16_to_cpu(zp->z2), in receive_dmsg()
478 (df->data[le16_to_cpu(zp->z1)])) { in receive_dmsg()
484 df->data[le16_to_cpu(zp->z1)]); in receive_dmsg()
491 cpu_to_le16((le16_to_cpu(zp->z2) + rcnt) & in receive_dmsg()
504 if (le16_to_cpu(zp->z2) + rcnt <= D_FIFO_SIZE) in receive_dmsg()
507 maxlen = D_FIFO_SIZE - le16_to_cpu(zp->z2); in receive_dmsg()
510 ptr1 = df->data + le16_to_cpu(zp->z2); in receive_dmsg()
523 le16_to_cpu(zp->z2) + total) & (D_FIFO_SIZE - 1)); in receive_dmsg()
605 struct zt *zp; in main_rec_hfcpci() local
624 zp = &rxbz->za[rxbz->f2]; in main_rec_hfcpci()
626 rcnt = le16_to_cpu(zp->z1) - le16_to_cpu(zp->z2); in main_rec_hfcpci()
633 bch->nr, le16_to_cpu(zp->z1), in main_rec_hfcpci()
634 le16_to_cpu(zp->z2), rcnt); in main_rec_hfcpci()