Lines Matching refs:mdwidth
700 int mdwidth; in dwc3_gadget_calc_tx_fifo_size() local
702 mdwidth = dwc3_mdwidth(dwc); in dwc3_gadget_calc_tx_fifo_size()
705 mdwidth >>= 3; in dwc3_gadget_calc_tx_fifo_size()
708 fifo_size = mult * (max_packet / mdwidth) + 1; in dwc3_gadget_calc_tx_fifo_size()
710 fifo_size = mult * ((max_packet + mdwidth) / mdwidth) + 1; in dwc3_gadget_calc_tx_fifo_size()
2844 u32 mdwidth; in dwc3_gadget_setup_nump() local
2849 mdwidth = dwc3_mdwidth(dwc); in dwc3_gadget_setup_nump()
2851 nump = ((ram2_depth * mdwidth / 8) - 24 - 16) / 1024; in dwc3_gadget_setup_nump()
3168 u32 mdwidth; in dwc3_gadget_init_in_endpoint() local
3172 mdwidth = dwc3_mdwidth(dwc); in dwc3_gadget_init_in_endpoint()
3175 mdwidth /= 8; in dwc3_gadget_init_in_endpoint()
3195 maxpacket = mdwidth * (size - 1); in dwc3_gadget_init_in_endpoint()
3197 maxpacket = mdwidth * ((size - 1) - 1) - mdwidth; in dwc3_gadget_init_in_endpoint()
3217 u32 mdwidth; in dwc3_gadget_init_out_endpoint() local
3220 mdwidth = dwc3_mdwidth(dwc); in dwc3_gadget_init_out_endpoint()
3223 mdwidth /= 8; in dwc3_gadget_init_out_endpoint()
3233 size *= mdwidth; in dwc3_gadget_init_out_endpoint()