Lines Matching full:fg

59 /* FG constants */
63 * struct ab8500_fg_interrupts - ab8500 fg interrupts
153 * struct ab8500_fg - ab8500 FG device information
162 * @fg_samples: Number of samples used in the FG accumulation
172 * @turn_off_fg: True if fg was off before current measurement
184 * @fg_psy: Structure that holds the FG specific battery properties
185 * @fg_wq: Work queue for running the FG algorithm
186 * @fg_periodic_work: Work to run the FG algorithm periodically
188 * @fg_reinit_work Work used to reset and reinitialise the FG algorithm
189 * @fg_work: Work to run the FG algorithm instantly
190 * @fg_acc_cur_work: Work to read the FG accumulator
545 dev_dbg(di->dev, "%s Enable FG\n", __func__); in ab8500_fg_inst_curr_start()
578 * ab8500_fg_inst_curr_started() - check if fg conversion has started
589 * ab8500_fg_inst_curr_done() - check if fg conversion is done
673 dev_dbg(di->dev, "%s Disable FG\n", __func__); in ab8500_fg_inst_curr_finalize()
913 " fg resistance %d, total: %d (mOhm)\n", in ab8500_fg_battery_resistance()
1048 * Return the capacity in mAh based on previous calculated capcity and the FG
1107 * ab8500_fg_calc_cap_discharge_fg() - Capacity in discharge with FG
1110 * Return the capacity in mAh based on previous calculated capcity and the FG
1359 * the LOW_BAT IRQ, no matter what the FG in ab8500_fg_check_capacity_limits()
1434 * ab8500_fg_algorithm_charging() - FG algorithm for when charging
1461 * Read the FG and calculate the new capacity in ab8500_fg_algorithm_charging()
1538 * ab8500_fg_algorithm_discharging() - FG algorithm for when discharging
1553 /* We use the FG IRQ to work on */ in ab8500_fg_algorithm_discharging()
1758 * ab8500_fg_algorithm() - Entry point for the FG algorithm
1796 * ab8500_fg_periodic_work() - Run the FG state machine periodically
1976 * ab8500_fg_instant_work() - Run the FG state machine instantly
2084 * ab8500_fg_get_property() - get the fg properties
2090 * fg properties by reading the sysfs files.
2293 * ab8500_fg_init_hw_registers() - Set up FG related registers
2409 * ab8500_fg_reinit_work() - work to reset the FG algorithm
2422 dev_dbg(di->dev, "Resetting FG state machine to init.\n"); in ab8500_fg_reinit_work()
2973 * up on the FG IRQ in ab8500_fg_resume()
2995 * If the FG is enabled we will disable it before going to suspend in ab8500_fg_suspend()
3004 /* ab8500 fg driver interrupts and their respective isr */
3038 /* Run the FG algorithm */ in ab8500_fg_bind()
3104 /* Create a work queue for running the FG algorithm */ in ab8500_fg_probe()
3111 /* Init work for running the fg algorithm instantly */ in ab8500_fg_probe()
3117 /* Init work for reinitialising the fg algorithm */ in ab8500_fg_probe()
3151 /* Register FG power supply class */ in ab8500_fg_probe()
3154 dev_err(dev, "failed to register FG psy\n"); in ab8500_fg_probe()
3206 dev_err(dev, "failed to create FG psy\n"); in ab8500_fg_probe()
3212 /* Calibrate the fg first time */ in ab8500_fg_probe()
3238 { .compatible = "stericsson,ab8500-fg", },
3247 .name = "ab8500-fg",
3254 MODULE_ALIAS("platform:ab8500-fg");