Lines Matching defs:uc

150 rtwn_rxeof_fragmented(struct rtwn_usb_softc *uc, struct rtwn_data *data,
153 struct rtwn_softc *sc = &uc->uc_sc;
155 struct rtwn_rx_stat_common *stat = &uc->uc_rx_stat;
162 if (uc->uc_rx_stat_len < sizeof(*stat)) {
163 min_len = min(sizeof(*stat) - uc->uc_rx_stat_len, len);
164 memcpy((uint8_t *)stat + uc->uc_rx_stat_len, buf, min_len);
166 uc->uc_rx_stat_len += min_len;
170 if (uc->uc_rx_stat_len < sizeof(*stat))
193 m_copyback(data->m, 0, uc->uc_rx_stat_len,
206 uc->uc_rx_off = sizeof(*stat);
210 min_len = min(totlen - uc->uc_rx_off, len);
212 m_copyback(data->m, uc->uc_rx_off, min_len, buf);
214 uc->uc_rx_off += min_len;
215 if (uc->uc_rx_off == totlen) {
217 min_len = rtwn_usb_align_rx(uc,
224 uc->uc_rx_stat_len = 0;
225 uc->uc_rx_off = 0;
230 if (uc->uc_rx_stat_len == 0)
240 struct rtwn_usb_softc *uc = RTWN_USB_SOFTC(sc);
281 totlen = rtwn_usb_align_rx(uc, totlen, len);
287 (void)rtwn_rxeof_fragmented(uc, data, buf, len);
293 rtwn_report_intr(struct rtwn_usb_softc *uc, struct usb_xfer *xfer,
296 struct rtwn_softc *sc = &uc->uc_sc;
304 uc->uc_rx_stat_len == 0)) {
310 if (uc->uc_rx_stat_len > 0)
311 return (rtwn_rxeof_fragmented(uc, data, data->buf, len));
385 struct rtwn_usb_softc *uc = usbd_xfer_softc(xfer);
386 struct rtwn_softc *sc = &uc->uc_sc;
396 data = STAILQ_FIRST(&uc->uc_rx_active);
399 STAILQ_REMOVE_HEAD(&uc->uc_rx_active, next);
400 m = rtwn_report_intr(uc, xfer, data);
401 STAILQ_INSERT_TAIL(&uc->uc_rx_inactive, data, next);
405 data = STAILQ_FIRST(&uc->uc_rx_inactive);
410 STAILQ_REMOVE_HEAD(&uc->uc_rx_inactive, next);
411 STAILQ_INSERT_TAIL(&uc->uc_rx_active, data, next);
447 data = STAILQ_FIRST(&uc->uc_rx_active);
449 STAILQ_REMOVE_HEAD(&uc->uc_rx_active, next);
450 STAILQ_INSERT_TAIL(&uc->uc_rx_inactive, data, next);