Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Dep0.c61 struct urb *urb, int index, int requesttype) in ep0_get_status() argument
65 urb->actual_length = 2; in ep0_get_status()
66 cp = (char*)urb->buffer; in ep0_get_status()
79 urb->actual_length = 0; in ep0_get_status()
96 static int ep0_get_one (struct usb_device_instance *device, struct urb *urb, in ep0_get_one() argument
99 urb->actual_length = 1; /* XXX 2? */ in ep0_get_one()
100 ((char *) urb->buffer)[0] = result; in ep0_get_one()
112 void copy_config (struct urb *urb, void *data, int max_length, in copy_config() argument
136 /*urb->buffer_length */ max_buf - urb->actual_length) <= 0) { in copy_config()
148 memcpy (urb->buffer + urb->actual_length, data, length); in copy_config()
[all …]
H A Dcore.c343 struct urb *rcv_urb; in usbd_rcv_complete()
386 struct urb *tx_urb; in usbd_tx_complete()
443 void urb_detach (struct urb *urb) in urb_detach() argument
445 if (urb) { in urb_detach()
446 urb_link *ul = &urb->link; in urb_detach()
475 struct urb *first_urb (urb_link * hd) in first_urb()
482 return (p2surround (struct urb, link, nx)); in first_urb()
490 struct urb *first_urb_detached (urb_link * hd) in first_urb_detached()
492 struct urb *urb; in first_urb_detached() local
493 if ((urb = first_urb (hd))) { in first_urb_detached()
[all …]
H A Dpxa27x_udc.c25 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()
67 n = min_t(unsigned int, urb->actual_length - endpoint->sent, 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()
125 if ((endpoint->sent >= urb->actual_length) && (!ep_num)) { in udc_write_urb()
[all …]
H A Dep0.h23 int ep0_recv_setup (struct urb *urb);
H A Ddesignware_udc.c31 static struct urb *ep0_urb;
263 struct urb *urb = endpoint->tx_urb; in dw_write_noniso_tx_fifo() local
266 if (urb) { in dw_write_noniso_tx_fifo()
270 urb->buffer, urb->buffer_length, urb->actual_length); in dw_write_noniso_tx_fifo()
272 last = min_t(u32, urb->actual_length - endpoint->sent, in dw_write_noniso_tx_fifo()
276 u8 *cp = urb->buffer + endpoint->sent; in dw_write_noniso_tx_fifo()
469 struct urb *urb; in dw_udc_epn_rx() local
473 urb = endpoint->rcv_urb; in dw_udc_epn_rx()
475 if (urb) { in dw_udc_epn_rx()
476 u8 *cp = urb->buffer + urb->actual_length; in dw_udc_epn_rx()
/rk3399_rockchip-uboot/drivers/usb/musb-new/
H A Dusb-compat.h25 struct urb;
27 typedef void (*usb_complete_t)(struct urb *);
29 struct urb { struct
47 #define usb_hcd_link_urb_to_ep(hcd, urb) ({ \ argument
49 list_add_tail(&urb->urb_list, &urb->ep->urb_list); \
51 #define usb_hcd_unlink_urb_from_ep(hcd, urb) list_del_init(&urb->urb_list) argument
52 #define usb_hcd_check_unlink_urb(hdc, urb, status) 0 argument
55 struct urb *urb, in usb_hcd_giveback_urb() argument
58 urb->status = status; in usb_hcd_giveback_urb()
59 if (urb->complete) in usb_hcd_giveback_urb()
[all …]
H A Dmusb_host.c84 struct urb *urb, int is_out,
194 struct urb *urb = next_urb(qh); in musb_start_urb() local
195 void *buf = urb->transfer_buffer; in musb_start_urb()
198 unsigned pipe = urb->pipe; in musb_start_urb()
212 buf = urb->setup_packet; in musb_start_urb()
219 offset = urb->iso_frame_desc[0].offset; in musb_start_urb()
220 len = urb->iso_frame_desc[0].length; in musb_start_urb()
225 buf = urb->transfer_buffer + urb->actual_length; in musb_start_urb()
226 len = urb->transfer_buffer_length - urb->actual_length; in musb_start_urb()
230 qh, urb, address, qh->epnum, in musb_start_urb()
[all …]
H A Dmusb_uboot.c22 struct urb urb; member
29 static void musb_host_complete_urb(struct urb *urb) in musb_host_complete_urb() argument
31 urb->dev->status &= ~USB_ST_NOT_PROC; in musb_host_complete_urb()
32 urb->dev->act_len = urb->actual_length; in musb_host_complete_urb()
35 static void construct_urb(struct urb *urb, struct usb_host_endpoint *hep, in construct_urb() argument
43 memset(urb, 0, sizeof(struct urb)); in construct_urb()
46 INIT_LIST_HEAD(&urb->urb_list); in construct_urb()
47 urb->ep = hep; in construct_urb()
48 urb->complete = musb_host_complete_urb; in construct_urb()
49 urb->status = -EINPROGRESS; in construct_urb()
[all …]
H A Dmusb_host.h75 static inline struct urb *next_urb(struct musb_qh *qh) in next_urb()
84 return list_entry(queue->next, struct urb, urb_list); in next_urb()
88 int musb_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags);
89 int musb_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status);
H A Dmusb_uboot.h21 struct urb urb; member
/rk3399_rockchip-uboot/include/
H A Dusbdevice.h146 struct urb;
468 struct urb { struct
503 struct urb *rcv_urb; /* active urb */ argument
512 struct urb *tx_urb; /* active urb */
572 int (*cdc_recv_setup)(struct usb_device_request *request, struct urb *urb);
628 void urb_detach (struct urb *urb);
630 struct urb *first_urb (urb_link * hd);
631 struct urb *first_urb_detached (urb_link * hd);
632 void urb_append (urb_link * hd, struct urb *urb);
634 struct urb *usbd_alloc_urb (struct usb_device_instance *device, struct usb_endpoint_instance *endpo…
[all …]
/rk3399_rockchip-uboot/drivers/usb/host/
H A Dohci-hcd.c213 struct devrequest *setup, urb_priv_t *urb,
253 static void urb_free_priv(urb_priv_t *urb) in urb_free_priv() argument
259 last = urb->length - 1; in urb_free_priv()
262 td = urb->td[i]; in urb_free_priv()
265 urb->td[i] = NULL; in urb_free_priv()
269 free(urb); in urb_free_priv()
512 int sohci_submit_job(ohci_t *ohci, ohci_dev_t *ohci_dev, urb_priv_t *urb, in sohci_submit_job() argument
516 urb_priv_t *purb_priv = urb; in sohci_submit_job()
518 struct usb_device *dev = urb->dev; in sohci_submit_job()
519 unsigned long pipe = urb->pipe; in sohci_submit_job()
[all …]
/rk3399_rockchip-uboot/drivers/usb/musb/
H A Dmusb_udc.c102 static struct urb *ep0_urb;
488 struct urb *urb = endpoint->rcv_urb; in musb_peri_ep0_rx() local
489 unsigned int remaining_space = urb->buffer_length - in musb_peri_ep0_rx()
490 urb->actual_length; in musb_peri_ep0_rx()
500 data = (u8 *) urb->buffer_data; in musb_peri_ep0_rx()
501 data += urb->actual_length; in musb_peri_ep0_rx()
649 struct urb *urb = endpoint->rcv_urb; in musb_peri_rx_ep() local
650 unsigned int remaining_space = urb->buffer_length - in musb_peri_rx_ep()
651 urb->actual_length; in musb_peri_rx_ep()
661 data = (u8 *) urb->buffer_data; in musb_peri_rx_ep()
[all …]
/rk3399_rockchip-uboot/drivers/serial/
H A Dusbtty.c366 struct urb *urb);
809 static struct urb *next_urb (struct usb_device_instance *device, in next_urb()
812 struct urb *current_urb = NULL; in next_urb()
821 p2surround (struct urb, link, endpoint->tx.prev); in next_urb()
849 struct urb *current_urb = NULL; in write_buffer()
990 int usbtty_cdc_setup(struct usb_device_request *request, struct urb *urb) in usbtty_cdc_setup() argument
1005 memcpy (urb->buffer , &rs232_desc, sizeof(rs232_desc)); in usbtty_cdc_setup()
1006 urb->actual_length = sizeof(rs232_desc); in usbtty_cdc_setup()
H A Dmcfuart.c117 return readb(&uart->urb); in mcf_serial_getc()
190 return readb(&uart->urb); in coldfire_serial_getc()
/rk3399_rockchip-uboot/arch/mips/mach-au1x00/
H A Dau1x00_usb_ohci.c117 int transfer_len, struct devrequest * setup, urb_priv_t * urb, int interval);
125 static void urb_free_priv (urb_priv_t * urb) in urb_free_priv() argument
131 last = urb->length - 1; in urb_free_priv()
134 td = urb->td[i]; in urb_free_priv()
137 urb->td[i] = NULL; in urb_free_priv()
665 int transfer_len, struct devrequest *setup, urb_priv_t *urb, int interval) in td_submit_job() argument
682 urb->td_cnt = 0; in td_submit_job()
693 td_fill (ohci, info | (cnt? TD_T_TOGGLE:toggle), data, 4096, dev, cnt, urb); in td_submit_job()
698 td_fill (ohci, info | (cnt? TD_T_TOGGLE:toggle), data, data_len, dev, cnt, urb); in td_submit_job()
707 td_fill (ohci, info, kseg_to_phys(setup), 8, dev, cnt++, urb); in td_submit_job()
[all …]
/rk3399_rockchip-uboot/arch/m68k/include/asm/
H A Duart.h29 u8 urb; /* 0x0c Receive Buffer */ member
/rk3399_rockchip-uboot/board/astro/mcf5373l/
H A Dmcf5373l.c173 return readb(&uart->urb); in astro_get_char()