Home
last modified time | relevance | path

Searched refs:hdlcrx (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/hamradio/
H A Dhdlcdrv.c119 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 …]
/linux/include/linux/
H A Dhdlcdrv.h119 } hdlcrx; member
223 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()