Lines Matching refs:cp
77 *cp++ = 0; \
78 cp[1] = (u8_t)(n); \
79 cp[0] = (u8_t)((n) >> 8); \
80 cp += 2; \
82 *cp++ = (u8_t)(n); \
87 *cp++ = 0; \
88 cp[1] = (u8_t)(n); \
89 cp[0] = (u8_t)((n) >> 8); \
90 cp += 2; \
92 *cp++ = (u8_t)(n); \
97 if (*cp == 0) {\
98 u32_t tmp_ = lwip_ntohl(f) + ((cp[1] << 8) | cp[2]); \
100 cp += 3; \
102 u32_t tmp_ = lwip_ntohl(f) + (u32_t)*cp++; \
108 if (*cp == 0) {\
109 u16_t tmp_ = lwip_ntohs(f) + (((u16_t)cp[1] << 8) | cp[2]); \
111 cp += 3; \
113 u16_t tmp_ = lwip_ntohs(f) + (u16_t)*cp++; \
119 if (*cp == 0) {\
120 (f) = lwip_htons(((u16_t)cp[1] << 8) | cp[2]); \
121 cp += 3; \
123 (f) = lwip_htons((u16_t)*cp++); \
173 u8_t *cp = new_seq;
367 cp = new_seq;
375 cp = new_seq;
399 * (cp - new_seq) is the number of bytes we need for compressed
402 * So, (cp - new_seq) + 4 bytes of header are needed. hlen is how
406 deltaS = (u16_t)(cp - new_seq);
414 cp = (u8_t*)np->payload;
415 *cp++ = (u8_t)(changes | NEW_C);
416 *cp++ = cs->cs_id;
423 cp = (u8_t*)np->payload;
424 *cp++ = (u8_t)changes;
426 *cp++ = (u8_t)(deltaA >> 8);
427 *cp++ = (u8_t)deltaA;
428 MEMCPY(cp, new_seq, deltaS);
499 u8_t *cp;
508 cp = (u8_t*)n0->payload;
509 changes = *cp++;
515 if (*cp >= MAX_SLOTS) {
516 PPPDEBUG(LOG_INFO, ("vj_uncompress_tcp: bad cid=%d\n", *cp));
521 comp->last_recv = *cp++;
537 th->chksum = lwip_htons((*cp << 8) | cp[1]);
538 cp += 2;
589 * At this point, cp points to the first byte of data in the
593 vjlen = (u16_t)(cp - (u8_t*)n0->payload);