Home
last modified time | relevance | path

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

/drivers/net/hamradio/
Dmkiss.c49 int rcount; /* received chars counter */ member
245 if (check_crc_16(ax->rbuff, ax->rcount) < 0) { in ax_bump()
257 ax->rcount -= 2; in ax_bump()
260 if (check_crc_flex(ax->rbuff, ax->rcount) < 0) { in ax_bump()
271 ax->rcount -= 2; in ax_bump()
283 count = ax->rcount; in ax_bump()
309 if (!test_and_clear_bit(AXF_ERROR, &ax->flags) && (ax->rcount > 2)) in kiss_unesc()
313 ax->rcount = 0; in kiss_unesc()
331 if (ax->rcount < ax->buffsize) { in kiss_unesc()
332 ax->rbuff[ax->rcount++] = s; in kiss_unesc()
[all …]
D6pack.c92 int rcount; /* received chars counter */ member
342 count = sp->rcount + 1; in sp_bump()
597 sp->rcount = 0; in sixpack_open()
941 sp->rcount = sp->rx_count_cooked-2; in decode_std_command()
/drivers/isdn/mISDN/
Dhwchannel.c45 bch->rcount--; in bchannel_bh()
90 ch->rcount = 0; in mISDN_initbchannel()
143 ch->rcount = 0; in mISDN_clear_bchannel()
269 if (bch->rcount >= 64) { in recv_Bchannel()
275 bch->rcount++; in recv_Bchannel()
294 if (bch->rcount >= 64) { in recv_Bchannel_skb()
298 bch->rcount = 0; in recv_Bchannel_skb()
300 bch->rcount++; in recv_Bchannel_skb()
342 if (bch->rcount >= 64) { in confirm_Bsend()
346 bch->rcount = 0; in confirm_Bsend()
[all …]
/drivers/net/wan/
Dx25_asy.c150 if (sl->rcount) { in x25_asy_change_mtu()
151 if (sl->rcount <= len) { in x25_asy_change_mtu()
152 memcpy(sl->rbuff, rbuff, sl->rcount); in x25_asy_change_mtu()
154 sl->rcount = 0; in x25_asy_change_mtu()
195 count = sl->rcount; in x25_asy_bump()
485 sl->rcount = 0; in x25_asy_open()
511 sl->rcount = 0; in x25_asy_close()
657 sl->rcount >= 2) in x25_asy_unesc()
660 sl->rcount = 0; in x25_asy_unesc()
672 if (sl->rcount < sl->buffsize) { in x25_asy_unesc()
[all …]
Dx25_asy.h28 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;
541 sl->rcount = 0;
967 (sl->rcount > 2))
970 sl->rcount = 0;
986 if (sl->rcount < sl->buffsize) {
[all …]
Dslip.h66 int rcount; /* received chars counter */ member
/drivers/spi/
Dspi-davinci.c117 int rcount; member
513 if (dspi->rcount > 0 && !(buf & SPIBUF_RXEMPTY_MASK)) { in davinci_spi_process_events()
515 dspi->rcount--; in davinci_spi_process_events()
541 dspi->rcount = 0; in davinci_spi_dma_rx_callback()
543 if (!dspi->wcount && !dspi->rcount) in davinci_spi_dma_rx_callback()
553 if (!dspi->wcount && !dspi->rcount) in davinci_spi_dma_tx_callback()
587 dspi->rcount = dspi->wcount; in davinci_spi_bufs()
668 while (dspi->rcount > 0 || dspi->wcount > 0) { in davinci_spi_bufs()
694 if (dspi->rcount != 0 || dspi->wcount != 0) { in davinci_spi_bufs()
738 if ((!dspi->rcount && !dspi->wcount) || status) in davinci_spi_irq()
/drivers/net/can/
Dslcan.c91 int rcount; /* received chars counter */ member
230 (sl->rcount > 4)) { in slcan_unesc()
233 sl->rcount = 0; in slcan_unesc()
236 if (sl->rcount < SLC_MTU) { in slcan_unesc()
237 sl->rbuff[sl->rcount++] = s; in slcan_unesc()
398 sl->rcount = 0; in slc_close()
603 sl->rcount = 0; in slcan_open()
/drivers/w1/slaves/
Dw1_ds28e17.c302 const u8 *wbuffer, size_t wcount, u8 *rbuffer, size_t rcount) in w1_f19_i2c_write_read() argument
309 if (wcount == 0 || rcount == 0) in w1_f19_i2c_write_read()
322 w1_buf[0] = rcount; in w1_f19_i2c_write_read()
329 if (w1_f19_i2c_busy_wait(sl, wcount + rcount + 2) < 0) in w1_f19_i2c_write_read()
341 return w1_read_block(sl->master, rbuffer, rcount); in w1_f19_i2c_write_read()
/drivers/i2c/busses/
Di2c-npcm7xx.c1296 int rcount; in npcm_i2c_master_fifo_read() local
1301 rcount = bus->rd_size - bus->rd_ind; in npcm_i2c_master_fifo_read()
1310 if (rcount < (2 * I2C_HW_FIFO_SIZE) && rcount > I2C_HW_FIFO_SIZE) in npcm_i2c_master_fifo_read()
1311 fifo_bytes = rcount - I2C_HW_FIFO_SIZE; in npcm_i2c_master_fifo_read()
1313 if (rcount <= fifo_bytes) { in npcm_i2c_master_fifo_read()
1323 rcount = bus->rd_size - bus->rd_ind; in npcm_i2c_master_fifo_read()
1324 npcm_i2c_set_fifo(bus, rcount, -1); in npcm_i2c_master_fifo_read()