Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/isdn/hisax/
Dhfc_pci.c402 int new_z2, fcnt, maxlen; in hfcpci_empty_fifo_trans() local
409 if (!(fcnt = *z1r - *z2r)) in hfcpci_empty_fifo_trans()
412 if (fcnt <= 0) in hfcpci_empty_fifo_trans()
413 fcnt += B_FIFO_SIZE; /* bytes actually buffered */ in hfcpci_empty_fifo_trans()
414 if (fcnt > HFCPCI_BTRANS_THRESHOLD) in hfcpci_empty_fifo_trans()
415 fcnt = HFCPCI_BTRANS_THRESHOLD; /* limit size */ in hfcpci_empty_fifo_trans()
417 new_z2 = *z2r + fcnt; /* new position in fifo */ in hfcpci_empty_fifo_trans()
421 if (!(skb = dev_alloc_skb(fcnt))) in hfcpci_empty_fifo_trans()
424 ptr = skb_put(skb, fcnt); in hfcpci_empty_fifo_trans()
425 if (*z2r + fcnt <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_fifo_trans()
[all …]
Dhfc_2bds0.c264 int idx, fcnt; in hfc_fill_fifo() local
285 fcnt = bcs->hw.hfc.f1 - bcs->hw.hfc.f2; in hfc_fill_fifo()
286 if (fcnt < 0) in hfc_fill_fifo()
287 fcnt += 32; in hfc_fill_fifo()
288 if (fcnt > 30) { in hfc_fill_fifo()
691 int idx, fcnt; in hfc_fill_dfifo() local
712 fcnt = cs->hw.hfcD.f1 - cs->hw.hfcD.f2; in hfc_fill_dfifo()
713 if (fcnt < 0) in hfc_fill_dfifo()
714 fcnt += 16; in hfc_fill_dfifo()
715 if (fcnt > 14) { in hfc_fill_dfifo()
Dhfc_2bs0.c240 int idx, fcnt; in hfc_fill_fifo() local
266 fcnt = bcs->hw.hfc.f1 - bcs->hw.hfc.f2; in hfc_fill_fifo()
267 if (fcnt < 0) in hfc_fill_fifo()
268 fcnt += 32; in hfc_fill_fifo()
269 if (fcnt > 30) { in hfc_fill_fifo()
/linux-4.19.296/drivers/isdn/hardware/mISDN/
Dhfcpci.c679 int fcnt; in hfcpci_fill_dfifo() local
698 fcnt = df->f1 - df->f2; /* frame count actually buffered */ in hfcpci_fill_dfifo()
699 if (fcnt < 0) in hfcpci_fill_dfifo()
700 fcnt += (MAX_D_FRAMES + 1); /* if wrap around */ in hfcpci_fill_dfifo()
701 if (fcnt > (MAX_D_FRAMES - 1)) { in hfcpci_fill_dfifo()
756 int maxlen, fcnt; in hfcpci_fill_fifo() local
788 fcnt = le16_to_cpu(*z2t) - le16_to_cpu(*z1t); in hfcpci_fill_fifo()
789 if (fcnt <= 0) in hfcpci_fill_fifo()
790 fcnt += B_FIFO_SIZE; in hfcpci_fill_fifo()
793 if (count > fcnt) in hfcpci_fill_fifo()
[all …]