Lines Matching defs:urb
396 * Seen on Isoc URB dequeue. Channel halted but no subsequent
547 frame_desc = &qtd->urb->iso_descs[qtd->isoc_frame_index_last];
554 dma_desc->buf = (u32)(DMAADDR(qtd->urb->usbdma, frame_desc->offset));
565 /* Set IOC for each descriptor corresponding to last frame of URB */
566 if (qtd->isoc_frame_index_last == qtd->urb->packet_count)
621 qtd->urb->packet_count)
626 qtd->urb->packet_count) {
757 chan->xfer_dma = DMAADDR(qtd->urb->usbdma,
758 qtd->urb->actual_length);
759 chan->xfer_len = qtd->urb->length -
760 qtd->urb->actual_length;
893 if (!qtd->urb)
903 frame_desc = &qtd->urb->iso_descs[qtd->isoc_frame_index_last];
904 dma_desc->buf = (u32)(DMAADDR(qtd->urb->usbdma, frame_desc->offset));
915 qtd->urb->error_count++;
924 if (++qtd->isoc_frame_index == qtd->urb->packet_count) {
926 * urb->status is not used for isoc transfers here. The
934 * from urb complete callback (sound driver for example). All
979 * urb->status, some of class drivers might use it to stop
987 if (qtd->urb) {
988 for (idx = 0; idx < qtd->urb->packet_count;
990 frame_desc = &qtd->urb->iso_descs[idx];
1008 * Ensure idx corresponds to descriptor where first urb of this
1063 struct dwc2_hcd_urb *urb = qtd->urb;
1070 dev_vdbg(hsotg->dev, "remain=%d dwc2_urb=%p\n", remain, urb);
1074 urb->status = -EIO;
1082 urb->status = -EPIPE;
1086 urb->status = -EOVERFLOW;
1090 urb->status = -EPROTO;
1110 urb->actual_length += n_bytes - remain;
1111 if (remain || urb->actual_length >= urb->length) {
1113 * For Control Data stage do not set urb->status
1114 * to 0, to prevent URB callback. Set it when
1120 urb->status = 0;
1126 urb->actual_length += n_bytes - remain;
1127 dev_vdbg(hsotg->dev, "length=%d actual=%d\n", urb->length,
1128 urb->actual_length);
1129 if (remain || urb->actual_length >= urb->length) {
1130 urb->status = 0;
1146 struct dwc2_hcd_urb *urb = qtd->urb;
1153 if (!urb)
1165 qtd, urb, desc_num, dma_desc, n_bytes);
1169 if (*xfer_done && urb
1173 dwc2_host_complete(hsotg, qtd, urb->status);
1176 failed, *xfer_done, urb->status);
1183 if (urb->length > 0)
1270 * dwc2_hcd_complete_xfer_ddma() - Scans the descriptor list, updates URB's
1271 * status and calls completion routine for the URB if it's done. Called from
1325 * If channel has been halted during giveback of urb
1337 * Scan descriptor list to complete the URB(s), then release