Home
last modified time | relevance | path

Searched refs:maxpacket (Results 1 – 25 of 128) sorted by relevance

123456

/Linux-v6.1/drivers/usb/musb/
Dmusb_core.c1279 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
1280 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
1281 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, },
1282 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1283 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
1288 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1289 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1290 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1291 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1292 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
[all …]
Djz4740.c62 { .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, },
163 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
164 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
165 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
166 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, },
167 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, },
168 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, },
169 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, },
[all …]
Dcppi_dma.c563 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 …]
Dmpfs.c32 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
33 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
34 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
35 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, },
36 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, },
37 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, },
38 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 1024, },
39 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 4096, },
Dmediatek.c367 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
368 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
369 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
370 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, },
371 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, },
372 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, },
373 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, },
374 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, },
375 { .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, },
376 { .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 512, },
[all …]
Dmusb_host.c472 || (rx_count < qh->maxpacket) in musb_host_packet_rx()
561 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit()
572 u16 pkt_size = qh->maxpacket; in musb_tx_dma_set_mode_mentor()
624 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program()
674 u16 packet_sz = qh->maxpacket; in musb_ep_program()
783 qh->maxpacket | in musb_ep_program()
992 if (len < qh->maxpacket) { in musb_h_ep0_continue()
1018 fifo_count = min_t(size_t, qh->maxpacket, in musb_h_ep0_continue()
1376 if (qh->segsize < qh->maxpacket) in musb_host_tx()
1424 if (length > qh->maxpacket) in musb_host_tx()
[all …]
Dmusb_dma.h166 u16 maxpacket, u8 mode,
171 u16 maxpacket,
/Linux-v6.1/drivers/usb/gadget/udc/aspeed-vhub/
Depn.c52 if (chunk > ep->ep.maxpacket) in ast_vhub_epn_kick()
53 chunk = ep->ep.maxpacket; in ast_vhub_epn_kick()
54 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) in ast_vhub_epn_kick()
129 if (len < ep->ep.maxpacket) in ast_vhub_epn_handle_ack()
199 if (!chunk || !req->req.zero || (chunk % ep->ep.maxpacket) != 0) in ast_vhub_epn_kick_desc()
288 CHECK(ep, is_last_desc == (len < ep->ep.maxpacket || in ast_vhub_epn_handle_ack_desc()
294 req->req.zero, ep->ep.maxpacket); in ast_vhub_epn_handle_ack_desc()
373 (ep->epn.is_in || !(u_req->length & (u_ep->maxpacket - 1))))) { in ast_vhub_epn_queue()
599 u16 maxpacket, type; in ast_vhub_epn_enable() local
607 maxpacket = usb_endpoint_maxp(desc); in ast_vhub_epn_enable()
[all …]
Dep0.c204 if (chunk > ep->ep.maxpacket) in ast_vhub_ep0_do_send()
205 chunk = ep->ep.maxpacket; in ast_vhub_ep0_do_send()
206 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) in ast_vhub_ep0_do_send()
210 chunk, req->last_desc, req->req.actual, ep->ep.maxpacket); in ast_vhub_ep0_do_send()
256 if (len < ep->ep.maxpacket && len != remain) { in ast_vhub_ep0_do_receive()
266 if (len < ep->ep.maxpacket || len == remain) { in ast_vhub_ep0_do_receive()
/Linux-v6.1/drivers/usb/gadget/udc/
Dlpc32xx_udc.c105 u32 maxpacket; member
479 ep->ep.name, ep->ep.maxpacket, in proc_ep_show()
822 u32 maxpacket) in udc_realize_hwep() argument
830 writel(maxpacket, USBD_EPMAXPSIZE(udc->udp_baseaddr)); in udc_realize_hwep()
992 if (req->req.length % ep->ep.maxpacket) in udc_ep_in_req_dma()
1075 udc_realize_hwep(udc, i, ep->ep.maxpacket); in udc_enable()
1388 usb_ep_set_maxpacket_limit(&ep->ep, ep->maxpacket); in udc_reinit()
1459 } else if (ts > ep0->ep.maxpacket) in udc_ep0_in_req()
1460 ts = ep0->ep.maxpacket; /* Just send what we can */ in udc_ep0_in_req()
1468 if (tsend >= ep0->ep.maxpacket) in udc_ep0_in_req()
[all …]
Dat91_udc.c124 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 …]
Daspeed_udc.c344 u16 maxpacket = usb_endpoint_maxp(desc); in ast_udc_ep_enable() local
354 maxpacket == 0 || maxpacket > ep->ep.maxpacket) { in ast_udc_ep_enable()
364 EP_DBG(ep, "maxpacket:0x%x\n", maxpacket); in ast_udc_ep_enable()
370 ep->ep.maxpacket = maxpacket; in ast_udc_ep_enable()
373 if (maxpacket < AST_UDC_EPn_MAX_PACKET) in ast_udc_ep_enable()
374 ep_conf = EP_SET_MAX_PKT(maxpacket); in ast_udc_ep_enable()
536 tx_len = last > ep->ep.maxpacket ? ep->ep.maxpacket : last; in ast_udc_epn_kick()
590 tx_len = last > ep->ep.maxpacket ? ep->ep.maxpacket : last; in ast_udc_ep0_queue()
804 if ((rx_len < ep->ep.maxpacket) || in ast_udc_ep0_out()
885 if (len < ep->ep.maxpacket) { in ast_udc_epn_handle()
[all …]
Dpxa25x_udc.c459 ep->ep.maxpacket = usb_endpoint_maxp (desc); in pxa25x_ep_enable()
744 is_short = (count < ep->ep.maxpacket); in read_fifo()
1399 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); in udc_reinit()
2032 .maxpacket = EP0_FIFO_SIZE,
2046 .maxpacket = BULK_FIFO_SIZE,
2061 .maxpacket = BULK_FIFO_SIZE,
2078 .maxpacket = ISO_FIFO_SIZE,
2093 .maxpacket = ISO_FIFO_SIZE,
2109 .maxpacket = INT_FIFO_SIZE,
2125 .maxpacket = BULK_FIFO_SIZE,
[all …]
Dsnps_udc_core.c326 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 …]
Ds3c2410_udc.c324 count = s3c2410_udc_write_packet(fifo_reg, req, ep->ep.maxpacket); in s3c2410_udc_write_fifo()
327 if (count != ep->ep.maxpacket) in s3c2410_udc_write_fifo()
444 if (fifo_count > ep->ep.maxpacket) in s3c2410_udc_read_fifo()
445 avail = ep->ep.maxpacket; in s3c2410_udc_read_fifo()
454 if (idx != 0 && fifo_count < ep->ep.maxpacket) { in s3c2410_udc_read_fifo()
889 udc_write((dev->ep[0].ep.maxpacket & 0x7ff) >> 3, in s3c2410_udc_irq()
1026 _ep->maxpacket = max; in s3c2410_udc_ep_enable()
1579 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); in s3c2410_udc_reinit()
1598 udc_write((dev->ep[i].ep.maxpacket & 0x7ff) >> 3, in s3c2410_udc_enable()
1661 .maxpacket = EP0_FIFO_SIZE,
[all …]
Dtrace.h144 __field(unsigned, maxpacket)
156 __entry->maxpacket = ep->maxpacket;
167 __get_str(name), __entry->maxpacket, __entry->maxpacket_limit,
Dudc-xilinx.c150 u16 maxpacket; member
290 (ep->ep_usb.maxpacket << 15) | (ep->rambase)); in xudc_epconfig()
403 ep->ep_usb.maxpacket); in xudc_dma_send()
453 ep->rambase + ep->ep_usb.maxpacket); in xudc_dma_receive()
518 ep->ep_usb.maxpacket); in xudc_eptxrx()
612 is_short = count < ep->ep_usb.maxpacket; in xudc_read_fifo()
810 u16 maxpacket; in __xudc_ep_enable() local
818 ep->ep_usb.maxpacket = maxpacket = le16_to_cpu(desc->wMaxPacketSize); in __xudc_ep_enable()
829 if (maxpacket > 64) { in __xudc_ep_enable()
830 dev_dbg(udc->dev, "bogus maxpacket %d\n", maxpacket); in __xudc_ep_enable()
[all …]
Domap_udc.c157 || ep->maxpacket < usb_endpoint_maxp(desc)) { in omap_ep_enable()
163 && maxp != ep->maxpacket) in omap_ep_enable()
164 || usb_endpoint_maxp(desc) > ep->maxpacket in omap_ep_enable()
204 ep->ep.maxpacket = maxp; in omap_ep_enable()
252 ep->ep.maxpacket = ep->maxpacket; in omap_ep_disable()
372 count = ep->ep.maxpacket; in write_fifo()
378 if (count != ep->ep.maxpacket) in write_fifo()
441 avail = ep->ep.maxpacket; in read_fifo()
449 if (count < ep->ep.maxpacket) { in read_fifo()
527 || (cpu_is_omap15xx() && length < ep->maxpacket)) { in next_in_dma()
[all …]
/Linux-v6.1/drivers/net/usb/
Dint51x1.c65 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()
/Linux-v6.1/drivers/usb/dwc3/
Dep0.c755 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel()
888 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data()
983 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
988 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data()
990 u32 maxpacket; in __dwc3_ep0_do_control_data() local
998 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
999 rem = req->request.length % maxpacket; in __dwc3_ep0_do_control_data()
1012 maxpacket - rem, in __dwc3_ep0_do_control_data()
1016 } else if (IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data()
1033 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
Dtrace.h296 __field(unsigned int, maxpacket)
307 __entry->maxpacket = dep->endpoint.maxpacket;
317 __get_str(name), __entry->maxpacket,
/Linux-v6.1/include/linux/usb/
Dmusb.h41 u16 maxpacket; member
49 .maxpacket = pkt, \
/Linux-v6.1/include/net/
Dcodel_impl.h71 stats->maxpacket = 0; in codel_stats_init()
125 if (unlikely(skb_len > stats->maxpacket)) in codel_should_drop()
126 stats->maxpacket = skb_len; in codel_should_drop()
/Linux-v6.1/drivers/usb/isp1760/
Disp1760-udc.c283 __func__, req, req->req.actual, req->req.length, ep->maxpacket, in isp1760_udc_receive()
292 if (req->req.actual == req->req.length || len < ep->maxpacket) { in isp1760_udc_receive()
308 ep->maxpacket); in isp1760_udc_transmit()
415 !(req->req.length % ep->maxpacket) && in isp1760_ep_tx_complete()
420 req, req->req.actual, req->req.length, ep->maxpacket, in isp1760_ep_tx_complete()
790 le16_to_cpu(desc->wMaxPacketSize) > ep->maxpacket) { in isp1760_ep_enable()
795 le16_to_cpu(desc->wMaxPacketSize), ep->maxpacket); in isp1760_ep_enable()
819 uep->maxpacket = le16_to_cpu(desc->wMaxPacketSize); in isp1760_ep_enable()
826 isp1760_udc_write(udc, DC_FFOSZ, uep->maxpacket); in isp1760_ep_enable()
827 isp1760_udc_write(udc, DC_BUFLEN, uep->maxpacket); in isp1760_ep_enable()
[all …]
/Linux-v6.1/drivers/usb/host/
Dehci-q.c38 size_t len, int token, int maxpacket) in qtd_fill() argument
69 count -= (count % maxpacket); in qtd_fill()
584 int len, this_sg_len, maxpacket; in qh_urb_transaction() local
648 maxpacket = usb_endpoint_maxp(&urb->ep->desc); in qh_urb_transaction()
659 maxpacket); in qh_urb_transaction()
673 if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0) in qh_urb_transaction()
716 && !(urb->transfer_buffer_length % maxpacket)) { in qh_urb_transaction()
1180 int len, maxpacket; in ehci_submit_single_step_set_feature() local
1221 maxpacket = usb_endpoint_maxp(&urb->ep->desc); in ehci_submit_single_step_set_feature()
1223 qtd_fill(ehci, qtd, buf, len, token, maxpacket); in ehci_submit_single_step_set_feature()

123456