Lines Matching refs:mA
193 void usb_phy_set_charger_current(struct usb_phy *usb_phy, unsigned int mA) in usb_phy_set_charger_current() argument
197 if (usb_phy->chg_cur.sdp_max == mA) in usb_phy_set_charger_current()
200 usb_phy->chg_cur.sdp_max = (mA > DEFAULT_SDP_CUR_MAX_SS) ? in usb_phy_set_charger_current()
201 DEFAULT_SDP_CUR_MAX_SS : mA; in usb_phy_set_charger_current()
204 if (usb_phy->chg_cur.dcp_max == mA) in usb_phy_set_charger_current()
207 usb_phy->chg_cur.dcp_max = (mA > DEFAULT_DCP_CUR_MAX) ? in usb_phy_set_charger_current()
208 DEFAULT_DCP_CUR_MAX : mA; in usb_phy_set_charger_current()
211 if (usb_phy->chg_cur.cdp_max == mA) in usb_phy_set_charger_current()
214 usb_phy->chg_cur.cdp_max = (mA > DEFAULT_CDP_CUR_MAX) ? in usb_phy_set_charger_current()
215 DEFAULT_CDP_CUR_MAX : mA; in usb_phy_set_charger_current()
218 if (usb_phy->chg_cur.aca_max == mA) in usb_phy_set_charger_current()
221 usb_phy->chg_cur.aca_max = (mA > DEFAULT_ACA_CUR_MAX) ? in usb_phy_set_charger_current()
222 DEFAULT_ACA_CUR_MAX : mA; in usb_phy_set_charger_current()