Searched refs:new_z2 (Results 1 – 2 of 2) sorted by relevance
276 int total, maxlen, new_z2; in hfcpci_empty_fifo() local282 new_z2 = zp->z2 + count; /* new position in fifo */ in hfcpci_empty_fifo()283 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_fifo()284 new_z2 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_empty_fifo()293 bz->za[new_f2].z2 = new_z2; in hfcpci_empty_fifo()317 bz->za[new_f2].z2 = new_z2; in hfcpci_empty_fifo()401 int new_z2, fcnt, maxlen; in hfcpci_empty_fifo_trans() local416 new_z2 = *z2r + fcnt; /* new position in fifo */ in hfcpci_empty_fifo_trans()417 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_fifo_trans()418 new_z2 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_empty_fifo_trans()[all …]
408 int total, maxlen, new_z2; in hfcpci_empty_bfifo() local414 new_z2 = le16_to_cpu(zp->z2) + count; /* new position in fifo */ in hfcpci_empty_bfifo()415 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_bfifo()416 new_z2 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_empty_bfifo()426 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo()454 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo()550 int new_z2, fcnt_rx, fcnt_tx, maxlen; in hfcpci_empty_fifo_trans() local564 new_z2 = le16_to_cpu(*z2r) + fcnt_rx; /* new position in fifo */ in hfcpci_empty_fifo_trans()565 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_fifo_trans()566 new_z2 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_empty_fifo_trans()[all …]