Lines Matching refs:mps

706 	u32 mps = hs_ep->ep.maxpacket;  in dwc2_gadget_get_desc_params()  local
711 desc_size = mps; in dwc2_gadget_get_desc_params()
726 desc_size -= desc_size % mps; in dwc2_gadget_get_desc_params()
748 u32 mps = hs_ep->ep.maxpacket; in dwc2_gadget_config_nonisoc_xfer_ddma() local
780 desc->status |= (len % mps) ? DEV_DMA_SHORT : in dwc2_gadget_config_nonisoc_xfer_ddma()
1044 u32 mps = hs_ep->ep.maxpacket; in dwc2_hsotg_start_req() local
1049 length = mps; in dwc2_hsotg_start_req()
1050 else if (length % mps) in dwc2_hsotg_start_req()
1051 length += (mps - (length % mps)); in dwc2_hsotg_start_req()
2416 static u32 dwc2_hsotg_ep0_mps(unsigned int mps) in dwc2_hsotg_ep0_mps() argument
2418 switch (mps) { in dwc2_hsotg_ep0_mps()
2446 unsigned int ep, unsigned int mps, in dwc2_hsotg_set_ep_maxpacket() argument
2457 u32 mps_bytes = mps; in dwc2_hsotg_set_ep_maxpacket()
2460 mps = dwc2_hsotg_ep0_mps(mps_bytes); in dwc2_hsotg_set_ep_maxpacket()
2461 if (mps > 3) in dwc2_hsotg_set_ep_maxpacket()
2466 if (mps > 1024) in dwc2_hsotg_set_ep_maxpacket()
2471 hs_ep->ep.maxpacket = mps; in dwc2_hsotg_set_ep_maxpacket()
2477 reg |= mps; in dwc2_hsotg_set_ep_maxpacket()
2482 reg |= mps; in dwc2_hsotg_set_ep_maxpacket()
2489 dev_err(hsotg->dev, "ep%d: bad mps of %d\n", ep, mps); in dwc2_hsotg_set_ep_maxpacket()
3775 u32 mps; in dwc2_hsotg_ep_enable() local
3801 mps = usb_endpoint_maxp(desc); in dwc2_hsotg_ep_enable()
3843 epctrl |= DXEPCTL_MPS(mps); in dwc2_hsotg_ep_enable()
3852 dwc2_hsotg_set_ep_maxpacket(hsotg, hs_ep->index, mps, mc, dir_in); in dwc2_hsotg_ep_enable()