Searched refs:hdlcrx (Results 1 – 5 of 5) sorted by relevance
190 while (s->hdlcrx.rx_state && num >= 8) { in hdlc_rx_add_bytes()191 if (s->hdlcrx.len >= sizeof(s->hdlcrx.buffer)) { in hdlc_rx_add_bytes()192 s->hdlcrx.rx_state = 0; in hdlc_rx_add_bytes()195 *s->hdlcrx.bp++ = bits >> (32-num); in hdlc_rx_add_bytes()196 s->hdlcrx.len++; in hdlc_rx_add_bytes()209 if (s->hdlcrx.len < 4) in hdlc_rx_flag()211 if (!check_crc_ccitt(s->hdlcrx.buffer, s->hdlcrx.len)) in hdlc_rx_flag()213 pkt_len = s->hdlcrx.len - 2 + 1; /* KISS kludge */ in hdlc_rx_flag()222 memcpy(cp, s->hdlcrx.buffer, pkt_len - 1); in hdlc_rx_flag()236 if (test_and_set_bit(0, &s->hdlcrx.in_hdlc_rx)) in hdlcdrv_receiver()[all …]
220 } hdlcrx; member692 if (bc->hdlcrx.bufcnt < 4) in do_rxpacket()694 if (!check_crc_ccitt(bc->hdlcrx.buf, bc->hdlcrx.bufcnt)) in do_rxpacket()696 pktlen = bc->hdlcrx.bufcnt-2+1; /* KISS kludge */ in do_rxpacket()705 memcpy(cp, bc->hdlcrx.buf, pktlen - 1); in do_rxpacket()732 bc->hdlcrx.bufcnt = 0; \733 bc->hdlcrx.bufptr = bc->hdlcrx.buf; \752 numbits = bc->hdlcrx.numbits; in receive()753 state = bc->hdlcrx.state; in receive()754 bitstream = bc->hdlcrx.bitstream; in receive()[all …]
213 } hdlcrx; member318 hdlcdrv_hbuf_put(&s->hdlcrx.hbuf, bits); in hdlcdrv_putbits()334 hdlcdrv_hbuf_put(&s->hdlcrx.hbuf, ret); in hdlcdrv_getbits()348 s->hdlcrx.dcd = !!dcd; in hdlcdrv_setdcd()
163 if (!(sm->diag.flags & SM_DIAGFLAG_DCDGATE) || sm->hdrv.hdlcrx.dcd) in diag_trigger()
268 int dcd = (!!sm->hdrv.hdlcrx.dcd) ^ invert_dcd; in sm_output_status()