/u-boot/drivers/usb/musb-new/ |
H 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 [all...] |
H A D | musb_core.c | 1086 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 1087 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 1088 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, }, 1089 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1090 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, 1095 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1096 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1097 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1098 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1099 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket 1196 u16 maxpacket = cfg->maxpacket; local [all...] |
H A D | musb_dma.h | 132 u16 maxpacket, u8 mode, 137 u16 maxpacket,
|
H A D | musb_host.h | 49 u16 maxpacket; member in struct:musb_qh
|
H A D | musb_host.c | 521 || (rx_count < qh->maxpacket) 608 /* NOTE: bulk combining rewrites high bits of maxpacket */ 616 qh->maxpacket | ((qh->hb_mult - 1) << 11)); 627 u16 pkt_size = qh->maxpacket; 698 u16 packet_sz = qh->maxpacket; 796 qh->maxpacket | 913 if (len < qh->maxpacket) { 939 fifo_count = min_t(size_t, qh->maxpacket, 1288 if (qh->segsize < qh->maxpacket) 1336 if (length > qh->maxpacket) [all...] |
/u-boot/include/linux/usb/ |
H A D | musb.h | 46 u16 maxpacket; member in struct:musb_fifo_cfg 54 .maxpacket = pkt, \
|
H A D | gadget.h | 156 * @maxpacket:The maximum packet size used on this endpoint. The initial 161 * should not be changed. Should not be confused with maxpacket. 182 unsigned maxpacket:16; member in struct:usb_ep 204 ep->maxpacket = maxpacket_limit; 322 * larger than the endpoint's maxpacket size. They may also treat data
|
/u-boot/drivers/usb/gadget/ |
H A D | at91_udc.c | 146 if (count > ep->ep.maxpacket) 147 count = ep->ep.maxpacket; 170 is_done = (count < ep->ep.maxpacket); 234 if (ep->ep.maxpacket < total) { 235 count = ep->ep.maxpacket; 239 is_last = (count < ep->ep.maxpacket) || !req->req.zero; 291 u16 maxpacket; local 298 || (maxpacket = usb_endpoint_maxp(desc)) == 0 299 || maxpacket > ep->maxpacket) { [all...] |
H A D | dwc2_udc_otg_priv.h | 90 #define ep_maxpacket(EP) ((EP)->ep.maxpacket)
|
H A D | ci_udc.c | 118 .maxpacket = 64, 123 .maxpacket = 512, 128 .maxpacket = 512, 133 .maxpacket = 512, 138 .maxpacket = 512, 312 static void ep_enable(int num, int in, int maxpacket) argument 326 head->config = CFG_MAX_PKT(maxpacket) | CFG_ZLT; 347 if (ep->maxpacket != max) { 349 ep->maxpacket, max); 350 ep->maxpacket [all...] |
H A D | epautoconf.c | 108 /* endpoint maxpacket size is an input parameter, except for bulk 110 * the usb spec fixes high speed bulk maxpacket at 512 bytes. 122 if (ep->maxpacket < max) 155 /* report (variable) full speed bulk maxpacket */ 157 int size = ep->maxpacket;
|
H A D | atmel_usba_udc.c | 36 if (transaction_len > ep->ep.maxpacket) { 37 transaction_len = ep->ep.maxpacket; 39 } else if (transaction_len == ep->ep.maxpacket && req->req.zero) { 170 unsigned long flags = 0, ept_cfg, maxpacket; local 175 maxpacket = usb_endpoint_maxp(desc) & 0x7ff; 181 maxpacket == 0 || 182 maxpacket > ep->fifo_size) { 190 if (maxpacket <= 8) 194 ept_cfg = USBA_BF(EPT_SIZE, fls(maxpacket - 1) - 3); 196 DBG(DBG_HW, "%s: EPT_SIZE = %lu (maxpacket [all...] |
H A D | at91_udc.h | 96 unsigned maxpacket:16; member in struct:at91_ep
|
H A D | dwc2_udc_otg.c | 609 dev->ep[0].ep.maxpacket = ep0_fifo_size; 611 dev->ep[i].ep.maxpacket = ep_fifo_size; 656 debug("%s: bad %s maxpacket\n", __func__, _ep->name); 671 ep->ep.maxpacket = le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)); 681 debug("%s: enabled %s, stopped = %d, maxpacket = %d\n", 682 __func__, _ep->name, ep->stopped, ep->ep.maxpacket); 838 .maxpacket = EP0_FIFO_SIZE, 853 .maxpacket = EP_FIFO_SIZE, 868 .maxpacket = EP_FIFO_SIZE, 883 .maxpacket [all...] |
H A D | f_fastboot.c | 37 * EP_BUFFER_SIZE must always be an integral multiple of maxpacket size 39 * that expect bulk OUT requests to be divisible by maxpacket size. 433 unsigned int maxpacket = usb_endpoint_maxp(ep->desc); local 442 * not ending in maxpacket boundary. So just make them happy by 446 rem = rx_remain % maxpacket; 448 rx_remain = rx_remain + (maxpacket - rem);
|
H A D | max3420_udc.c | 124 unsigned int maxpacket; member in struct:max3420_ep 256 _ep->maxpacket = usb_endpoint_maxp(desc) & 0x7ff; 626 psz = ep->ep_usb.maxpacket; 645 if (length < ep->ep_usb.maxpacket) 785 ep->ep_usb.maxpacket = EP_MAX_PACKET;
|
H A D | dwc2_udc_otg_xfer_dma.c | 105 ep_num ? DMA_BUFFER_SIZE : ep->ep.maxpacket); 113 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; 161 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; 240 is_short = !!(xfer_size % ep->ep.maxpacket); 296 is_short = (xfer_size < ep->ep.maxpacket); 1132 (ep->ep.maxpacket << DEPCTL_MPS_BIT);
|
H A D | f_rockusb.c | 415 unsigned int maxpacket = ep->maxpacket; local 422 rem = rx_remain % maxpacket; 424 rx_remain = rx_remain + (maxpacket - rem);
|
H A D | ether.c | 811 /* maxpacket and other transfer characteristics vary by speed. */ 1255 device_desc.bMaxPacketSize0 = gadget->ep0->maxpacket; 1457 && (value % gadget->ep0->maxpacket) == 0; 1483 * so allow up to (N*maxpacket), since that memory is normally 1485 * reads (e.g. DMA must be N*maxpacket), so for now don't trim a 1498 size += dev->out_ep->maxpacket - 1; 1501 size -= size % dev->out_ep->maxpacket; 1695 if (!dev->zlp && (length % dev->in_ep->maxpacket) == 0) 2353 if (!dev->zlp && (length % dev->in_ep->maxpacket) == 0)
|
/u-boot/drivers/usb/dwc3/ |
H A D | ep0.c | 665 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; 813 maxp = ep0->endpoint.maxpacket; 852 if (IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && 943 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && 946 u32 maxpacket; local 955 maxpacket = dep->endpoint.maxpacket; 957 transfer_size = (req->request.length / maxpacket) * 958 maxpacket; 966 maxpacket); [all...] |
H A D | gadget.c | 213 tmp = mult * (dep->endpoint.maxpacket + mdwidth); 1013 * DWC3 hangs on OUT requests smaller than maxpacket size, 1017 req->request.length < dep->endpoint.maxpacket) 1018 req->request.length = dep->endpoint.maxpacket; 2214 dwc->gadget.ep0->maxpacket = 512; 2219 dwc->gadget.ep0->maxpacket = 64; 2225 dwc->gadget.ep0->maxpacket = 64; 2230 dwc->gadget.ep0->maxpacket = 8;
|
/u-boot/drivers/usb/host/ |
H A D | r8a66597-hcd.c | 206 u16 pipenum, bufnum, maxpacket; local 211 maxpacket = dev->epmaxpacketin[usb_pipeendpoint(pipe)]; 215 maxpacket = dev->epmaxpacketout[usb_pipeendpoint(pipe)]; 236 maxpacket, PIPEMAXP); 347 int maxpacket = dev->epmaxpacketin[usb_pipeendpoint(pipe)]; local 359 (transfer_len + maxpacket - 1) / maxpacket,
|
/u-boot/drivers/usb/mtu3/ |
H A D | mtu3_core.c | 481 u32 maxpacket = mtu->g.ep0->maxpacket; local 484 dev_dbg(mtu->dev, "%s maxpacket: %d\n", __func__, maxpacket); 488 csr |= EP0_MAXPKTSZ(maxpacket); 634 mtu->g.ep0->maxpacket = maxpkt;
|
H A D | mtu3_gadget.c | 103 mep->ep.maxpacket = mep->maxp; 261 mreq, ep->maxpacket, mreq->request.length); 590 /* initialize maxpacket as SS */ 602 mep->ep.maxpacket);
|
/u-boot/drivers/usb/cdns3/ |
H A D | ep0.c | 794 (request->length % ep->maxpacket == 0)) 861 priv_dev->gadget.ep0->maxpacket = max_packet_size;
|