Lines Matching +full:900 +full:ma
21 #define DEFAULT_SDP_CUR_MAX_SS 900
220 * @mA: the current need to be set
231 void usb_phy_set_charger_current(struct usb_phy *usb_phy, unsigned int mA) in usb_phy_set_charger_current() argument
235 if (usb_phy->chg_cur.sdp_max == mA) in usb_phy_set_charger_current()
238 usb_phy->chg_cur.sdp_max = (mA > DEFAULT_SDP_CUR_MAX_SS) ? in usb_phy_set_charger_current()
239 DEFAULT_SDP_CUR_MAX_SS : mA; in usb_phy_set_charger_current()
242 if (usb_phy->chg_cur.dcp_max == mA) in usb_phy_set_charger_current()
245 usb_phy->chg_cur.dcp_max = (mA > DEFAULT_DCP_CUR_MAX) ? in usb_phy_set_charger_current()
246 DEFAULT_DCP_CUR_MAX : mA; in usb_phy_set_charger_current()
249 if (usb_phy->chg_cur.cdp_max == mA) in usb_phy_set_charger_current()
252 usb_phy->chg_cur.cdp_max = (mA > DEFAULT_CDP_CUR_MAX) ? in usb_phy_set_charger_current()
253 DEFAULT_CDP_CUR_MAX : mA; in usb_phy_set_charger_current()
256 if (usb_phy->chg_cur.aca_max == mA) in usb_phy_set_charger_current()
259 usb_phy->chg_cur.aca_max = (mA > DEFAULT_ACA_CUR_MAX) ? in usb_phy_set_charger_current()
260 DEFAULT_ACA_CUR_MAX : mA; in usb_phy_set_charger_current()