Lines Matching refs:bitbuf
176 unsigned int bitbuf, bitstream, numbits, state; member
363 unsigned bitstream, notbitstream, bitbuf, numbit, crc; in encode_hdlc() local
380 bitstream = bitbuf = numbit = 0; in encode_hdlc()
384 bitbuf |= ((unsigned int)*bp) << numbit; in encode_hdlc()
393 bitbuf = (bitbuf & (((2 << j) << numbit) - 1)) | in encode_hdlc()
394 ((bitbuf & ~(((2 << j) << numbit) - 1)) << 1); in encode_hdlc()
400 *wp++ = bitbuf; in encode_hdlc()
401 bitbuf >>= 8; in encode_hdlc()
405 bitbuf |= 0x7e7e << numbit; in encode_hdlc()
408 *wp++ = bitbuf; in encode_hdlc()
409 bitbuf >>= 8; in encode_hdlc()
555 unsigned int bitbuf, notbitstream, bitstream, numbits, state; in receive() local
564 bitbuf = bc->hdlcrx.bitbuf; in receive()
576 bitbuf >>= 8; in receive()
577 bitbuf |= (*cp) << 8; in receive()
603 bitbuf = (bitbuf & ((~0xff) << j)) | ((bitbuf & ~((~0xff) << j)) << 1); in receive()
610 *(bc->hdlcrx.bufptr)++ = bitbuf >> (16-numbits); in receive()
620 bc->hdlcrx.bitbuf = bitbuf; in receive()