Lines Matching refs:rptr
569 uchar_t *rptr, *rmax; in bsd_compress() local
611 if (rptr != NULL) { \ in bsd_compress()
612 while (rptr >= rmax) { \ in bsd_compress()
614 rptr = NULL; \ in bsd_compress()
617 rptr = mp->b_rptr; \ in bsd_compress()
624 if (rptr != NULL) { \ in bsd_compress()
625 (v) = *rptr++; \ in bsd_compress()
637 rptr = mp->b_rptr; in bsd_compress()
656 if (rptr == NULL || ent == PPP_COMP || ent == PPP_COMPFRAG) in bsd_compress()
726 if (rptr == NULL) in bsd_compress()
912 uchar_t *rptr, *rmax; in bsd_incomp() local
920 rptr = mp->b_rptr; in bsd_incomp()
938 if (rptr == NULL || ent == PPP_COMP || ent == PPP_COMPFRAG) in bsd_incomp()
950 slen = mp->b_wptr - rptr; in bsd_incomp()
957 rptr = mp->b_rptr; in bsd_incomp()
964 c = *rptr++; in bsd_incomp()
1108 uchar_t *rptr, *rmax; in bsd_decompress() local
1129 rptr = cmsg->b_rptr; in bsd_decompress()
1138 while (rptr >= rmax) { \ in bsd_decompress()
1142 rptr = NULL; \ in bsd_decompress()
1145 rptr = cmsg->b_rptr; \ in bsd_decompress()
1147 ilen += rmax-rptr; \ in bsd_decompress()
1154 adrs = rptr[0]; in bsd_decompress()
1155 ctrl = rptr[1]; in bsd_decompress()
1156 rptr += 4; in bsd_decompress()
1158 seq = rptr == NULL ? 0 : (*rptr++ << 8); in bsd_decompress()
1160 if (rptr == NULL) { in bsd_decompress()
1167 seq |= *rptr++; in bsd_decompress()
1227 ilen = rmax-rptr; in bsd_decompress()
1233 if (rptr == NULL) in bsd_decompress()
1243 accm |= *rptr++ << bitno; in bsd_decompress()
1261 if (rptr != NULL) { in bsd_decompress()