Lines Matching defs:mp2
174 struct mbuf *mp, *mp2;
195 mp2 = m_get(how, MT_DATA);
196 if (mp2 == NULL)
198 mp2->m_len = siz;
199 mp2->m_next = mp->m_next;
200 mp->m_next = mp2;
202 mp = mp2;
208 mp2 = mp->m_next;
209 npos = mtod(mp2, caddr_t);
212 if (mp2 == NULL)
214 xfer = (siz2 > mp2->m_len) ? mp2->m_len : siz2;
216 bcopy(mtod(mp2, caddr_t), ptr, xfer);
217 mp2->m_data += xfer;
218 mp2->m_len -= xfer;
223 mp2 = mp2->m_next;
224 if (mp2 != NULL)
225 npos = mtod(mp2, caddr_t);
228 *mdp = mp2;
229 *dposp = mtod(mp2, caddr_t);
231 bcopy(*dposp, npos, mp2->m_len);
232 mp2->m_data = npos;