Searched refs:fcnt_rx (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/isdn/hardware/mISDN/ |
H A D | hfcpci.c | 538 int new_z2, fcnt_rx, fcnt_tx, maxlen; in hfcpci_empty_fifo_trans() local 546 fcnt_rx = le16_to_cpu(*z1r) - le16_to_cpu(*z2r); in hfcpci_empty_fifo_trans() 547 if (!fcnt_rx) in hfcpci_empty_fifo_trans() 550 if (fcnt_rx <= 0) in hfcpci_empty_fifo_trans() 551 fcnt_rx += B_FIFO_SIZE; /* bytes actually buffered */ in hfcpci_empty_fifo_trans() 552 new_z2 = le16_to_cpu(*z2r) + fcnt_rx; /* new position in fifo */ in hfcpci_empty_fifo_trans() 564 bch->dropcnt += fcnt_rx; in hfcpci_empty_fifo_trans() 568 maxlen = bchannel_get_rxbuf(bch, fcnt_rx); in hfcpci_empty_fifo_trans() 570 pr_warn("B%d: No bufferspace for %d bytes\n", bch->nr, fcnt_rx); in hfcpci_empty_fifo_trans() 572 ptr = skb_put(bch->rx_skb, fcnt_rx); in hfcpci_empty_fifo_trans() [all...] |
/kernel/linux/linux-6.6/drivers/isdn/hardware/mISDN/ |
H A D | hfcpci.c | 538 int new_z2, fcnt_rx, fcnt_tx, maxlen; in hfcpci_empty_fifo_trans() local 546 fcnt_rx = le16_to_cpu(*z1r) - le16_to_cpu(*z2r); in hfcpci_empty_fifo_trans() 547 if (!fcnt_rx) in hfcpci_empty_fifo_trans() 550 if (fcnt_rx <= 0) in hfcpci_empty_fifo_trans() 551 fcnt_rx += B_FIFO_SIZE; /* bytes actually buffered */ in hfcpci_empty_fifo_trans() 552 new_z2 = le16_to_cpu(*z2r) + fcnt_rx; /* new position in fifo */ in hfcpci_empty_fifo_trans() 564 bch->dropcnt += fcnt_rx; in hfcpci_empty_fifo_trans() 568 maxlen = bchannel_get_rxbuf(bch, fcnt_rx); in hfcpci_empty_fifo_trans() 570 pr_warn("B%d: No bufferspace for %d bytes\n", bch->nr, fcnt_rx); in hfcpci_empty_fifo_trans() 572 ptr = skb_put(bch->rx_skb, fcnt_rx); in hfcpci_empty_fifo_trans() [all...] |
Completed in 4 milliseconds