• Home
  • Raw
  • Download

Lines Matching refs:urb

74 	struct urb		*urb;  member
165 struct urb *urb, in usbhsh_ureq_alloc() argument
175 ureq->urb = urb; in usbhsh_ureq_alloc()
176 usbhsh_urb_to_ureq(urb) = ureq; in usbhsh_ureq_alloc()
184 usbhsh_urb_to_ureq(ureq->urb) = NULL; in usbhsh_ureq_free()
185 ureq->urb = NULL; in usbhsh_ureq_free()
209 struct urb *urb, in usbhsh_endpoint_sequence_save() argument
212 int len = urb->actual_length; in usbhsh_endpoint_sequence_save()
213 int maxp = usb_endpoint_maxp(&urb->ep->desc); in usbhsh_endpoint_sequence_save()
217 if (usb_pipecontrol(urb->pipe)) in usbhsh_endpoint_sequence_save()
245 usb_dotoggle(urb->dev, in usbhsh_endpoint_sequence_save()
246 usb_pipeendpoint(urb->pipe), in usbhsh_endpoint_sequence_save()
247 usb_pipeout(urb->pipe)); in usbhsh_endpoint_sequence_save()
251 struct urb *urb);
254 struct urb *urb) in usbhsh_pipe_attach() argument
257 struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); in usbhsh_pipe_attach()
258 struct usbhsh_device *udev = usbhsh_device_get(hpriv, urb); in usbhsh_pipe_attach()
260 struct usb_endpoint_descriptor *desc = &urb->ep->desc; in usbhsh_pipe_attach()
263 int dir_in_req = !!usb_pipein(urb->pipe); in usbhsh_pipe_attach()
375 struct urb *urb, in usbhsh_endpoint_attach() argument
379 struct usbhsh_device *udev = usbhsh_device_get(hpriv, urb); in usbhsh_endpoint_attach()
380 struct usb_host_endpoint *ep = urb->ep; in usbhsh_endpoint_attach()
474 struct urb *urb) in usbhsh_device_get() argument
476 struct usb_device *usbv = usbhsh_urb_to_usbv(urb); in usbhsh_device_get()
484 if (0 == usb_pipedevice(urb->pipe)) in usbhsh_device_get()
492 struct urb *urb) in usbhsh_device_attach() argument
499 struct usb_device *usbv = usbhsh_urb_to_usbv(urb); in usbhsh_device_attach()
512 if (0 != usb_pipedevice(urb->pipe)) { in usbhsh_device_attach()
643 struct urb *urb = ureq->urb; in usbhsh_queue_done() local
649 if (!urb) { in usbhsh_queue_done()
657 urb->actual_length = pkt->actual; in usbhsh_queue_done()
659 usbhsh_endpoint_sequence_save(hpriv, urb, pkt); in usbhsh_queue_done()
662 usbhsh_pipe_detach(hpriv, usbhsh_ep_to_uep(urb->ep)); in usbhsh_queue_done()
664 usb_hcd_unlink_urb_from_ep(hcd, urb); in usbhsh_queue_done()
665 usb_hcd_giveback_urb(hcd, urb, status); in usbhsh_queue_done()
669 struct urb *urb, in usbhsh_queue_push() argument
673 struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); in usbhsh_queue_push()
680 if (usb_pipeisoc(urb->pipe)) { in usbhsh_queue_push()
686 ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); in usbhsh_queue_push()
692 if (usb_pipein(urb->pipe)) in usbhsh_queue_push()
697 buf = (void *)(urb->transfer_buffer + urb->actual_length); in usbhsh_queue_push()
698 len = urb->transfer_buffer_length - urb->actual_length; in usbhsh_queue_push()
700 sequence = usb_gettoggle(urb->dev, in usbhsh_queue_push()
701 usb_pipeendpoint(urb->pipe), in usbhsh_queue_push()
702 usb_pipeout(urb->pipe)); in usbhsh_queue_push()
706 buf, len, (urb->transfer_flags & URB_ZERO_PACKET), in usbhsh_queue_push()
745 static int usbhsh_is_request_address(struct urb *urb) in usbhsh_is_request_address() argument
749 req = (struct usb_ctrlrequest *)urb->setup_packet; in usbhsh_is_request_address()
759 struct urb *urb, in usbhsh_setup_stage_packet_push() argument
775 memcpy(&req, urb->setup_packet, sizeof(struct usb_ctrlrequest)); in usbhsh_setup_stage_packet_push()
783 if (usbhsh_is_request_address(urb)) { in usbhsh_setup_stage_packet_push()
784 struct usb_device *usbv = usbhsh_urb_to_usbv(urb); in usbhsh_setup_stage_packet_push()
818 struct urb *urb, in usbhsh_data_stage_packet_push() argument
826 ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); in usbhsh_data_stage_packet_push()
830 if (usb_pipein(urb->pipe)) in usbhsh_data_stage_packet_push()
837 urb->transfer_buffer, in usbhsh_data_stage_packet_push()
838 urb->transfer_buffer_length, in usbhsh_data_stage_packet_push()
839 (urb->transfer_flags & URB_ZERO_PACKET), in usbhsh_data_stage_packet_push()
849 struct urb *urb, in usbhsh_status_stage_packet_push() argument
856 ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); in usbhsh_status_stage_packet_push()
860 if (usb_pipein(urb->pipe)) in usbhsh_status_stage_packet_push()
868 urb->transfer_buffer_length, in usbhsh_status_stage_packet_push()
875 struct urb *urb, in usbhsh_dcp_queue_push() argument
879 struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); in usbhsh_dcp_queue_push()
891 usbhsh_setup_stage_packet_push(hpriv, urb, pipe); in usbhsh_dcp_queue_push()
898 if (urb->transfer_buffer_length) { in usbhsh_dcp_queue_push()
899 ret = usbhsh_data_stage_packet_push(hpriv, urb, pipe, mflags); in usbhsh_dcp_queue_push()
909 ret = usbhsh_status_stage_packet_push(hpriv, urb, pipe, mflags); in usbhsh_dcp_queue_push()
931 struct urb *urb = ureq->urb; in usbhsh_dma_map_ctrl() local
934 if (urb->num_sgs) in usbhsh_dma_map_ctrl()
937 pkt->dma = urb->transfer_dma; in usbhsh_dma_map_ctrl()
958 struct urb *urb, in usbhsh_urb_enqueue() argument
964 struct usb_host_endpoint *ep = urb->ep; in usbhsh_urb_enqueue()
966 int is_dir_in = usb_pipein(urb->pipe); in usbhsh_urb_enqueue()
977 ret = usb_hcd_link_urb_to_ep(hcd, urb); in usbhsh_urb_enqueue()
987 if (!usbhsh_device_get(hpriv, urb)) { in usbhsh_urb_enqueue()
988 new_udev = usbhsh_device_attach(hpriv, urb); in usbhsh_urb_enqueue()
1001 ret = usbhsh_endpoint_attach(hpriv, urb, mem_flags); in usbhsh_urb_enqueue()
1012 ret = usbhsh_pipe_attach(hpriv, urb); in usbhsh_urb_enqueue()
1021 if (usb_pipecontrol(urb->pipe)) in usbhsh_urb_enqueue()
1022 ret = usbhsh_dcp_queue_push(hcd, urb, mem_flags); in usbhsh_urb_enqueue()
1024 ret = usbhsh_queue_push(hcd, urb, mem_flags); in usbhsh_urb_enqueue()
1040 static int usbhsh_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) in usbhsh_urb_dequeue() argument
1043 struct usbhsh_request *ureq = usbhsh_urb_to_ureq(urb); in usbhsh_urb_dequeue()