Home
last modified time | relevance | path

Searched refs:new_z2 (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/isdn/hisax/
Dhfc_pci.c277 int total, maxlen, new_z2; in hfcpci_empty_fifo() local
283 new_z2 = zp->z2 + count; /* new position in fifo */ in hfcpci_empty_fifo()
284 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_fifo()
285 new_z2 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_empty_fifo()
294 bz->za[new_f2].z2 = new_z2; in hfcpci_empty_fifo()
318 bz->za[new_f2].z2 = new_z2; in hfcpci_empty_fifo()
402 int new_z2, fcnt, maxlen; in hfcpci_empty_fifo_trans() local
417 new_z2 = *z2r + fcnt; /* new position in fifo */ in hfcpci_empty_fifo_trans()
418 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_fifo_trans()
419 new_z2 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_empty_fifo_trans()
[all …]
/Linux-v4.19/drivers/isdn/hardware/mISDN/
Dhfcpci.c410 int maxlen, new_z2; in hfcpci_empty_bfifo() local
416 new_z2 = le16_to_cpu(zp->z2) + count; /* new position in fifo */ in hfcpci_empty_bfifo()
417 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_bfifo()
418 new_z2 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_empty_bfifo()
428 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo()
455 bz->za[new_f2].z2 = cpu_to_le16(new_z2); in hfcpci_empty_bfifo()
551 int new_z2, fcnt_rx, fcnt_tx, maxlen; in hfcpci_empty_fifo_trans() local
565 new_z2 = le16_to_cpu(*z2r) + fcnt_rx; /* new position in fifo */ in hfcpci_empty_fifo_trans()
566 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_fifo_trans()
567 new_z2 -= B_FIFO_SIZE; /* buffer wrap */ in hfcpci_empty_fifo_trans()
[all …]