Lines Matching defs:how

36 m_to_oc_flags(int how)
38 if (how & M_NOWAIT)
46 m_init(struct mbuf *m, int how, short type, int flags)
60 error = m_pkthdr_init(m, how);
69 allocate_ext_buf(int how, int size, int* ext_type)
89 return object_cache_alloc(cache, m_to_oc_flags(how));
94 construct_ext_sized_mbuf(struct mbuf *memoryBuffer, int how, int size)
98 memoryBuffer->m_ext.ext_buf = allocate_ext_buf(how, size, &extType);
114 construct_ext_mbuf(struct mbuf *memoryBuffer, int how)
116 return construct_ext_sized_mbuf(memoryBuffer, how, MCLBYTES);
121 construct_pkt_mbuf(int how, struct mbuf *memoryBuffer, short type, int flags)
123 if (m_init(memoryBuffer, how, type, flags) < 0)
125 if (construct_ext_mbuf(memoryBuffer, how) < 0)
133 m_getcl(int how, short type, int flags)
136 (struct mbuf *)object_cache_alloc(sMBufCache, m_to_oc_flags(how));
140 if (construct_pkt_mbuf(how, memoryBuffer, type, flags) < 0) {
150 _m_get(int how, short type, int flags)
153 (struct mbuf *)object_cache_alloc(sMBufCache, m_to_oc_flags(how));
157 m_init(memoryBuffer, how, type, flags);
164 m_get(int how, short type)
166 return _m_get(how, type, 0);
171 m_get2(int size, int how, short type, int flags)
174 return _m_get(how, type, flags);
185 return m_getjcl(how, type, flags, size);
190 m_gethdr(int how, short type)
192 return _m_get(how, type, M_PKTHDR);
197 m_getjcl(int how, short type, int flags, int size)
200 (struct mbuf *)object_cache_alloc(sMBufCache, m_to_oc_flags(how));
203 if (m_init(memoryBuffer, how, type, flags) < 0) {
207 if (construct_ext_sized_mbuf(memoryBuffer, how, size) < 0) {
216 m_clget(struct mbuf *memoryBuffer, int how)
220 construct_ext_mbuf(memoryBuffer, how);
226 m_cljget(struct mbuf* memoryBuffer, int how, int size)
229 return allocate_ext_buf(how, size, NULL);
232 construct_ext_sized_mbuf(memoryBuffer, how, size);