Lines Matching refs:bitbuf
191 unsigned int bitbuf, bitstream, numbits, state; member
374 unsigned bitstream, notbitstream, bitbuf, numbit, crc; in encode_hdlc() local
391 bitstream = bitbuf = numbit = 0; in encode_hdlc()
395 bitbuf |= ((unsigned int)*bp) << numbit; in encode_hdlc()
404 bitbuf = (bitbuf & (((2 << j) << numbit) - 1)) | in encode_hdlc()
405 ((bitbuf & ~(((2 << j) << numbit) - 1)) << 1); in encode_hdlc()
411 *wp++ = bitbuf; in encode_hdlc()
412 bitbuf >>= 8; in encode_hdlc()
416 bitbuf |= 0x7e7e << numbit; in encode_hdlc()
419 *wp++ = bitbuf; in encode_hdlc()
420 bitbuf >>= 8; in encode_hdlc()
565 unsigned int bitbuf, notbitstream, bitstream, numbits, state; in receive() local
574 bitbuf = bc->hdlcrx.bitbuf; in receive()
586 bitbuf >>= 8; in receive()
587 bitbuf |= (*cp) << 8; in receive()
613 bitbuf = (bitbuf & ((~0xff) << j)) | ((bitbuf & ~((~0xff) << j)) << 1); in receive()
620 *(bc->hdlcrx.bufptr)++ = bitbuf >> (16-numbits); in receive()
630 bc->hdlcrx.bitbuf = bitbuf; in receive()