Lines Matching refs:wp
179 u_char *cp, *wp, *hp; in Pred1Output() local
186 hp = wp = MBUF_CTOP(mwp); in Pred1Output()
188 *wp++ = *cp++ = orglen >> 8; in Pred1Output()
189 *wp++ = *cp++ = orglen & 0377; in Pred1Output()
196 len = compress(state, bufp + 2, wp, orglen); in Pred1Output()
201 wp += len; in Pred1Output()
204 memcpy(wp, bufp + 2, orglen); in Pred1Output()
205 wp += orglen; in Pred1Output()
209 *wp++ = fcs & 0377; in Pred1Output()
210 *wp++ = fcs >> 8; in Pred1Output()
211 mwp->m_len = wp - MBUF_CTOP(mwp); in Pred1Output()
222 struct mbuf *wp; in Pred1Input() local
226 wp = m_get(MAX_MRU + 2, MB_CCPIN); in Pred1Input()
229 pp = bufp = MBUF_CTOP(wp); in Pred1Input()
243 m_freem(wp); in Pred1Input()
251 m_freem(wp); in Pred1Input()
262 fcs = hdlc_Fcs(bufp, wp->m_len = pp - bufp); in Pred1Input()
264 wp->m_offset += 2; /* skip length */ in Pred1Input()
265 wp->m_len -= 4; /* skip length & CRC */ in Pred1Input()
266 pp = MBUF_CTOP(wp); in Pred1Input()
269 wp->m_offset++; in Pred1Input()
270 wp->m_len--; in Pred1Input()
272 wp->m_offset += 2; in Pred1Input()
273 wp->m_len -= 2; in Pred1Input()
277 return wp; in Pred1Input()
285 m_freem(wp); in Pred1Input()