Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/isdn/hisax/
Dhfc_pci.c401 unsigned short *z1r, *z2r; in hfcpci_empty_fifo_trans() local
407 z2r = z1r + 1; in hfcpci_empty_fifo_trans()
409 if (!(fcnt = *z1r - *z2r)) in hfcpci_empty_fifo_trans()
417 new_z2 = *z2r + fcnt; /* new position in fifo */ in hfcpci_empty_fifo_trans()
425 if (*z2r + fcnt <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_fifo_trans()
428 maxlen = B_FIFO_SIZE + B_SUB_VAL - *z2r; /* maximum */ in hfcpci_empty_fifo_trans()
430 ptr1 = bdata + (*z2r - B_SUB_VAL); /* start of data */ in hfcpci_empty_fifo_trans()
443 *z2r = new_z2; /* new position */ in hfcpci_empty_fifo_trans()
/Linux-v4.19/drivers/isdn/hardware/mISDN/
Dhfcpci.c550 __le16 *z1r, *z2r, *z1t, *z2t; in hfcpci_empty_fifo_trans() local
555 z2r = z1r + 1; in hfcpci_empty_fifo_trans()
559 fcnt_rx = le16_to_cpu(*z1r) - le16_to_cpu(*z2r); in hfcpci_empty_fifo_trans()
565 new_z2 = le16_to_cpu(*z2r) + fcnt_rx; /* new position in fifo */ in hfcpci_empty_fifo_trans()
578 *z2r = cpu_to_le16(new_z2); in hfcpci_empty_fifo_trans()
587 if (le16_to_cpu(*z2r) + fcnt_rx <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_fifo_trans()
590 maxlen = B_FIFO_SIZE + B_SUB_VAL - le16_to_cpu(*z2r); in hfcpci_empty_fifo_trans()
593 ptr1 = bdata + (le16_to_cpu(*z2r) - B_SUB_VAL); in hfcpci_empty_fifo_trans()
605 *z2r = cpu_to_le16(new_z2); /* new position */ in hfcpci_empty_fifo_trans()