| /linux/drivers/usb/musb/ |
| H A D | musb_core.c | 1275 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 1276 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 1277 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, }, 1278 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1279 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, 1284 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1285 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1286 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1287 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1288 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, [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 = 512, }, [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 = 512, }, [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 | 479 || (rx_count < qh->maxpacket) in musb_host_packet_rx() 568 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit() 579 u16 pkt_size = qh->maxpacket; in musb_tx_dma_set_mode_mentor() 631 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program() 681 u16 packet_sz = qh->maxpacket; in musb_ep_program() 790 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 …]
|
| H A D | musb_dma.h | 159 u16 maxpacket, u8 mode, 164 u16 maxpacket,
|
| /linux/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() 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 …]
|
| 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()
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | lpc32xx_udc.c | 105 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 …]
|
| H A D | at91_udc.c | 125 ep->ep.name, ep->ep.maxpacket, in proc_ep_show() 332 if (count > ep->ep.maxpacket) in read_fifo() 333 count = ep->ep.maxpacket; in read_fifo() 356 is_done = (count < ep->ep.maxpacket); in read_fifo() 420 if (ep->ep.maxpacket < total) { in write_fifo() 421 count = ep->ep.maxpacket; in write_fifo() 425 is_last = (count < ep->ep.maxpacket) || !req->req.zero; in write_fifo() 477 u16 maxpacket; in at91_ep_enable() local 484 || (maxpacket = usb_endpoint_maxp(desc)) == 0 in at91_ep_enable() 485 || maxpacket > ep->maxpacket) { in at91_ep_enable() [all …]
|
| H 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 …]
|
| H A D | pxa25x_udc.c | 459 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 …]
|
| H A D | snps_udc_core.c | 326 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 …]
|
| H A D | renesas_usbf.c | 576 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 …]
|
| H A D | udc-xilinx.c | 148 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 …]
|
| H A D | trace.h | 154 __field(unsigned, maxpacket) 166 __entry->maxpacket = ep->maxpacket; 177 __get_str(name), __entry->maxpacket, __entry->maxpacket_limit,
|
| H A D | omap_udc.c | 156 || ep->maxpacket < usb_endpoint_maxp(desc)) { in omap_ep_enable() 162 && maxp != ep->maxpacket) in omap_ep_enable() 163 || usb_endpoint_maxp(desc) > ep->maxpacket in omap_ep_enable() 203 ep->ep.maxpacket = maxp; in omap_ep_enable() 251 ep->ep.maxpacket = ep->maxpacket; in omap_ep_disable() 371 count = ep->ep.maxpacket; in write_fifo() 377 if (count != ep->ep.maxpacket) in write_fifo() 440 avail = ep->ep.maxpacket; in read_fifo() 448 if (count < ep->ep.maxpacket) { in read_fifo() 526 || (cpu_is_omap15xx() && length < ep->maxpacket)) { in next_in_dma() [all …]
|
| /linux/drivers/net/usb/ |
| H A D | int51x1.c | 54 if ((pack_with_header_len) < dev->maxpacket) in int51x1_tx_fixup() 55 need_tail = dev->maxpacket - pack_with_header_len + 1; in int51x1_tx_fixup() 61 else if (!(pack_with_header_len % dev->maxpacket)) in int51x1_tx_fixup()
|
| /linux/drivers/usb/dwc3/ |
| H A D | ep0.c | 767 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel() 900 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data() 995 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 1000 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data() 1002 u32 maxpacket; in __dwc3_ep0_do_control_data() local 1010 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 1011 rem = req->request.length % maxpacket; in __dwc3_ep0_do_control_data() 1024 maxpacket - rem, in __dwc3_ep0_do_control_data() 1028 } else if (IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data() 1045 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
|
| /linux/include/linux/usb/ |
| H A D | musb.h | 41 u16 maxpacket; member 49 .maxpacket = pkt, \
|
| /linux/drivers/usb/isp1760/ |
| H A D | isp1760-udc.c | 283 __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/include/net/ |
| H 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/host/ |
| H 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()
|
| H A D | sl811-hcd.c | 213 len = ep->maxpacket; in in_packet() 252 len = min_t(u32, ep->maxpacket, in out_packet() 358 fclock -= ep->maxpacket << 8; in start() 518 else if (ep->length < ep->maxpacket in done() 528 len = ep->maxpacket - sl811_read(sl811, in done() 539 (len < ep->maxpacket || in done() 848 ep->maxpacket = usb_maxpacket(udev, urb->pipe); in sl811h_urb_enqueue() 859 if (ep->maxpacket > H_MAXPACKET) { in sl811h_urb_enqueue() 863 epnum, ep->maxpacket); in sl811h_urb_enqueue() 1452 ep->maxpacket, in sl811h_debug_show() [all …]
|
| /linux/drivers/usb/atm/ |
| H 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()
|