/u-boot/drivers/usb/musb-new/ |
A D | usb-compat.h | 26 struct urb; 28 typedef void (*usb_complete_t)(struct urb *); 30 struct urb { struct 48 #define usb_hcd_link_urb_to_ep(hcd, urb) ({ \ argument 50 list_add_tail(&urb->urb_list, &urb->ep->urb_list); \ 52 #define usb_hcd_unlink_urb_from_ep(hcd, urb) list_del_init(&urb->urb_list) argument 56 struct urb *urb, in usb_hcd_giveback_urb() argument 59 urb->status = status; in usb_hcd_giveback_urb() 60 if (urb->complete) in usb_hcd_giveback_urb() 61 urb->complete(urb); in usb_hcd_giveback_urb() [all …]
|
A D | musb_host.c | 88 struct urb *urb, int is_out, 198 struct urb *urb = next_urb(qh); in musb_start_urb() local 304 urb, urb->complete, status, in musb_giveback() 319 struct urb *urb) in musb_save_toggle() argument 688 struct urb *urb, int is_out, in musb_ep_program() argument 971 struct urb *urb; in musb_h_ep0_irq() local 1394 struct urb *urb; in musb_bulk_rx_nak_timeout() local 1438 struct urb *urb; in musb_host_rx() local 1920 struct urb *urb, argument 2190 struct urb *urb, argument [all …]
|
A D | musb_uboot.c | 23 struct urb urb; member 30 static void musb_host_complete_urb(struct urb *urb) in musb_host_complete_urb() argument 33 urb->dev->act_len = urb->actual_length; in musb_host_complete_urb() 36 static void construct_urb(struct urb *urb, struct usb_host_endpoint *hep, in construct_urb() argument 44 memset(urb, 0, sizeof(struct urb)); in construct_urb() 48 urb->ep = hep; in construct_urb() 50 urb->status = -EINPROGRESS; in construct_urb() 51 urb->dev = dev; in construct_urb() 52 urb->pipe = pipe; in construct_urb() 67 static int submit_urb(struct usb_hcd *hcd, struct urb *urb) in submit_urb() argument [all …]
|
A D | musb_host.h | 74 static inline struct urb *next_urb(struct musb_qh *qh) in next_urb() 83 return list_entry(queue->next, struct urb, urb_list); in next_urb() 87 int musb_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags); 88 int musb_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status);
|
A D | musb_uboot.h | 20 struct urb urb; member
|
/u-boot/drivers/usb/gadget/ |
A D | ep0.c | 107 struct urb *urb, int index, int requesttype) in ep0_get_status() argument 158 void copy_config (struct urb *urb, void *data, int max_length, in copy_config() argument 194 memcpy (urb->buffer + urb->actual_length, data, length); in copy_config() 199 urb->actual_length, urb->buffer_length, max_buf, max_length, in copy_config() 216 struct urb *urb, int max, int descriptor_type, in ep0_get_descriptor() argument 223 if (!urb || !urb->buffer || !urb->buffer_length in ep0_get_descriptor() 366 memcpy (urb->buffer + urb->actual_length, in ep0_get_descriptor() 401 urb->buffer, urb->buffer_length, urb->actual_length, in ep0_get_descriptor() 424 int ep0_recv_setup (struct urb *urb) in ep0_recv_setup() argument 434 if (!urb || !urb->device) { in ep0_recv_setup() [all …]
|
A D | core.c | 407 void urb_detach (struct urb *urb) in urb_detach() argument 409 if (urb) { in urb_detach() 456 struct urb *urb; in first_urb_detached() local 469 void urb_append (urb_link * hd, struct urb *urb) in urb_append() argument 502 struct urb *urb; in usbd_alloc_urb() local 504 if (!(urb = (struct urb *) malloc (sizeof (struct urb)))) { in usbd_alloc_urb() 511 memset (urb, 0, sizeof (struct urb)); in usbd_alloc_urb() 514 urb->buffer = (u8 *) urb->buffer_data; in usbd_alloc_urb() 515 urb->buffer_length = sizeof (urb->buffer_data); in usbd_alloc_urb() 528 void usbd_dealloc_urb (struct urb *urb) in usbd_dealloc_urb() argument [all …]
|
A D | pxa27x_udc.c | 25 static struct urb *ep0_urb; 57 struct urb *urb = endpoint->tx_urb; in udc_write_urb() local 59 u32 *data32 = (u32 *) urb->buffer; in udc_write_urb() 60 u8 *data8 = (u8 *) urb->buffer; in udc_write_urb() 64 if (!urb || !urb->actual_length) in udc_write_urb() 75 urb->buffer, urb->buffer_length, urb->actual_length); in udc_write_urb() 119 if (endpoint->sent >= urb->actual_length) { in udc_write_urb() 120 urb->actual_length = 0; in udc_write_urb() 138 struct urb *urb = endpoint->rcv_urb; in udc_read_urb() local 140 u32 *data32 = (u32 *) urb->buffer; in udc_read_urb() [all …]
|
A D | ep0.h | 22 int ep0_recv_setup (struct urb *urb);
|
A D | designware_udc.c | 33 static struct urb *ep0_urb; 265 struct urb *urb = endpoint->tx_urb; in dw_write_noniso_tx_fifo() local 268 if (urb) { in dw_write_noniso_tx_fifo() 272 urb->buffer, urb->buffer_length, urb->actual_length); in dw_write_noniso_tx_fifo() 274 last = min_t(u32, urb->actual_length - endpoint->sent, in dw_write_noniso_tx_fifo() 278 u8 *cp = urb->buffer + endpoint->sent; in dw_write_noniso_tx_fifo() 471 struct urb *urb; in dw_udc_epn_rx() local 475 urb = endpoint->rcv_urb; in dw_udc_epn_rx() 477 if (urb) { in dw_udc_epn_rx() 478 u8 *cp = urb->buffer + urb->actual_length; in dw_udc_epn_rx()
|
/u-boot/include/ |
A D | usbdevice.h | 145 struct urb; 458 struct urb { struct 493 struct urb *rcv_urb; /* active urb */ argument 502 struct urb *tx_urb; /* active urb */ 562 int (*cdc_recv_setup)(struct usb_device_request *request, struct urb *urb); 612 void urb_detach (struct urb *urb); 614 struct urb *first_urb (urb_link * hd); 615 struct urb *first_urb_detached (urb_link * hd); 616 void urb_append (urb_link * hd, struct urb *urb); 619 void usbd_dealloc_urb (struct urb *urb); [all …]
|
/u-boot/drivers/usb/host/ |
A D | ohci-hcd.c | 264 td = urb->td[i]; in urb_free_priv() 271 free(urb); in urb_free_priv() 535 urb->finished = 0; in sohci_submit_job() 558 ed->purb = urb; in sohci_submit_job() 977 urb->td_cnt = 0; in td_submit_job() 1501 urb_priv_t *urb; in ohci_alloc_urb() local 1504 if (!urb) { in ohci_alloc_urb() 1509 urb->dev = dev; in ohci_alloc_urb() 1515 return urb; in ohci_alloc_urb() 1525 urb_priv_t *urb; in submit_common_msg() local [all …]
|
/u-boot/drivers/usb/musb/ |
A D | musb_udc.c | 102 static struct urb *ep0_urb; 490 struct urb *urb = endpoint->rcv_urb; in musb_peri_ep0_rx() local 492 urb->actual_length; in musb_peri_ep0_rx() 502 data = (u8 *) urb->buffer_data; in musb_peri_ep0_rx() 503 data += urb->actual_length; in musb_peri_ep0_rx() 651 struct urb *urb = endpoint->rcv_urb; in musb_peri_rx_ep() local 653 urb->actual_length; in musb_peri_rx_ep() 663 data = (u8 *) urb->buffer_data; in musb_peri_rx_ep() 664 data += urb->actual_length; in musb_peri_rx_ep() 837 struct urb *urb = endpoint->tx_urb; in udc_endpoint_write() local [all …]
|
/u-boot/drivers/serial/ |
A D | usbtty.c | 367 struct urb *urb); 810 static struct urb *next_urb (struct usb_device_instance *device, in next_urb() 813 struct urb *current_urb = NULL; in next_urb() 822 p2surround (struct urb, link, endpoint->tx.prev); in next_urb() 850 struct urb *current_urb = NULL; in write_buffer() 985 int usbtty_cdc_setup(struct usb_device_request *request, struct urb *urb) in usbtty_cdc_setup() argument 1000 memcpy (urb->buffer , &rs232_desc, sizeof(rs232_desc)); in usbtty_cdc_setup() 1001 urb->actual_length = sizeof(rs232_desc); in usbtty_cdc_setup()
|
A D | serial_mcf.c | 118 return readb(&uart->urb); in coldfire_serial_getc()
|
/u-boot/arch/m68k/include/asm/ |
A D | uart.h | 28 u8 urb; /* 0x0c Receive Buffer */ member
|
/u-boot/board/astro/mcf5373l/ |
A D | mcf5373l.c | 176 return readb(&uart->urb); in astro_get_char()
|