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);
416 struct urb *urb;
429 urb = usb_alloc_urb(0, GFP_ATOMIC);
430 if (!urb) {
435 usb_fill_bulk_urb(urb,
444 urb->transfer_flags |= URB_ZERO_PACKET;
447 usb_anchor_urb(urb, &pipe->urb_submitted);
448 ret = usb_submit_urb(urb, GFP_ATOMIC);
452 usb_unanchor_urb(urb);
453 usb_free_urb(urb);
458 usb_free_urb(urb);
808 /* we are only allocate the urb contexts here, the actual URB