Home
last modified time | relevance | path

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

12345

/linux/drivers/usb/musb/
A Dmusb_core.c1279 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
1280 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
1389 u16 maxpacket = cfg->maxpacket; in fifo_setup() local
1395 size = ffs(max(maxpacket, (u16) 8)) - 1; in fifo_setup()
1396 maxpacket = 1 << size; in fifo_setup()
1400 if ((offset + (maxpacket << 1)) > in fifo_setup()
1423 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup()
1429 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup()
1435 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup()
1440 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup()
[all …]
A Djz4740.c62 { .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 = 512, },
[all …]
A Dcppi_dma.c563 unsigned maxpacket = tx->maxpacket; in cppi_next_tx_segment() local
578 && length > maxpacket in cppi_next_tx_segment()
583 maxpacket = length; in cppi_next_tx_segment()
596 maxpacket, in cppi_next_tx_segment()
764 unsigned maxpacket = rx->maxpacket; in cppi_next_rx_segment() local
782 && length > maxpacket in cppi_next_rx_segment()
786 maxpacket = length; in cppi_next_rx_segment()
817 rx->index, maxpacket, in cppi_next_rx_segment()
849 bd_len = maxpacket; in cppi_next_rx_segment()
988 cppi_ch->maxpacket = maxpacket; in cppi_channel_program()
[all …]
A Dmediatek.c420 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
421 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
422 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
423 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, },
424 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, },
425 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, },
426 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, },
427 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, },
428 { .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, },
429 { .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 512, },
[all …]
A Dmusb_host.c472 || (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 …]
A Dmusb_dma.h166 u16 maxpacket, u8 mode,
171 u16 maxpacket,
/linux/drivers/usb/gadget/udc/aspeed-vhub/
A Depn.c52 if (chunk > ep->ep.maxpacket) in ast_vhub_epn_kick()
53 chunk = ep->ep.maxpacket; in ast_vhub_epn_kick()
129 if (len < ep->ep.maxpacket) in ast_vhub_epn_handle_ack()
294 req->req.zero, ep->ep.maxpacket); in ast_vhub_epn_handle_ack_desc()
597 u16 maxpacket, type; in ast_vhub_epn_enable() local
605 maxpacket = usb_endpoint_maxp(desc); in ast_vhub_epn_enable()
608 maxpacket == 0 || maxpacket > ep->ep.maxpacket) { in ast_vhub_epn_enable()
611 maxpacket, ep->ep.maxpacket); in ast_vhub_epn_enable()
635 ep->ep.maxpacket = maxpacket; in ast_vhub_epn_enable()
655 ep->epn.chunk_max = ep->ep.maxpacket; in ast_vhub_epn_enable()
[all …]
A Dep0.c204 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()
259 if (len < ep->ep.maxpacket || len == remain) { in ast_vhub_ep0_do_receive()
/linux/drivers/usb/gadget/udc/
A Dlpc32xx_udc.c105 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()
2520 .maxpacket = 64,
2533 .maxpacket = 64,
2546 .maxpacket = 64,
2572 .maxpacket = 64,
2585 .maxpacket = 64,
[all …]
A Dat91_udc.c476 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()
1661 ep->maxpacket = 64; in at91sam9260_udc_init()
1699 ep->maxpacket = 8; in at91sam9261_udc_init()
[all …]
A Dpxa25x_udc.c2036 .maxpacket = EP0_FIFO_SIZE,
2050 .maxpacket = BULK_FIFO_SIZE,
2082 .maxpacket = ISO_FIFO_SIZE,
2097 .maxpacket = ISO_FIFO_SIZE,
2113 .maxpacket = INT_FIFO_SIZE,
2160 .maxpacket = ISO_FIFO_SIZE,
2175 .maxpacket = ISO_FIFO_SIZE,
2191 .maxpacket = INT_FIFO_SIZE,
2238 .maxpacket = ISO_FIFO_SIZE,
2253 .maxpacket = ISO_FIFO_SIZE,
[all …]
A Dudc-xilinx.c150 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 Dsnps_udc_core.c326 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()
2362 if (len > ep->ep.maxpacket) in udc_data_in_isr()
2363 len = ep->ep.maxpacket; in udc_data_in_isr()
2383 ep->ep.maxpacket) { in udc_data_in_isr()
2713 if (len > ep->ep.maxpacket) in udc_control_in_isr()
[all …]
A Ds3c2410_udc.c327 if (count != ep->ep.maxpacket) in s3c2410_udc_write_fifo()
444 if (fifo_count > ep->ep.maxpacket) in s3c2410_udc_read_fifo()
445 avail = ep->ep.maxpacket; in s3c2410_udc_read_fifo()
454 if (idx != 0 && fifo_count < ep->ep.maxpacket) { in s3c2410_udc_read_fifo()
889 udc_write((dev->ep[0].ep.maxpacket & 0x7ff) >> 3, in s3c2410_udc_irq()
1026 _ep->maxpacket = max; in s3c2410_udc_ep_enable()
1663 .maxpacket = EP0_FIFO_SIZE,
1676 .maxpacket = EP_FIFO_SIZE,
1690 .maxpacket = EP_FIFO_SIZE,
1704 .maxpacket = EP_FIFO_SIZE,
[all …]
A Dtrace.h144 __field(unsigned, maxpacket)
156 __entry->maxpacket = ep->maxpacket;
167 __get_str(name), __entry->maxpacket, __entry->maxpacket_limit,
A Domap_udc.c160 && maxp != ep->maxpacket) in omap_ep_enable()
201 ep->ep.maxpacket = maxp; in omap_ep_enable()
249 ep->ep.maxpacket = ep->maxpacket; in omap_ep_disable()
369 count = ep->ep.maxpacket; in write_fifo()
375 if (count != ep->ep.maxpacket) in write_fifo()
438 avail = ep->ep.maxpacket; in read_fifo()
446 if (count < ep->ep.maxpacket) { in read_fifo()
535 length *= ep->maxpacket; in next_in_dma()
583 packets /= ep->ep.maxpacket; in next_out_dma()
587 ep->ep.maxpacket >> 1, packets, in next_out_dma()
[all …]
/linux/drivers/net/usb/
A 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/drivers/usb/dwc3/
A Dep0.c736 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel()
869 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data()
964 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
969 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data()
971 u32 maxpacket; in __dwc3_ep0_do_control_data() local
979 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
980 rem = req->request.length % maxpacket; in __dwc3_ep0_do_control_data()
993 maxpacket - rem, in __dwc3_ep0_do_control_data()
997 } else if (IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data()
1014 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
A Dtrace.h295 __field(unsigned int, maxpacket)
306 __entry->maxpacket = dep->endpoint.maxpacket;
316 __get_str(name), __entry->maxpacket,
/linux/drivers/usb/isp1760/
A Disp1760-udc.c308 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/include/linux/usb/
A Dmusb.h41 u16 maxpacket; member
49 .maxpacket = pkt, \
/linux/include/net/
A Dcodel_impl.h69 stats->maxpacket = 0; in codel_stats_init()
123 if (unlikely(skb_len > stats->maxpacket)) in codel_should_drop()
124 stats->maxpacket = skb_len; in codel_should_drop()
/linux/drivers/usb/host/
A Dehci-q.c38 size_t len, int token, int maxpacket) in qtd_fill() argument
68 count -= (count % maxpacket); in qtd_fill()
583 int len, this_sg_len, maxpacket; in qh_urb_transaction() local
647 maxpacket = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_urb_transaction()
658 maxpacket); in qh_urb_transaction()
672 if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0) in qh_urb_transaction()
715 && !(urb->transfer_buffer_length % maxpacket)) { in qh_urb_transaction()
1179 int len, maxpacket; in ehci_submit_single_step_set_feature() local
1220 maxpacket = usb_maxpacket(urb->dev, urb->pipe, 0); in ehci_submit_single_step_set_feature()
1222 qtd_fill(ehci, qtd, buf, len, token, maxpacket); in ehci_submit_single_step_set_feature()
A 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()
845 ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); in sl811h_urb_enqueue()
856 if (ep->maxpacket > H_MAXPACKET) { in sl811h_urb_enqueue()
860 epnum, ep->maxpacket); in sl811h_urb_enqueue()
1449 ep->maxpacket, in sl811h_debug_show()
[all …]
/linux/drivers/usb/atm/
A Dusbatm.c1017 unsigned int maxpacket, num_packets; in usbatm_usb_probe() local
1094 maxpacket = usb_maxpacket(usb_dev, instance->rx_channel.endpoint, 0); 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()

Completed in 102 milliseconds

12345