/kernel/linux/linux-5.10/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 1388 u16 maxpacket = cfg->maxpacket; fifo_setup() local [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 [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) < in cppi_next_tx_segment() 764 unsigned maxpacket = rx->maxpacket; cppi_next_rx_segment() local 947 cppi_channel_program(struct dma_channel *ch, u16 maxpacket, u8 mode, dma_addr_t dma_addr, u32 len) cppi_channel_program() argument [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 [all...] |
H A D | musb_host.c | 478 || (rx_count < qh->maxpacket) in musb_host_packet_rx() 562 /* NOTE: bulk combining rewrites high bits of maxpacket */ in musb_rx_reinit() 567 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit() 579 u16 pkt_size = qh->maxpacket; in musb_tx_dma_set_mode_mentor() 635 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program() 686 u16 packet_sz = qh->maxpacket; in musb_ep_program() 795 qh->maxpacket | in musb_ep_program() 1004 if (len < qh->maxpacket) { in musb_h_ep0_continue() 1030 fifo_count = min_t(size_t, qh->maxpacket, in musb_h_ep0_continue() 1388 if (qh->segsize < qh->maxpacket) in musb_host_tx() [all...] |
/kernel/linux/linux-6.6/drivers/usb/musb/ |
H A D | musb_core.c | 1274 { .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 1384 u16 maxpacket = cfg->maxpacket; fifo_setup() local [all...] |
H A D | jz4740.c | 63 { .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 [all...] |
H A D | mediatek.c | 369 { .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 [all...] |
H A D | mpfs.c | 33 { .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, },
|
H A D | musb_host.c | 478 || (rx_count < qh->maxpacket) in musb_host_packet_rx() 562 /* NOTE: bulk combining rewrites high bits of maxpacket */ in musb_rx_reinit() 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() [all...] |
/kernel/linux/linux-5.10/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() 199 * with ep.maxpacket. We have to see if it's a multiple in ast_vhub_epn_kick_desc() 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, typ in ast_vhub_epn_enable() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/aspeed-vhub/ |
H A D | epn.c | 51 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() 201 * with ep.maxpacket. We have to see if it's a multiple in ast_vhub_epn_kick_desc() 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, typ in ast_vhub_epn_enable() local [all...] |
H A D | ep0.c | 203 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()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/ |
H A D | lpc32xx_udc.c | 105 u32 maxpacket; member 479 seq_printf(s, "%12s, maxpacket %4d %3s", in proc_ep_show() 480 ep->ep.name, ep->ep.maxpacket, in proc_ep_show() 823 u32 maxpacket) in udc_realize_hwep() 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; /* Jus in udc_ep0_in_req() 822 udc_realize_hwep(struct lpc32xx_udc *udc, u32 hwep, u32 maxpacket) udc_realize_hwep() argument 1607 u16 maxpacket; lpc32xx_ep_enable() local [all...] |
H A D | at91_udc.c | 123 seq_printf(s, "%s, maxpacket %d %s%s %s%s\n", in proc_ep_show() 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 in at91_ep_enable() [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/udc/ |
H A D | lpc32xx_udc.c | 105 u32 maxpacket; member 478 seq_printf(s, "%12s, maxpacket %4d %3s", in proc_ep_show() 479 ep->ep.name, ep->ep.maxpacket, in proc_ep_show() 822 u32 maxpacket) in udc_realize_hwep() 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; /* Jus in udc_ep0_in_req() 821 udc_realize_hwep(struct lpc32xx_udc *udc, u32 hwep, u32 maxpacket) udc_realize_hwep() argument 1606 u16 maxpacket; lpc32xx_ep_enable() local [all...] |
H A D | at91_udc.c | 123 seq_printf(s, "%s, maxpacket %d %s%s %s%s\n", in proc_ep_show() 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 in at91_ep_enable() [all...] |
/kernel/linux/linux-6.6/include/linux/usb/ |
H A D | musb.h | 41 u16 maxpacket; member 49 .maxpacket = pkt, \
|
/kernel/linux/linux-5.10/drivers/usb/dwc3/ |
H A D | ep0.c | 735 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel() 868 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data() 963 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 968 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data() 970 u32 maxpacket; in __dwc3_ep0_do_control_data() local 978 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 979 rem = req->request.length % maxpacket; in __dwc3_ep0_do_control_data() 992 maxpacket - rem, in __dwc3_ep0_do_control_data() 996 } else if (IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | imx21-hcd.c | 215 int etd_num, struct urb *urb, u8 dir, u16 maxpacket) in setup_etd_dword0() 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() 214 setup_etd_dword0(struct imx21 *imx21, int etd_num, struct urb *urb, u8 dir, u16 maxpacket) setup_etd_dword0() argument 908 u16 maxpacket; schedule_nonisoc_etd() local [all...] |
/kernel/linux/linux-5.10/include/linux/usb/ |
H A D | musb.h | 41 u16 maxpacket; member 49 .maxpacket = pkt, \
|
/kernel/linux/linux-5.10/drivers/usb/isp1760/ |
H A D | isp1760-udc.c | 224 "%s: req %p actual/length %u/%u maxpacket %u packet size %u\n", in isp1760_udc_receive() 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() 361 "TX IRQ: req %p actual/length %u/%u maxpacket %u packet size %u zero %u need zlp %u\n", 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 in isp1760_ep_enable() [all...] |