Searched refs:hdlctx (Results 1 – 3 of 3) sorted by relevance
262 if (test_and_set_bit(0, &s->hdlctx.in_hdlc_tx)) in hdlcdrv_transmitter()265 if (s->hdlctx.numbits >= 16) { in hdlcdrv_transmitter()266 if (hdlcdrv_hbuf_full(&s->hdlctx.hbuf)) { in hdlcdrv_transmitter()267 clear_bit(0, &s->hdlctx.in_hdlc_tx); in hdlcdrv_transmitter()270 hdlcdrv_hbuf_put(&s->hdlctx.hbuf, s->hdlctx.bitbuf); in hdlcdrv_transmitter()271 s->hdlctx.bitbuf >>= 16; in hdlcdrv_transmitter()272 s->hdlctx.numbits -= 16; in hdlcdrv_transmitter()274 switch (s->hdlctx.tx_state) { in hdlcdrv_transmitter()276 clear_bit(0, &s->hdlctx.in_hdlc_tx); in hdlcdrv_transmitter()280 if (s->hdlctx.numflags) { in hdlcdrv_transmitter()[all …]
190 } hdlctx; member367 if (bc->hdlctx.bufcnt > 0) in encode_hdlc()374 wp = bc->hdlctx.buf; in encode_hdlc()412 bc->hdlctx.bufptr = bc->hdlctx.buf; in encode_hdlc()413 bc->hdlctx.bufcnt = wp - bc->hdlctx.buf; in encode_hdlc()426 if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT)) in transmit()427 bc->hdlctx.state = tx_idle; in transmit()428 if (bc->hdlctx.state == tx_idle && bc->hdlctx.calibrate <= 0) { in transmit()429 if (bc->hdlctx.bufcnt <= 0) in transmit()431 if (bc->hdlctx.bufcnt <= 0) in transmit()[all …]
142 } hdlctx; member230 if (hdlcdrv_hbuf_empty(&s->hdlctx.hbuf)) { in hdlcdrv_getbits()231 if (s->hdlctx.calibrate > 0) in hdlcdrv_getbits()232 s->hdlctx.calibrate--; in hdlcdrv_getbits()234 s->hdlctx.ptt = 0; in hdlcdrv_getbits()237 ret = hdlcdrv_hbuf_get(&s->hdlctx.hbuf); in hdlcdrv_getbits()258 return s->hdlctx.ptt || (s->hdlctx.calibrate > 0); in hdlcdrv_ptt()