Home
last modified time | relevance | path

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

12345

/drivers/usb/musb/
A Dmusb_core.c1275 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
1276 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
1385 u16 maxpacket = cfg->maxpacket; in fifo_setup() local
1391 size = ffs(max_t(u16, maxpacket, 8)) - 1; in fifo_setup()
1392 maxpacket = 1 << size; in fifo_setup()
1396 if ((offset + (maxpacket << 1)) > in fifo_setup()
1419 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup()
1425 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup()
1431 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup()
1436 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup()
[all …]
A Djz4740.c63 { .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 Dmediatek.c369 { .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 Dmpfs.c33 { .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 Dmusb_host.c479 || (rx_count < qh->maxpacket) in musb_host_packet_rx()
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()
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 Dmusb_dma.h159 u16 maxpacket, u8 mode,
164 u16 maxpacket,
/drivers/usb/gadget/udc/aspeed-vhub/
A Depn.c51 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 Dep0.c203 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()
/drivers/usb/gadget/udc/
A Dlpc32xx_udc.c105 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 Dat91_udc.c477 u16 maxpacket; in at91_ep_enable() local
485 || maxpacket > ep->maxpacket) { in at91_ep_enable()
502 if (maxpacket > 64) in at91_ep_enable()
506 switch (maxpacket) { in at91_ep_enable()
537 ep->ep.maxpacket = maxpacket; in at91_ep_enable()
565 ep->ep.maxpacket = ep->maxpacket; in at91_ep_disable()
1608 ep->maxpacket = 8; in at91rm9200_udc_init()
1611 ep->maxpacket = 64; in at91rm9200_udc_init()
1650 ep->maxpacket = 64; in at91sam9260_udc_init()
1688 ep->maxpacket = 8; in at91sam9261_udc_init()
[all …]
A Daspeed_udc.c344 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 Dpxa25x_udc.c1998 .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 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()
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 Drenesas_usbf.c588 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 Dudc-xilinx.c148 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 Domap_udc.c162 && maxp != 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()
537 length *= ep->maxpacket; in next_in_dma()
585 packets /= ep->ep.maxpacket; in next_out_dma()
589 ep->ep.maxpacket >> 1, packets, in next_out_dma()
[all …]
A Dtrace.h149 __field(unsigned, maxpacket)
161 __entry->maxpacket = ep->maxpacket;
172 __get_str(name), __entry->maxpacket, __entry->maxpacket_limit,
/drivers/usb/dwc3/
A Dep0.c764 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 Dtrace.h294 __field(unsigned int, maxpacket)
305 __entry->maxpacket = dep->endpoint.maxpacket;
315 __get_str(name), __entry->maxpacket,
/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()
/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 …]
/drivers/usb/host/
A Dehci-q.c34 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()
A Dsl811-hcd.c213 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 …]
A Disp1362-hcd.c281 len = min_t(size_t, ep->maxpacket, buf_len); in prepare_ptd()
294 len = min_t(size_t, ep->maxpacket, buf_len); in prepare_ptd()
533 PTD_GET_COUNT(ptd), ep->maxpacket, len); in postproc_ep()
541 PTD_GET_COUNT(ptd), ep->maxpacket, len); in postproc_ep()
582 ep->num_req, len, ep->maxpacket, urbstat); in postproc_ep()
589 if (len % ep->maxpacket || in postproc_ep()
607 len % ep->maxpacket) { in postproc_ep()
609 ep->num_req, len, ep->maxpacket, urbstat); in postproc_ep()
2118 s;}), ep->maxpacket) ; in isp1362_show()
2141 "in" : "out"), ep->maxpacket); in isp1362_show()
[all …]
/drivers/usb/atm/
A Dusbatm.c1017 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()

Completed in 114 milliseconds

12345