Lines Matching refs: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()
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()
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()
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()