Lines Matching refs:bit_shift
137 if (h->cbin == fast_flag[h->bit_shift]) { \ in isdnhdlc_decode()
138 h->ffvalue = fast_flag_value[h->bit_shift]; \ in isdnhdlc_decode()
140 h->ffbit_shift = h->bit_shift; \ in isdnhdlc_decode()
141 h->bit_shift = 1; \ in isdnhdlc_decode()
162 if (hdlc->bit_shift == 0) { in isdnhdlc_decode()
169 hdlc->bit_shift = 8; in isdnhdlc_decode()
171 hdlc->bit_shift--; in isdnhdlc_decode()
179 hdlc->bit_shift = 0; in isdnhdlc_decode()
184 hdlc->bit_shift = 8; in isdnhdlc_decode()
193 (hdlc->bit_shift == 1)) in isdnhdlc_decode()
197 hdlc->bit_shift--; in isdnhdlc_decode()
207 hdlc->bit_shift--; in isdnhdlc_decode()
221 hdlc->bit_shift--; in isdnhdlc_decode()
235 [hdlc->bit_shift + 1]) { in isdnhdlc_decode()
238 hdlc->bit_shift = 1; in isdnhdlc_decode()
278 hdlc->bit_shift--; in isdnhdlc_decode()
297 hdlc->bit_shift--; in isdnhdlc_decode()
301 hdlc->bit_shift = 0; in isdnhdlc_decode()
306 hdlc->bit_shift = 0; in isdnhdlc_decode()
356 if (hdlc->bit_shift == 0) { in isdnhdlc_encode()
363 hdlc->bit_shift = 8; in isdnhdlc_encode()
369 hdlc->bit_shift = 8; in isdnhdlc_encode()
402 if (hdlc->bit_shift == 8) { in isdnhdlc_encode()
432 if (hdlc->bit_shift == 8) { in isdnhdlc_encode()
452 hdlc->bit_shift--; in isdnhdlc_encode()
453 if (hdlc->bit_shift == 0) { in isdnhdlc_encode()
466 if (hdlc->bit_shift == 8) in isdnhdlc_encode()
473 hdlc->bit_shift--; in isdnhdlc_encode()
477 hdlc->bit_shift--; in isdnhdlc_encode()
491 hdlc->bit_shift--; in isdnhdlc_encode()
495 hdlc->bit_shift--; in isdnhdlc_encode()
497 if (hdlc->bit_shift == 0) { in isdnhdlc_encode()
500 hdlc->bit_shift = 8; in isdnhdlc_encode()
514 hdlc->bit_shift--; in isdnhdlc_encode()
518 hdlc->bit_shift--; in isdnhdlc_encode()
520 if (hdlc->bit_shift == 0) { in isdnhdlc_encode()
523 hdlc->bit_shift = 8; in isdnhdlc_encode()
536 hdlc->bit_shift--; in isdnhdlc_encode()
537 if (hdlc->bit_shift == 0) { in isdnhdlc_encode()
543 hdlc->bit_shift = 8-hdlc->data_bits; in isdnhdlc_encode()
544 if (hdlc->bit_shift == 0) in isdnhdlc_encode()
567 hdlc->bit_shift--; in isdnhdlc_encode()
568 if (hdlc->bit_shift == 0) { in isdnhdlc_encode()
570 hdlc->bit_shift = 0; in isdnhdlc_encode()
577 if (hdlc->bit_shift == 8) { in isdnhdlc_encode()
586 hdlc->bit_shift = 0; in isdnhdlc_encode()