Lines Matching refs:mbuf

107 #include <sys/mbuf.h>
121 * ensure that [off, off + len) is contiguous on the mbuf chain "m".
130 struct mbuf *
131 m_pulldown(struct mbuf *m, int off, int len, int *offp)
133 struct mbuf *n, *o;
137 static struct mbuf *prev = NULL;
217 struct mbuf *t;
231 /* be sure to point non-empty mbuf */
236 return NULL; /* mbuf chain too short */
241 * if we got enough data on the mbuf "n", we're done.
252 * len bytes from <n, off> sits in single mbuf, but the caller does
254 * chop the current mbuf into two pieces, set off to 0.
272 * and construct contiguous mbuf with m_len == len.
279 * ensure that we have enough trailing data on mbuf chain.
287 return NULL; /* mbuf chain too short */
358 struct mbuf *t;
372 * or by allocating a new mbuf/cluster
375 m_tag_create(u_int32_t id, u_int16_t type, int len, int wait, struct mbuf *buf)
389 * If not (t == NULL), call m_tag_alloc to store it in a new mbuf.
402 struct mbuf *m = m_dtom(p);
408 /* The mbuf can store this m_tag */
443 struct mbuf *m = m_get(wait, MT_TAG);
495 struct mbuf * m = m_dtom(t);
501 /* No other tags in this mbuf */
521 m_tag_prepend(struct mbuf *m, struct m_tag *t)
530 m_tag_unlink(struct mbuf *m, struct m_tag *t)
540 m_tag_delete(struct mbuf *m, struct m_tag *t)
548 m_tag_delete_chain(struct mbuf *m, struct m_tag *t)
572 m_tag_locate(struct mbuf *m, u_int32_t id, u_int16_t type, struct m_tag *t)
608 * special from the mbuf code?
625 * Copy two tag chains. The destination mbuf (to) loses any attached
628 * destination mbuf.
631 m_tag_copy_chain(struct mbuf *to, struct mbuf *from, int how)
655 /* Initialize dynamic and static tags on an mbuf. */
657 m_tag_init(struct mbuf *m, int all)
663 * If the caller wants to preserve static mbuf tags
674 m_tag_first(struct mbuf *m)
683 m_tag_next(struct mbuf *m, struct m_tag *t)
693 m_set_traffic_class(struct mbuf *m, mbuf_traffic_class_t tc)
701 m_get_traffic_class(struct mbuf *m)
707 m_set_service_class(struct mbuf *m, mbuf_svc_class_t sc)
722 m_get_service_class(struct mbuf *m)
827 m_adj_sum16(struct mbuf *m, uint32_t start, uint32_t ulpoff, uint32_t sum)
846 extern int cpu_in_cksum(struct mbuf *m, int len, int off, uint32_t initial_sum);
849 m_sum16(struct mbuf *m, uint32_t off, uint32_t len)
857 * the caller setting m_pkthdr.len correctly, if the mbuf is
861 panic("%s: mbuf len (%d) < off+len (%d+%d)\n", __func__,