Home
last modified time | relevance | path

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

12

/openbmc/u-boot/drivers/usb/musb-new/
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_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 Dmusb_dma.h132 u16 maxpacket, u8 mode,
137 u16 maxpacket,
H A Dmusb_host.c516 || (rx_count < qh->maxpacket) in musb_host_packet_rx()
611 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit()
622 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program()
693 u16 packet_sz = qh->maxpacket; in musb_ep_program()
791 qh->maxpacket | in musb_ep_program()
908 if (len < qh->maxpacket) { in musb_h_ep0_continue()
934 fifo_count = min_t(size_t, qh->maxpacket, in musb_h_ep0_continue()
1283 if (qh->segsize < qh->maxpacket) in musb_host_tx()
1331 if (length > qh->maxpacket) in musb_host_tx()
1332 length = qh->maxpacket; in musb_host_tx()
[all …]
H A Dmusb_host.h49 u16 maxpacket; member
/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 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,
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 Df_fastboot.c352 unsigned int maxpacket = ep->maxpacket; in rx_bytes_expected() local
365 rem = rx_remain % maxpacket; in rx_bytes_expected()
367 rx_remain = rx_remain + (maxpacket - rem); in rx_bytes_expected()
H A Depautoconf.c128 if (ep->maxpacket < max) in ep_matches()
163 int size = ep->maxpacket; in ep_matches()
H A Ddwc2_udc_otg_priv.h91 #define ep_maxpacket(EP) ((EP)->ep.maxpacket)
H A Dat91_udc.h96 unsigned maxpacket:16; member
H A Ddwc2_udc_otg_xfer_dma.c100 ep_num ? DMA_BUFFER_SIZE : ep->ep.maxpacket); in setdma_rx()
108 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; in setdma_rx()
156 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; in setdma_tx()
235 is_short = !!(xfer_size % ep->ep.maxpacket); in complete_rx()
291 is_short = (xfer_size < ep->ep.maxpacket); in complete_tx()
1107 (ep->ep.maxpacket << DEPCTL_MPS_BIT); in dwc2_udc_ep_activate()
H A Df_rockusb.c411 unsigned int maxpacket = ep->maxpacket; in rx_bytes_expected() local
418 rem = rx_remain % maxpacket; in rx_bytes_expected()
420 rx_remain = rx_remain + (maxpacket - rem); in rx_bytes_expected()
H A Dcomposite.c285 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket; in device_qual()
751 cdev->gadget->ep0->maxpacket; in composite_setup()
1016 cdev->desc.bMaxPacketSize0 = gadget->ep0->maxpacket; in composite_bind()
H A Dether.c1268 device_desc.bMaxPacketSize0 = gadget->ep0->maxpacket; in eth_setup()
1490 && (value % gadget->ep0->maxpacket) == 0; in eth_setup()
1531 size += dev->out_ep->maxpacket - 1; in rx_submit()
1534 size -= size % dev->out_ep->maxpacket; in rx_submit()
1728 if (!dev->zlp && (length % dev->in_ep->maxpacket) == 0)
2450 if (!dev->zlp && (length % dev->in_ep->maxpacket) == 0) in _usb_eth_send()
/openbmc/u-boot/include/linux/usb/
H A Dmusb.h46 u16 maxpacket; member
54 .maxpacket = pkt, \
H A Dgadget.h162 unsigned maxpacket:16; member
184 ep->maxpacket = maxpacket_limit; in usb_ep_set_maxpacket_limit()
/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()
H A Dgadget.c206 tmp = mult * (dep->endpoint.maxpacket + mdwidth); in dwc3_gadget_resize_tx_fifos()
969 req->request.length < dep->endpoint.maxpacket) in __dwc3_gadget_ep_queue()
970 req->request.length = dep->endpoint.maxpacket; in __dwc3_gadget_ep_queue()
2165 dwc->gadget.ep0->maxpacket = 512; in dwc3_gadget_conndone_interrupt()
2170 dwc->gadget.ep0->maxpacket = 64; in dwc3_gadget_conndone_interrupt()
2176 dwc->gadget.ep0->maxpacket = 64; in dwc3_gadget_conndone_interrupt()
2181 dwc->gadget.ep0->maxpacket = 8; in dwc3_gadget_conndone_interrupt()
/openbmc/u-boot/drivers/usb/host/
H A Dr8a66597-hcd.c254 u16 pipenum, bufnum, maxpacket; in pipe_buffer_setting() local
259 maxpacket = dev->epmaxpacketin[usb_pipeendpoint(pipe)]; in pipe_buffer_setting()
263 maxpacket = dev->epmaxpacketout[usb_pipeendpoint(pipe)]; in pipe_buffer_setting()
284 maxpacket, PIPEMAXP); in pipe_buffer_setting()
399 int maxpacket = dev->epmaxpacketin[usb_pipeendpoint(pipe)]; in receive_bulk_packet() local
411 (transfer_len + maxpacket - 1) / maxpacket, in receive_bulk_packet()

12