Lines Matching defs:ifm
16 #define ifs_init(ifm) ((ifm)->ifs_next = (ifm)->ifs_prev = (ifm))
19 ifs_insque(struct mbuf *ifm, struct mbuf *ifmhead)
21 ifm->ifs_next = ifmhead->ifs_next;
22 ifmhead->ifs_next = ifm;
23 ifm->ifs_prev = ifmhead;
24 ifm->ifs_next->ifs_prev = ifm;
28 ifs_remque(struct mbuf *ifm)
30 ifm->ifs_prev->ifs_next = ifm->ifs_next;
31 ifm->ifs_next->ifs_prev = ifm->ifs_prev;
136 if_output(struct socket *so, struct mbuf *ifm)
143 DEBUG_ARG("ifm = %lx", (long)ifm);
150 if (ifm->m_flags & M_USEDLIST) {
151 remque(ifm);
152 ifm->m_flags &= ~M_USEDLIST;
165 ifm->ifq_so = so;
166 ifs_insque(ifm, ifq->ifs_prev);
180 ifm->ifq_so = so;
181 ifs_insque(ifm, ifq->ifs_prev);
188 ifm->ifq_so = so;
189 ifs_init(ifm);
190 insque(ifm, ifq);
210 remque(ifm->ifs_next);
213 insque(ifm->ifs_next, &if_batchq);
243 struct mbuf *ifm, *ifqt;
260 ifm = if_fastq.ifq_next;
264 ifm = next_m;
266 ifm = if_batchq.ifq_next;
269 next_m = ifm->ifq_next;
272 ifqt = ifm->ifq_prev;
273 remque(ifm);
277 if (ifm->ifs_next != /* ifm->ifs_prev != */ ifm) {
278 insque(ifm->ifs_next, ifqt);
279 ifs_remque(ifm);
283 if (ifm->ifq_so) {
284 if (--ifm->ifq_so->so_queued == 0)
286 ifm->ifq_so->so_nqueued = 0;
290 if_encap((uint8_t *)ifm->m_data, ifm->m_len);
292 m_free(ifm);