/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, }, 1188 u16 maxpacket = cfg->maxpacket; in fifo_setup() local 1194 size = ffs(max(maxpacket, (u16) 8)) - 1; in fifo_setup() 1195 maxpacket = 1 << size; in fifo_setup() 1199 if ((offset + (maxpacket << 1)) > in fifo_setup() 1222 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup() 1228 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup() 1234 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup() 1239 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup() [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, }, 1384 u16 maxpacket = cfg->maxpacket; in fifo_setup() local 1390 size = ffs(max(maxpacket, (u16) 8)) - 1; in fifo_setup() 1391 maxpacket = 1 << size; in fifo_setup() 1395 if ((offset + (maxpacket << 1)) > in fifo_setup() 1418 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup() 1424 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup() 1430 hw_ep->max_packet_sz_rx = maxpacket; in fifo_setup() 1435 hw_ep->max_packet_sz_tx = maxpacket; in fifo_setup() [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() 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 …]
|
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 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() 2522 .maxpacket = 64, 2535 .maxpacket = 64, 2548 .maxpacket = 64, 2574 .maxpacket = 64, 2587 .maxpacket = 64, [all …]
|
H A D | at91_udc.c | 476 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() 1649 ep->maxpacket = 64; in at91sam9260_udc_init() 1687 ep->maxpacket = 8; in at91sam9261_udc_init() [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 …]
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | at91_udc.c | 287 u16 maxpacket; in at91_ep_enable() local 295 || maxpacket > ep->maxpacket) { in at91_ep_enable() 312 if (maxpacket > 64) in at91_ep_enable() 316 switch (maxpacket) { in at91_ep_enable() 347 ep->ep.maxpacket = maxpacket; in at91_ep_enable() 375 ep->ep.maxpacket = ep->maxpacket; in at91_ep_disable() 1353 ep->maxpacket = 64; in at91sam9260_udc_init() 1356 ep->maxpacket = 512; in at91sam9260_udc_init() 1393 ep->maxpacket = 8; in at91sam9261_udc_init() 1396 ep->maxpacket = 64; in at91sam9261_udc_init() [all …]
|
H A D | aspeed_udc.c | 323 tx_len = ep->ep.maxpacket; in aspeed_udc_ep0_queue() 419 if (rx_len < ep->ep.maxpacket || in aspeed_udc_ep0_out() 541 tx_len = ep->ep.maxpacket; in aspeed_udc_ep_dma() 575 "maxpacket", maxpacket, in aspeed_udc_ep_enable() 582 ep->ep.maxpacket = maxpacket; in aspeed_udc_ep_enable() 584 if (maxpacket > 1024) { in aspeed_udc_ep_enable() 586 maxpacket = 1024; in aspeed_udc_ep_enable() 589 if (maxpacket == 1024) in aspeed_udc_ep_enable() 592 ep_conf = EP_SET_MAX_PKT(maxpacket); in aspeed_udc_ep_enable() 600 ep->chunk_max = ep->ep.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, 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() 347 ep_enable(num, in, ep->maxpacket); in ci_ep_enable() 726 ep_enable(num, in, ep->ep.maxpacket); in handle_setup() [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() 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, 830 .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() 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() 199 ep->ep.name, ept_cfg, maxpacket); in usba_ep_enable() 251 ep->ep.maxpacket = maxpacket; in usba_ep_enable() 1279 ep->ep.maxpacket = pdata->ep[i].fifo_size; in usba_udc_pdata() [all …]
|
H A D | pxa25x_udc.c | 1643 .maxpacket = EP0_FIFO_SIZE, 1655 .maxpacket = BULK_FIFO_SIZE, 1683 .maxpacket = ISO_FIFO_SIZE, 1696 .maxpacket = ISO_FIFO_SIZE, 1710 .maxpacket = INT_FIFO_SIZE, 1752 .maxpacket = ISO_FIFO_SIZE, 1765 .maxpacket = ISO_FIFO_SIZE, 1779 .maxpacket = INT_FIFO_SIZE, 1821 .maxpacket = ISO_FIFO_SIZE, 1834 .maxpacket = ISO_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/include/linux/usb/ |
H A D | musb.h | 41 u16 maxpacket; member 49 .maxpacket = pkt, \
|
/openbmc/u-boot/include/linux/usb/ |
H A D | musb.h | 46 u16 maxpacket; member 54 .maxpacket = pkt, \
|
/openbmc/linux/drivers/usb/dwc3/ |
H A D | ep0.c | 761 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel() 894 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data() 989 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 994 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data() 996 u32 maxpacket; in __dwc3_ep0_do_control_data() local 1004 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 1005 rem = req->request.length % maxpacket; in __dwc3_ep0_do_control_data() 1018 maxpacket - rem, in __dwc3_ep0_do_control_data() 1022 } else if (IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data() 1039 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
|
/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/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()
|