Lines Matching refs:urb
76 /* usb urb object */
121 static void ath6kl_usb_recv_complete(struct urb *urb);
128 /* pipe/urb operations */
202 * we are only allocate the urb contexts here, the actual URB
235 "ath6kl usb: urb leak! lpipe:%d"
419 struct urb *urb;
431 urb = usb_alloc_urb(0, GFP_ATOMIC);
432 if (urb == NULL)
435 usb_fill_bulk_urb(urb,
448 usb_anchor_urb(urb, &recv_pipe->urb_submitted);
449 usb_status = usb_submit_urb(urb, GFP_ATOMIC);
455 usb_unanchor_urb(urb);
456 usb_free_urb(urb);
459 usb_free_urb(urb);
502 static void ath6kl_usb_recv_complete(struct urb *urb)
504 struct ath6kl_urb_context *urb_context = urb->context;
510 "%s: recv pipe: %d, stat:%d, len:%d urb:0x%p\n", __func__,
511 pipe->logical_pipe_num, urb->status, urb->actual_length,
512 urb);
514 if (urb->status != 0) {
516 switch (urb->status) {
522 * removed or urb killed due to driver shutdown
530 pipe->ep_address, urb->status);
536 if (urb->actual_length == 0)
543 skb_put(skb, urb->actual_length);
559 static void ath6kl_usb_usb_transmit_complete(struct urb *urb)
561 struct ath6kl_urb_context *urb_context = urb->context;
567 __func__, pipe->logical_pipe_num, urb->status,
568 urb->actual_length);
570 if (urb->status != 0) {
573 __func__, pipe->logical_pipe_num, urb->status);
712 struct urb *urb;
738 urb = usb_alloc_urb(0, GFP_ATOMIC);
739 if (urb == NULL) {
746 usb_fill_bulk_urb(urb,
755 urb->transfer_flags |= URB_ZERO_PACKET;
763 usb_anchor_urb(urb, &pipe->urb_submitted);
764 usb_status = usb_submit_urb(urb, GFP_ATOMIC);
770 usb_unanchor_urb(urb);
775 usb_free_urb(urb);