B_FIFO_SIZE
u_char txdat_b1[B_FIFO_SIZE];
u_char txdat_b2[B_FIFO_SIZE];
u_char rxdat_b1[B_FIFO_SIZE];
u_char rxdat_b2[B_FIFO_SIZE];
bzr->za[MAX_B_FRAMES].z1 = cpu_to_le16(B_FIFO_SIZE + B_SUB_VAL - 1);
bzt->za[MAX_B_FRAMES].z1 = cpu_to_le16(B_FIFO_SIZE + B_SUB_VAL - 1);
bzt->za[MAX_B_FRAMES].z2 = cpu_to_le16(B_FIFO_SIZE + B_SUB_VAL - 2);
if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL))
new_z2 -= B_FIFO_SIZE; /* buffer wrap */
if (le16_to_cpu(zp->z2) + count <= B_FIFO_SIZE + B_SUB_VAL)
maxlen = B_FIFO_SIZE + B_SUB_VAL -
fcnt_rx += B_FIFO_SIZE; /* bytes actually buffered */
if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL))
new_z2 -= B_FIFO_SIZE; /* buffer wrap */
fcnt_tx += B_FIFO_SIZE;
fcnt_tx = B_FIFO_SIZE - fcnt_tx;
if (le16_to_cpu(*z2r) + fcnt_rx <= B_FIFO_SIZE + B_SUB_VAL)
maxlen = B_FIFO_SIZE + B_SUB_VAL - le16_to_cpu(*z2r);
rcnt += B_FIFO_SIZE;
fcnt += B_FIFO_SIZE;
if (new_z1 >= (B_FIFO_SIZE + B_SUB_VAL))
new_z1 -= B_FIFO_SIZE; /* buffer wrap */
maxlen = (B_FIFO_SIZE + B_SUB_VAL) - le16_to_cpu(*z1t);
fcnt = B_FIFO_SIZE - fcnt;
if (new_z1 >= (B_FIFO_SIZE + B_SUB_VAL))
new_z1 -= B_FIFO_SIZE; /* buffer wrap */
maxlen = (B_FIFO_SIZE + B_SUB_VAL) - le16_to_cpu(*z1t);
maxlen += B_FIFO_SIZE; /* count now contains available bytes */
if (new_z1 >= (B_FIFO_SIZE + B_SUB_VAL))
new_z1 -= B_FIFO_SIZE; /* buffer wrap */
maxlen = (B_FIFO_SIZE + B_SUB_VAL) - le16_to_cpu(bz->za[bz->f1].z1);