Lines Matching defs:bp
103 async_LayerPush(struct bundle *b __unused, struct link *l, struct mbuf *bp,
112 if (!p || m_length(bp) > HDLCSIZE) {
113 m_freem(bp);
117 oldcnt = m_length(bp);
121 wp = bp;
128 m_freem(bp);
137 m_freem(bp);
138 bp = m_get(cnt, MB_ASYNCOUT);
139 memcpy(MBUF_CTOP(bp), p->async.xbuff, cnt);
140 bp->priv = cnt - oldcnt;
141 log_DumpBp(LogASYNC, "Write", bp);
143 return bp;
149 struct mbuf *bp;
158 bp = m_get(async->length, MB_ASYNCIN);
159 mbuf_Write(bp, async->hbuff, async->length);
161 return bp;
190 async_LayerPull(struct bundle *b __unused, struct link *l, struct mbuf *bp,
200 return bp;
205 log_DumpBp(LogASYNC, "Read", bp);
206 while (bp) {
207 ch = MBUF_CTOP(bp);
208 for (cnt = bp->m_len; cnt; cnt--) {
213 bp = m_free(bp);