Home
last modified time | relevance | path

Searched refs:hdlctx (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/drivers/net/hamradio/
Dhdlcdrv.c274 if (test_and_set_bit(0, &s->hdlctx.in_hdlc_tx)) in hdlcdrv_transmitter()
277 if (s->hdlctx.numbits >= 16) { in hdlcdrv_transmitter()
278 if (hdlcdrv_hbuf_full(&s->hdlctx.hbuf)) { in hdlcdrv_transmitter()
279 clear_bit(0, &s->hdlctx.in_hdlc_tx); in hdlcdrv_transmitter()
282 hdlcdrv_hbuf_put(&s->hdlctx.hbuf, s->hdlctx.bitbuf); in hdlcdrv_transmitter()
283 s->hdlctx.bitbuf >>= 16; in hdlcdrv_transmitter()
284 s->hdlctx.numbits -= 16; in hdlcdrv_transmitter()
286 switch (s->hdlctx.tx_state) { in hdlcdrv_transmitter()
288 clear_bit(0, &s->hdlctx.in_hdlc_tx); in hdlcdrv_transmitter()
292 if (s->hdlctx.numflags) { in hdlcdrv_transmitter()
[all …]
Dbaycom_epp.c205 } hdlctx; member
378 if (bc->hdlctx.bufcnt > 0) in encode_hdlc()
385 wp = bc->hdlctx.buf; in encode_hdlc()
423 bc->hdlctx.bufptr = bc->hdlctx.buf; in encode_hdlc()
424 bc->hdlctx.bufcnt = wp - bc->hdlctx.buf; in encode_hdlc()
437 if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT)) in transmit()
438 bc->hdlctx.state = tx_idle; in transmit()
439 if (bc->hdlctx.state == tx_idle && bc->hdlctx.calibrate <= 0) { in transmit()
440 if (bc->hdlctx.bufcnt <= 0) in transmit()
442 if (bc->hdlctx.bufcnt <= 0) in transmit()
[all …]
/linux-4.1.27/include/linux/
Dhdlcdrv.h141 } hdlctx; member
229 if (hdlcdrv_hbuf_empty(&s->hdlctx.hbuf)) { in hdlcdrv_getbits()
230 if (s->hdlctx.calibrate > 0) in hdlcdrv_getbits()
231 s->hdlctx.calibrate--; in hdlcdrv_getbits()
233 s->hdlctx.ptt = 0; in hdlcdrv_getbits()
236 ret = hdlcdrv_hbuf_get(&s->hdlctx.hbuf); in hdlcdrv_getbits()
257 return s->hdlctx.ptt || (s->hdlctx.calibrate > 0); in hdlcdrv_ptt()