/u-boot/drivers/usb/musb-new/ |
A D | pic32.c | 186 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 187 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 188 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, }, 189 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, }, 190 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, }, 191 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, }, 192 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, }, 193 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, }, 194 { .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, }, 195 { .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 512, }, [all …]
|
A D | musb_core.c | 1085 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 1086 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 1195 u16 maxpacket = cfg->maxpacket; in fifo_setup() local 1201 size = ffs(max(maxpacket, (u16) 8)) - 1; in fifo_setup() 1202 maxpacket = 1 << size; in fifo_setup() 1206 if ((offset + (maxpacket << 1)) > in fifo_setup() 1229 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup() 1235 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup() 1241 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup() 1246 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup() [all …]
|
A D | musb_dma.h | 132 u16 maxpacket, u8 mode, 137 u16 maxpacket,
|
A D | musb_host.c | 521 || (rx_count < qh->maxpacket) in musb_host_packet_rx() 627 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program() 698 u16 packet_sz = qh->maxpacket; in musb_ep_program() 796 qh->maxpacket | in musb_ep_program() 913 if (len < qh->maxpacket) { in musb_h_ep0_continue() 1288 if (qh->segsize < qh->maxpacket) in musb_host_tx() 1336 if (length > qh->maxpacket) in musb_host_tx() 1337 length = qh->maxpacket; in musb_host_tx() 1699 > qh->maxpacket) in musb_host_rx() 1747 dma, qh->maxpacket, in musb_host_rx() [all …]
|
A D | musb_host.h | 49 u16 maxpacket; member
|
/u-boot/drivers/usb/gadget/ |
A D | at91_udc.c | 290 u16 maxpacket; in at91_ep_enable() local 298 || maxpacket > ep->maxpacket) { in at91_ep_enable() 315 if (maxpacket > 64) in at91_ep_enable() 319 switch (maxpacket) { in at91_ep_enable() 350 ep->ep.maxpacket = maxpacket; in at91_ep_enable() 378 ep->ep.maxpacket = ep->maxpacket; in at91_ep_disable() 1356 ep->maxpacket = 64; in at91sam9260_udc_init() 1359 ep->maxpacket = 512; in at91sam9260_udc_init() 1396 ep->maxpacket = 8; in at91sam9261_udc_init() 1399 ep->maxpacket = 64; in at91sam9261_udc_init() [all …]
|
A D | ci_udc.c | 117 .maxpacket = 64, 122 .maxpacket = 512, 127 .maxpacket = 512, 132 .maxpacket = 512, 137 .maxpacket = 512, 346 if (ep->maxpacket != max) { in ci_ep_enable() 348 ep->maxpacket, max); in ci_ep_enable() 349 ep->maxpacket = max; in ci_ep_enable() 352 ep_enable(num, in, ep->maxpacket); in ci_ep_enable() 732 ep_enable(num, in, ep->ep.maxpacket); in handle_setup() [all …]
|
A D | fotg210.c | 36 uint maxpacket; member 222 if (len > ep->maxpacket) in fotg210_dma() 223 len = ep->maxpacket; in fotg210_dma() 618 if (len < ep->ep.maxpacket) in fotg210_ep_queue() 627 if (len < ep->ep.maxpacket) in fotg210_ep_queue() 797 .maxpacket = CFG_EP0_MAX_PACKET_SIZE, 806 .maxpacket = CFG_EPX_MAX_PACKET_SIZE, 815 .maxpacket = CFG_EPX_MAX_PACKET_SIZE, 824 .maxpacket = CFG_EPX_MAX_PACKET_SIZE, 833 .maxpacket = CFG_EPX_MAX_PACKET_SIZE, [all …]
|
A D | atmel_usba_udc.c | 35 if (transaction_len > ep->ep.maxpacket) { in next_fifo_transaction() 36 transaction_len = ep->ep.maxpacket; in next_fifo_transaction() 173 unsigned long flags = 0, ept_cfg, maxpacket; in usba_ep_enable() local 178 maxpacket = usb_endpoint_maxp(desc) & 0x7ff; in usba_ep_enable() 184 maxpacket == 0 || in usba_ep_enable() 185 maxpacket > ep->fifo_size) { in usba_ep_enable() 193 if (maxpacket <= 8) in usba_ep_enable() 200 ep->ep.name, ept_cfg, maxpacket); in usba_ep_enable() 252 ep->ep.maxpacket = maxpacket; in usba_ep_enable() 1280 ep->ep.maxpacket = pdata->ep[i].fifo_size; in usba_udc_pdata() [all …]
|
A D | pxa25x_udc.c | 1647 .maxpacket = EP0_FIFO_SIZE, 1659 .maxpacket = BULK_FIFO_SIZE, 1687 .maxpacket = ISO_FIFO_SIZE, 1700 .maxpacket = ISO_FIFO_SIZE, 1714 .maxpacket = INT_FIFO_SIZE, 1756 .maxpacket = ISO_FIFO_SIZE, 1769 .maxpacket = ISO_FIFO_SIZE, 1783 .maxpacket = INT_FIFO_SIZE, 1825 .maxpacket = ISO_FIFO_SIZE, 1838 .maxpacket = ISO_FIFO_SIZE, [all …]
|
A D | dwc2_udc_otg_priv.h | 90 #define ep_maxpacket(EP) ((EP)->ep.maxpacket)
|
A D | epautoconf.c | 128 if (ep->maxpacket < max) in ep_matches() 163 int size = ep->maxpacket; in ep_matches()
|
A D | dwc2_udc_otg.c | 600 dev->ep[0].ep.maxpacket = ep0_fifo_size; in set_max_pktsize() 602 dev->ep[i].ep.maxpacket = ep_fifo_size; in set_max_pktsize() 661 ep->ep.maxpacket = le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)); in dwc2_ep_enable() 672 __func__, _ep->name, ep->stopped, ep->ep.maxpacket); in dwc2_ep_enable() 826 .maxpacket = EP0_FIFO_SIZE, 841 .maxpacket = EP_FIFO_SIZE, 856 .maxpacket = EP_FIFO_SIZE, 871 .maxpacket = EP_FIFO_SIZE,
|
A D | at91_udc.h | 96 unsigned maxpacket:16; member
|
A D | f_fastboot.c | 430 unsigned int maxpacket = usb_endpoint_maxp(ep->desc); in rx_bytes_expected() local 443 rem = rx_remain % maxpacket; in rx_bytes_expected() 445 rx_remain = rx_remain + (maxpacket - rem); in rx_bytes_expected()
|
A D | max3420_udc.c | 124 unsigned int maxpacket; member 256 _ep->maxpacket = usb_endpoint_maxp(desc) & 0x7ff; in max3420_ep_enable() 626 psz = ep->ep_usb.maxpacket; in do_data() 645 if (length < ep->ep_usb.maxpacket) in do_data() 785 ep->ep_usb.maxpacket = EP_MAX_PACKET; in max3420_setup_eps()
|
A D | dwc2_udc_otg_xfer_dma.c | 105 ep_num ? DMA_BUFFER_SIZE : ep->ep.maxpacket); in setdma_rx() 113 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; in setdma_rx() 161 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; in setdma_tx() 240 is_short = !!(xfer_size % ep->ep.maxpacket); in complete_rx() 296 is_short = (xfer_size < ep->ep.maxpacket); in complete_tx() 1132 (ep->ep.maxpacket << DEPCTL_MPS_BIT); in dwc2_udc_ep_activate()
|
A D | f_rockusb.c | 416 unsigned int maxpacket = ep->maxpacket; in rx_bytes_expected() local 423 rem = rx_remain % maxpacket; in rx_bytes_expected() 425 rx_remain = rx_remain + (maxpacket - rem); in rx_bytes_expected()
|
/u-boot/include/linux/usb/ |
A D | musb.h | 46 u16 maxpacket; member 54 .maxpacket = pkt, \
|
A D | gadget.h | 182 unsigned maxpacket:16; member 204 ep->maxpacket = maxpacket_limit; in usb_ep_set_maxpacket_limit()
|
/u-boot/drivers/usb/dwc3/ |
A D | ep0.c | 665 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel() 813 maxp = ep0->endpoint.maxpacket; in dwc3_ep0_complete_data() 852 if (IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data() 943 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data() 946 u32 maxpacket; in __dwc3_ep0_do_control_data() local 955 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 957 transfer_size = (req->request.length / maxpacket) * in __dwc3_ep0_do_control_data() 958 maxpacket; in __dwc3_ep0_do_control_data() 966 maxpacket); in __dwc3_ep0_do_control_data()
|
A D | gadget.c | 212 tmp = mult * (dep->endpoint.maxpacket + mdwidth); in dwc3_gadget_resize_tx_fifos() 975 req->request.length < dep->endpoint.maxpacket) in __dwc3_gadget_ep_queue() 976 req->request.length = dep->endpoint.maxpacket; in __dwc3_gadget_ep_queue() 2172 dwc->gadget.ep0->maxpacket = 512; in dwc3_gadget_conndone_interrupt() 2177 dwc->gadget.ep0->maxpacket = 64; in dwc3_gadget_conndone_interrupt() 2183 dwc->gadget.ep0->maxpacket = 64; in dwc3_gadget_conndone_interrupt() 2188 dwc->gadget.ep0->maxpacket = 8; in dwc3_gadget_conndone_interrupt()
|
/u-boot/drivers/usb/host/ |
A D | r8a66597-hcd.c | 234 u16 pipenum, bufnum, maxpacket; in pipe_buffer_setting() local 239 maxpacket = dev->epmaxpacketin[usb_pipeendpoint(pipe)]; in pipe_buffer_setting() 243 maxpacket = dev->epmaxpacketout[usb_pipeendpoint(pipe)]; in pipe_buffer_setting() 264 maxpacket, PIPEMAXP); in pipe_buffer_setting() 375 int maxpacket = dev->epmaxpacketin[usb_pipeendpoint(pipe)]; in receive_bulk_packet() local 387 (transfer_len + maxpacket - 1) / maxpacket, in receive_bulk_packet()
|
/u-boot/drivers/usb/mtu3/ |
A D | mtu3_core.c | 481 u32 maxpacket = mtu->g.ep0->maxpacket; in mtu3_ep0_setup() local 484 dev_dbg(mtu->dev, "%s maxpacket: %d\n", __func__, maxpacket); in mtu3_ep0_setup() 488 csr |= EP0_MAXPKTSZ(maxpacket); in mtu3_ep0_setup() 634 mtu->g.ep0->maxpacket = maxpkt; in mtu3_link_isr()
|
A D | mtu3_gadget.c | 103 mep->ep.maxpacket = mep->maxp; in mtu3_ep_enable() 261 mreq, ep->maxpacket, mreq->request.length); in mtu3_gadget_queue() 602 mep->ep.maxpacket); in init_hw_ep()
|