Lines Matching refs:mA
521 /* set current limit in mA */
522 static int bq2415x_set_current_limit(struct bq2415x_device *bq, int mA)
526 if (mA <= 100)
528 else if (mA <= 500)
530 else if (mA <= 800)
539 /* get current limit in mA */
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)
628 val = (mA * bq->init_data.resistor_sense - 37400) / 6800;
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)
662 val = (mA * bq->init_data.resistor_sense - 3400) / 3400;
673 /* get termination current in mA (platform data must provide resistor sense) */
786 static bool bq2415x_update_reported_mode(struct bq2415x_device *bq, int mA)
790 if (mA == 0)
792 else if (mA < 500)
794 else if (mA < 1800)
1112 * host - charging mode for host/hub chargers (current limit 500mA)
1285 /* set current and voltage limit entries (in mA or mV) */
1317 /* show current and voltage limit entries (in mA or mV) */