Home
last modified time | relevance | path

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

123456

/linux-6.12.1/drivers/usb/musb/
Dmusb_core.c1274 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
1275 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
1276 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, },
1277 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1278 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
1283 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1284 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1285 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1286 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1287 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
[all …]
Djz4740.c63 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
64 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
65 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 64, },
209 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
210 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
211 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
212 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, },
213 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, },
214 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, },
215 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, },
[all …]
Dmediatek.c369 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
370 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
371 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
372 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, },
373 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, },
374 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, },
375 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, },
376 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, },
377 { .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, },
378 { .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 512, },
[all …]
Dmpfs.c33 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
34 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
35 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
36 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, },
37 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, },
38 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, },
39 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 1024, },
40 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 4096, },
Dmusb_host.c478 || (rx_count < qh->maxpacket) in musb_host_packet_rx()
567 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit()
578 u16 pkt_size = qh->maxpacket; in musb_tx_dma_set_mode_mentor()
630 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program()
680 u16 packet_sz = qh->maxpacket; in musb_ep_program()
789 qh->maxpacket | in musb_ep_program()
998 if (len < qh->maxpacket) { in musb_h_ep0_continue()
1024 fifo_count = min_t(size_t, qh->maxpacket, in musb_h_ep0_continue()
1382 if (qh->segsize < qh->maxpacket) in musb_host_tx()
1430 if (length > qh->maxpacket) in musb_host_tx()
[all …]
Dmusb_dma.h159 u16 maxpacket, u8 mode,
164 u16 maxpacket,
/linux-6.12.1/drivers/usb/gadget/udc/aspeed-vhub/
Depn.c51 if (chunk > ep->ep.maxpacket) in ast_vhub_epn_kick()
52 chunk = ep->ep.maxpacket; in ast_vhub_epn_kick()
53 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) in ast_vhub_epn_kick()
135 if (len < ep->ep.maxpacket) in ast_vhub_epn_handle_ack()
206 if (!chunk || !req->req.zero || (chunk % ep->ep.maxpacket) != 0) in ast_vhub_epn_kick_desc()
295 CHECK(ep, is_last_desc == (len < ep->ep.maxpacket || in ast_vhub_epn_handle_ack_desc()
301 req->req.zero, ep->ep.maxpacket); in ast_vhub_epn_handle_ack_desc()
380 (ep->epn.is_in || !(u_req->length & (u_ep->maxpacket - 1))))) { in ast_vhub_epn_queue()
606 u16 maxpacket, type; in ast_vhub_epn_enable() local
614 maxpacket = usb_endpoint_maxp(desc); in ast_vhub_epn_enable()
[all …]
Dep0.c203 if (chunk > ep->ep.maxpacket) in ast_vhub_ep0_do_send()
204 chunk = ep->ep.maxpacket; in ast_vhub_ep0_do_send()
205 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) in ast_vhub_ep0_do_send()
209 chunk, req->last_desc, req->req.actual, ep->ep.maxpacket); in ast_vhub_ep0_do_send()
255 if (len < ep->ep.maxpacket && len != remain) { in ast_vhub_ep0_do_receive()
265 if (len < ep->ep.maxpacket || len == remain) { in ast_vhub_ep0_do_receive()
/linux-6.12.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()
1998 .maxpacket = EP0_FIFO_SIZE,
2012 .maxpacket = BULK_FIFO_SIZE,
2027 .maxpacket = BULK_FIFO_SIZE,
2044 .maxpacket = ISO_FIFO_SIZE,
2059 .maxpacket = ISO_FIFO_SIZE,
2075 .maxpacket = INT_FIFO_SIZE,
2091 .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 …]
Dtrace.h149 __field(unsigned, maxpacket)
161 __entry->maxpacket = ep->maxpacket;
172 __get_str(name), __entry->maxpacket, __entry->maxpacket_limit,
Drenesas_usbf.c576 if ((req->req.actual % ep0->ep.maxpacket) == 0) { in usbf_ep0_pio_in()
588 if (left > ep0->ep.maxpacket) in usbf_ep0_pio_in()
589 left = ep0->ep.maxpacket; in usbf_ep0_pio_in()
638 if (left > ep0->ep.maxpacket) in usbf_ep0_pio_out()
639 left = ep0->ep.maxpacket; in usbf_ep0_pio_out()
670 if (recv < ep0->ep.maxpacket) { in usbf_ep0_pio_out()
753 if ((req->req.actual % epn->ep.maxpacket) == 0) { in usbf_epn_pio_in()
766 if (left > epn->ep.maxpacket) in usbf_epn_pio_in()
767 left = epn->ep.maxpacket; in usbf_epn_pio_in()
842 npkt = DIV_ROUND_UP(left, epn->ep.maxpacket); in usbf_epn_dma_in()
[all …]
Dudc-xilinx.c148 u16 maxpacket; member
288 (ep->ep_usb.maxpacket << 15) | (ep->rambase)); in xudc_epconfig()
401 ep->ep_usb.maxpacket); in xudc_dma_send()
451 ep->rambase + ep->ep_usb.maxpacket); in xudc_dma_receive()
518 ep->ep_usb.maxpacket); in xudc_eptxrx()
614 is_short = count < ep->ep_usb.maxpacket; in xudc_read_fifo()
812 u16 maxpacket; in __xudc_ep_enable() local
820 ep->ep_usb.maxpacket = maxpacket = le16_to_cpu(desc->wMaxPacketSize); in __xudc_ep_enable()
831 if (maxpacket > 64) { in __xudc_ep_enable()
832 dev_dbg(udc->dev, "bogus maxpacket %d\n", maxpacket); in __xudc_ep_enable()
[all …]
Domap_udc.c155 || ep->maxpacket < usb_endpoint_maxp(desc)) { in omap_ep_enable()
161 && maxp != ep->maxpacket) in omap_ep_enable()
162 || usb_endpoint_maxp(desc) > ep->maxpacket in omap_ep_enable()
202 ep->ep.maxpacket = maxp; in omap_ep_enable()
250 ep->ep.maxpacket = ep->maxpacket; in omap_ep_disable()
370 count = ep->ep.maxpacket; in write_fifo()
376 if (count != ep->ep.maxpacket) in write_fifo()
439 avail = ep->ep.maxpacket; in read_fifo()
447 if (count < ep->ep.maxpacket) { in read_fifo()
525 || (cpu_is_omap15xx() && length < ep->maxpacket)) { in next_in_dma()
[all …]
/linux-6.12.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-6.12.1/include/linux/usb/
Dmusb.h41 u16 maxpacket; member
49 .maxpacket = pkt, \
/linux-6.12.1/drivers/usb/dwc3/
Dep0.c764 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel()
897 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data()
992 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
997 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data()
999 u32 maxpacket; in __dwc3_ep0_do_control_data() local
1007 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
1008 rem = req->request.length % maxpacket; in __dwc3_ep0_do_control_data()
1021 maxpacket - rem, in __dwc3_ep0_do_control_data()
1025 } else if (IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data()
1042 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
Dtrace.h294 __field(unsigned int, maxpacket)
305 __entry->maxpacket = dep->endpoint.maxpacket;
315 __get_str(name), __entry->maxpacket,
/linux-6.12.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-6.12.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-6.12.1/drivers/usb/host/
Dehci-q.c34 size_t len, int token, int maxpacket) in qtd_fill() argument
65 count -= (count % maxpacket); in qtd_fill()
580 int len, this_sg_len, maxpacket; in qh_urb_transaction() local
644 maxpacket = usb_endpoint_maxp(&urb->ep->desc); in qh_urb_transaction()
655 maxpacket); in qh_urb_transaction()
669 if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0) in qh_urb_transaction()
712 && !(urb->transfer_buffer_length % maxpacket)) { in qh_urb_transaction()
1176 int len, maxpacket; in ehci_submit_single_step_set_feature() local
1217 maxpacket = usb_endpoint_maxp(&urb->ep->desc); in ehci_submit_single_step_set_feature()
1219 qtd_fill(ehci, qtd, buf, len, token, maxpacket); in ehci_submit_single_step_set_feature()
Dsl811-hcd.c212 len = ep->maxpacket; in in_packet()
251 len = min_t(u32, ep->maxpacket, in out_packet()
357 fclock -= ep->maxpacket << 8; in start()
517 else if (ep->length < ep->maxpacket in done()
527 len = ep->maxpacket - sl811_read(sl811, in done()
538 (len < ep->maxpacket || in done()
847 ep->maxpacket = usb_maxpacket(udev, urb->pipe); in sl811h_urb_enqueue()
858 if (ep->maxpacket > H_MAXPACKET) { in sl811h_urb_enqueue()
862 epnum, ep->maxpacket); in sl811h_urb_enqueue()
1451 ep->maxpacket, in sl811h_debug_show()
[all …]

123456