Lines Matching defs:state
176 unsigned int bitbuf, bitstream, numbits, state;
186 enum { tx_idle = 0, tx_keyup, tx_data, tx_tail } state;
426 if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT))
427 bc->hdlctx.state = tx_idle;
428 if (bc->hdlctx.state == tx_idle && bc->hdlctx.calibrate <= 0) {
445 if (bc->hdlctx.state == tx_idle && bc->hdlctx.bufcnt > 0) {
446 bc->hdlctx.state = tx_keyup;
451 switch (bc->hdlctx.state) {
457 bc->hdlctx.state = tx_data;
471 bc->hdlctx.state = tx_tail;
487 bc->hdlctx.state = tx_data;
555 unsigned int bitbuf, notbitstream, bitstream, numbits, state;
562 state = bc->hdlcrx.state;
587 state = 0;
591 if (state)
595 state = 1;
606 while (state && numbits >= 8) {
608 state = 0;
618 bc->hdlcrx.state = state;
929 bc->hdlcrx.state = 0;
931 bc->hdlctx.state = tx_idle;