Lines Matching refs:maxpacket
483 (((ep->xfer_len + ep->maxpacket - 1U) / in usb_dwc2_ep_start_xfer()
484 ep->maxpacket) << OTG_DIEPTSIZ_PKTCNT_SHIFT)) in usb_dwc2_ep_start_xfer()
524 reg_value = ep->maxpacket | OTG_DIEPTSIZ_PKTCNT_1; in usb_dwc2_ep_start_xfer()
526 uint16_t pktcnt = (ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket; in usb_dwc2_ep_start_xfer()
529 (ep->maxpacket * pktcnt); in usb_dwc2_ep_start_xfer()
579 if (ep->xfer_len > ep->maxpacket) { in usb_dwc2_ep0_start_xfer()
580 ep->xfer_len = ep->maxpacket; in usb_dwc2_ep0_start_xfer()
609 ep->xfer_len = ep->maxpacket; in usb_dwc2_ep0_start_xfer()
612 reg_value = OTG_DIEPTSIZ_PKTCNT_1 | ep->maxpacket; in usb_dwc2_ep0_start_xfer()
737 uint32_t maxpacket, in usb_dwc2_write_empty_tx_fifo() argument
748 if ((len > 0) && ((uint32_t)len > maxpacket)) { in usb_dwc2_write_empty_tx_fifo()
749 len = maxpacket; in usb_dwc2_write_empty_tx_fifo()
762 if ((len > 0) && ((uint32_t)len > maxpacket)) { in usb_dwc2_write_empty_tx_fifo()
763 len = maxpacket; in usb_dwc2_write_empty_tx_fifo()