Home
last modified time | relevance | path

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

12

/rk3399_rockchip-uboot/drivers/usb/musb-new/
H A Dpic32.c182 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
183 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
184 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
185 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, },
186 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, },
187 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, },
188 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, },
189 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, },
190 { .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, },
191 { .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.h133 u16 maxpacket, u8 mode,
138 u16 maxpacket,
H A Dmusb_host.c517 || (rx_count < qh->maxpacket) in musb_host_packet_rx()
612 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit()
623 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program()
694 u16 packet_sz = qh->maxpacket; in musb_ep_program()
792 qh->maxpacket | in musb_ep_program()
909 if (len < qh->maxpacket) { in musb_h_ep0_continue()
935 fifo_count = min_t(size_t, qh->maxpacket, in musb_h_ep0_continue()
1284 if (qh->segsize < qh->maxpacket) in musb_host_tx()
1332 if (length > qh->maxpacket) in musb_host_tx()
1333 length = qh->maxpacket; in musb_host_tx()
[all …]
H A Dmusb_host.h50 u16 maxpacket; member
/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Dat91_udc.c143 if (count > ep->ep.maxpacket) in read_fifo()
144 count = ep->ep.maxpacket; in read_fifo()
167 is_done = (count < ep->ep.maxpacket); in read_fifo()
231 if (ep->ep.maxpacket < total) { in write_fifo()
232 count = ep->ep.maxpacket; in write_fifo()
236 is_last = (count < ep->ep.maxpacket) || !req->req.zero; in write_fifo()
288 u16 maxpacket; in at91_ep_enable() local
295 || (maxpacket = usb_endpoint_maxp(desc)) == 0 in at91_ep_enable()
296 || maxpacket > ep->maxpacket) { in at91_ep_enable()
313 if (maxpacket > 64) in at91_ep_enable()
[all …]
H A Dci_udc.c111 .maxpacket = 64,
116 .maxpacket = 512,
121 .maxpacket = 512,
126 .maxpacket = 512,
131 .maxpacket = 512,
304 static void ep_enable(int num, int in, int maxpacket) in ep_enable() argument
318 head->config = CONFIG_MAX_PKT(maxpacket) | CONFIG_ZLT; in ep_enable()
338 if (ep->maxpacket != max) { in ci_ep_enable()
340 ep->maxpacket, max); in ci_ep_enable()
341 ep->maxpacket = max; in ci_ep_enable()
[all …]
H A Dfotg210.c34 uint maxpacket; member
220 if (len > ep->maxpacket) in fotg210_dma()
221 len = ep->maxpacket; in fotg210_dma()
486 if (len < ep->ep.maxpacket || req->req.length <= req->req.actual) { in fotg210_recv()
616 if (len < ep->ep.maxpacket) in fotg210_ep_queue()
625 if (len < ep->ep.maxpacket) in fotg210_ep_queue()
795 .maxpacket = CFG_EP0_MAX_PACKET_SIZE,
804 .maxpacket = CFG_EPX_MAX_PACKET_SIZE,
813 .maxpacket = CFG_EPX_MAX_PACKET_SIZE,
822 .maxpacket = CFG_EPX_MAX_PACKET_SIZE,
[all …]
H A Datmel_usba_udc.c35 if (transaction_len > ep->ep.maxpacket) { in next_fifo_transaction()
36 transaction_len = ep->ep.maxpacket; in next_fifo_transaction()
38 } else if (transaction_len == ep->ep.maxpacket && req->req.zero) { in next_fifo_transaction()
173 unsigned long flags = 0, ept_cfg, maxpacket; in usba_ep_enable() local
178 maxpacket = usb_endpoint_maxp(desc) & 0x7ff; in usba_ep_enable()
184 maxpacket == 0 || in usba_ep_enable()
185 maxpacket > ep->fifo_size) { in usba_ep_enable()
193 if (maxpacket <= 8) in usba_ep_enable()
197 ept_cfg = USBA_BF(EPT_SIZE, fls(maxpacket - 1) - 3); in usba_ep_enable()
200 ep->ep.name, ept_cfg, maxpacket); in usba_ep_enable()
[all …]
H A Dpxa25x_udc.c336 ep->ep.maxpacket = le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)); in pxa25x_ep_enable()
630 is_short = (count < ep->ep.maxpacket); in read_fifo()
1644 .maxpacket = EP0_FIFO_SIZE,
1656 .maxpacket = BULK_FIFO_SIZE,
1669 .maxpacket = BULK_FIFO_SIZE,
1684 .maxpacket = ISO_FIFO_SIZE,
1697 .maxpacket = ISO_FIFO_SIZE,
1711 .maxpacket = INT_FIFO_SIZE,
1726 .maxpacket = BULK_FIFO_SIZE,
1739 .maxpacket = BULK_FIFO_SIZE,
[all …]
H A Depautoconf.c131 if (ep->maxpacket < max) in ep_matches()
166 int size = ep->maxpacket; in ep_matches()
H A Ddwc2_udc_otg_priv.h92 #define ep_maxpacket(EP) ((EP)->ep.maxpacket)
H A Ddwc2_udc_otg.c603 dev->ep[0].ep.maxpacket = ep0_fifo_size; in set_max_pktsize()
605 dev->ep[i].ep.maxpacket = ep_fifo_size; in set_max_pktsize()
664 ep->ep.maxpacket = le16_to_cpu(get_unaligned(&desc->wMaxPacketSize)); in dwc2_ep_enable()
675 __func__, _ep->name, ep->stopped, ep->ep.maxpacket); in dwc2_ep_enable()
829 .maxpacket = EP0_FIFO_SIZE,
844 .maxpacket = EP_FIFO_SIZE,
859 .maxpacket = EP_FIFO_SIZE,
874 .maxpacket = EP_FIFO_SIZE,
H A Dat91_udc.h97 unsigned maxpacket:16; member
H A Ddwc2_udc_otg_xfer_dma.c101 ep_num ? DOEPT_SIZ_XFER_SIZE_MAX_EP : ep->ep.maxpacket); in setdma_rx()
109 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; in setdma_rx()
157 pktcnt = (length - 1)/(ep->ep.maxpacket) + 1; in setdma_tx()
236 is_short = !!(xfer_size % ep->ep.maxpacket); in complete_rx()
292 is_short = (xfer_size < ep->ep.maxpacket); in complete_tx()
1130 (ep->ep.maxpacket << DEPCTL_MPS_BIT); in dwc2_udc_ep_activate()
H A Dether.c1273 device_desc.bMaxPacketSize0 = gadget->ep0->maxpacket; in eth_setup()
1495 && (value % gadget->ep0->maxpacket) == 0; in eth_setup()
1536 size += dev->out_ep->maxpacket - 1; in rx_submit()
1539 size -= size % dev->out_ep->maxpacket; in rx_submit()
1733 if (!dev->zlp && (length % dev->in_ep->maxpacket) == 0)
2455 if (!dev->zlp && (length % dev->in_ep->maxpacket) == 0) in _usb_eth_send()
H A Dcomposite.c312 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket; in device_qual()
853 cdev->gadget->ep0->maxpacket; in composite_setup()
1138 cdev->desc.bMaxPacketSize0 = gadget->ep0->maxpacket; in composite_bind()
H A Dstorage_common.c604 ep->maxpacket = usb_endpoint_maxp(speed_desc) & USB_ENDPOINT_MAXP_MASK; in fsg_ep_desc()
/rk3399_rockchip-uboot/include/linux/usb/
H A Dmusb.h46 u16 maxpacket; member
54 .maxpacket = pkt, \
H A Dgadget.h182 unsigned maxpacket:16; member
204 ep->maxpacket = maxpacket_limit; in usb_ep_set_maxpacket_limit()
/rk3399_rockchip-uboot/drivers/usb/dwc3/
H A Dep0.c666 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel()
814 maxp = ep0->endpoint.maxpacket; in dwc3_ep0_complete_data()
853 if (IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data()
944 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data()
947 u32 maxpacket; in __dwc3_ep0_do_control_data() local
956 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
958 transfer_size = (req->request.length / maxpacket) * in __dwc3_ep0_do_control_data()
959 maxpacket; in __dwc3_ep0_do_control_data()
967 maxpacket); in __dwc3_ep0_do_control_data()
H A Dgadget.c207 tmp = mult * (dep->endpoint.maxpacket + mdwidth); in dwc3_gadget_resize_tx_fifos()
734 (length % dep->endpoint.maxpacket)) in dwc3_prepare_one_trb()
735 length = dep->endpoint.maxpacket * in dwc3_prepare_one_trb()
736 ((length - 1) / dep->endpoint.maxpacket + 1); in dwc3_prepare_one_trb()
983 req->request.length < dep->endpoint.maxpacket) in __dwc3_gadget_ep_queue()
984 req->request.length = dep->endpoint.maxpacket; in __dwc3_gadget_ep_queue()
1757 (req->request.length % dep->endpoint.maxpacket)) { in __dwc3_cleanup_done_trbs()
1758 length = dep->endpoint.maxpacket * in __dwc3_cleanup_done_trbs()
1759 ((req->request.length - 1) / dep->endpoint.maxpacket + 1); in __dwc3_cleanup_done_trbs()
2202 dwc->gadget.ep0->maxpacket = 512; in dwc3_gadget_conndone_interrupt()
[all …]
/rk3399_rockchip-uboot/drivers/usb/host/
H A Dr8a66597-hcd.c232 u16 pipenum, bufnum, maxpacket; in pipe_buffer_setting() local
237 maxpacket = dev->epmaxpacketin[usb_pipeendpoint(pipe)]; in pipe_buffer_setting()
241 maxpacket = dev->epmaxpacketout[usb_pipeendpoint(pipe)]; in pipe_buffer_setting()
262 maxpacket, PIPEMAXP); in pipe_buffer_setting()
373 int maxpacket = dev->epmaxpacketin[usb_pipeendpoint(pipe)]; in receive_bulk_packet() local
385 (transfer_len + maxpacket - 1) / maxpacket, in receive_bulk_packet()
H A Dehci-hcd.c311 uint32_t endpt, maxpacket, token, usbsts, qhtoken; in ehci_submit_async() local
409 maxpacket = usb_maxpacket(dev, pipe); in ehci_submit_async()
411 QH_ENDPT1_MAXPKTLEN(maxpacket) | QH_ENDPT1_H(0) | in ehci_submit_async()
512 if ((xfr_bytes / maxpacket) & 1) in ehci_submit_async()
/rk3399_rockchip-uboot/drivers/usb/cdns3/
H A Dep0.c785 (request->length % ep->maxpacket == 0)) in cdns3_gadget_ep0_queue()
852 priv_dev->gadget.ep0->maxpacket = max_packet_size; in cdns3_ep0_config()

12