Lines Matching refs:if_snd
334 if (ALTQ_IS_ENABLED(&ifp->if_snd)) { in tunstart()
335 IFQ_LOCK(&ifp->if_snd); in tunstart()
336 IFQ_POLL_NOLOCK(&ifp->if_snd, m); in tunstart()
338 IFQ_UNLOCK(&ifp->if_snd); in tunstart()
341 IFQ_UNLOCK(&ifp->if_snd); in tunstart()
385 IFQ_SET_MAXLEN(&ifp->if_snd, ifqmaxlen); in tuncreate()
386 ifp->if_snd.ifq_drv_maxlen = 0; in tuncreate()
387 IFQ_SET_READY(&ifp->if_snd); in tuncreate()
458 IFQ_PURGE(&ifp->if_snd); in tunclose()
758 if (!IFQ_IS_EMPTY(&TUN2IFP(tp)->if_snd)) { in tunioctl()
760 IFQ_LOCK(&TUN2IFP(tp)->if_snd); in tunioctl()
761 IFQ_POLL_NOLOCK(&TUN2IFP(tp)->if_snd, mb); in tunioctl()
764 IFQ_UNLOCK(&TUN2IFP(tp)->if_snd); in tunioctl()
813 IFQ_DEQUEUE(&ifp->if_snd, m); in tunread()
948 IFQ_LOCK(&ifp->if_snd); in tunpoll()
949 IFQ_POLL_NOLOCK(&ifp->if_snd, m); in tunpoll()
951 TUNDEBUG(ifp, "tunpoll q=%d\n", ifp->if_snd.ifq_len); in tunpoll()
957 IFQ_UNLOCK(&ifp->if_snd); in tunpoll()
1010 if ((kn->kn_data = ifp->if_snd.ifq_len) > 0) { in tunkqread()
1013 ifp->if_xname, ifp->if_snd.ifq_len, dev2unit(dev)); in tunkqread()