Lines Matching refs:cp
109 *cp++ = 0; \
110 cp[1] = (n) & 0xff; \
111 cp[0] = ((n) >> 8) & 0xff; \
112 cp += 2; \
114 *cp++ = (n) & 0xff; \
119 *cp++ = 0; \
120 cp[1] = (n) & 0xff; \
121 cp[0] = ((n) >> 8) & 0xff; \
122 cp += 2; \
124 *cp++ = (n) & 0xff; \
129 if (*cp == 0) { \
130 uint32_t tmp = ntohl(f) + ((cp[1] << 8) | cp[2]); \
132 cp += 3; \
134 uint32_t tmp = ntohl(f) + (uint32_t)*cp++; \
140 if (*cp == 0) { \
141 ushort_t tmp = ntohs(f) + ((cp[1] << 8) | cp[2]); \
143 cp += 3; \
145 ushort_t tmp = ntohs(f) + (uint32_t)*cp++; \
151 if (*cp == 0) { \
152 (f) = htons((cp[1] << 8) | cp[2]); \
153 cp += 3; \
155 (f) = htons((uint32_t)*cp++); \
171 register uchar_t *cp = new_seq;
381 cp = new_seq;
394 cp = new_seq;
421 * (cp - new_seq) is the number of bytes we need for compressed
424 * So, (cp - new_seq) + 4 bytes of header are needed. thlen is how
428 deltaS = cp - new_seq;
430 cp = (uchar_t *)ip;
437 *vjhdrp = (cp += thlen);
439 *cp++ = changes | NEW_C;
440 *cp++ = cs->cs_id;
444 *vjhdrp = (cp += thlen);
446 *cp++ = changes & 0xff;
449 *cp++ = (deltaA >> 8) & 0xff;
450 *cp++ = deltaA & 0xff;
452 BCOPY(new_seq, cp, deltaS);
537 register uchar_t *cp;
548 cp = buf;
549 changes = *cp++;
556 if (*cp >= MAX_STATES) {
561 comp->last_recv = *cp++;
578 th->th_sum = htons((*cp << 8) | cp[1]);
580 cp += 2;
647 * At this point, cp points to the first byte of data in the
651 vjlen = cp - buf;