Home
last modified time | relevance | path

Searched refs:resistor_sense (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/include/linux/power/
Dbq2415x_charger.h41 int resistor_sense; /* m ohm */ member
/linux-6.12.1/drivers/power/supply/
Dbq2415x_charger.c625 if (bq->init_data.resistor_sense <= 0) in bq2415x_set_charge_current()
628 val = (mA * bq->init_data.resistor_sense - 37400) / 6800; in bq2415x_set_charge_current()
644 if (bq->init_data.resistor_sense <= 0) in bq2415x_get_charge_current()
651 return (37400 + 6800*ret) / bq->init_data.resistor_sense; in bq2415x_get_charge_current()
659 if (bq->init_data.resistor_sense <= 0) in bq2415x_set_termination_current()
662 val = (mA * bq->init_data.resistor_sense - 3400) / 3400; in bq2415x_set_termination_current()
678 if (bq->init_data.resistor_sense <= 0) in bq2415x_get_termination_current()
685 return (3400 + 3400*ret) / bq->init_data.resistor_sense; in bq2415x_get_termination_current()
709 if (bq->init_data.resistor_sense > 0) { in bq2415x_set_defaults()
1625 &bq->init_data.resistor_sense); in bq2415x_probe()