Home
last modified time | relevance | path

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

1234567

/openbmc/u-boot/drivers/usb/musb-new/
H A Dmusb_core.c1078 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
1079 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
1080 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, },
1081 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1082 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
1087 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1088 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1089 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1090 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1091 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
[all …]
H A Dpic32.c181 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
182 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
183 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
184 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, },
185 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, },
186 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, },
187 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, },
188 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, },
189 { .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, },
190 { .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 512, },
[all …]
H A Dmusb_dma.h132 u16 maxpacket, u8 mode,
137 u16 maxpacket,
/openbmc/linux/drivers/usb/musb/
H A Dmusb_core.c1274 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
1275 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
1276 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, },
1277 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1278 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
1283 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1284 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1285 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1286 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1287 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
[all …]
H 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 …]
H 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, },
H 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 …]
/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Depn.c51 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 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()
/openbmc/linux/drivers/usb/gadget/udc/
H A Dlpc32xx_udc.c105 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 Dat91_udc.c124 ep->ep.name, ep->ep.maxpacket, in proc_ep_show()
331 if (count > ep->ep.maxpacket) in read_fifo()
332 count = ep->ep.maxpacket; in read_fifo()
355 is_done = (count < ep->ep.maxpacket); in read_fifo()
419 if (ep->ep.maxpacket < total) { in write_fifo()
420 count = ep->ep.maxpacket; in write_fifo()
424 is_last = (count < ep->ep.maxpacket) || !req->req.zero; in write_fifo()
476 u16 maxpacket; in at91_ep_enable() local
483 || (maxpacket = usb_endpoint_maxp(desc)) == 0 in at91_ep_enable()
484 || maxpacket > ep->maxpacket) { in at91_ep_enable()
[all …]
H 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 …]
H A Dpxa25x_udc.c459 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 …]
/openbmc/u-boot/drivers/usb/gadget/
H A Dat91_udc.c142 if (count > ep->ep.maxpacket) in read_fifo()
143 count = ep->ep.maxpacket; in read_fifo()
166 is_done = (count < ep->ep.maxpacket); in read_fifo()
230 if (ep->ep.maxpacket < total) { in write_fifo()
231 count = ep->ep.maxpacket; in write_fifo()
235 is_last = (count < ep->ep.maxpacket) || !req->req.zero; in write_fifo()
287 u16 maxpacket; in at91_ep_enable() local
294 || (maxpacket = usb_endpoint_maxp(desc)) == 0 in at91_ep_enable()
295 || maxpacket > ep->maxpacket) { in at91_ep_enable()
312 if (maxpacket > 64) in at91_ep_enable()
[all …]
H A Daspeed_udc.c322 if ((req->req.length - req->req.actual) > ep->ep.maxpacket) in aspeed_udc_ep0_queue()
323 tx_len = ep->ep.maxpacket; in aspeed_udc_ep0_queue()
419 if (rx_len < ep->ep.maxpacket || in aspeed_udc_ep0_out()
540 if ((req->req.length - req->req.actual) > ep->ep.maxpacket) in aspeed_udc_ep_dma()
541 tx_len = ep->ep.maxpacket; in aspeed_udc_ep_dma()
563 u16 maxpacket = usb_endpoint_maxp(desc) & 0x7ff; in aspeed_udc_ep_enable() local
570 epnum, maxpacket, le16_to_cpu(desc->wMaxPacketSize), nr_trans); in aspeed_udc_ep_enable()
575 "maxpacket", maxpacket, in aspeed_udc_ep_enable()
576 "ep maxpacket", ep->ep.maxpacket); in aspeed_udc_ep_enable()
582 ep->ep.maxpacket = maxpacket; in aspeed_udc_ep_enable()
[all …]
H A Dci_udc.c114 .maxpacket = 64,
119 .maxpacket = 512,
124 .maxpacket = 512,
129 .maxpacket = 512,
134 .maxpacket = 512,
307 static void ep_enable(int num, int in, int maxpacket) in ep_enable() argument
321 head->config = CONFIG_MAX_PKT(maxpacket) | CONFIG_ZLT; in ep_enable()
341 if (ep->maxpacket != max) { in ci_ep_enable()
343 ep->maxpacket, max); in ci_ep_enable()
344 ep->maxpacket = max; in ci_ep_enable()
[all …]
H A Dfotg210.c33 uint maxpacket; member
219 if (len > ep->maxpacket) in fotg210_dma()
220 len = ep->maxpacket; in fotg210_dma()
485 if (len < ep->ep.maxpacket || req->req.length <= req->req.actual) { in fotg210_recv()
615 if (len < ep->ep.maxpacket) in fotg210_ep_queue()
624 if (len < ep->ep.maxpacket) in fotg210_ep_queue()
794 .maxpacket = CFG_EP0_MAX_PACKET_SIZE,
803 .maxpacket = CFG_EPX_MAX_PACKET_SIZE,
812 .maxpacket = CFG_EPX_MAX_PACKET_SIZE,
821 .maxpacket = CFG_EPX_MAX_PACKET_SIZE,
[all …]
H A Datmel_usba_udc.c34 if (transaction_len > ep->ep.maxpacket) { in next_fifo_transaction()
35 transaction_len = ep->ep.maxpacket; in next_fifo_transaction()
37 } else if (transaction_len == ep->ep.maxpacket && req->req.zero) { in next_fifo_transaction()
172 unsigned long flags = 0, ept_cfg, maxpacket; in usba_ep_enable() local
177 maxpacket = usb_endpoint_maxp(desc) & 0x7ff; in usba_ep_enable()
183 maxpacket == 0 || in usba_ep_enable()
184 maxpacket > ep->fifo_size) { in usba_ep_enable()
192 if (maxpacket <= 8) in usba_ep_enable()
196 ept_cfg = USBA_BF(EPT_SIZE, fls(maxpacket - 1) - 3); in usba_ep_enable()
199 ep->ep.name, ept_cfg, maxpacket); in usba_ep_enable()
[all …]
H A Dpxa25x_udc.c335 ep->ep.maxpacket = le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)); in pxa25x_ep_enable()
629 is_short = (count < ep->ep.maxpacket); in read_fifo()
1643 .maxpacket = EP0_FIFO_SIZE,
1655 .maxpacket = BULK_FIFO_SIZE,
1668 .maxpacket = BULK_FIFO_SIZE,
1683 .maxpacket = ISO_FIFO_SIZE,
1696 .maxpacket = ISO_FIFO_SIZE,
1710 .maxpacket = INT_FIFO_SIZE,
1725 .maxpacket = BULK_FIFO_SIZE,
1738 .maxpacket = BULK_FIFO_SIZE,
[all …]
H A Ddwc2_udc_otg.c527 dev->ep[0].ep.maxpacket = ep0_fifo_size; in set_max_pktsize()
529 dev->ep[i].ep.maxpacket = ep_fifo_size; in set_max_pktsize()
588 ep->ep.maxpacket = le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)); in dwc2_ep_enable()
599 __func__, _ep->name, ep->stopped, ep->ep.maxpacket); in dwc2_ep_enable()
749 .maxpacket = EP0_FIFO_SIZE,
764 .maxpacket = EP_FIFO_SIZE,
779 .maxpacket = EP_FIFO_SIZE,
794 .maxpacket = EP_FIFO_SIZE,
/openbmc/linux/drivers/net/usb/
H 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()
/openbmc/linux/drivers/usb/dwc3/
H 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()
/openbmc/linux/include/linux/usb/
H A Dmusb.h41 u16 maxpacket; member
49 .maxpacket = pkt, \
/openbmc/u-boot/drivers/usb/dwc3/
H A Dep0.c661 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel()
809 maxp = ep0->endpoint.maxpacket; in dwc3_ep0_complete_data()
848 if (IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data()
939 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data()
942 u32 maxpacket; in __dwc3_ep0_do_control_data() local
951 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
953 transfer_size = (req->request.length / maxpacket) * in __dwc3_ep0_do_control_data()
954 maxpacket; in __dwc3_ep0_do_control_data()
962 maxpacket); in __dwc3_ep0_do_control_data()
/openbmc/u-boot/include/linux/usb/
H A Dmusb.h46 u16 maxpacket; member
54 .maxpacket = pkt, \

1234567