• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/target/linux/lantiq/files/drivers/usb/dwc_otg/

Lines Matching refs:_urb

770 static void dump_urb_info(struct urb *_urb, char* _fn_name)
772 DWC_PRINT("%s, urb %p\n", _fn_name, _urb);
773 DWC_PRINT(" Device address: %d\n", usb_pipedevice(_urb->pipe));
774 DWC_PRINT(" Endpoint: %d, %s\n", usb_pipeendpoint(_urb->pipe),
775 (usb_pipein(_urb->pipe) ? "IN" : "OUT"));
778 switch (usb_pipetype(_urb->pipe)) {
787 switch (_urb->dev->speed) {
794 usb_maxpacket(_urb->dev, _urb->pipe, usb_pipeout(_urb->pipe)));
795 DWC_PRINT(" Data buffer length: %d\n", _urb->transfer_buffer_length);
797 _urb->transfer_buffer, (void *)_urb->transfer_dma);
799 _urb->setup_packet, (void *)_urb->setup_dma);
800 DWC_PRINT(" Interval: %d\n", _urb->interval);
801 if (usb_pipetype(_urb->pipe) == PIPE_ISOCHRONOUS) {
803 for (i = 0; i < _urb->number_of_packets; i++) {
806 _urb->iso_frame_desc[i].offset,
807 _urb->iso_frame_desc[i].length);
871 struct urb *_urb,
880 retval = usb_hcd_link_urb_to_ep(_hcd, _urb);
887 dump_urb_info(_urb, "dwc_otg_hcd_urb_enqueue");
896 qtd = dwc_otg_hcd_qtd_create (_urb);
916 int dwc_otg_hcd_urb_dequeue(struct usb_hcd *_hcd, struct urb *_urb, int _status)
929 retval = usb_hcd_check_unlink_urb(_hcd, _urb, _status);
936 urb_qtd = (dwc_otg_qtd_t *)_urb->hcpriv;
938 printk("urb_qtd is NULL for _urb %08x\n",(unsigned)_urb);
948 dump_urb_info(_urb, "dwc_otg_hcd_urb_dequeue");
986 _urb->hcpriv = NULL;
989 usb_hcd_unlink_urb_from_ep(_hcd, _urb);
990 usb_hcd_giveback_urb(_hcd, _urb, _status);
993 DWC_PRINT(" urb->status = %d\n", _urb->status);
2646 void dwc_otg_hcd_complete_urb(dwc_otg_hcd_t * _hcd, struct urb *_urb,
2654 __func__, _urb, usb_pipedevice(_urb->pipe),
2655 usb_pipeendpoint(_urb->pipe),
2656 usb_pipein(_urb->pipe) ? "IN" : "OUT", _status);
2657 if (usb_pipetype(_urb->pipe) == PIPE_ISOCHRONOUS) {
2659 for (i = 0; i < _urb->number_of_packets; i++) {
2661 i, _urb->iso_frame_desc[i].status);
2667 _urb->status = _status;
2668 _urb->hcpriv = NULL;
2669 usb_hcd_unlink_urb_from_ep(dwc_otg_hcd_to_hcd(_hcd), _urb);
2671 usb_hcd_giveback_urb(dwc_otg_hcd_to_hcd(_hcd), _urb, _status);
2678 dwc_otg_qh_t *dwc_urb_to_qh(struct urb *_urb)
2680 struct usb_host_endpoint *ep = dwc_urb_to_endpoint(_urb);