/drivers/staging/ozwpan/ |
H A D | ozurbparanoia.h | 10 void oz_remember_urb(struct urb *urb); 11 int oz_forget_urb(struct urb *urb); 13 static inline void oz_remember_urb(struct urb *urb) {} argument 14 static inline int oz_forget_urb(struct urb *urb) { return 0; } argument
|
H A D | ozurbparanoia.c | 14 struct urb *g_urb_memory[OZ_MAX_URBS]; 18 void oz_remember_urb(struct urb *urb) argument 24 g_urb_memory[g_nb_urbs++] = urb; 25 oz_dbg(ON, "urb up = %d %p\n", g_nb_urbs, urb); 27 oz_dbg(ON, "ERROR urb buffer full\n"); 34 int oz_forget_urb(struct urb *urb) argument 42 if (g_urb_memory[i] == urb) { [all...] |
H A D | ozhcd.c | 14 * The troublesome functions are the urb enqueue and dequeue functions both of 58 * urb. 63 struct urb *urb; member in struct:oz_urb_link 153 static int oz_hcd_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, 155 static int oz_hcd_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status); 182 static void oz_process_ep0_urb(struct oz_hcd *ozhcd, struct urb *urb, 303 oz_uncancel_urb(struct oz_hcd *ozhcd, struct urb *urb) argument 322 oz_complete_urb(struct usb_hcd *hcd, struct urb *urb, int status) argument 389 oz_complete_buffered_urb(struct oz_port *port, struct oz_endpoint *ep, struct urb *urb) argument 428 oz_enqueue_ep_urb(struct oz_port *port, u8 ep_addr, int in_dir, struct urb *urb, u8 req_id) argument 502 oz_dequeue_ep_urb(struct oz_port *port, u8 ep_addr, int in_dir, struct urb *urb) argument 539 struct urb *urb = NULL; local 753 struct urb *urb; local 839 oz_hcd_complete_set_config(struct oz_port *port, struct urb *urb, u8 rcode, u8 config_num) argument 861 oz_hcd_complete_set_interface(struct oz_port *port, struct urb *urb, u8 rcode, u8 if_num, u8 alt) argument 893 struct urb *urb; local 998 struct urb *urb; local 1043 struct urb *urb; local 1100 struct urb *urb = urbl->urb; local 1381 oz_process_ep0_urb(struct oz_hcd *ozhcd, struct urb *urb, gfp_t mem_flags) argument 1529 oz_urb_process(struct oz_hcd *ozhcd, struct urb *urb) argument 1567 struct urb *urb; local 1602 oz_urb_cancel(struct oz_port *port, u8 ep_num, struct urb *urb) argument 1667 struct urb *urb; local 1734 oz_hcd_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags) argument 1789 oz_remove_urb(struct oz_endpoint *ep, struct urb *urb) argument 1815 oz_hcd_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) argument [all...] |
/drivers/usb/core/ |
H A D | urb.c | 11 #define to_urb(d) container_of(d, struct urb, kref) 16 struct urb *urb = to_urb(kref); local 18 if (urb->transfer_flags & URB_FREE_BUFFER) 19 kfree(urb->transfer_buffer); 21 kfree(urb); 25 * usb_init_urb - initializes a urb so that it can be used by a USB driver 26 * @urb: pointer to the urb to initialize 28 * Initializes a urb s 38 usb_init_urb(struct urb *urb) argument 66 struct urb *urb; local 90 usb_free_urb(struct urb *urb) argument 107 usb_get_urb(struct urb *urb) argument 123 usb_anchor_urb(struct urb *urb, struct usb_anchor *anchor) argument 147 __usb_unanchor_urb(struct urb *urb, struct usb_anchor *anchor) argument 162 usb_unanchor_urb(struct urb *urb) argument 325 usb_submit_urb(struct urb *urb, gfp_t mem_flags) argument 621 usb_unlink_urb(struct urb *urb) argument 660 usb_kill_urb(struct urb *urb) argument 701 usb_poison_urb(struct urb *urb) argument 716 usb_unpoison_urb(struct urb *urb) argument 737 usb_block_urb(struct urb *urb) argument [all...] |
/drivers/usb/usbip/ |
H A D | stub_rx.c | 28 static int is_clear_halt_cmd(struct urb *urb) argument 32 req = (struct usb_ctrlrequest *) urb->setup_packet; 39 static int is_set_interface_cmd(struct urb *urb) argument 43 req = (struct usb_ctrlrequest *) urb->setup_packet; 49 static int is_set_configuration_cmd(struct urb *urb) argument 53 req = (struct usb_ctrlrequest *) urb->setup_packet; 59 static int is_reset_device_cmd(struct urb *ur argument 78 tweak_clear_halt_cmd(struct urb *urb) argument 116 tweak_set_interface_cmd(struct urb *urb) argument 143 tweak_set_configuration_cmd(struct urb *urb) argument 161 tweak_reset_device_cmd(struct urb *urb) argument 186 tweak_special_requests(struct urb *urb) argument 394 masking_bogus_flags(struct urb *urb) argument [all...] |
H A D | vhci_rx.c | 26 /* get URB from transmitted urb queue. caller must hold vdev->priv_lock */ 27 struct urb *pickup_urb_and_free_priv(struct vhci_device *vdev, __u32 seqnum) 30 struct urb *urb = NULL; local 37 urb = priv->urb; 38 status = urb->status; 40 usbip_dbg_vhci_rx("find urb %p vurb %p seqnum %u\n", 41 urb, priv, seqnum); 47 dev_info(&urb 74 struct urb *urb; local 108 usb_hcd_unlink_urb_from_ep(vhci_to_hcd(the_controller), urb); local 111 usb_hcd_giveback_urb(vhci_to_hcd(the_controller), urb, urb->status); local 144 struct urb *urb; local 175 usb_hcd_unlink_urb_from_ep(vhci_to_hcd(the_controller), urb); local 178 usb_hcd_giveback_urb(vhci_to_hcd(the_controller), urb, local [all...] |
H A D | stub_tx.c | 28 struct urb *urb = priv->urb; local 30 kfree(urb->setup_packet); 31 kfree(urb->transfer_buffer); 34 usb_free_urb(urb); 56 * stub_complete - completion handler of a usbip urb 57 * @urb: pointer to the urb completed 59 * When a urb ha 64 stub_complete(struct urb *urb) argument 122 setup_ret_submit_pdu(struct usbip_header *rpdu, struct urb *urb) argument 167 struct urb *urb = priv->urb; local [all...] |
H A D | usbip_common.c | 236 void usbip_dump_urb(struct urb *urb) argument 240 if (!urb) { 241 pr_debug("urb: null pointer!!\n"); 245 if (!urb->dev) { 246 pr_debug("urb->dev: null pointer!!\n"); 250 dev = &urb->dev->dev; 252 dev_dbg(dev, " urb :%p\n", urb); 253 dev_dbg(dev, " dev :%p\n", urb 392 usbip_pack_cmd_submit(struct usbip_header *pdu, struct urb *urb, int pack) argument 417 usbip_pack_ret_submit(struct usbip_header *pdu, struct urb *urb, int pack) argument 437 usbip_pack_pdu(struct usbip_header *pdu, struct urb *urb, int cmd, int pack) argument 596 usbip_alloc_iso_desc_pdu(struct urb *urb, ssize_t *bufflen) argument 619 usbip_recv_iso(struct usbip_device *ud, struct urb *urb) argument 687 usbip_pad_iso(struct usbip_device *ud, struct urb *urb) argument 721 usbip_recv_xbuff(struct usbip_device *ud, struct urb *urb) argument [all...] |
/drivers/isdn/hisax/ |
H A D | st5481_usb.c | 18 static int st5481_isoc_flatten(struct urb *urb); 28 static void usb_next_ctrl_msg(struct urb *urb, argument 42 urb->setup_packet = 46 ((struct ctrl_msg *)urb->setup_packet)->dr.bRequest, 47 ((struct ctrl_msg *)urb->setup_packet)->dr.wValue, 48 ((struct ctrl_msg *)urb->setup_packet)->dr.wIndex); 51 urb->dev = adapter->usb_dev; 53 SUBMIT_URB(urb, GFP_ATOMI 128 usb_ctrl_complete(struct urb *urb) argument 175 usb_int_complete(struct urb *urb) argument 247 struct urb *urb; local 404 fill_isoc_urb(struct urb *urb, struct usb_device *dev, unsigned int pipe, void *buf, int num_packets, int packet_size, usb_complete_t complete, void *context) argument 429 st5481_setup_isocpipes(struct urb *urb[2], struct usb_device *dev, unsigned int pipe, int num_packets, int packet_size, int buf_size, usb_complete_t complete, void *context) argument 467 st5481_release_isocpipes(struct urb *urb[2]) argument 486 usb_in_complete(struct urb *urb) argument 586 st5481_isoc_flatten(struct urb *urb) argument [all...] |
/drivers/usb/misc/ |
H A D | usb_u132.h | 72 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, 73 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, 77 void *endp, struct urb *urb, u8 address, u8 ep_number, u8 toggle_bits, 78 void (*callback) (void *endp, struct urb *urb, u8 *buf, int len, 82 void *endp, struct urb *urb, u [all...] |
/drivers/media/usb/gspca/ |
H A D | benq.c | 43 static void sd_isoc_irq(struct urb *urb); 87 struct urb *urb; local 97 urb = usb_alloc_urb(SD_NPKT, GFP_KERNEL); 98 if (!urb) { 102 gspca_dev->urb[n] = urb; 103 urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev, 106 &urb 154 sd_isoc_irq(struct urb *urb) argument [all...] |
/drivers/usb/c67x00/ |
H A D | c67x00-sched.c | 31 * These are the stages for a control urb, they are kept 32 * in both urb->interval and td->privdata. 76 struct urb *urb; member in struct:c67x00_td 80 * an urb can be dequeued while a td is in progress 89 struct urb *urb; member in struct:c67x00_urb_priv 155 dev_dbg(dev, "urb: 0x%p\n", td->urb); 208 * c67x00_release_urb - remove link from all tds to this urb 212 c67x00_release_urb(struct c67x00_hcd *c67x00, struct urb *urb) argument 245 c67x00_ep_data_alloc(struct c67x00_hcd *c67x00, struct urb *urb) argument 356 c67x00_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags) argument 455 c67x00_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status) argument 488 c67x00_giveback_urb(struct c67x00_hcd *c67x00, struct urb *urb, int status) argument 501 usb_hcd_unlink_urb_from_ep(c67x00_hcd_to_hcd(c67x00), urb); local 503 usb_hcd_giveback_urb(c67x00_hcd_to_hcd(c67x00), urb, urbp->status); local 509 c67x00_claim_frame_bw(struct c67x00_hcd *c67x00, struct urb *urb, int len, int periodic) argument 577 c67x00_create_td(struct c67x00_hcd *c67x00, struct urb *urb, void *data, int len, int pid, int toggle, unsigned long privdata) argument 659 c67x00_add_data_urb(struct c67x00_hcd *c67x00, struct urb *urb) argument 705 c67x00_add_ctrl_urb(struct c67x00_hcd *c67x00, struct urb *urb) argument 743 c67x00_add_int_urb(struct c67x00_hcd *c67x00, struct urb *urb) argument 755 c67x00_add_iso_urb(struct c67x00_hcd *c67x00, struct urb *urb) argument 794 struct urb *urb; local 874 struct urb *urb = td->urb; local 923 struct urb *urb = td->urb; local 968 struct urb *urb = td->urb; local 996 struct urb *urb; local [all...] |
/drivers/media/usb/dvb-usb/ |
H A D | usb-urb.c | 1 /* usb-urb.c is part of the DVB USB library. 14 static void usb_urb_complete(struct urb *urb) argument 16 struct usb_data_stream *stream = urb->context; 17 int ptype = usb_pipetype(urb->pipe); 21 deb_uxfer("'%s' urb completed. status: %d, length: %d/%d, pack_num: %d, errors: %d\n", 23 urb->status,urb->actual_length,urb->transfer_buffer_length, 24 urb 177 struct urb *urb; local [all...] |
/drivers/usb/host/ |
H A D | fhci-q.c | 165 static void free_urb_priv(struct fhci_hcd *fhci, struct urb *urb) argument 168 struct urb_priv *urb_priv = urb->hcpriv; 184 urb->hcpriv = NULL; 193 void fhci_urb_complete_free(struct fhci_hcd *fhci, struct urb *urb) argument 195 free_urb_priv(fhci, urb); 197 if (urb->status == -EINPROGRESS) { 198 if (urb->actual_length != urb 205 usb_hcd_unlink_urb_from_ep(fhci_to_hcd(fhci), urb); local 209 usb_hcd_giveback_urb(fhci_to_hcd(fhci), urb, urb->status); local 218 fhci_done_td(struct urb *urb, struct td *td) argument 272 struct urb *urb = td->urb; local [all...] |
H A D | ehci-q.c | 119 * recovery (including urb dequeue) would need software changes to a QH... 161 struct urb *urb, u32 token) 170 if (urb->dev->tt && !usb_pipeint(urb->pipe) && !qh->clearing_tt) { 172 struct usb_device *tt = urb->dev->tt->hub; 175 urb->dev->ttport, urb->dev->devnum, 176 usb_pipeendpoint(urb->pipe), token); 179 || urb 160 ehci_clear_tt_buffer(struct ehci_hcd *ehci, struct ehci_qh *qh, struct urb *urb, u32 token) argument 192 qtd_copy_status( struct ehci_hcd *ehci, struct urb *urb, size_t length, u32 token ) argument 249 ehci_urb_done(struct ehci_hcd *ehci, struct urb *urb, int status) argument 275 usb_hcd_unlink_urb_from_ep(ehci_to_hcd(ehci), urb); local 276 usb_hcd_giveback_urb(ehci_to_hcd(ehci), urb, status); local 322 struct urb *urb; local 553 qtd_list_free( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list ) argument 573 qh_urb_transaction( struct ehci_hcd *ehci, struct urb *urb, struct list_head *head, gfp_t flags ) argument 758 qh_make( struct ehci_hcd *ehci, struct urb *urb, gfp_t flags ) argument 1015 qh_append_tds( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, int epnum, void **ptr ) argument 1097 submit_async( struct ehci_hcd *ehci, struct urb *urb, struct list_head *qtd_list, gfp_t mem_flags ) argument 1134 usb_hcd_unlink_urb_from_ep(ehci_to_hcd(ehci), urb); local 1163 submit_single_step_set_feature( struct usb_hcd *hcd, struct urb *urb, int is_setup ) argument [all...] |
/drivers/bluetooth/ |
H A D | bpa10x.c | 165 static void bpa10x_tx_complete(struct urb *urb) argument 167 struct sk_buff *skb = urb->context; 170 BT_DBG("%s urb %p status %d count %d", hdev->name, 171 urb, urb->status, urb->actual_length); 176 if (!urb->status) 177 hdev->stat.byte_tx += urb->transfer_buffer_length; 182 kfree(urb 187 bpa10x_rx_complete(struct urb *urb) argument 221 struct urb *urb; local 262 struct urb *urb; local 357 struct urb *urb; local [all...] |
/drivers/media/usb/tm6000/ |
H A D | tm6000-usb-isoc.h | 31 /* urb for isoc transfers */ 32 struct urb **urb; member in struct:usb_isoc_ctl
|
/drivers/staging/vt6656/ |
H A D | usbpipe.c | 105 static void vnt_start_interrupt_urb_complete(struct urb *urb) argument 107 struct vnt_private *priv = urb->context; 110 switch (urb->status) { 123 status = urb->status; 167 static void vnt_submit_rx_urb_complete(struct urb *urb) argument 169 struct vnt_rcb *rcb = urb->context; 173 switch (urb->status) { 182 dev_dbg(&priv->usb->dev, "BULK In failed %d\n", urb 220 struct urb *urb; local 247 vnt_tx_context_complete(struct urb *urb) argument 282 struct urb *urb; local [all...] |
/drivers/media/usb/stk1160/ |
H A D | stk1160-video.c | 228 * Controls the isoc copy of each urb packet 230 static void stk1160_process_isoc(struct stk1160 *dev, struct urb *urb) argument 240 if (urb->status < 0) { 242 print_err_status(dev, -1, urb->status); 246 for (i = 0; i < urb->number_of_packets; i++) { 247 status = urb->iso_frame_desc[i].status; 254 p = urb->transfer_buffer + urb->iso_frame_desc[i].offset; 255 len = urb 308 stk1160_isoc_irq(struct urb *urb) argument 375 struct urb *urb; local 426 struct urb *urb; local [all...] |
/drivers/staging/bcm/ |
H A D | InterfaceAdapter.h | 37 struct urb *urb; member in struct:bcm_usb_tcb 43 struct urb *urb; member in struct:bcm_usb_rcb 64 struct urb *psInterruptUrb;
|
H A D | InterfaceTx.c | 3 static void prepare_low_power_mode(struct urb *urb, argument 18 if (urb->status != STATUS_SUCCESS) { 49 if (urb->status != STATUS_SUCCESS) { 86 static void write_bulk_callback(struct urb *urb/*, struct pt_regs *regs*/) 88 struct bcm_usb_tcb *pTcb = (struct bcm_usb_tcb *)urb->context; 91 (struct bcm_link_request *)urb->transfer_buffer; 98 urb->status); 100 if (urb 152 struct urb *urb = pTcb->urb; local [all...] |
/drivers/usb/serial/ |
H A D | navman.c | 30 static void navman_read_int_callback(struct urb *urb) argument 32 struct usb_serial_port *port = urb->context; 33 unsigned char *data = urb->transfer_buffer; 34 int status = urb->status; 44 /* this urb is terminated, clean up */ 45 dev_dbg(&port->dev, "%s - urb shutting down with status: %d\n", 49 dev_dbg(&port->dev, "%s - nonzero urb status received: %d\n", 54 usb_serial_debug_data(&port->dev, __func__, urb->actual_length, data); 56 if (urb [all...] |
/drivers/gpu/drm/udl/ |
H A D | udl_main.c | 101 void udl_urb_completion(struct urb *urb) argument 103 struct urb_node *unode = urb->context; 108 if (urb->status) { 109 if (!(urb->status == -ENOENT || 110 urb->status == -ECONNRESET || 111 urb->status == -ESHUTDOWN)) { 113 __func__, urb->status); 118 urb->transfer_buffer_length = udl->urbs.size; /* reset to actual */ 143 struct urb *ur local 180 struct urb *urb; local 238 struct urb *urb = NULL; local 266 udl_submit_urb(struct drm_device *dev, struct urb *urb, size_t len) argument [all...] |
/drivers/net/wireless/ath/carl9170/ |
H A D | usb.c | 133 struct urb *urb; local 139 urb = usb_get_from_anchor(&ar->tx_wait); 140 if (!urb) 143 usb_anchor_urb(urb, &ar->tx_anch); 145 err = usb_submit_urb(urb, GFP_ATOMIC); 149 urb->status); 152 usb_unanchor_urb(urb); 153 usb_anchor_urb(urb, &ar->tx_err); 156 usb_free_urb(urb); 165 carl9170_usb_tx_data_complete(struct urb *urb) argument 212 struct urb *urb; local 237 carl9170_usb_cmd_complete(struct urb *urb) argument 275 carl9170_usb_rx_irq_complete(struct urb *urb) argument 316 struct urb *urb; local 342 struct urb *urb; local 367 struct urb *urb; local 396 carl9170_usb_rx_complete(struct urb *urb) argument 459 struct urb *urb; local 483 struct urb *urb = NULL; local 513 struct urb *urb; local 556 struct urb *urb; local 605 struct urb *urb; local 713 struct urb *urb; local [all...] |
/drivers/media/rc/ |
H A D | ttusbir.c | 44 struct urb *urb[NUM_URBS]; member in struct:ttusbir 47 struct urb *bulk_urb; 74 dev_warn(tt->dev, "failed to submit bulk urb: %d\n", 92 * The urb cannot be reused until the urb completes 94 static void ttusbir_bulk_complete(struct urb *urb) argument 96 struct ttusbir *tt = urb->context; 100 switch (urb 172 ttusbir_urb_complete(struct urb *urb) argument 256 struct urb *urb = usb_alloc_urb(8, GFP_KERNEL); local 357 struct urb *urb = tt->urb[i]; local [all...] |