Home
last modified time | relevance | path

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

12

/third_party/mingw-w64/mingw-w64-headers/ddk/include/ddk/
Dusbdlib.h12 #define UsbBuildInterruptOrBulkTransferRequest(urb,length, pipeHandle, transferBuffer, transferBuff… argument
14 (urb)->UrbHeader.Function = URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER; \
15 (urb)->UrbHeader.Length = (length); \
16 (urb)->UrbBulkOrInterruptTransfer.PipeHandle = (pipeHandle); \
17 (urb)->UrbBulkOrInterruptTransfer.TransferBufferLength = (transferBufferLength); \
18 (urb)->UrbBulkOrInterruptTransfer.TransferBufferMDL = (transferBufferMDL); \
19 (urb)->UrbBulkOrInterruptTransfer.TransferBuffer = (transferBuffer); \
20 (urb)->UrbBulkOrInterruptTransfer.TransferFlags = (transferFlags); \
21 (urb)->UrbBulkOrInterruptTransfer.UrbLink = (link); \
24 #define UsbBuildGetDescriptorRequest(urb, length, descriptorType, descriptorIndex, languageId, tran… argument
[all …]
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
Dlinux_usb.c60 static int usb_start_wait_urb(struct urb *, usb_timeout_t, uint16_t *);
68 static int usb_unlink_urb_sub(struct urb *, uint8_t);
393 usb_submit_urb(struct urb *urb, uint16_t mem_flags) in usb_submit_urb() argument
400 if (urb == NULL) in usb_submit_urb()
407 if (urb->endpoint == NULL) { in usb_submit_urb()
418 if (urb->kill_count != 0) { in usb_submit_urb()
423 uhe = urb->endpoint; in usb_submit_urb()
434 TAILQ_INSERT_TAIL(&uhe->bsd_urb_list, urb, bsd_urb_list); in usb_submit_urb()
437 urb->status = -EINPROGRESS; in usb_submit_urb()
444 urb->status = -EINVAL; in usb_submit_urb()
[all …]
/third_party/uboot/u-boot-2020.01/drivers/usb/gadget/
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 …]
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 …]
Dpxa27x_udc.c24 static struct urb *ep0_urb;
56 struct urb *urb = endpoint->tx_urb; in udc_write_urb() local
58 u32 *data32 = (u32 *) urb->buffer; in udc_write_urb()
59 u8 *data8 = (u8 *) urb->buffer; in udc_write_urb()
63 if (!urb || !urb->actual_length) in udc_write_urb()
66 n = min_t(unsigned int, urb->actual_length - endpoint->sent, in udc_write_urb()
74 urb->buffer, urb->buffer_length, urb->actual_length); in udc_write_urb()
118 if (endpoint->sent >= urb->actual_length) { in udc_write_urb()
119 urb->actual_length = 0; in udc_write_urb()
124 if ((endpoint->sent >= urb->actual_length) && (!ep_num)) { in udc_write_urb()
[all …]
Ddesignware_udc.c32 static struct urb *ep0_urb;
264 struct urb *urb = endpoint->tx_urb; in dw_write_noniso_tx_fifo() local
267 if (urb) { in dw_write_noniso_tx_fifo()
271 urb->buffer, urb->buffer_length, urb->actual_length); in dw_write_noniso_tx_fifo()
273 last = min_t(u32, urb->actual_length - endpoint->sent, in dw_write_noniso_tx_fifo()
277 u8 *cp = urb->buffer + endpoint->sent; in dw_write_noniso_tx_fifo()
470 struct urb *urb; in dw_udc_epn_rx() local
474 urb = endpoint->rcv_urb; in dw_udc_epn_rx()
476 if (urb) { in dw_udc_epn_rx()
477 u8 *cp = urb->buffer + urb->actual_length; in dw_udc_epn_rx()
Dep0.h22 int ep0_recv_setup (struct urb *urb);
/third_party/uboot/u-boot-2020.01/drivers/usb/musb-new/
Dmusb_host.c83 struct urb *urb, int is_out,
193 struct urb *urb = next_urb(qh); in musb_start_urb() local
194 void *buf = urb->transfer_buffer; in musb_start_urb()
197 unsigned pipe = urb->pipe; in musb_start_urb()
211 buf = urb->setup_packet; in musb_start_urb()
218 offset = urb->iso_frame_desc[0].offset; in musb_start_urb()
219 len = urb->iso_frame_desc[0].length; in musb_start_urb()
224 buf = urb->transfer_buffer + urb->actual_length; in musb_start_urb()
225 len = urb->transfer_buffer_length - urb->actual_length; in musb_start_urb()
229 qh, urb, address, qh->epnum, in musb_start_urb()
[all …]
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 …]
Dmusb_uboot.c19 struct urb urb; member
26 static void musb_host_complete_urb(struct urb *urb) in musb_host_complete_urb() argument
28 urb->dev->status &= ~USB_ST_NOT_PROC; in musb_host_complete_urb()
29 urb->dev->act_len = urb->actual_length; in musb_host_complete_urb()
32 static void construct_urb(struct urb *urb, struct usb_host_endpoint *hep, in construct_urb() argument
40 memset(urb, 0, sizeof(struct urb)); in construct_urb()
43 INIT_LIST_HEAD(&urb->urb_list); in construct_urb()
44 urb->ep = hep; in construct_urb()
45 urb->complete = musb_host_complete_urb; in construct_urb()
46 urb->status = -EINPROGRESS; in construct_urb()
[all …]
Dmusb_host.h74 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);
Dmusb_uboot.h20 struct urb urb; member
/third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/
Dusb.h43 struct urb;
46 typedef void (usb_complete_t)(struct urb *);
236 struct urb { struct
237 TAILQ_ENTRY(urb) bsd_urb_list;
286 int usb_submit_urb(struct urb *urb, uint16_t mem_flags); argument
287 int usb_unlink_urb(struct urb *urb);
301 struct urb *usb_alloc_urb(uint16_t iso_packets, uint16_t mem_flags);
311 void usb_free_urb(struct urb *urb);
312 void usb_init_urb(struct urb *urb);
313 void usb_kill_urb(struct urb *urb);
[all …]
/third_party/libusb/libusb/os/
Dlinux_usbfs.c1838 struct usbfs_urb *urb; in discard_urbs() local
1842 urb = tpriv->iso_urbs[i]; in discard_urbs()
1844 urb = &tpriv->urbs[i]; in discard_urbs()
1846 if (ioctl(hpriv->fd, IOCTL_USBFS_DISCARDURB, urb) == 0) in discard_urbs()
1869 struct usbfs_urb *urb = tpriv->iso_urbs[i]; in free_iso_urbs() local
1871 if (!urb) in free_iso_urbs()
1873 free(urb); in free_iso_urbs()
1956 struct usbfs_urb *urb = &urbs[i]; in submit_bulk_transfer() local
1958 urb->usercontext = itransfer; in submit_bulk_transfer()
1961 urb->type = USBFS_URB_TYPE_BULK; in submit_bulk_transfer()
[all …]
/third_party/ltp/testcases/kernel/device-drivers/usb/tusb/
Dst_tusb.h36 int (*submit_urb) (struct urb *urb);
37 int (*unlink_urb) (struct urb *urb);
82 int (*urb_enqueue) (struct usb_hcd *hcd, struct urb *urb,
84 int (*urb_dequeue) (struct usb_hcd *hcd, struct urb *urb);
Dtusb.c104 struct urb *irq;
164 static int test_submit_urb(struct urb *purb)
170 static int test_unlink_urb(struct urb *purb)
/third_party/uboot/u-boot-2020.01/drivers/usb/host/
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 …]
/third_party/uboot/u-boot-2020.01/include/
Dusbdevice.h145 struct urb;
467 struct urb { struct
502 struct urb *rcv_urb; /* active urb */ argument
511 struct urb *tx_urb; /* active urb */
571 int (*cdc_recv_setup)(struct usb_device_request *request, struct urb *urb);
627 void urb_detach (struct urb *urb);
629 struct urb *first_urb (urb_link * hd);
630 struct urb *first_urb_detached (urb_link * hd);
631 void urb_append (urb_link * hd, struct urb *urb);
633 struct urb *usbd_alloc_urb (struct usb_device_instance *device, struct usb_endpoint_instance *endpo…
[all …]
/third_party/uboot/u-boot-2020.01/drivers/usb/musb/
Dmusb_udc.c100 static struct urb *ep0_urb;
486 struct urb *urb = endpoint->rcv_urb; in musb_peri_ep0_rx() local
487 unsigned int remaining_space = urb->buffer_length - in musb_peri_ep0_rx()
488 urb->actual_length; in musb_peri_ep0_rx()
498 data = (u8 *) urb->buffer_data; in musb_peri_ep0_rx()
499 data += urb->actual_length; in musb_peri_ep0_rx()
647 struct urb *urb = endpoint->rcv_urb; in musb_peri_rx_ep() local
648 unsigned int remaining_space = urb->buffer_length - in musb_peri_rx_ep()
649 urb->actual_length; in musb_peri_rx_ep()
659 data = (u8 *) urb->buffer_data; in musb_peri_rx_ep()
[all …]
/third_party/uboot/u-boot-2020.01/drivers/serial/
Dusbtty.c367 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()
991 int usbtty_cdc_setup(struct usb_device_request *request, struct urb *urb) in usbtty_cdc_setup() argument
1006 memcpy (urb->buffer , &rs232_desc, sizeof(rs232_desc)); in usbtty_cdc_setup()
1007 urb->actual_length = sizeof(rs232_desc); in usbtty_cdc_setup()
Dmcfuart.c115 return readb(&uart->urb); in coldfire_serial_getc()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
DGlobalizationPreferences.java286 UResourceBundle urb = null; in getResourceBundle() local
295 urb = candidate; in getResourceBundle()
308 urb = candidate; in getResourceBundle()
311 if (urb == null) { in getResourceBundle()
313 urb = candidate; in getResourceBundle()
321 if (urb == null) { in getResourceBundle()
325 return urb; in getResourceBundle()
/third_party/uboot/u-boot-2020.01/arch/m68k/include/asm/
Duart.h28 u8 urb; /* 0x0c Receive Buffer */ member
/third_party/uboot/u-boot-2020.01/board/astro/mcf5373l/
Dmcf5373l.c173 return readb(&uart->urb); in astro_get_char()
/third_party/FreeBSD/sys/dev/usb/
Dusb_device.h66 TAILQ_HEAD(, urb) bsd_urb_list;

12