Searched refs:hdlcrx (Results 1 – 3 of 3) sorted by relevance
119 while (s->hdlcrx.rx_state && num >= 8) { in hdlc_rx_add_bytes()120 if (s->hdlcrx.len >= sizeof(s->hdlcrx.buffer)) { in hdlc_rx_add_bytes()121 s->hdlcrx.rx_state = 0; in hdlc_rx_add_bytes()124 *s->hdlcrx.bp++ = bits >> (32-num); in hdlc_rx_add_bytes()125 s->hdlcrx.len++; in hdlc_rx_add_bytes()138 if (s->hdlcrx.len < 4) in hdlc_rx_flag()140 if (!check_crc_ccitt(s->hdlcrx.buffer, s->hdlcrx.len)) in hdlc_rx_flag()142 pkt_len = s->hdlcrx.len - 2 + 1; /* KISS kludge */ in hdlc_rx_flag()150 memcpy(cp, s->hdlcrx.buffer, pkt_len - 1); in hdlc_rx_flag()163 if (test_and_set_bit(0, &s->hdlcrx.in_hdlc_rx)) in hdlcdrv_receiver()[all …]
180 } hdlcrx; member533 if (bc->hdlcrx.bufcnt < 4) in do_rxpacket()535 if (!check_crc_ccitt(bc->hdlcrx.buf, bc->hdlcrx.bufcnt)) in do_rxpacket()537 pktlen = bc->hdlcrx.bufcnt-2+1; /* KISS kludge */ in do_rxpacket()545 memcpy(cp, bc->hdlcrx.buf, pktlen - 1); in do_rxpacket()561 numbits = bc->hdlcrx.numbits; in receive()562 state = bc->hdlcrx.state; in receive()563 bitstream = bc->hdlcrx.bitstream; in receive()564 bitbuf = bc->hdlcrx.bitbuf; in receive()593 bc->hdlcrx.bufcnt = 0; in receive()[all …]
119 } hdlcrx; member223 hdlcdrv_hbuf_put(&s->hdlcrx.hbuf, bits); in hdlcdrv_putbits()239 hdlcdrv_hbuf_put(&s->hdlcrx.hbuf, ret); in hdlcdrv_getbits()253 s->hdlcrx.dcd = !!dcd; in hdlcdrv_setdcd()