Lines Matching refs:uc

152 rtwn_rxeof_fragmented(struct rtwn_usb_softc *uc, struct rtwn_data *data,
155 struct rtwn_softc *sc = &uc->uc_sc;
157 struct rtwn_rx_stat_common *stat = &uc->uc_rx_stat;
164 if (uc->uc_rx_stat_len < sizeof(*stat)) {
165 min_len = min(sizeof(*stat) - uc->uc_rx_stat_len, len);
166 memcpy((uint8_t *)stat + uc->uc_rx_stat_len, buf, min_len);
168 uc->uc_rx_stat_len += min_len;
172 if (uc->uc_rx_stat_len < sizeof(*stat))
195 m_copyback(data->m, 0, uc->uc_rx_stat_len,
208 uc->uc_rx_off = sizeof(*stat);
212 min_len = min(totlen - uc->uc_rx_off, len);
214 m_copyback(data->m, uc->uc_rx_off, min_len, buf);
216 uc->uc_rx_off += min_len;
217 if (uc->uc_rx_off == totlen) {
219 min_len = rtwn_usb_align_rx(uc,
226 uc->uc_rx_stat_len = 0;
227 uc->uc_rx_off = 0;
232 if (uc->uc_rx_stat_len == 0)
242 struct rtwn_usb_softc *uc = RTWN_USB_SOFTC(sc);
283 totlen = rtwn_usb_align_rx(uc, totlen, len);
289 (void)rtwn_rxeof_fragmented(uc, data, buf, len);
295 rtwn_report_intr(struct rtwn_usb_softc *uc, struct usb_xfer *xfer,
298 struct rtwn_softc *sc = &uc->uc_sc;
306 uc->uc_rx_stat_len == 0)) {
312 if (uc->uc_rx_stat_len > 0)
313 return (rtwn_rxeof_fragmented(uc, data, data->buf, len));
366 struct rtwn_usb_softc *uc = usbd_xfer_softc(xfer);
367 struct rtwn_softc *sc = &uc->uc_sc;
377 data = STAILQ_FIRST(&uc->uc_rx_active);
380 STAILQ_REMOVE_HEAD(&uc->uc_rx_active, next);
381 m = rtwn_report_intr(uc, xfer, data);
382 STAILQ_INSERT_TAIL(&uc->uc_rx_inactive, data, next);
386 data = STAILQ_FIRST(&uc->uc_rx_inactive);
391 STAILQ_REMOVE_HEAD(&uc->uc_rx_inactive, next);
392 STAILQ_INSERT_TAIL(&uc->uc_rx_active, data, next);
422 data = STAILQ_FIRST(&uc->uc_rx_active);
424 STAILQ_REMOVE_HEAD(&uc->uc_rx_active, next);
425 STAILQ_INSERT_TAIL(&uc->uc_rx_inactive, data, next);