Lines Matching +full:500 +full:ma
521 /* set current limit in mA */
522 static int bq2415x_set_current_limit(struct bq2415x_device *bq, int mA) in bq2415x_set_current_limit() argument
526 if (mA <= 100) in bq2415x_set_current_limit()
528 else if (mA <= 500) in bq2415x_set_current_limit()
530 else if (mA <= 800) in bq2415x_set_current_limit()
539 /* get current limit in mA */
551 return 500; in bq2415x_get_current_limit()
620 /* set charge current in mA (platform data must provide resistor sense) */
621 static int bq2415x_set_charge_current(struct bq2415x_device *bq, int mA) in bq2415x_set_charge_current() argument
628 val = (mA * bq->init_data.resistor_sense - 37400) / 6800; in bq2415x_set_charge_current()
639 /* get charge current in mA (platform data must provide resistor sense) */
654 /* set termination current in mA (platform data must provide resistor sense) */
655 static int bq2415x_set_termination_current(struct bq2415x_device *bq, int mA) in bq2415x_set_termination_current() argument
662 val = (mA * bq->init_data.resistor_sense - 3400) / 3400; in bq2415x_set_termination_current()
673 /* get termination current in mA (platform data must provide resistor sense) */
753 ret = bq2415x_set_current_limit(bq, 500); in bq2415x_set_mode()
786 static bool bq2415x_update_reported_mode(struct bq2415x_device *bq, int mA) in bq2415x_update_reported_mode() argument
790 if (mA == 0) in bq2415x_update_reported_mode()
792 else if (mA < 500) in bq2415x_update_reported_mode()
794 else if (mA < 1800) in bq2415x_update_reported_mode()
1122 * host - charging mode for host/hub chargers (current limit 500mA)
1295 /* set current and voltage limit entries (in mA or mV) */
1327 /* show current and voltage limit entries (in mA or mV) */