Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/isdn/hisax/
Dhfc_pci.c400 unsigned short *z1r, *z2r; in hfcpci_empty_fifo_trans() local
406 z2r = z1r + 1; in hfcpci_empty_fifo_trans()
408 if (!(fcnt = *z1r - *z2r)) in hfcpci_empty_fifo_trans()
416 new_z2 = *z2r + fcnt; /* new position in fifo */ in hfcpci_empty_fifo_trans()
424 if (*z2r + fcnt <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_fifo_trans()
427 maxlen = B_FIFO_SIZE + B_SUB_VAL - *z2r; /* maximum */ in hfcpci_empty_fifo_trans()
429 ptr1 = bdata + (*z2r - B_SUB_VAL); /* start of data */ in hfcpci_empty_fifo_trans()
442 *z2r = new_z2; /* new position */ in hfcpci_empty_fifo_trans()
/linux-2.6.39/drivers/isdn/hardware/mISDN/
Dhfcpci.c549 __le16 *z1r, *z2r, *z1t, *z2t; in hfcpci_empty_fifo_trans() local
554 z2r = z1r + 1; in hfcpci_empty_fifo_trans()
558 fcnt_rx = le16_to_cpu(*z1r) - le16_to_cpu(*z2r); in hfcpci_empty_fifo_trans()
564 new_z2 = le16_to_cpu(*z2r) + fcnt_rx; /* new position in fifo */ in hfcpci_empty_fifo_trans()
569 *z2r = cpu_to_le16(new_z2); /* new position */ in hfcpci_empty_fifo_trans()
583 if (le16_to_cpu(*z2r) + fcnt_rx <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_fifo_trans()
586 maxlen = B_FIFO_SIZE + B_SUB_VAL - le16_to_cpu(*z2r); in hfcpci_empty_fifo_trans()
589 ptr1 = bdata + (le16_to_cpu(*z2r) - B_SUB_VAL); in hfcpci_empty_fifo_trans()
603 *z2r = cpu_to_le16(new_z2); /* new position */ in hfcpci_empty_fifo_trans()