Lines Matching refs:urb
34 /* pipe/urb operations */
99 "usb urb leak lpipe %d hpipe 0x%x urbs %d avail %d\n",
125 static void ath10k_usb_recv_complete(struct urb *urb)
127 struct ath10k_urb_context *urb_context = urb->context;
134 "usb recv pipe %d stat %d len %d urb 0x%pK\n",
135 pipe->logical_pipe_num, urb->status, urb->actual_length,
136 urb);
138 if (urb->status != 0) {
140 switch (urb->status) {
145 * removed or urb killed due to driver shutdown
153 pipe->ep_address, urb->status);
159 if (urb->actual_length == 0)
166 skb_put(skb, urb->actual_length);
182 static void ath10k_usb_transmit_complete(struct urb *urb)
184 struct ath10k_urb_context *urb_context = urb->context;
189 if (urb->status != 0) {
192 pipe->logical_pipe_num, urb->status);
209 struct urb *urb;
221 urb = usb_alloc_urb(0, GFP_ATOMIC);
222 if (!urb)
225 usb_fill_bulk_urb(urb,
238 usb_anchor_urb(urb, &recv_pipe->urb_submitted);
239 usb_status = usb_submit_urb(urb, GFP_ATOMIC);
245 usb_unanchor_urb(urb);
246 usb_free_urb(urb);
249 usb_free_urb(urb);
409 struct urb *urb;
422 urb = usb_alloc_urb(0, GFP_ATOMIC);
423 if (!urb) {
428 usb_fill_bulk_urb(urb,
437 urb->transfer_flags |= URB_ZERO_PACKET;
440 usb_anchor_urb(urb, &pipe->urb_submitted);
441 ret = usb_submit_urb(urb, GFP_ATOMIC);
445 usb_unanchor_urb(urb);
446 usb_free_urb(urb);
451 usb_free_urb(urb);
800 /* we are only allocate the urb contexts here, the actual URB