Lines Matching defs:uc
69 _rtwn_usb_getbuf(struct rtwn_usb_softc *uc)
71 struct rtwn_softc *sc = &uc->uc_sc;
74 bf = STAILQ_FIRST(&uc->uc_tx_inactive);
76 STAILQ_REMOVE_HEAD(&uc->uc_tx_inactive, next);
85 rtwn_usb_getbuf(struct rtwn_usb_softc *uc)
87 struct rtwn_softc *sc = &uc->uc_sc;
92 bf = _rtwn_usb_getbuf(uc);
101 rtwn_usb_txeof(struct rtwn_usb_softc *uc, struct rtwn_data *data, int status)
103 struct rtwn_softc *sc = &uc->uc_sc;
118 STAILQ_INSERT_TAIL(&uc->uc_tx_inactive, data, next);
123 if (!STAILQ_EMPTY(&uc->uc_tx_active[i]) ||
124 !STAILQ_EMPTY(&uc->uc_tx_pending[i]))
138 struct rtwn_usb_softc *uc = usbd_xfer_softc(xfer);
139 struct rtwn_softc *sc = &uc->uc_sc;
151 data = STAILQ_FIRST(&uc->uc_tx_active[qid]);
154 STAILQ_REMOVE_HEAD(&uc->uc_tx_active[qid], next);
155 rtwn_usb_txeof(uc, data, 0);
159 data = STAILQ_FIRST(&uc->uc_tx_pending[qid]);
166 STAILQ_REMOVE_HEAD(&uc->uc_tx_pending[qid], next);
167 STAILQ_INSERT_TAIL(&uc->uc_tx_active[qid], data, next);
181 data = STAILQ_FIRST(&uc->uc_tx_active[qid]);
184 STAILQ_REMOVE_HEAD(&uc->uc_tx_active[qid], next);
185 rtwn_usb_txeof(uc, data, 1);
208 if (STAILQ_FIRST(&uc->uc_tx_pending[i]) != NULL)
280 struct rtwn_usb_softc *uc = RTWN_USB_SOFTC(sc);
292 data = rtwn_usb_getbuf(uc);
305 qid = uc->wme2qid[ac];
308 xfer = uc->uc_xfer[qid];
338 STAILQ_INSERT_TAIL(&uc->uc_tx_pending[qid], data, next);
339 if (STAILQ_EMPTY(&uc->uc_tx_inactive))