• Home
  • Raw
  • Download

Lines Matching refs:bm

106 	struct ab8500_bm_data *bm;  member
148 if (di->bm->adc_therm == AB8500_ADC_THERM_BATCTRL) { in ab8500_btemp_batctrl_volt_to_res()
154 - di->bm->gnd_lift_resistance * inst_curr) in ab8500_btemp_batctrl_volt_to_res()
210 if (di->bm->adc_therm == AB8500_ADC_THERM_BATCTRL && enable) { in ab8500_btemp_curr_source_enable()
243 } else if (di->bm->adc_therm == AB8500_ADC_THERM_BATCTRL && !enable) { in ab8500_btemp_curr_source_enable()
459 id = di->bm->batt_id; in ab8500_btemp_measure_temp()
461 if (di->bm->adc_therm == AB8500_ADC_THERM_BATCTRL && in ab8500_btemp_measure_temp()
476 di->bm->bat_type[id].r_to_t_tbl, in ab8500_btemp_measure_temp()
477 di->bm->bat_type[id].n_temp_tbl_elements, rbat); in ab8500_btemp_measure_temp()
493 di->bm->bat_type[id].r_to_t_tbl, in ab8500_btemp_measure_temp()
494 di->bm->bat_type[id].n_temp_tbl_elements, rntc); in ab8500_btemp_measure_temp()
515 di->bm->batt_id = BATTERY_UNKNOWN; in ab8500_btemp_id()
524 for (i = BATTERY_UNKNOWN + 1; i < di->bm->n_btypes; i++) { in ab8500_btemp_id()
525 if ((res <= di->bm->bat_type[i].resis_high) && in ab8500_btemp_id()
526 (res >= di->bm->bat_type[i].resis_low)) { in ab8500_btemp_id()
530 di->bm->adc_therm == AB8500_ADC_THERM_BATCTRL ? in ab8500_btemp_id()
532 di->bm->bat_type[i].resis_low, res, in ab8500_btemp_id()
533 di->bm->bat_type[i].resis_high, i); in ab8500_btemp_id()
535 di->bm->batt_id = i; in ab8500_btemp_id()
540 if (di->bm->batt_id == BATTERY_UNKNOWN) { in ab8500_btemp_id()
550 if (di->bm->adc_therm == AB8500_ADC_THERM_BATCTRL && in ab8500_btemp_id()
551 di->bm->batt_id == 1) { in ab8500_btemp_id()
556 return di->bm->batt_id; in ab8500_btemp_id()
601 interval = di->bm->temp_interval_chg; in ab8500_btemp_periodic_work()
603 interval = di->bm->temp_interval_nochg; in ab8500_btemp_periodic_work()
817 val->intval = di->bm->bat_type[di->bm->batt_id].name; in ab8500_btemp_get_property()
996 di->bm = &ab8500_bm_data; in ab8500_btemp_probe()