Lines Matching defs:from

14  *    may be used to endorse or promote products derived from this software
178 * Attach the cluster from *m to *n, set up m_ext in *n
221 * Clean up mbuf (chain) from any tags and packet headers.
263 * No way to recover from that.
341 * "Move" mbuf pkthdr from "from" to "to".
342 * "from" must have M_PKTHDR set, and "to" must be empty.
345 m_move_pkthdr(struct mbuf *to, struct mbuf *from)
362 to->m_flags = (from->m_flags & M_COPYFLAGS) | (to->m_flags & M_EXT);
365 to->m_pkthdr = from->m_pkthdr; /* especially tags */
366 SLIST_INIT(&from->m_pkthdr.tags); /* purge tags from src */
367 from->m_flags &= ~M_PKTHDR;
371 * Duplicate "from"'s mbuf pkthdr in "to".
372 * "from" must have M_PKTHDR set, and "to" must be empty.
376 m_dup_pkthdr(struct mbuf *to, const struct mbuf *from, int how)
396 to->m_flags = (from->m_flags & M_COPYFLAGS) | (to->m_flags & M_EXT);
399 to->m_pkthdr = from->m_pkthdr;
401 return (m_tag_copy_chain(to, from, how));
433 * Make a copy of an mbuf chain starting "off0" bytes from the beginning,
435 * The wait parameter is a choice of M_WAITOK/M_NOWAIT from caller.
560 * Copy data from an mbuf chain starting "off" bytes from the beginning,
638 /* Copy data from original mbuf(s) into new mbuf */
680 /* splat the data from one into the other */
715 * Trim from head.
732 * Trim from tail. Scan the mbuf chain,
758 * and toss data from remaining mbufs on chain.
960 * Routine to copy from device local memory into mbufs.
961 * Note that `off' argument is offset into first mbuf of target chain from
966 void (*copy)(char *from, caddr_t to, u_int len))
1026 * Copy data from a buffer back into the indicated mbuf chain,
1027 * starting "off" bytes from the beginning, extending the mbuf
1126 * Apply function f to the data in an mbuf chain starting "off" bytes from
1435 * (Random values range from 1 to 256)
1570 /* Fill the uio with data from the mbufs. */
1622 mprev->m_next = m->m_next; /* unlink from chain */
1654 mprev->m_next = m->m_next; /* unlink from chain */