Lines Matching defs:zp
277 z_type *zp;
281 zp = &bz->za[bz->f2]; /* point to Z-Regs */
282 new_z2 = zp->z2 + count; /* new position in fifo */
287 (*(bdata + (zp->z1 - B_SUB_VAL)))) {
303 if (zp->z2 + count <= B_FIFO_SIZE + B_SUB_VAL)
306 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */
308 ptr1 = bdata + (zp->z2 - B_SUB_VAL); /* start of data */
337 z_type *zp;
345 zp = &df->za[df->f2 & D_FREG_MASK];
346 rcnt = zp->z1 - zp->z2;
352 df->f1, df->f2, zp->z1, zp->z2, rcnt);
355 (df->data[zp->z1])) {
357 debugl1(cs, "empty_fifo hfcpci paket inv. len %d or crc %d", rcnt, df->data[zp->z1]);
362 df->za[df->f2 & D_FREG_MASK].z2 = (zp->z2 + rcnt) & (D_FIFO_SIZE - 1);
368 if (zp->z2 + rcnt <= D_FIFO_SIZE)
371 maxlen = D_FIFO_SIZE - zp->z2; /* maximum */
373 ptr1 = df->data + zp->z2; /* start of data */
383 df->za[df->f2 & D_FREG_MASK].z2 = (zp->z2 + total) & (D_FIFO_SIZE - 1);
458 z_type *zp;
480 zp = &bz->za[bz->f2];
482 rcnt = zp->z1 - zp->z2;
488 bcs->channel, zp->z1, zp->z2, rcnt);
835 z_type *zp;
852 zp = &bz->za[bz->f2];
854 rcnt = zp->z1 - zp->z2;
860 zp->z1, zp->z2, rcnt);
861 new_z2 = zp->z2 + rcnt; /* new position in fifo */
866 (*(bdata + (zp->z1 - B_SUB_VAL)))) {
876 if (zp->z2 <= B_FIFO_SIZE + B_SUB_VAL)
879 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */
881 ptr1 = bdata + (zp->z2 - B_SUB_VAL); /* start of data */