| /linux/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 | 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 = 512, }, [all …]
|
| 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, },
|
| A D | musb_host.c | 478 || (rx_count < qh->maxpacket) in musb_host_packet_rx() 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() 1430 if (length > qh->maxpacket) in musb_host_tx() 1431 length = qh->maxpacket; in musb_host_tx() 1657 > qh->maxpacket) in musb_rx_dma_in_inventra_cppi41() 2092 qh->hb_mult, qh->maxpacket); in musb_schedule() [all …]
|
| A D | musb_dma.h | 159 u16 maxpacket, u8 mode, 164 u16 maxpacket,
|
| /linux/drivers/usb/gadget/udc/aspeed-vhub/ |
| 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() 135 if (len < ep->ep.maxpacket) in ast_vhub_epn_handle_ack() 301 req->req.zero, ep->ep.maxpacket); in ast_vhub_epn_handle_ack_desc() 606 u16 maxpacket, type; in ast_vhub_epn_enable() local 614 maxpacket = usb_endpoint_maxp(desc); in ast_vhub_epn_enable() 617 maxpacket == 0 || maxpacket > ep->ep.maxpacket) { in ast_vhub_epn_enable() 620 maxpacket, ep->ep.maxpacket); in ast_vhub_epn_enable() 644 ep->ep.maxpacket = maxpacket; in ast_vhub_epn_enable() 664 ep->epn.chunk_max = ep->ep.maxpacket; in ast_vhub_epn_enable() [all …]
|
| 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()
|
| /linux/drivers/usb/gadget/udc/ |
| A D | lpc32xx_udc.c | 105 u32 maxpacket; member 1604 u16 maxpacket; in lpc32xx_ep_enable() local 1615 if ((maxpacket == 0) || (maxpacket > ep->maxpacket)) { in lpc32xx_ep_enable() 1638 if (maxpacket > ep->maxpacket) { in lpc32xx_ep_enable() 1667 ep->ep.maxpacket = maxpacket; in lpc32xx_ep_enable() 2515 .maxpacket = 64, 2528 .maxpacket = 64, 2541 .maxpacket = 64, 2567 .maxpacket = 64, 2580 .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 | 149 __field(unsigned, maxpacket) 161 __entry->maxpacket = ep->maxpacket; 172 __get_str(name), __entry->maxpacket, __entry->maxpacket_limit,
|
| A D | renesas_usbf.c | 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() 766 if (left > epn->ep.maxpacket) in usbf_epn_pio_in() 767 left = epn->ep.maxpacket; in usbf_epn_pio_in() 845 lastpkt = epn->ep.maxpacket; in usbf_epn_dma_in() 996 if (left > epn->ep.maxpacket) in usbf_epn_pio_out() 997 left = epn->ep.maxpacket; in usbf_epn_pio_out() [all …]
|
| A D | udc-xilinx.c | 148 u16 maxpacket; member 401 ep->ep_usb.maxpacket); in xudc_dma_send() 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() 839 if (!(is_power_of_2(maxpacket) && maxpacket >= 8 && in __xudc_ep_enable() 840 maxpacket <= 512)) { in __xudc_ep_enable() 858 ep->epnumber, maxpacket); in __xudc_ep_enable() [all …]
|
| A D | omap_udc.c | 161 && maxp != 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() 536 length *= ep->maxpacket; in next_in_dma() 584 packets /= ep->ep.maxpacket; in next_out_dma() 588 ep->ep.maxpacket >> 1, packets, in next_out_dma() [all …]
|
| /linux/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/include/linux/usb/ |
| A D | musb.h | 41 u16 maxpacket; member 49 .maxpacket = pkt, \
|
| /linux/drivers/usb/dwc3/ |
| A D | ep0.c | 764 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()
|
| A D | trace.h | 294 __field(unsigned int, maxpacket) 305 __entry->maxpacket = dep->endpoint.maxpacket; 315 __get_str(name), __entry->maxpacket,
|
| /linux/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/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/drivers/usb/host/ |
| A D | ehci-q.c | 34 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()
|
| /linux/drivers/usb/atm/ |
| A D | usbatm.c | 1017 unsigned int maxpacket, num_packets; in usbatm_usb_probe() local 1095 maxpacket = usb_maxpacket(usb_dev, instance->rx_channel.endpoint); in usbatm_usb_probe() 1097 if ((maxpacket < 1) || (maxpacket > UDSL_MAX_BUF_SIZE)) { in usbatm_usb_probe() 1104 num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */ in usbatm_usb_probe() 1106 if (num_packets * maxpacket > UDSL_MAX_BUF_SIZE) in usbatm_usb_probe() 1109 instance->rx_channel.buf_size = num_packets * maxpacket; in usbatm_usb_probe() 1110 instance->rx_channel.packet_size = maxpacket; in usbatm_usb_probe()
|