Home
last modified time | relevance | path

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

12345678910>>...20

/Linux-v5.4/drivers/usb/core/
Durb.c16 #define to_urb(d) container_of(d, struct urb, kref)
21 struct urb *urb = to_urb(kref); in urb_destroy() local
23 if (urb->transfer_flags & URB_FREE_BUFFER) in urb_destroy()
24 kfree(urb->transfer_buffer); in urb_destroy()
26 kfree(urb); in urb_destroy()
43 void usb_init_urb(struct urb *urb) in usb_init_urb() argument
45 if (urb) { in usb_init_urb()
46 memset(urb, 0, sizeof(*urb)); in usb_init_urb()
47 kref_init(&urb->kref); in usb_init_urb()
48 INIT_LIST_HEAD(&urb->anchor_list); in usb_init_urb()
[all …]
Dhcd.c477 static int rh_call_control (struct usb_hcd *hcd, struct urb *urb) in rh_call_control() argument
481 u8 *ubuf = urb->transfer_buffer; in rh_call_control()
493 status = usb_hcd_link_urb_to_ep(hcd, urb); in rh_call_control()
497 urb->hcpriv = hcd; /* Indicate it's queued */ in rh_call_control()
499 cmd = (struct usb_ctrlrequest *) urb->setup_packet; in rh_call_control()
505 if (wLength > urb->transfer_buffer_length) in rh_call_control()
522 urb->actual_length = 0; in rh_call_control()
621 urb->actual_length = rh_string(wValue & 0xff, in rh_call_control()
710 if (urb->transfer_buffer_length < len) in rh_call_control()
711 len = urb->transfer_buffer_length; in rh_call_control()
[all …]
/Linux-v5.4/drivers/usb/c67x00/
Dc67x00-sched.c62 struct urb *urb; member
75 struct urb *urb; member
141 dev_dbg(dev, "urb: 0x%p\n", td->urb); in dbg_td()
198 static void c67x00_release_urb(struct c67x00_hcd *c67x00, struct urb *urb) in c67x00_release_urb() argument
203 BUG_ON(!urb); in c67x00_release_urb()
207 if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) { in c67x00_release_urb()
219 if (urb == td->urb) in c67x00_release_urb()
220 td->urb = NULL; in c67x00_release_urb()
222 urbp = urb->hcpriv; in c67x00_release_urb()
223 urb->hcpriv = NULL; in c67x00_release_urb()
[all …]
/Linux-v5.4/drivers/bluetooth/
Dbpa10x.c46 static void bpa10x_tx_complete(struct urb *urb) in bpa10x_tx_complete() argument
48 struct sk_buff *skb = urb->context; in bpa10x_tx_complete()
52 urb, urb->status, urb->actual_length); in bpa10x_tx_complete()
57 if (!urb->status) in bpa10x_tx_complete()
58 hdev->stat.byte_tx += urb->transfer_buffer_length; in bpa10x_tx_complete()
63 kfree(urb->setup_packet); in bpa10x_tx_complete()
84 static void bpa10x_rx_complete(struct urb *urb) in bpa10x_rx_complete() argument
86 struct hci_dev *hdev = urb->context; in bpa10x_rx_complete()
91 urb, urb->status, urb->actual_length); in bpa10x_rx_complete()
96 if (urb->status == 0) { in bpa10x_rx_complete()
[all …]
/Linux-v5.4/drivers/media/usb/gspca/
Dbenq.c30 static void sd_isoc_irq(struct urb *urb);
74 struct urb *urb; in sd_start() local
84 urb = usb_alloc_urb(SD_NPKT, GFP_KERNEL); in sd_start()
85 if (!urb) in sd_start()
87 gspca_dev->urb[n] = urb; in sd_start()
88 urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev, in sd_start()
91 &urb->transfer_dma); in sd_start()
93 if (urb->transfer_buffer == NULL) { in sd_start()
97 urb->dev = gspca_dev->dev; in sd_start()
98 urb->context = gspca_dev; in sd_start()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/usb/musb/
Dmusb_host.c80 struct urb *urb, int is_out,
200 struct urb *urb = next_urb(qh); in musb_start_urb() local
201 void *buf = urb->transfer_buffer; in musb_start_urb()
216 buf = urb->setup_packet; in musb_start_urb()
222 offset = urb->iso_frame_desc[0].offset; in musb_start_urb()
223 len = urb->iso_frame_desc[0].length; in musb_start_urb()
227 buf = urb->transfer_buffer + urb->actual_length; in musb_start_urb()
228 len = urb->transfer_buffer_length - urb->actual_length; in musb_start_urb()
231 trace_musb_urb_start(musb, urb); in musb_start_urb()
235 musb_ep_program(musb, epnum, urb, !is_in, buf, offset, len); in musb_start_urb()
[all …]
/Linux-v5.4/drivers/media/usb/stk1160/
Dstk1160-video.c217 static void stk1160_process_isoc(struct stk1160 *dev, struct urb *urb) in stk1160_process_isoc() argument
227 if (urb->status < 0) { in stk1160_process_isoc()
229 print_err_status(dev, -1, urb->status); in stk1160_process_isoc()
233 for (i = 0; i < urb->number_of_packets; i++) { in stk1160_process_isoc()
234 status = urb->iso_frame_desc[i].status; in stk1160_process_isoc()
241 p = urb->transfer_buffer + urb->iso_frame_desc[i].offset; in stk1160_process_isoc()
242 len = urb->iso_frame_desc[i].actual_length; in stk1160_process_isoc()
295 static void stk1160_isoc_irq(struct urb *urb) in stk1160_isoc_irq() argument
298 struct stk1160 *dev = urb->context; in stk1160_isoc_irq()
300 switch (urb->status) { in stk1160_isoc_irq()
[all …]
/Linux-v5.4/drivers/usb/usbip/
Dstub_tx.c40 void stub_complete(struct urb *urb) in stub_complete() argument
42 struct stub_priv *priv = (struct stub_priv *) urb->context; in stub_complete()
46 usbip_dbg_stub_tx("complete! status %d\n", urb->status); in stub_complete()
48 switch (urb->status) { in stub_complete()
53 dev_info(&urb->dev->dev, in stub_complete()
57 dev_info(&urb->dev->dev, in stub_complete()
61 dev_info(&urb->dev->dev, "endpoint %d is stalled\n", in stub_complete()
62 usb_pipeendpoint(urb->pipe)); in stub_complete()
65 dev_info(&urb->dev->dev, "device removed?\n"); in stub_complete()
68 dev_info(&urb->dev->dev, in stub_complete()
[all …]
Dusbip_common.c220 void usbip_dump_urb(struct urb *urb) in usbip_dump_urb() argument
224 if (!urb) { in usbip_dump_urb()
229 if (!urb->dev) { in usbip_dump_urb()
234 dev = &urb->dev->dev; in usbip_dump_urb()
236 usbip_dump_usb_device(urb->dev); in usbip_dump_urb()
238 dev_dbg(dev, " pipe :%08x ", urb->pipe); in usbip_dump_urb()
240 usbip_dump_pipe(urb->pipe); in usbip_dump_urb()
242 dev_dbg(dev, " status :%d\n", urb->status); in usbip_dump_urb()
243 dev_dbg(dev, " transfer_flags :%08X\n", urb->transfer_flags); in usbip_dump_urb()
245 urb->transfer_buffer_length); in usbip_dump_urb()
[all …]
Dvhci_rx.c13 struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum) in pickup_urb_and_free_priv()
16 struct urb *urb = NULL; in pickup_urb_and_free_priv() local
23 urb = priv->urb; in pickup_urb_and_free_priv()
24 status = urb->status; in pickup_urb_and_free_priv()
32 dev_dbg(&urb->dev->dev, in pickup_urb_and_free_priv()
40 dev_dbg(&urb->dev->dev, in pickup_urb_and_free_priv()
47 urb->hcpriv = NULL; in pickup_urb_and_free_priv()
52 return urb; in pickup_urb_and_free_priv()
61 struct urb *urb; in vhci_recv_ret_submit() local
65 urb = pickup_urb_and_free_priv(vdev, pdu->base.seqnum); in vhci_recv_ret_submit()
[all …]
Dstub_rx.c15 static int is_clear_halt_cmd(struct urb *urb) in is_clear_halt_cmd() argument
19 req = (struct usb_ctrlrequest *) urb->setup_packet; in is_clear_halt_cmd()
26 static int is_set_interface_cmd(struct urb *urb) in is_set_interface_cmd() argument
30 req = (struct usb_ctrlrequest *) urb->setup_packet; in is_set_interface_cmd()
36 static int is_set_configuration_cmd(struct urb *urb) in is_set_configuration_cmd() argument
40 req = (struct usb_ctrlrequest *) urb->setup_packet; in is_set_configuration_cmd()
46 static int is_reset_device_cmd(struct urb *urb) in is_reset_device_cmd() argument
52 req = (struct usb_ctrlrequest *) urb->setup_packet; in is_reset_device_cmd()
65 static int tweak_clear_halt_cmd(struct urb *urb) in tweak_clear_halt_cmd() argument
73 req = (struct usb_ctrlrequest *) urb->setup_packet; in tweak_clear_halt_cmd()
[all …]
/Linux-v5.4/drivers/usb/host/
Dehci-q.c152 struct urb *urb, u32 token) in ehci_clear_tt_buffer() argument
161 if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) { in ehci_clear_tt_buffer()
163 struct usb_device *tt = urb->dev->tt->hub; in ehci_clear_tt_buffer()
166 urb->dev->ttport, urb->dev->devnum, in ehci_clear_tt_buffer()
167 usb_pipeendpoint(urb->pipe), token); in ehci_clear_tt_buffer()
170 || urb->dev->tt->hub != in ehci_clear_tt_buffer()
172 if (usb_hub_clear_tt_buffer(urb) == 0) in ehci_clear_tt_buffer()
185 struct urb *urb, in qtd_copy_status() argument
194 urb->actual_length += length - QTD_LENGTH (token); in qtd_copy_status()
197 if (unlikely(urb->unlinked)) in qtd_copy_status()
[all …]
Du132-hcd.c137 struct urb *urb; member
166 struct urb *urb_list[ENDP_QUEUE_SIZE];
508 struct urb *urb, int status) in u132_hcd_giveback_urb() argument
513 urb->error_count = 0; in u132_hcd_giveback_urb()
515 usb_hcd_unlink_urb_from_ep(hcd, urb); in u132_hcd_giveback_urb()
526 urbq->urb; in u132_hcd_giveback_urb()
538 usb_hcd_giveback_urb(hcd, urb, status); in u132_hcd_giveback_urb()
542 struct urb *urb, int status) in u132_hcd_forget_urb() argument
548 struct urb *urb, int status) in u132_hcd_abandon_urb() argument
552 urb->error_count = 0; in u132_hcd_abandon_urb()
[all …]
Dfhci-q.c161 static void free_urb_priv(struct fhci_hcd *fhci, struct urb *urb) in free_urb_priv() argument
164 struct urb_priv *urb_priv = urb->hcpriv; in free_urb_priv()
180 urb->hcpriv = NULL; in free_urb_priv()
189 void fhci_urb_complete_free(struct fhci_hcd *fhci, struct urb *urb) in fhci_urb_complete_free() argument
191 free_urb_priv(fhci, urb); in fhci_urb_complete_free()
193 if (urb->status == -EINPROGRESS) { in fhci_urb_complete_free()
194 if (urb->actual_length != urb->transfer_buffer_length && in fhci_urb_complete_free()
195 urb->transfer_flags & URB_SHORT_NOT_OK) in fhci_urb_complete_free()
196 urb->status = -EREMOTEIO; in fhci_urb_complete_free()
198 urb->status = 0; in fhci_urb_complete_free()
[all …]
/Linux-v5.4/sound/usb/6fire/
Dcomm.c21 static void usb6fire_comm_init_urb(struct comm_runtime *rt, struct urb *urb, in usb6fire_comm_init_urb() argument
22 u8 *buffer, void *context, void(*handler)(struct urb *urb)) in usb6fire_comm_init_urb() argument
24 usb_init_urb(urb); in usb6fire_comm_init_urb()
25 urb->transfer_buffer = buffer; in usb6fire_comm_init_urb()
26 urb->pipe = usb_sndintpipe(rt->chip->dev, COMM_EP); in usb6fire_comm_init_urb()
27 urb->complete = handler; in usb6fire_comm_init_urb()
28 urb->context = context; in usb6fire_comm_init_urb()
29 urb->interval = 1; in usb6fire_comm_init_urb()
30 urb->dev = rt->chip->dev; in usb6fire_comm_init_urb()
33 static void usb6fire_comm_receiver_handler(struct urb *urb) in usb6fire_comm_receiver_handler() argument
[all …]
/Linux-v5.4/drivers/usb/misc/
Dusbtest.c21 static void complicated_callback(struct urb *urb);
252 static void simple_callback(struct urb *urb) in simple_callback() argument
254 complete(urb->context); in simple_callback()
257 static struct urb *usbtest_alloc_urb( in usbtest_alloc_urb()
266 struct urb *urb; in usbtest_alloc_urb() local
268 urb = usb_alloc_urb(0, GFP_KERNEL); in usbtest_alloc_urb()
269 if (!urb) in usbtest_alloc_urb()
270 return urb; in usbtest_alloc_urb()
273 usb_fill_int_urb(urb, udev, pipe, NULL, bytes, complete_fn, in usbtest_alloc_urb()
276 usb_fill_bulk_urb(urb, udev, pipe, NULL, bytes, complete_fn, in usbtest_alloc_urb()
[all …]
/Linux-v5.4/sound/usb/usx2y/
Dusbusx2yaudio.c59 struct urb *urb = subs->completed_urb; in usX2Y_urb_capt_retire() local
66 cp = (unsigned char*)urb->transfer_buffer + urb->iso_frame_desc[i].offset; in usX2Y_urb_capt_retire()
67 if (urb->iso_frame_desc[i].status) { /* active? hmm, skip this */ in usX2Y_urb_capt_retire()
70 urb->iso_frame_desc[i].status); in usX2Y_urb_capt_retire()
71 return urb->iso_frame_desc[i].status; in usX2Y_urb_capt_retire()
73 len = urb->iso_frame_desc[i].actual_length / usX2Y->stride; in usX2Y_urb_capt_retire()
114 struct urb *cap_urb, in usX2Y_urb_play_prepare()
115 struct urb *urb) in usX2Y_urb_play_prepare() argument
131 urb->iso_frame_desc[pack].offset = pack ? in usX2Y_urb_play_prepare()
132 urb->iso_frame_desc[pack - 1].offset + in usX2Y_urb_play_prepare()
[all …]
/Linux-v5.4/drivers/media/rc/
Dttusbir.c31 struct urb *urb[NUM_URBS]; member
34 struct urb *bulk_urb;
81 static void ttusbir_bulk_complete(struct urb *urb) in ttusbir_bulk_complete() argument
83 struct ttusbir *tt = urb->context; in ttusbir_bulk_complete()
87 switch (urb->status) { in ttusbir_bulk_complete()
93 usb_unlink_urb(urb); in ttusbir_bulk_complete()
97 dev_dbg(tt->dev, "Error: urb status = %d\n", urb->status); in ttusbir_bulk_complete()
157 static void ttusbir_urb_complete(struct urb *urb) in ttusbir_urb_complete() argument
159 struct ttusbir *tt = urb->context; in ttusbir_urb_complete()
162 switch (urb->status) { in ttusbir_urb_complete()
[all …]
/Linux-v5.4/drivers/staging/wusbcore/host/whci/
Dqset.c41 static void qset_fill_qh(struct whc *whc, struct whc_qset *qset, struct urb *urb) in qset_fill_qh() argument
43 struct usb_device *usb_dev = urb->dev; in qset_fill_qh()
49 is_out = usb_pipeout(urb->pipe); in qset_fill_qh()
51 qset->max_packet = le16_to_cpu(urb->ep->desc.wMaxPacketSize); in qset_fill_qh()
67 if (usb_pipecontrol(urb->pipe)) in qset_fill_qh()
79 QH_INFO1_EP(usb_pipeendpoint(urb->pipe)) in qset_fill_qh()
81 | usb_pipe_to_qh_type(urb->pipe) in qset_fill_qh()
146 struct whc_qset *get_qset(struct whc *whc, struct urb *urb, in get_qset() argument
151 qset = urb->ep->hcpriv; in get_qset()
157 qset->ep = urb->ep; in get_qset()
[all …]
/Linux-v5.4/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 skb_put_data(skb, urb->transfer_buffer, in nfcmrvl_bulk_complete()
87 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 …]
/Linux-v5.4/sound/usb/
Dendpoint.c78 u->urb->transfer_buffer, in release_urb_ctx()
79 u->urb->transfer_dma); in release_urb_ctx()
80 usb_free_urb(u->urb); in release_urb_ctx()
81 u->urb = NULL; in release_urb_ctx()
153 ep->retire_data_urb(ep->data_subs, urb_ctx->urb); in retire_outbound_urb()
159 struct urb *urb = urb_ctx->urb; in retire_inbound_urb() local
167 snd_usb_handle_sync_urb(ep->sync_slave, ep, urb); in retire_inbound_urb()
170 ep->retire_data_urb(ep->data_subs, urb); in retire_inbound_urb()
176 struct urb *urb = ctx->urb; in prepare_silent_urb() local
198 urb->iso_frame_desc[i].offset = offset; in prepare_silent_urb()
[all …]
/Linux-v5.4/drivers/media/usb/dvb-usb/
Dusb-urb.c15 static void usb_urb_complete(struct urb *urb) in usb_urb_complete() argument
17 struct usb_data_stream *stream = urb->context; in usb_urb_complete()
18 int ptype = usb_pipetype(urb->pipe); in usb_urb_complete()
24 urb->status,urb->actual_length,urb->transfer_buffer_length, in usb_urb_complete()
25 urb->number_of_packets,urb->error_count); in usb_urb_complete()
27 switch (urb->status) { in usb_urb_complete()
36 deb_ts("urb completion error %d.\n", urb->status); in usb_urb_complete()
40 b = (u8 *) urb->transfer_buffer; in usb_urb_complete()
43 for (i = 0; i < urb->number_of_packets; i++) { in usb_urb_complete()
45 if (urb->iso_frame_desc[i].status != 0) in usb_urb_complete()
[all …]
/Linux-v5.4/include/trace/events/
Dpwc.h12 TP_PROTO(struct urb *urb, struct pwc_device *pdev),
13 TP_ARGS(urb, pdev),
15 __field(struct urb*, urb)
23 __entry->urb = urb;
25 __entry->urb__status = urb->status;
26 __entry->urb__actual_length = urb->actual_length;
35 __entry->urb,
41 TP_PROTO(struct urb *urb, struct pwc_device *pdev),
42 TP_ARGS(urb, pdev),
44 __field(struct urb*, urb)
[all …]
/Linux-v5.4/drivers/greybus/
Des2.c70 struct urb *urb[NUM_CPORT_IN_URB]; member
107 struct urb *cport_out_urb[NUM_CPORT_OUT_URB];
120 struct urb *arpc_urb[NUM_ARPC_IN_URB];
141 static void cport_out_callback(struct urb *urb);
171 static void ap_urb_complete(struct urb *urb) in ap_urb_complete() argument
173 struct usb_ctrlrequest *dr = urb->context; in ap_urb_complete()
176 usb_free_urb(urb); in ap_urb_complete()
182 struct urb *urb; in output_async() local
187 urb = usb_alloc_urb(0, GFP_ATOMIC); in output_async()
188 if (!urb) in output_async()
[all …]

12345678910>>...20