Home
last modified time | relevance | path

Searched refs:rcount (Results 1 – 10 of 10) sorted by relevance

/drivers/net/hamradio/
Dmkiss.c57 int rcount; /* received chars counter */ member
253 if (check_crc_16(ax->rbuff, ax->rcount) < 0) { in ax_bump()
265 ax->rcount -= 2; in ax_bump()
268 if (check_crc_flex(ax->rbuff, ax->rcount) < 0) { in ax_bump()
279 ax->rcount -= 2; in ax_bump()
291 count = ax->rcount; in ax_bump()
317 if (!test_and_clear_bit(AXF_ERROR, &ax->flags) && (ax->rcount > 2)) in kiss_unesc()
321 ax->rcount = 0; in kiss_unesc()
339 if (ax->rcount < ax->buffsize) { in kiss_unesc()
340 ax->rbuff[ax->rcount++] = s; in kiss_unesc()
[all …]
D6pack.c92 int rcount; /* received chars counter */ member
366 count = sp->rcount + 1; in sp_bump()
634 sp->rcount = 0; in sixpack_open()
995 sp->rcount = sp->rx_count_cooked-2; in decode_std_command()
/drivers/isdn/mISDN/
Dhwchannel.c54 bch->rcount--; in bchannel_bh()
99 ch->rcount = 0; in mISDN_initbchannel()
152 ch->rcount = 0; in mISDN_clear_bchannel()
278 if (bch->rcount >= 64) { in recv_Bchannel()
284 bch->rcount++; in recv_Bchannel()
303 if (bch->rcount >= 64) { in recv_Bchannel_skb()
307 bch->rcount = 0; in recv_Bchannel_skb()
309 bch->rcount++; in recv_Bchannel_skb()
351 if (bch->rcount >= 64) { in confirm_Bsend()
355 bch->rcount = 0; in confirm_Bsend()
[all …]
/drivers/net/wan/
Dx25_asy.c153 if (sl->rcount) { in x25_asy_change_mtu()
154 if (sl->rcount <= len) { in x25_asy_change_mtu()
155 memcpy(sl->rbuff, rbuff, sl->rcount); in x25_asy_change_mtu()
157 sl->rcount = 0; in x25_asy_change_mtu()
198 count = sl->rcount; in x25_asy_bump()
476 sl->rcount = 0; in x25_asy_open()
508 sl->rcount = 0; in x25_asy_close()
662 sl->rcount > 2) in x25_asy_unesc()
665 sl->rcount = 0; in x25_asy_unesc()
677 if (sl->rcount < sl->buffsize) { in x25_asy_unesc()
[all …]
Dx25_asy.h27 int rcount; /* received chars counter */ member
/drivers/net/slip/
Dslip.c178 sl->rcount = 0; in sl_alloc_bufs()
278 if (sl->rcount) {
279 if (sl->rcount <= len) {
280 memcpy(sl->rbuff, rbuff, sl->rcount);
282 sl->rcount = 0;
325 count = sl->rcount;
537 sl->rcount = 0;
962 (sl->rcount > 2))
965 sl->rcount = 0;
981 if (sl->rcount < sl->buffsize) {
[all …]
Dslip.h65 int rcount; /* received chars counter */ member
/drivers/net/can/
Dslcan.c93 int rcount; /* received chars counter */ member
234 (sl->rcount > 4)) { in slcan_unesc()
237 sl->rcount = 0; in slcan_unesc()
240 if (sl->rcount < SLC_MTU) { in slcan_unesc()
241 sl->rbuff[sl->rcount++] = s; in slcan_unesc()
398 sl->rcount = 0; in slc_close()
597 sl->rcount = 0; in slcan_open()
/drivers/spi/
Dspi-davinci.c132 int rcount; member
535 if (dspi->rcount > 0 && !(buf & SPIBUF_RXEMPTY_MASK)) { in davinci_spi_process_events()
537 dspi->rcount--; in davinci_spi_process_events()
563 dspi->rcount = 0; in davinci_spi_dma_rx_callback()
565 if (!dspi->wcount && !dspi->rcount) in davinci_spi_dma_rx_callback()
575 if (!dspi->wcount && !dspi->rcount) in davinci_spi_dma_tx_callback()
612 dspi->rcount = dspi->wcount; in davinci_spi_bufs()
716 while (dspi->rcount > 0 || dspi->wcount > 0) { in davinci_spi_bufs()
749 if (dspi->rcount != 0 || dspi->wcount != 0) { in davinci_spi_bufs()
799 if ((!dspi->rcount && !dspi->wcount) || status) in davinci_spi_irq()
/drivers/regulator/
Dmax8925-regulator.c251 int rcount; in max8925_regulator_dt_init() local
262 rcount = of_regulator_match(&pdev->dev, np, in max8925_regulator_dt_init()
265 if (rcount < 0) in max8925_regulator_dt_init()
266 return rcount; in max8925_regulator_dt_init()