Lines Matching refs:urb
77 /* usb urb object */
122 static void ath6kl_usb_recv_complete(struct urb *urb);
129 /* pipe/urb operations */
203 * we are only allocate the urb contexts here, the actual URB
236 "ath6kl usb: urb leak! lpipe:%d"
420 struct urb *urb;
432 urb = usb_alloc_urb(0, GFP_ATOMIC);
433 if (urb == NULL)
436 usb_fill_bulk_urb(urb,
449 usb_anchor_urb(urb, &recv_pipe->urb_submitted);
450 usb_status = usb_submit_urb(urb, GFP_ATOMIC);
456 usb_unanchor_urb(urb);
457 usb_free_urb(urb);
460 usb_free_urb(urb);
503 static void ath6kl_usb_recv_complete(struct urb *urb)
505 struct ath6kl_urb_context *urb_context = urb->context;
511 "%s: recv pipe: %d, stat:%d, len:%d urb:0x%p\n", __func__,
512 pipe->logical_pipe_num, urb->status, urb->actual_length,
513 urb);
515 if (urb->status != 0) {
517 switch (urb->status) {
523 * removed or urb killed due to driver shutdown
531 pipe->ep_address, urb->status);
537 if (urb->actual_length == 0)
544 skb_put(skb, urb->actual_length);
560 static void ath6kl_usb_usb_transmit_complete(struct urb *urb)
562 struct ath6kl_urb_context *urb_context = urb->context;
568 __func__, pipe->logical_pipe_num, urb->status,
569 urb->actual_length);
571 if (urb->status != 0) {
574 __func__, pipe->logical_pipe_num, urb->status);
720 struct urb *urb;
746 urb = usb_alloc_urb(0, GFP_ATOMIC);
747 if (urb == NULL) {
754 usb_fill_bulk_urb(urb,
763 urb->transfer_flags |= URB_ZERO_PACKET;
771 usb_anchor_urb(urb, &pipe->urb_submitted);
772 usb_status = usb_submit_urb(urb, GFP_ATOMIC);
778 usb_unanchor_urb(urb);
783 usb_free_urb(urb);