Home
last modified time | relevance | path

Searched refs:urb (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/drivers/usb/core/
Durb.c11 #define to_urb(d) container_of(d, struct urb, kref)
16 struct urb *urb = to_urb(kref); in urb_destroy() local
18 if (urb->transfer_flags & URB_FREE_BUFFER) in urb_destroy()
19 kfree(urb->transfer_buffer); in urb_destroy()
21 kfree(urb); in urb_destroy()
38 void usb_init_urb(struct urb *urb) in usb_init_urb() argument
40 if (urb) { in usb_init_urb()
41 memset(urb, 0, sizeof(*urb)); in usb_init_urb()
42 kref_init(&urb->kref); in usb_init_urb()
43 INIT_LIST_HEAD(&urb->urb_list); in usb_init_urb()
[all …]
Dhcd.c465 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() argument
469 u8 *ubuf = urb->transfer_buffer; in rh_call_control()
481 status = usb_hcd_link_urb_to_ep(hcd, urb); in rh_call_control()
485 urb->hcpriv = hcd; /* Indicate it's queued */ in rh_call_control()
487 cmd = (struct usb_ctrlrequest *) urb->setup_packet; in rh_call_control()
493 if (wLength > urb->transfer_buffer_length) in rh_call_control()
510 urb->actual_length = 0; in rh_call_control()
605 urb->actual_length = rh_string(wValue & 0xff, in rh_call_control()
688 if (urb->transfer_buffer_length < len) in rh_call_control()
689 len = urb->transfer_buffer_length; in rh_call_control()
[all …]
/drivers/isdn/hisax/
Dst5481_usb.c18 static int st5481_isoc_flatten(struct urb *urb);
28 static void usb_next_ctrl_msg(struct urb *urb, in usb_next_ctrl_msg() argument
42 urb->setup_packet = in usb_next_ctrl_msg()
46 ((struct ctrl_msg *)urb->setup_packet)->dr.bRequest, in usb_next_ctrl_msg()
47 ((struct ctrl_msg *)urb->setup_packet)->dr.wValue, in usb_next_ctrl_msg()
48 ((struct ctrl_msg *)urb->setup_packet)->dr.wIndex); in usb_next_ctrl_msg()
51 urb->dev = adapter->usb_dev; in usb_next_ctrl_msg()
53 SUBMIT_URB(urb, GFP_ATOMIC); in usb_next_ctrl_msg()
82 usb_next_ctrl_msg(ctrl->urb, adapter); in usb_ctrl_msg()
128 static void usb_ctrl_complete(struct urb *urb) in usb_ctrl_complete() argument
[all …]
/drivers/usb/c67x00/
Dc67x00-sched.c76 struct urb *urb; member
89 struct urb *urb; member
155 dev_dbg(dev, "urb: 0x%p\n", td->urb); in dbg_td()
212 static void c67x00_release_urb(struct c67x00_hcd *c67x00, struct urb *urb) in c67x00_release_urb() argument
217 BUG_ON(!urb); in c67x00_release_urb()
221 if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { in c67x00_release_urb()
233 if (urb == td->urb) in c67x00_release_urb()
234 td->urb = NULL; in c67x00_release_urb()
236 urbp = urb->hcpriv; in c67x00_release_urb()
237 urb->hcpriv = NULL; in c67x00_release_urb()
[all …]
/drivers/usb/usbip/
Dstub_rx.c28 static int is_clear_halt_cmd(struct urb *urb) in is_clear_halt_cmd() argument
32 req = (struct usb_ctrlrequest *) urb->setup_packet; in is_clear_halt_cmd()
39 static int is_set_interface_cmd(struct urb *urb) in is_set_interface_cmd() argument
43 req = (struct usb_ctrlrequest *) urb->setup_packet; in is_set_interface_cmd()
49 static int is_set_configuration_cmd(struct urb *urb) in is_set_configuration_cmd() argument
53 req = (struct usb_ctrlrequest *) urb->setup_packet; in is_set_configuration_cmd()
59 static int is_reset_device_cmd(struct urb *urb) in is_reset_device_cmd() argument
65 req = (struct usb_ctrlrequest *) urb->setup_packet; in is_reset_device_cmd()
78 static int tweak_clear_halt_cmd(struct urb *urb) in tweak_clear_halt_cmd() argument
86 req = (struct usb_ctrlrequest *) urb->setup_packet; in tweak_clear_halt_cmd()
[all …]
Dusbip_common.c232 void usbip_dump_urb(struct urb *urb) in usbip_dump_urb() argument
236 if (!urb) { in usbip_dump_urb()
241 if (!urb->dev) { in usbip_dump_urb()
246 dev = &urb->dev->dev; in usbip_dump_urb()
248 usbip_dump_usb_device(urb->dev); in usbip_dump_urb()
250 dev_dbg(dev, " pipe :%08x ", urb->pipe); in usbip_dump_urb()
252 usbip_dump_pipe(urb->pipe); in usbip_dump_urb()
254 dev_dbg(dev, " status :%d\n", urb->status); in usbip_dump_urb()
255 dev_dbg(dev, " transfer_flags :%08X\n", urb->transfer_flags); in usbip_dump_urb()
257 urb->transfer_buffer_length); in usbip_dump_urb()
[all …]
Dstub_tx.c28 struct urb *urb = priv->urb; in stub_free_priv_and_urb() local
30 kfree(urb->setup_packet); in stub_free_priv_and_urb()
31 urb->setup_packet = NULL; in stub_free_priv_and_urb()
33 kfree(urb->transfer_buffer); in stub_free_priv_and_urb()
34 urb->transfer_buffer = NULL; in stub_free_priv_and_urb()
38 usb_free_urb(urb); in stub_free_priv_and_urb()
68 void stub_complete(struct urb *urb) in stub_complete() argument
70 struct stub_priv *priv = (struct stub_priv *) urb->context; in stub_complete()
74 usbip_dbg_stub_tx("complete! status %d\n", urb->status); in stub_complete()
76 switch (urb->status) { in stub_complete()
[all …]
Dvhci_rx.c27 struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum) in pickup_urb_and_free_priv()
30 struct urb *urb = NULL; in pickup_urb_and_free_priv() local
37 urb = priv->urb; in pickup_urb_and_free_priv()
38 status = urb->status; in pickup_urb_and_free_priv()
46 dev_dbg(&urb->dev->dev, in pickup_urb_and_free_priv()
54 dev_dbg(&urb->dev->dev, in pickup_urb_and_free_priv()
61 urb->hcpriv = NULL; in pickup_urb_and_free_priv()
66 return urb; in pickup_urb_and_free_priv()
73 struct urb *urb; in vhci_recv_ret_submit() local
77 urb = pickup_urb_and_free_priv(vdev, pdu->base.seqnum); in vhci_recv_ret_submit()
[all …]
/drivers/bluetooth/
Dbpa10x.c61 static void bpa10x_tx_complete(struct urb *urb) in bpa10x_tx_complete() argument
63 struct sk_buff *skb = urb->context; in bpa10x_tx_complete()
67 urb, urb->status, urb->actual_length); in bpa10x_tx_complete()
72 if (!urb->status) in bpa10x_tx_complete()
73 hdev->stat.byte_tx += urb->transfer_buffer_length; in bpa10x_tx_complete()
78 kfree(urb->setup_packet); in bpa10x_tx_complete()
99 static void bpa10x_rx_complete(struct urb *urb) in bpa10x_rx_complete() argument
101 struct hci_dev *hdev = urb->context; in bpa10x_rx_complete()
106 urb, urb->status, urb->actual_length); in bpa10x_rx_complete()
111 if (urb->status == 0) { in bpa10x_rx_complete()
[all …]
/drivers/net/wireless/ath/carl9170/
Dusb.c135 struct urb *urb; in carl9170_usb_submit_data_urb() local
141 urb = usb_get_from_anchor(&ar->tx_wait); in carl9170_usb_submit_data_urb()
142 if (!urb) in carl9170_usb_submit_data_urb()
145 usb_anchor_urb(urb, &ar->tx_anch); in carl9170_usb_submit_data_urb()
147 err = usb_submit_urb(urb, GFP_ATOMIC); in carl9170_usb_submit_data_urb()
151 urb->status); in carl9170_usb_submit_data_urb()
154 usb_unanchor_urb(urb); in carl9170_usb_submit_data_urb()
155 usb_anchor_urb(urb, &ar->tx_err); in carl9170_usb_submit_data_urb()
158 usb_free_urb(urb); in carl9170_usb_submit_data_urb()
167 static void carl9170_usb_tx_data_complete(struct urb *urb) in carl9170_usb_tx_data_complete() argument
[all …]
/drivers/media/usb/gspca/
Dbenq.c43 static void sd_isoc_irq(struct urb *urb);
87 struct urb *urb; in sd_start() local
97 urb = usb_alloc_urb(SD_NPKT, GFP_KERNEL); in sd_start()
98 if (!urb) { in sd_start()
102 gspca_dev->urb[n] = urb; in sd_start()
103 urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev, in sd_start()
106 &urb->transfer_dma); in sd_start()
108 if (urb->transfer_buffer == NULL) { in sd_start()
112 urb->dev = gspca_dev->dev; in sd_start()
113 urb->context = gspca_dev; in sd_start()
[all …]
/drivers/usb/host/
Dehci-q.c165 struct urb *urb, u32 token) in ehci_clear_tt_buffer() argument
174 if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) { in ehci_clear_tt_buffer()
176 struct usb_device *tt = urb->dev->tt->hub; in ehci_clear_tt_buffer()
179 urb->dev->ttport, urb->dev->devnum, in ehci_clear_tt_buffer()
180 usb_pipeendpoint(urb->pipe), token); in ehci_clear_tt_buffer()
183 || urb->dev->tt->hub != in ehci_clear_tt_buffer()
185 if (usb_hub_clear_tt_buffer(urb) == 0) in ehci_clear_tt_buffer()
198 struct urb *urb, in qtd_copy_status() argument
207 urb->actual_length += length - QTD_LENGTH (token); in qtd_copy_status()
210 if (unlikely(urb->unlinked)) in qtd_copy_status()
[all …]
Du132-hcd.c141 struct urb *urb; member
170 struct urb *urb_list[ENDP_QUEUE_SIZE];
512 struct urb *urb, int status) in u132_hcd_giveback_urb() argument
517 urb->error_count = 0; in u132_hcd_giveback_urb()
519 usb_hcd_unlink_urb_from_ep(hcd, urb); in u132_hcd_giveback_urb()
530 urbq->urb; in u132_hcd_giveback_urb()
542 usb_hcd_giveback_urb(hcd, urb, status); in u132_hcd_giveback_urb()
546 struct urb *urb, int status) in u132_hcd_forget_urb() argument
552 struct urb *urb, int status) in u132_hcd_abandon_urb() argument
556 urb->error_count = 0; in u132_hcd_abandon_urb()
[all …]
Dr8a66597-hcd.c339 get_urb_to_r8a66597_dev(struct r8a66597 *r8a66597, struct urb *urb) in get_urb_to_r8a66597_dev() argument
341 if (usb_pipedevice(urb->pipe) == 0) in get_urb_to_r8a66597_dev()
344 return dev_get_drvdata(&urb->dev->dev); in get_urb_to_r8a66597_dev()
348 struct urb *urb, u8 addr) in make_r8a66597_device() argument
351 int usb_address = urb->setup_packet[2]; /* urb->pipe is address 0 */ in make_r8a66597_device()
357 dev_set_drvdata(&urb->dev->dev, dev); in make_r8a66597_device()
358 dev->udev = urb->dev; in make_r8a66597_device()
367 get_port_number(r8a66597, urb->dev->devpath, in make_r8a66597_device()
369 if (!is_child_device(urb->dev->devpath)) in make_r8a66597_device()
373 get_r8a66597_usb_speed(urb->dev->speed), in make_r8a66597_device()
[all …]
Dfhci-q.c165 static void free_urb_priv(struct fhci_hcd *fhci, struct urb *urb) in free_urb_priv() argument
168 struct urb_priv *urb_priv = urb->hcpriv; in free_urb_priv()
184 urb->hcpriv = NULL; in free_urb_priv()
193 void fhci_urb_complete_free(struct fhci_hcd *fhci, struct urb *urb) in fhci_urb_complete_free() argument
195 free_urb_priv(fhci, urb); in fhci_urb_complete_free()
197 if (urb->status == -EINPROGRESS) { in fhci_urb_complete_free()
198 if (urb->actual_length != urb->transfer_buffer_length && in fhci_urb_complete_free()
199 urb->transfer_flags & URB_SHORT_NOT_OK) in fhci_urb_complete_free()
200 urb->status = -EREMOTEIO; in fhci_urb_complete_free()
202 urb->status = 0; in fhci_urb_complete_free()
[all …]
/drivers/usb/musb/
Dmusb_host.c104 struct urb *urb, int is_out,
225 struct urb *urb = next_urb(qh); in musb_start_urb() local
226 void *buf = urb->transfer_buffer; in musb_start_urb()
229 unsigned pipe = urb->pipe; in musb_start_urb()
243 buf = urb->setup_packet; in musb_start_urb()
249 offset = urb->iso_frame_desc[0].offset; in musb_start_urb()
250 len = urb->iso_frame_desc[0].length; in musb_start_urb()
254 buf = urb->transfer_buffer + urb->actual_length; in musb_start_urb()
255 len = urb->transfer_buffer_length - urb->actual_length; in musb_start_urb()
259 qh, urb, address, qh->epnum, in musb_start_urb()
[all …]
/drivers/media/usb/stk1160/
Dstk1160-video.c228 static void stk1160_process_isoc(struct stk1160 *dev, struct urb *urb) in stk1160_process_isoc() argument
238 if (urb->status < 0) { in stk1160_process_isoc()
240 print_err_status(dev, -1, urb->status); in stk1160_process_isoc()
244 for (i = 0; i < urb->number_of_packets; i++) { in stk1160_process_isoc()
245 status = urb->iso_frame_desc[i].status; in stk1160_process_isoc()
252 p = urb->transfer_buffer + urb->iso_frame_desc[i].offset; in stk1160_process_isoc()
253 len = urb->iso_frame_desc[i].actual_length; in stk1160_process_isoc()
306 static void stk1160_isoc_irq(struct urb *urb) in stk1160_isoc_irq() argument
309 struct stk1160 *dev = urb->context; in stk1160_isoc_irq()
311 switch (urb->status) { in stk1160_isoc_irq()
[all …]
/drivers/usb/host/whci/
Dqset.c53 static void qset_fill_qh(struct whc *whc, struct whc_qset *qset, struct urb *urb) in qset_fill_qh() argument
55 struct usb_device *usb_dev = urb->dev; in qset_fill_qh()
61 is_out = usb_pipeout(urb->pipe); in qset_fill_qh()
63 qset->max_packet = le16_to_cpu(urb->ep->desc.wMaxPacketSize); in qset_fill_qh()
79 if (usb_pipecontrol(urb->pipe)) in qset_fill_qh()
91 QH_INFO1_EP(usb_pipeendpoint(urb->pipe)) in qset_fill_qh()
93 | usb_pipe_to_qh_type(urb->pipe) in qset_fill_qh()
158 struct whc_qset *get_qset(struct whc *whc, struct urb *urb, in get_qset() argument
163 qset = urb->ep->hcpriv; in get_qset()
169 qset->ep = urb->ep; in get_qset()
[all …]
/drivers/usb/misc/
Dusbtest.c20 static void complicated_callback(struct urb *urb);
234 static void simple_callback(struct urb *urb) in simple_callback() argument
236 complete(urb->context); in simple_callback()
239 static struct urb *usbtest_alloc_urb( in usbtest_alloc_urb()
248 struct urb *urb; in usbtest_alloc_urb() local
250 urb = usb_alloc_urb(0, GFP_KERNEL); in usbtest_alloc_urb()
251 if (!urb) in usbtest_alloc_urb()
252 return urb; in usbtest_alloc_urb()
255 usb_fill_int_urb(urb, udev, pipe, NULL, bytes, complete_fn, in usbtest_alloc_urb()
258 usb_fill_bulk_urb(urb, udev, pipe, NULL, bytes, complete_fn, in usbtest_alloc_urb()
[all …]
/drivers/media/rc/
Dttusbir.c44 struct urb *urb[NUM_URBS]; member
47 struct urb *bulk_urb;
94 static void ttusbir_bulk_complete(struct urb *urb) in ttusbir_bulk_complete() argument
96 struct ttusbir *tt = urb->context; in ttusbir_bulk_complete()
100 switch (urb->status) { in ttusbir_bulk_complete()
106 usb_unlink_urb(urb); in ttusbir_bulk_complete()
110 dev_dbg(tt->dev, "Error: urb status = %d\n", urb->status); in ttusbir_bulk_complete()
172 static void ttusbir_urb_complete(struct urb *urb) in ttusbir_urb_complete() argument
174 struct ttusbir *tt = urb->context; in ttusbir_urb_complete()
177 switch (urb->status) { in ttusbir_urb_complete()
[all …]
/drivers/nfc/nfcmrvl/
Dusb.c68 static void nfcmrvl_bulk_complete(struct urb *urb) in nfcmrvl_bulk_complete() argument
70 struct nfcmrvl_usb_drv_data *drv_data = urb->context; in nfcmrvl_bulk_complete()
75 urb, urb->status, urb->actual_length); in nfcmrvl_bulk_complete()
80 if (!urb->status) { in nfcmrvl_bulk_complete()
81 skb = nci_skb_alloc(drv_data->priv->ndev, urb->actual_length, in nfcmrvl_bulk_complete()
86 memcpy(skb_put(skb, urb->actual_length), in nfcmrvl_bulk_complete()
87 urb->transfer_buffer, urb->actual_length); in nfcmrvl_bulk_complete()
97 usb_anchor_urb(urb, &drv_data->bulk_anchor); in nfcmrvl_bulk_complete()
100 err = usb_submit_urb(urb, GFP_ATOMIC); in nfcmrvl_bulk_complete()
107 "urb %p failed to resubmit (%d)\n", urb, -err); in nfcmrvl_bulk_complete()
[all …]
/drivers/usb/serial/
Dir-usb.c55 static void ir_write_bulk_callback(struct urb *urb);
56 static void ir_process_read_urb(struct urb *urb);
263 struct urb *urb = NULL; in ir_write() local
277 urb = port->write_urbs[0]; in ir_write()
282 if (!urb) in ir_write()
292 *(u8 *)urb->transfer_buffer = ir_xbof | ir_baud; in ir_write()
294 memcpy(urb->transfer_buffer + 1, buf, count); in ir_write()
296 urb->transfer_buffer_length = count + 1; in ir_write()
297 urb->transfer_flags = URB_ZERO_PACKET; in ir_write()
299 ret = usb_submit_urb(urb, GFP_ATOMIC); in ir_write()
[all …]
/drivers/usb/renesas_usbhs/
Dmod_host.c74 struct urb *urb; member
165 struct urb *urb, in usbhsh_ureq_alloc() argument
179 ureq->urb = urb; in usbhsh_ureq_alloc()
180 usbhsh_urb_to_ureq(urb) = ureq; in usbhsh_ureq_alloc()
188 usbhsh_urb_to_ureq(ureq->urb) = NULL; in usbhsh_ureq_free()
189 ureq->urb = NULL; in usbhsh_ureq_free()
213 struct urb *urb, in usbhsh_endpoint_sequence_save() argument
216 int len = urb->actual_length; in usbhsh_endpoint_sequence_save()
217 int maxp = usb_endpoint_maxp(&urb->ep->desc); in usbhsh_endpoint_sequence_save()
221 if (usb_pipecontrol(urb->pipe)) in usbhsh_endpoint_sequence_save()
[all …]
/drivers/media/usb/dvb-usb/
Dusb-urb.c14 static void usb_urb_complete(struct urb *urb) in usb_urb_complete() argument
16 struct usb_data_stream *stream = urb->context; in usb_urb_complete()
17 int ptype = usb_pipetype(urb->pipe); in usb_urb_complete()
23 urb->status,urb->actual_length,urb->transfer_buffer_length, in usb_urb_complete()
24 urb->number_of_packets,urb->error_count); in usb_urb_complete()
26 switch (urb->status) { in usb_urb_complete()
35 deb_ts("urb completition error %d.\n", urb->status); in usb_urb_complete()
39 b = (u8 *) urb->transfer_buffer; in usb_urb_complete()
42 for (i = 0; i < urb->number_of_packets; i++) { in usb_urb_complete()
44 if (urb->iso_frame_desc[i].status != 0) in usb_urb_complete()
[all …]
/drivers/staging/comedi/drivers/
Dusbduxsigma.c146 struct urb **ai_urbs;
147 struct urb **ao_urbs;
149 struct urb *pwm_urb;
179 static void usbduxsigma_unlink_urbs(struct urb **urbs, int num_urbs) in usbduxsigma_unlink_urbs()
212 struct urb *urb) in usbduxsigma_ai_handle_urb() argument
221 if ((urb->actual_length > 0) && (urb->status != -EXDEV)) { in usbduxsigma_ai_handle_urb()
246 urb->dev = comedi_to_usb_dev(dev); in usbduxsigma_ai_handle_urb()
247 ret = usb_submit_urb(urb, GFP_ATOMIC); in usbduxsigma_ai_handle_urb()
259 static void usbduxsigma_ai_urb_complete(struct urb *urb) in usbduxsigma_ai_urb_complete() argument
261 struct comedi_device *dev = urb->context; in usbduxsigma_ai_urb_complete()
[all …]

12345678910>>...18