Home
last modified time | relevance | path

Searched refs:B_SUB_VAL (Results 1 – 4 of 4) sorted by relevance

/linux-4.19.296/drivers/isdn/hisax/
Dhfc_pci.c232 bzr->za[MAX_B_FRAMES].z1 = B_FIFO_SIZE + B_SUB_VAL - 1; in hfcpci_clear_fifo_rx()
258 bzt->za[MAX_B_FRAMES].z1 = B_FIFO_SIZE + B_SUB_VAL - 1; in hfcpci_clear_fifo_tx()
284 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_fifo()
288 (*(bdata + (zp->z1 - B_SUB_VAL)))) { in hfcpci_empty_fifo()
304 if (zp->z2 + count <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_fifo()
307 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */ in hfcpci_empty_fifo()
309 ptr1 = bdata + (zp->z2 - B_SUB_VAL); /* start of data */ in hfcpci_empty_fifo()
418 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) 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()
[all …]
Dhfc_pci.h180 #define B_SUB_VAL 0x200 macro
181 #define B_FIFO_SIZE (0x2000 - B_SUB_VAL)
/linux-4.19.296/drivers/isdn/hardware/mISDN/
Dhfc_pci.h180 #define B_SUB_VAL 0x200 macro
181 #define B_FIFO_SIZE (0x2000 - B_SUB_VAL)
Dhfcpci.c354 bzr->za[MAX_B_FRAMES].z1 = cpu_to_le16(B_FIFO_SIZE + B_SUB_VAL - 1); in hfcpci_clear_fifo_rx()
389 bzt->za[MAX_B_FRAMES].z1 = cpu_to_le16(B_FIFO_SIZE + B_SUB_VAL - 1); in hfcpci_clear_fifo_tx()
390 bzt->za[MAX_B_FRAMES].z2 = cpu_to_le16(B_FIFO_SIZE + B_SUB_VAL - 2); in hfcpci_clear_fifo_tx()
417 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_bfifo()
421 (*(bdata + (le16_to_cpu(zp->z1) - B_SUB_VAL)))) { in hfcpci_empty_bfifo()
439 if (le16_to_cpu(zp->z2) + count <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_bfifo()
442 maxlen = B_FIFO_SIZE + B_SUB_VAL - in hfcpci_empty_bfifo()
445 ptr1 = bdata + (le16_to_cpu(zp->z2) - B_SUB_VAL); in hfcpci_empty_bfifo()
566 if (new_z2 >= (B_FIFO_SIZE + B_SUB_VAL)) in hfcpci_empty_fifo_trans()
587 if (le16_to_cpu(*z2r) + fcnt_rx <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_fifo_trans()
[all …]