| /OK3568_Linux_fs/u-boot/drivers/usb/musb-new/ |
| H A D | musb_core.c | 1078 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 1079 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 1080 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, }, 1081 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1082 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, 1087 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1088 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1089 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1090 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1091 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, [all …]
|
| H A D | pic32.c | 182 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 183 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 184 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, }, 185 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, }, 186 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, }, 187 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, }, 188 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, }, 189 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, }, 190 { .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, }, 191 { .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 512, }, [all …]
|
| H A D | musb_dma.h | 133 u16 maxpacket, u8 mode, 138 u16 maxpacket,
|
| H A D | musb_host.c | 517 || (rx_count < qh->maxpacket) in musb_host_packet_rx() 612 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit() 623 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program() 694 u16 packet_sz = qh->maxpacket; in musb_ep_program() 792 qh->maxpacket | in musb_ep_program() 909 if (len < qh->maxpacket) { in musb_h_ep0_continue() 935 fifo_count = min_t(size_t, qh->maxpacket, in musb_h_ep0_continue() 1284 if (qh->segsize < qh->maxpacket) in musb_host_tx() 1332 if (length > qh->maxpacket) in musb_host_tx() 1333 length = qh->maxpacket; in musb_host_tx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/musb/ |
| H A D | musb_core.c | 1278 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 1279 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 1280 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, }, 1281 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1282 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, 1287 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1288 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1289 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1290 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1291 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, [all …]
|
| H A D | jz4740.c | 62 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 63 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 64 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 64, }, 167 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 168 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 169 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, }, 170 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, }, 171 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, }, 172 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, }, 173 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, }, [all …]
|
| H A D | cppi_dma.c | 563 unsigned maxpacket = tx->maxpacket; in cppi_next_tx_segment() local 577 rndis = (maxpacket & 0x3f) == 0 in cppi_next_tx_segment() 578 && length > maxpacket in cppi_next_tx_segment() 580 && (length % maxpacket) != 0; in cppi_next_tx_segment() 583 maxpacket = length; in cppi_next_tx_segment() 587 n_bds = DIV_ROUND_UP(length, maxpacket); in cppi_next_tx_segment() 591 length = min(n_bds * maxpacket, length); in cppi_next_tx_segment() 596 maxpacket, in cppi_next_tx_segment() 632 if ((tx->offset + maxpacket) <= tx->buf_len) { in cppi_next_tx_segment() 633 tx->offset += maxpacket; in cppi_next_tx_segment() [all …]
|
| H A D | mediatek.c | 419 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 420 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 421 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, }, 422 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, }, 423 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, }, 424 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, }, 425 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, }, 426 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, }, 427 { .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, }, 428 { .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 512, }, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/aspeed-vhub/ |
| H A D | epn.c | 57 if (chunk > ep->ep.maxpacket) in ast_vhub_epn_kick() 58 chunk = ep->ep.maxpacket; in ast_vhub_epn_kick() 59 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) in ast_vhub_epn_kick() 134 if (len < ep->ep.maxpacket) in ast_vhub_epn_handle_ack() 204 if (!chunk || !req->req.zero || (chunk % ep->ep.maxpacket) != 0) in ast_vhub_epn_kick_desc() 293 CHECK(ep, is_last_desc == (len < ep->ep.maxpacket || in ast_vhub_epn_handle_ack_desc() 299 req->req.zero, ep->ep.maxpacket); in ast_vhub_epn_handle_ack_desc() 378 (ep->epn.is_in || !(u_req->length & (u_ep->maxpacket - 1))))) { in ast_vhub_epn_queue() 602 u16 maxpacket, type; in ast_vhub_epn_enable() local 610 maxpacket = usb_endpoint_maxp(desc); in ast_vhub_epn_enable() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/ |
| H A D | lpc32xx_udc.c | 105 u32 maxpacket; member 480 ep->ep.name, ep->ep.maxpacket, in proc_ep_show() 823 u32 maxpacket) in udc_realize_hwep() argument 831 writel(maxpacket, USBD_EPMAXPSIZE(udc->udp_baseaddr)); in udc_realize_hwep() 993 if (req->req.length % ep->ep.maxpacket) in udc_ep_in_req_dma() 1076 udc_realize_hwep(udc, i, ep->ep.maxpacket); in udc_enable() 1389 usb_ep_set_maxpacket_limit(&ep->ep, ep->maxpacket); in udc_reinit() 1460 } else if (ts > ep0->ep.maxpacket) in udc_ep0_in_req() 1461 ts = ep0->ep.maxpacket; /* Just send what we can */ in udc_ep0_in_req() 1469 if (tsend >= ep0->ep.maxpacket) in udc_ep0_in_req() [all …]
|
| H A D | at91_udc.c | 124 ep->ep.name, ep->ep.maxpacket, in proc_ep_show() 331 if (count > ep->ep.maxpacket) in read_fifo() 332 count = ep->ep.maxpacket; in read_fifo() 355 is_done = (count < ep->ep.maxpacket); in read_fifo() 419 if (ep->ep.maxpacket < total) { in write_fifo() 420 count = ep->ep.maxpacket; in write_fifo() 424 is_last = (count < ep->ep.maxpacket) || !req->req.zero; in write_fifo() 476 u16 maxpacket; in at91_ep_enable() local 483 || (maxpacket = usb_endpoint_maxp(desc)) == 0 in at91_ep_enable() 484 || maxpacket > ep->maxpacket) { in at91_ep_enable() [all …]
|
| H A D | pxa25x_udc.c | 463 ep->ep.maxpacket = usb_endpoint_maxp (desc); in pxa25x_ep_enable() 748 is_short = (count < ep->ep.maxpacket); in read_fifo() 1400 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); in udc_reinit() 2036 .maxpacket = EP0_FIFO_SIZE, 2050 .maxpacket = BULK_FIFO_SIZE, 2065 .maxpacket = BULK_FIFO_SIZE, 2082 .maxpacket = ISO_FIFO_SIZE, 2097 .maxpacket = ISO_FIFO_SIZE, 2113 .maxpacket = INT_FIFO_SIZE, 2129 .maxpacket = BULK_FIFO_SIZE, [all …]
|
| H A D | udc-xilinx.c | 149 u16 maxpacket; member 287 (ep->ep_usb.maxpacket << 15) | (ep->rambase)); in xudc_epconfig() 400 ep->ep_usb.maxpacket); in xudc_dma_send() 450 ep->rambase + ep->ep_usb.maxpacket); in xudc_dma_receive() 515 ep->ep_usb.maxpacket); in xudc_eptxrx() 609 is_short = count < ep->ep_usb.maxpacket; in xudc_read_fifo() 807 u16 maxpacket; in __xudc_ep_enable() local 815 ep->ep_usb.maxpacket = maxpacket = le16_to_cpu(desc->wMaxPacketSize); in __xudc_ep_enable() 826 if (maxpacket > 64) { in __xudc_ep_enable() 827 dev_dbg(udc->dev, "bogus maxpacket %d\n", maxpacket); in __xudc_ep_enable() [all …]
|
| H A D | snps_udc_core.c | 326 unsigned maxpacket; in udc_ep_enable() local 353 maxpacket = usb_endpoint_maxp(desc); in udc_ep_enable() 355 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_EP_MAX_PKT_SIZE); in udc_ep_enable() 356 ep->ep.maxpacket = maxpacket; in udc_ep_enable() 370 maxpacket * UDC_EPIN_BUFF_SIZE_MULT in udc_ep_enable() 390 tmp = AMD_ADDBITS(tmp, maxpacket, in udc_ep_enable() 407 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_CSR_NE_MAX_PKT); in udc_ep_enable() 661 bytes = ep->ep.maxpacket; in udc_txfifo_write() 731 if ((buf_space % ep->ep.maxpacket) != 0) { in udc_rxfifo_read() 742 if (((bytes % ep->ep.maxpacket) != 0) || (!bytes) in udc_rxfifo_read() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/usb/gadget/ |
| H A D | at91_udc.c | 143 if (count > ep->ep.maxpacket) in read_fifo() 144 count = ep->ep.maxpacket; in read_fifo() 167 is_done = (count < ep->ep.maxpacket); in read_fifo() 231 if (ep->ep.maxpacket < total) { in write_fifo() 232 count = ep->ep.maxpacket; in write_fifo() 236 is_last = (count < ep->ep.maxpacket) || !req->req.zero; in write_fifo() 288 u16 maxpacket; in at91_ep_enable() local 295 || (maxpacket = usb_endpoint_maxp(desc)) == 0 in at91_ep_enable() 296 || maxpacket > ep->maxpacket) { in at91_ep_enable() 313 if (maxpacket > 64) in at91_ep_enable() [all …]
|
| H A D | ci_udc.c | 111 .maxpacket = 64, 116 .maxpacket = 512, 121 .maxpacket = 512, 126 .maxpacket = 512, 131 .maxpacket = 512, 304 static void ep_enable(int num, int in, int maxpacket) in ep_enable() argument 318 head->config = CONFIG_MAX_PKT(maxpacket) | CONFIG_ZLT; in ep_enable() 338 if (ep->maxpacket != max) { in ci_ep_enable() 340 ep->maxpacket, max); in ci_ep_enable() 341 ep->maxpacket = max; in ci_ep_enable() [all …]
|
| H A D | fotg210.c | 34 uint maxpacket; member 220 if (len > ep->maxpacket) in fotg210_dma() 221 len = ep->maxpacket; in fotg210_dma() 486 if (len < ep->ep.maxpacket || req->req.length <= req->req.actual) { in fotg210_recv() 616 if (len < ep->ep.maxpacket) in fotg210_ep_queue() 625 if (len < ep->ep.maxpacket) in fotg210_ep_queue() 795 .maxpacket = CFG_EP0_MAX_PACKET_SIZE, 804 .maxpacket = CFG_EPX_MAX_PACKET_SIZE, 813 .maxpacket = CFG_EPX_MAX_PACKET_SIZE, 822 .maxpacket = CFG_EPX_MAX_PACKET_SIZE, [all …]
|
| H 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() 38 } else if (transaction_len == ep->ep.maxpacket && req->req.zero) { 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() 197 ept_cfg = USBA_BF(EPT_SIZE, fls(maxpacket - 1) - 3); in usba_ep_enable() 200 ep->ep.name, ept_cfg, maxpacket); in usba_ep_enable() [all …]
|
| H A D | pxa25x_udc.c | 336 ep->ep.maxpacket = le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)); in pxa25x_ep_enable() 630 is_short = (count < ep->ep.maxpacket); in read_fifo() 1644 .maxpacket = EP0_FIFO_SIZE, 1656 .maxpacket = BULK_FIFO_SIZE, 1669 .maxpacket = BULK_FIFO_SIZE, 1684 .maxpacket = ISO_FIFO_SIZE, 1697 .maxpacket = ISO_FIFO_SIZE, 1711 .maxpacket = INT_FIFO_SIZE, 1726 .maxpacket = BULK_FIFO_SIZE, 1739 .maxpacket = BULK_FIFO_SIZE, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/host/ |
| H A D | imx21-hcd.c | 215 int etd_num, struct urb *urb, u8 dir, u16 maxpacket) in setup_etd_dword0() argument 224 ((u32) maxpacket << DW0_MAXPKTSIZ)); in setup_etd_dword0() 397 u32 maxpacket = etd_readl(imx21, etd_num, 1) >> DW1_YBUFSRTAD; in activate_queued_etd() local 403 ((dmem_offset + maxpacket) << DW1_YBUFSRTAD) | dmem_offset); in activate_queued_etd() 738 u16 maxpacket; in imx21_hc_urb_enqueue_isoc() local 778 maxpacket = usb_maxpacket(urb->dev, urb->pipe, usb_pipeout(urb->pipe)); in imx21_hc_urb_enqueue_isoc() 782 if (etd->dmem_size > 0 && etd->dmem_size < maxpacket) { in imx21_hc_urb_enqueue_isoc() 785 etd->dmem_size, maxpacket); in imx21_hc_urb_enqueue_isoc() 791 etd->dmem_offset = alloc_dmem(imx21, maxpacket, ep); in imx21_hc_urb_enqueue_isoc() 797 etd->dmem_size = maxpacket; in imx21_hc_urb_enqueue_isoc() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/dwc3/ |
| H A D | ep0.c | 766 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel() 900 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data() 995 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 1000 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data() 1002 u32 maxpacket; in __dwc3_ep0_do_control_data() local 1010 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 1011 rem = req->request.length % maxpacket; in __dwc3_ep0_do_control_data() 1024 maxpacket - rem, in __dwc3_ep0_do_control_data() 1028 } else if (IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data() 1045 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
|
| /OK3568_Linux_fs/kernel/drivers/net/usb/ |
| H A D | int51x1.c | 65 if ((pack_with_header_len) < dev->maxpacket) in int51x1_tx_fixup() 66 need_tail = dev->maxpacket - pack_with_header_len + 1; in int51x1_tx_fixup() 72 else if (!(pack_with_header_len % dev->maxpacket)) in int51x1_tx_fixup()
|
| /OK3568_Linux_fs/u-boot/drivers/usb/dwc3/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/drivers/usb/isp1760/ |
| H A D | isp1760-udc.c | 225 __func__, req, req->req.actual, req->req.length, ep->maxpacket, in isp1760_udc_receive() 234 if (req->req.actual == req->req.length || len < ep->maxpacket) { in isp1760_udc_receive() 250 ep->maxpacket); in isp1760_udc_transmit() 357 !(req->req.length % ep->maxpacket) && in isp1760_ep_tx_complete() 362 req, req->req.actual, req->req.length, ep->maxpacket, in isp1760_ep_tx_complete() 724 le16_to_cpu(desc->wMaxPacketSize) > ep->maxpacket) { in isp1760_ep_enable() 729 le16_to_cpu(desc->wMaxPacketSize), ep->maxpacket); in isp1760_ep_enable() 753 uep->maxpacket = le16_to_cpu(desc->wMaxPacketSize); in isp1760_ep_enable() 759 isp1760_udc_write(udc, DC_EPMAXPKTSZ, uep->maxpacket); in isp1760_ep_enable() 760 isp1760_udc_write(udc, DC_BUFLEN, uep->maxpacket); in isp1760_ep_enable() [all …]
|
| /OK3568_Linux_fs/kernel/include/net/ |
| H A D | codel_impl.h | 67 stats->maxpacket = 0; in codel_stats_init() 121 if (unlikely(skb_len > stats->maxpacket)) in codel_should_drop() 122 stats->maxpacket = skb_len; in codel_should_drop()
|