/openbmc/u-boot/drivers/usb/musb-new/ |
H A D | musb_core.c | 1078 { .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 D | pic32.c | 181 { .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 D | musb_dma.h | 132 u16 maxpacket, u8 mode, 137 u16 maxpacket,
|
/openbmc/linux/drivers/usb/musb/ |
H 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, }, 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 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 | 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 | 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 …]
|
/openbmc/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()
|
/openbmc/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 | 124 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 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 …]
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | at91_udc.c | 142 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 D | aspeed_udc.c | 322 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 D | ci_udc.c | 114 .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 D | fotg210.c | 33 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 D | atmel_usba_udc.c | 34 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 D | pxa25x_udc.c | 335 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 D | dwc2_udc_otg.c | 527 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 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()
|
/openbmc/linux/drivers/usb/dwc3/ |
H 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()
|
/openbmc/linux/include/linux/usb/ |
H A D | musb.h | 41 u16 maxpacket; member 49 .maxpacket = pkt, \
|
/openbmc/u-boot/drivers/usb/dwc3/ |
H A D | ep0.c | 661 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 D | musb.h | 46 u16 maxpacket; member 54 .maxpacket = pkt, \
|