• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/kern/

Lines Matching refs:off

119  * ensure that [off, off + len) is contiguous on the mbuf chain "m".
120 * packet chain before "off" is kept untouched.
129 m_pulldown(struct mbuf *m, int off, int len, int *offp)
154 if (off + len > MHLEN)
162 if (dlen >= off + len)
168 if (mlen >= off + len)
176 prevlen = off + len;
182 if (off + len > MCLBYTES)
189 prevlen = off + len;
192 if (dlen >= off + len)
197 prevmlen = (off + len > MHLEN) ? MCLBYTES : MHLEN;
199 if (mlen >= off + len)
204 prevmlen = (off + len > MHLEN) ? MCLBYTES
223 while (n != NULL && off > 0) {
224 if (n->m_len > off)
226 off -= n->m_len;
238 * the target data is on <n, off>.
241 if ((off == 0 || offp) && len <= n->m_len - off)
249 * when len < n->m_len - off and off != 0, it is a special case.
250 * len bytes from <n, off> sits in single mbuf, but the caller does
251 * not like the starting position (off).
252 * chop the current mbuf into two pieces, set off to 0.
254 if (len < n->m_len - off) {
255 o = m_copym(n, off, n->m_len - off, M_DONTWAIT);
260 n->m_len = off;
264 off = 0;
269 * we need to take hlen from <n, off> and tlen from <n->m_next, 0>,
273 hlen = n->m_len - off;
302 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen
309 if ((off == 0 || offp) && M_LEADINGSPACE(n->m_next) >= hlen
313 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen);
316 off = 0;
340 /* get hlen from <n, off> into <o, 0> */
342 bcopy(mtod(n, caddr_t) + off, mtod(o, caddr_t), hlen);
351 off = 0;
360 printf(" (off=%d)\n", off);
364 *offp = off;
498 * XXXMAC: we should probably pass off the initialization, and