/linux-6.3-rc2/drivers/usb/musb/ |
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, }, 1384 u16 maxpacket = cfg->maxpacket; in fifo_setup() local 1390 size = ffs(max(maxpacket, (u16) 8)) - 1; in fifo_setup() 1391 maxpacket = 1 << size; in fifo_setup() 1395 if ((offset + (maxpacket << 1)) > in fifo_setup() 1418 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup() 1424 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup() 1430 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup() 1435 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup() [all …]
|
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 = 512, }, [all …]
|
A D | mpfs.c | 32 { .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, },
|
A D | mediatek.c | 368 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 369 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 370 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, }, 371 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, }, 372 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, }, 373 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, }, 374 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, }, 375 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, }, 376 { .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, }, 377 { .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 512, }, [all …]
|
A D | musb_dma.h | 159 u16 maxpacket, u8 mode, 164 u16 maxpacket,
|
A D | musb_host.c | 472 || (rx_count < qh->maxpacket) in musb_host_packet_rx() 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() 1424 if (length > qh->maxpacket) in musb_host_tx() 1425 length = qh->maxpacket; in musb_host_tx() 1651 > qh->maxpacket) in musb_rx_dma_in_inventra_cppi41() 2086 qh->hb_mult, qh->maxpacket); in musb_schedule() [all …]
|
/linux-6.3-rc2/drivers/usb/gadget/udc/aspeed-vhub/ |
A D | epn.c | 52 if (chunk > ep->ep.maxpacket) in ast_vhub_epn_kick() 53 chunk = ep->ep.maxpacket; in ast_vhub_epn_kick() 136 if (len < ep->ep.maxpacket) in ast_vhub_epn_handle_ack() 302 req->req.zero, ep->ep.maxpacket); in ast_vhub_epn_handle_ack_desc() 607 u16 maxpacket, type; in ast_vhub_epn_enable() local 615 maxpacket = usb_endpoint_maxp(desc); in ast_vhub_epn_enable() 618 maxpacket == 0 || maxpacket > ep->ep.maxpacket) { in ast_vhub_epn_enable() 621 maxpacket, ep->ep.maxpacket); in ast_vhub_epn_enable() 645 ep->ep.maxpacket = maxpacket; in ast_vhub_epn_enable() 665 ep->epn.chunk_max = ep->ep.maxpacket; in ast_vhub_epn_enable() [all …]
|
A D | ep0.c | 204 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-6.3-rc2/drivers/usb/gadget/udc/ |
A D | lpc32xx_udc.c | 105 u32 maxpacket; member 1606 u16 maxpacket; in lpc32xx_ep_enable() local 1617 if ((maxpacket == 0) || (maxpacket > ep->maxpacket)) { in lpc32xx_ep_enable() 1640 if (maxpacket > ep->maxpacket) { in lpc32xx_ep_enable() 1669 ep->ep.maxpacket = maxpacket; in lpc32xx_ep_enable() 2522 .maxpacket = 64, 2535 .maxpacket = 64, 2548 .maxpacket = 64, 2574 .maxpacket = 64, 2587 .maxpacket = 64, [all …]
|
A D | at91_udc.c | 476 u16 maxpacket; in at91_ep_enable() local 484 || maxpacket > ep->maxpacket) { in at91_ep_enable() 501 if (maxpacket > 64) in at91_ep_enable() 505 switch (maxpacket) { in at91_ep_enable() 536 ep->ep.maxpacket = maxpacket; in at91_ep_enable() 564 ep->ep.maxpacket = ep->maxpacket; in at91_ep_disable() 1607 ep->maxpacket = 8; in at91rm9200_udc_init() 1610 ep->maxpacket = 64; in at91rm9200_udc_init() 1649 ep->maxpacket = 64; in at91sam9260_udc_init() 1687 ep->maxpacket = 8; in at91sam9261_udc_init() [all …]
|
A D | aspeed_udc.c | 344 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 …]
|
A D | pxa25x_udc.c | 1998 .maxpacket = EP0_FIFO_SIZE, 2012 .maxpacket = BULK_FIFO_SIZE, 2044 .maxpacket = ISO_FIFO_SIZE, 2059 .maxpacket = ISO_FIFO_SIZE, 2075 .maxpacket = INT_FIFO_SIZE, 2122 .maxpacket = ISO_FIFO_SIZE, 2137 .maxpacket = ISO_FIFO_SIZE, 2153 .maxpacket = INT_FIFO_SIZE, 2200 .maxpacket = ISO_FIFO_SIZE, 2215 .maxpacket = ISO_FIFO_SIZE, [all …]
|
A D | snps_udc_core.c | 326 unsigned maxpacket; in udc_ep_enable() local 356 ep->ep.maxpacket = maxpacket; in udc_ep_enable() 661 bytes = ep->ep.maxpacket; in udc_txfifo_write() 837 ep->ep.maxpacket, in udc_create_dma_chain() 900 ep->ep.maxpacket, in prep_dma() 912 ep->ep.maxpacket, ep->num); in prep_dma() 2361 if (len > ep->ep.maxpacket) in udc_data_in_isr() 2362 len = ep->ep.maxpacket; in udc_data_in_isr() 2382 ep->ep.maxpacket) { in udc_data_in_isr() 2712 if (len > ep->ep.maxpacket) in udc_control_in_isr() [all …]
|
A D | trace.h | 144 __field(unsigned, maxpacket) 156 __entry->maxpacket = ep->maxpacket; 167 __get_str(name), __entry->maxpacket, __entry->maxpacket_limit,
|
A D | renesas_usbf.c | 600 if (left > ep0->ep.maxpacket) in usbf_ep0_pio_in() 601 left = ep0->ep.maxpacket; in usbf_ep0_pio_in() 650 if (left > ep0->ep.maxpacket) in usbf_ep0_pio_out() 651 left = ep0->ep.maxpacket; in usbf_ep0_pio_out() 682 if (recv < ep0->ep.maxpacket) { in usbf_ep0_pio_out() 778 if (left > epn->ep.maxpacket) in usbf_epn_pio_in() 779 left = epn->ep.maxpacket; in usbf_epn_pio_in() 857 lastpkt = epn->ep.maxpacket; in usbf_epn_dma_in() 1008 if (left > epn->ep.maxpacket) in usbf_epn_pio_out() 1009 left = epn->ep.maxpacket; in usbf_epn_pio_out() [all …]
|
A D | udc-xilinx.c | 150 u16 maxpacket; member 403 ep->ep_usb.maxpacket); in xudc_dma_send() 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() 837 if (!(is_power_of_2(maxpacket) && maxpacket >= 8 && in __xudc_ep_enable() 838 maxpacket <= 512)) { in __xudc_ep_enable() 856 ep->epnumber, maxpacket); in __xudc_ep_enable() [all …]
|
A D | omap_udc.c | 163 && maxp != 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() 538 length *= ep->maxpacket; in next_in_dma() 586 packets /= ep->ep.maxpacket; in next_out_dma() 590 ep->ep.maxpacket >> 1, packets, in next_out_dma() [all …]
|
/linux-6.3-rc2/drivers/net/usb/ |
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()
|
/linux-6.3-rc2/include/linux/usb/ |
A D | musb.h | 41 u16 maxpacket; member 49 .maxpacket = pkt, \
|
/linux-6.3-rc2/drivers/usb/dwc3/ |
A D | ep0.c | 755 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()
|
A D | trace.h | 296 __field(unsigned int, maxpacket) 307 __entry->maxpacket = dep->endpoint.maxpacket; 317 __get_str(name), __entry->maxpacket,
|
/linux-6.3-rc2/include/net/ |
A D | codel_impl.h | 71 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.3-rc2/drivers/usb/isp1760/ |
A D | isp1760-udc.c | 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() 856 uep->maxpacket = 0; in isp1760_ep_disable() 1479 ep->maxpacket = 64; in isp1760_udc_init_eps() [all …]
|
/linux-6.3-rc2/drivers/usb/host/ |
A D | ehci-q.c | 38 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()
|
/linux-6.3-rc2/drivers/usb/atm/ |
A D | usbatm.c | 1017 unsigned int maxpacket, num_packets; in usbatm_usb_probe() local 1094 maxpacket = usb_maxpacket(usb_dev, instance->rx_channel.endpoint); in usbatm_usb_probe() 1096 if ((maxpacket < 1) || (maxpacket > UDSL_MAX_BUF_SIZE)) { in usbatm_usb_probe() 1103 num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */ in usbatm_usb_probe() 1105 if (num_packets * maxpacket > UDSL_MAX_BUF_SIZE) in usbatm_usb_probe() 1108 instance->rx_channel.buf_size = num_packets * maxpacket; in usbatm_usb_probe() 1109 instance->rx_channel.packet_size = maxpacket; in usbatm_usb_probe()
|