Lines Matching refs:bitbuf
191 unsigned int bitbuf, bitstream, numbits, state; member
378 unsigned bitstream, notbitstream, bitbuf, numbit, crc; in encode_hdlc() local
395 bitstream = bitbuf = numbit = 0; in encode_hdlc()
399 bitbuf |= ((unsigned int)*bp) << numbit; in encode_hdlc()
408 bitbuf = (bitbuf & (((2 << j) << numbit) - 1)) | in encode_hdlc()
409 ((bitbuf & ~(((2 << j) << numbit) - 1)) << 1); in encode_hdlc()
415 *wp++ = bitbuf; in encode_hdlc()
416 bitbuf >>= 8; in encode_hdlc()
420 bitbuf |= 0x7e7e << numbit; in encode_hdlc()
423 *wp++ = bitbuf; in encode_hdlc()
424 bitbuf >>= 8; in encode_hdlc()
569 unsigned int bitbuf, notbitstream, bitstream, numbits, state; in receive() local
578 bitbuf = bc->hdlcrx.bitbuf; in receive()
590 bitbuf >>= 8; in receive()
591 bitbuf |= (*cp) << 8; in receive()
617 bitbuf = (bitbuf & ((~0xff) << j)) | ((bitbuf & ~((~0xff) << j)) << 1); in receive()
624 *(bc->hdlcrx.bufptr)++ = bitbuf >> (16-numbits); in receive()
634 bc->hdlcrx.bitbuf = bitbuf; in receive()