Lines Matching refs:sq
624 ieee80211_ff_age(struct ieee80211com *ic, struct ieee80211_stageq *sq,
631 if (sq->depth == 0) {
636 KASSERT(sq->head != NULL, ("stageq empty"));
638 head = sq->head;
639 while ((m = sq->head) != NULL && M_AGE_GET(m) < quanta) {
647 sq->head = m->m_nextpkt;
648 sq->depth--;
651 sq->tail = NULL;
662 stageq_add(struct ieee80211com *ic, struct ieee80211_stageq *sq, struct mbuf *m)
668 if (sq->tail != NULL) {
669 sq->tail->m_nextpkt = m;
670 age -= M_AGE_GET(sq->head);
672 sq->head = m;
676 sq->tail = m;
677 sq->depth++;
681 stageq_remove(struct ieee80211com *ic, struct ieee80211_stageq *sq, struct mbuf *mstaged)
688 for (m = sq->head; m != NULL; m = m->m_nextpkt) {
691 sq->head = m->m_nextpkt;
694 if (sq->tail == m)
695 sq->tail = mprev;
696 sq->depth--;
757 struct ieee80211_stageq *sq;
806 sq = &sg->ff_stageq[pri];
823 stageq_remove(ic, sq, mstaged);
845 stageq_remove(ic, sq, mstaged);
867 stageq_add(ic, sq, m);
871 "%s: stage frame, %u queued", __func__, sq->depth);