Home
last modified time | relevance | path

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

12

/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_urb.c102 brw->urb.vs_start = 0; in check_urb_layout()
103 brw->urb.gs_start = brw->urb.nr_vs_entries * brw->urb.vsize; in check_urb_layout()
104 brw->urb.clip_start = brw->urb.gs_start + brw->urb.nr_gs_entries * brw->urb.vsize; in check_urb_layout()
105 brw->urb.sf_start = brw->urb.clip_start + brw->urb.nr_clip_entries * brw->urb.vsize; in check_urb_layout()
106 brw->urb.cs_start = brw->urb.sf_start + brw->urb.nr_sf_entries * brw->urb.sfsize; in check_urb_layout()
108 return brw->urb.cs_start + brw->urb.nr_cs_entries * in check_urb_layout()
109 brw->urb.csize <= brw->urb.size; in check_urb_layout()
130 if (brw->urb.vsize < vsize || in brw_calculate_urb_fence()
131 brw->urb.sfsize < sfsize || in brw_calculate_urb_fence()
132 brw->urb.csize < csize || in brw_calculate_urb_fence()
[all …]
Dgen6_urb.c54 int total_urb_size = brw->urb.size * 1024; /* in bytes */ in gen6_upload_urb()
67 if (nr_vs_entries > devinfo->urb.max_entries[MESA_SHADER_VERTEX]) in gen6_upload_urb()
68 nr_vs_entries = devinfo->urb.max_entries[MESA_SHADER_VERTEX]; in gen6_upload_urb()
70 if (nr_gs_entries > devinfo->urb.max_entries[MESA_SHADER_GEOMETRY]) in gen6_upload_urb()
71 nr_gs_entries = devinfo->urb.max_entries[MESA_SHADER_GEOMETRY]; in gen6_upload_urb()
74 brw->urb.nr_vs_entries = ROUND_DOWN_TO(nr_vs_entries, 4); in gen6_upload_urb()
75 brw->urb.nr_gs_entries = ROUND_DOWN_TO(nr_gs_entries, 4); in gen6_upload_urb()
77 assert(brw->urb.nr_vs_entries >= in gen6_upload_urb()
78 devinfo->urb.min_entries[MESA_SHADER_VERTEX]); in gen6_upload_urb()
79 assert(brw->urb.nr_vs_entries % 4 == 0); in gen6_upload_urb()
[all …]
Dgen7_urb.c207 if (brw->urb.vsize == entry_size[MESA_SHADER_VERTEX] && in gen7_upload_urb()
208 brw->urb.gs_present == gs_present && in gen7_upload_urb()
209 brw->urb.gsize == entry_size[MESA_SHADER_GEOMETRY] && in gen7_upload_urb()
210 brw->urb.tess_present == tess_present && in gen7_upload_urb()
211 brw->urb.hsize == entry_size[MESA_SHADER_TESS_CTRL] && in gen7_upload_urb()
212 brw->urb.dsize == entry_size[MESA_SHADER_TESS_EVAL]) { in gen7_upload_urb()
215 brw->urb.vsize = entry_size[MESA_SHADER_VERTEX]; in gen7_upload_urb()
216 brw->urb.gs_present = gs_present; in gen7_upload_urb()
217 brw->urb.gsize = entry_size[MESA_SHADER_GEOMETRY]; in gen7_upload_urb()
218 brw->urb.tess_present = tess_present; in gen7_upload_urb()
[all …]
Dgen4_blorp_exec.h58 vs.URBEntryAllocationSize = brw->urb.vsize - 1; in blorp_emit_vs_state()
60 vs.NumberofURBEntries = brw->urb.nr_vs_entries >> 2; in blorp_emit_vs_state()
62 vs.NumberofURBEntries = brw->urb.nr_vs_entries; in blorp_emit_vs_state()
90 sf.URBEntryAllocationSize = brw->urb.sfsize - 1; in blorp_emit_sf_state()
91 sf.NumberofURBEntries = brw->urb.nr_sf_entries; in blorp_emit_sf_state()
94 sf.MaximumNumberofThreads = MIN2(48, brw->urb.nr_sf_entries) - 1; in blorp_emit_sf_state()
96 sf.MaximumNumberofThreads = MIN2(24, brw->urb.nr_sf_entries) - 1; in blorp_emit_sf_state()
Dgen7_l3_state.c201 if (brw->urb.size != sz) { in update_urb_size()
202 brw->urb.size = sz; in update_urb_size()
209 brw->urb.vsize = 0; in update_urb_size()
210 brw->urb.gsize = 0; in update_urb_size()
211 brw->urb.hsize = 0; in update_urb_size()
212 brw->urb.dsize = 0; in update_urb_size()
Dbrw_curbe.c171 if (brw->urb.csize == 0) { in brw_upload_cs_urb_state()
175 assert(brw->urb.nr_cs_entries); in brw_upload_cs_urb_state()
176 OUT_BATCH((brw->urb.csize - 1) << 4 | brw->urb.nr_cs_entries); in brw_upload_cs_urb_state()
/external/u-boot/drivers/usb/gadget/
Dep0.c60 struct urb *urb, int index, int requesttype) in ep0_get_status() argument
64 urb->actual_length = 2; in ep0_get_status()
65 cp = (char*)urb->buffer; in ep0_get_status()
78 urb->actual_length = 0; in ep0_get_status()
95 static int ep0_get_one (struct usb_device_instance *device, struct urb *urb, in ep0_get_one() argument
98 urb->actual_length = 1; /* XXX 2? */ in ep0_get_one()
99 ((char *) urb->buffer)[0] = result; in ep0_get_one()
111 void copy_config (struct urb *urb, void *data, int max_length, in copy_config() argument
135 /*urb->buffer_length */ max_buf - urb->actual_length) <= 0) { in copy_config()
147 memcpy (urb->buffer + urb->actual_length, data, length); in copy_config()
[all …]
Dcore.c342 struct urb *rcv_urb; in usbd_rcv_complete()
385 struct urb *tx_urb; in usbd_tx_complete()
442 void urb_detach (struct urb *urb) in urb_detach() argument
444 if (urb) { in urb_detach()
445 urb_link *ul = &urb->link; in urb_detach()
474 struct urb *first_urb (urb_link * hd) in first_urb()
481 return (p2surround (struct urb, link, nx)); in first_urb()
489 struct urb *first_urb_detached (urb_link * hd) in first_urb_detached()
491 struct urb *urb; in first_urb_detached() local
492 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.c30 static struct urb *ep0_urb;
262 struct urb *urb = endpoint->tx_urb; in dw_write_noniso_tx_fifo() local
265 if (urb) { in dw_write_noniso_tx_fifo()
269 urb->buffer, urb->buffer_length, urb->actual_length); in dw_write_noniso_tx_fifo()
271 last = min_t(u32, urb->actual_length - endpoint->sent, in dw_write_noniso_tx_fifo()
275 u8 *cp = urb->buffer + endpoint->sent; in dw_write_noniso_tx_fifo()
468 struct urb *urb; in dw_udc_epn_rx() local
472 urb = endpoint->rcv_urb; in dw_udc_epn_rx()
474 if (urb) { in dw_udc_epn_rx()
475 u8 *cp = urb->buffer + urb->actual_length; in dw_udc_epn_rx()
Dep0.h22 int ep0_recv_setup (struct urb *urb);
/external/u-boot/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 …]
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 …]
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_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
/external/mesa3d/src/intel/common/
Dgen_device_info.c40 .urb = {
58 .urb = {
75 .urb = {
95 .urb = {
122 .urb = {
156 .urb = {
184 .urb = {
212 .urb = {
245 .urb = {
272 .urb = {
[all …]
Dgen_urb_config.c95 192 : devinfo->urb.min_entries[MESA_SHADER_VERTEX], in gen_get_urb_config()
110 devinfo->urb.min_entries[MESA_SHADER_TESS_EVAL] : 0, in gen_get_urb_config()
140 DIV_ROUND_UP(devinfo->urb.max_entries[i] * entry_size_bytes[i], in gen_get_urb_config()
185 entries[i] = MIN2(entries[i], devinfo->urb.max_entries[i]); in gen_get_urb_config()
/external/libusb/libusb/os/
Dlinux_usbfs.c1753 struct usbfs_urb *urb; in discard_urbs() local
1757 urb = tpriv->iso_urbs[i]; in discard_urbs()
1759 urb = &tpriv->urbs[i]; in discard_urbs()
1761 if (0 == ioctl(dpriv->fd, IOCTL_USBFS_DISCARDURB, urb)) in discard_urbs()
1784 struct usbfs_urb *urb = tpriv->iso_urbs[i]; in free_iso_urbs() local
1785 if (!urb) in free_iso_urbs()
1787 free(urb); in free_iso_urbs()
1875 struct usbfs_urb *urb = &urbs[i]; in submit_bulk_transfer() local
1876 urb->usercontext = itransfer; in submit_bulk_transfer()
1879 urb->type = USBFS_URB_TYPE_BULK; in submit_bulk_transfer()
[all …]
/external/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);
/external/u-boot/drivers/usb/host/
Dohci-hcd.c209 struct devrequest *setup, urb_priv_t *urb,
249 static void urb_free_priv(urb_priv_t *urb) in urb_free_priv() argument
255 last = urb->length - 1; in urb_free_priv()
258 td = urb->td[i]; in urb_free_priv()
261 urb->td[i] = NULL; in urb_free_priv()
265 free(urb); in urb_free_priv()
508 int sohci_submit_job(ohci_t *ohci, ohci_dev_t *ohci_dev, urb_priv_t *urb, in sohci_submit_job() argument
512 urb_priv_t *purb_priv = urb; in sohci_submit_job()
514 struct usb_device *dev = urb->dev; in sohci_submit_job()
515 unsigned long pipe = urb->pipe; in sohci_submit_job()
[all …]
/external/u-boot/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 …]
/external/walt/android/WALT/app/src/main/jni/
Dsync_clock.c89 struct usbdevfs_urb *urb = calloc(1, sizeof(struct usbdevfs_urb)); in send_char_async() local
90 memset(urb, 0, sizeof(struct usbdevfs_urb)); in send_char_async()
93 urb->status = -1; in send_char_async()
94 urb->buffer = buffer; in send_char_async()
95 urb->buffer_length = length; in send_char_async()
96 urb->endpoint = endpoint; in send_char_async()
97 urb->type = USBDEVFS_URB_TYPE_BULK; in send_char_async()
98 urb->usercontext = label; // This is hackish in send_char_async()
100 res = ioctl(fd, USBDEVFS_SUBMITURB, urb); in send_char_async()
/external/u-boot/drivers/usb/musb/
Dmusb_udc.c101 static struct urb *ep0_urb;
487 struct urb *urb = endpoint->rcv_urb; in musb_peri_ep0_rx() local
488 unsigned int remaining_space = urb->buffer_length - in musb_peri_ep0_rx()
489 urb->actual_length; in musb_peri_ep0_rx()
499 data = (u8 *) urb->buffer_data; in musb_peri_ep0_rx()
500 data += urb->actual_length; in musb_peri_ep0_rx()
648 struct urb *urb = endpoint->rcv_urb; in musb_peri_rx_ep() local
649 unsigned int remaining_space = urb->buffer_length - in musb_peri_rx_ep()
650 urb->actual_length; in musb_peri_rx_ep()
660 data = (u8 *) urb->buffer_data; in musb_peri_rx_ep()
[all …]
/external/u-boot/drivers/serial/
Dusbtty.c365 struct urb *urb);
808 static struct urb *next_urb (struct usb_device_instance *device, in next_urb()
811 struct urb *current_urb = NULL; in next_urb()
820 p2surround (struct urb, link, endpoint->tx.prev); in next_urb()
848 struct urb *current_urb = NULL; in write_buffer()
989 int usbtty_cdc_setup(struct usb_device_request *request, struct urb *urb) in usbtty_cdc_setup() argument
1004 memcpy (urb->buffer , &rs232_desc, sizeof(rs232_desc)); in usbtty_cdc_setup()
1005 urb->actual_length = sizeof(rs232_desc); in usbtty_cdc_setup()

12