Lines Matching full:m0
54 m_makespace(struct mbuf *m0, int skip, int hlen, int *off) in m_makespace() argument
59 IPSEC_ASSERT(m0 != NULL, ("null mbuf")); in m_makespace()
62 for (m = m0; m && skip > m->m_len; m = m->m_next) in m_makespace()
158 m0->m_pkthdr.len += hlen; /* adjust packet length */ in m_makespace()
170 struct mbuf *m0, *m1; in m_pad() local
182 m0 = m; in m_pad()
184 while (m0->m_len < len) { in m_pad()
185 len -= m0->m_len; in m_pad()
186 m0 = m0->m_next; in m_pad()
189 if (m0->m_len != len) { in m_pad()
192 m->m_pkthdr.len + m0->m_len - len)); in m_pad()
199 for (m1 = m0; m1->m_next; m1 = m1->m_next) { in m_pad()
210 m0 = m1->m_next; in m_pad()
213 if (pad > M_TRAILINGSPACE(m0)) { in m_pad()
217 m_freem(m0); in m_pad()
222 m0->m_next = m1; in m_pad()
223 m0 = m1; in m_pad()
224 m0->m_len = 0; in m_pad()
227 retval = m0->m_data + m0->m_len; in m_pad()
228 m0->m_len += pad; in m_pad()
309 m_checkalignment(const char* where, struct mbuf *m0, int off, int len) in m_checkalignment() argument
312 struct mbuf *m = m_getptr(m0, off, &roff); in m_checkalignment()
337 for (m = m0; m; m = m->m_next) in m_checkalignment()