Lines Matching refs:shift_reg
150 h->shift_reg = fast_abort[h->ffbit_shift - 1]; \ in isdnhdlc_decode()
215 hdlc->shift_reg = 0; in isdnhdlc_decode()
245 hdlc->shift_reg >>= 1; in isdnhdlc_decode()
246 hdlc->shift_reg |= 0x80; in isdnhdlc_decode()
258 hdlc->shift_reg = 0; in isdnhdlc_decode()
268 hdlc->shift_reg >>= 1; in isdnhdlc_decode()
285 hdlc->shift_reg); in isdnhdlc_decode()
289 dst[hdlc->dstpos++] = hdlc->shift_reg; in isdnhdlc_decode()
358 hdlc->shift_reg = *src++; in isdnhdlc_encode()
370 hdlc->shift_reg = in isdnhdlc_encode()
449 if (hdlc->shift_reg & 0x01) in isdnhdlc_encode()
451 hdlc->shift_reg >>= 1; in isdnhdlc_encode()
468 hdlc->shift_reg); in isdnhdlc_encode()
469 if (hdlc->shift_reg & 0x01) { in isdnhdlc_encode()
472 hdlc->shift_reg >>= 1; in isdnhdlc_encode()
476 hdlc->shift_reg >>= 1; in isdnhdlc_encode()
487 if (hdlc->shift_reg & 0x01) { in isdnhdlc_encode()
490 hdlc->shift_reg >>= 1; in isdnhdlc_encode()
494 hdlc->shift_reg >>= 1; in isdnhdlc_encode()
498 hdlc->shift_reg = (hdlc->crc >> 8); in isdnhdlc_encode()
510 if (hdlc->shift_reg & 0x01) { in isdnhdlc_encode()
513 hdlc->shift_reg >>= 1; in isdnhdlc_encode()
517 hdlc->shift_reg >>= 1; in isdnhdlc_encode()
521 hdlc->shift_reg = 0x7e; in isdnhdlc_encode()
533 if (hdlc->shift_reg & 0x01) in isdnhdlc_encode()
535 hdlc->shift_reg >>= 1; in isdnhdlc_encode()