Lines Matching defs:rk816_battery

158 struct rk816_battery {  struct
159 struct platform_device *pdev;
160 struct rk808 *rk816;
161 struct regmap *regmap;
162 struct device *dev;
163 struct power_supply *bat;
164 struct power_supply *usb;
165 struct power_supply *ac;
166 struct battery_platform_data *pdata;
167 struct workqueue_struct *bat_monitor_wq;
168 struct workqueue_struct *usb_charger_wq;
169 struct delayed_work bat_delay_work;
170 struct delayed_work dc_delay_work;
171 struct delayed_work calib_delay_work;
172 struct wake_lock wake_lock;
173 struct notifier_block fb_nb;
174 struct timer_list caltimer;
175 time64_t rtc_base;
176 struct iio_channel *iio_chan;
177 struct notifier_block cable_cg_nb;
178 struct notifier_block cable_host_nb;
179 struct notifier_block cable_discnt_nb;
180 struct delayed_work usb_work;
181 struct delayed_work host_work;
182 struct delayed_work discnt_work;
183 struct extcon_dev *cable_edev;
184 int charger_changed;
185 int bat_res;
186 int chrg_status;
187 int res_fac;
188 int over_20mR;
189 bool is_initialized;
190 bool bat_first_power_on;
191 u8 ac_in;
192 u8 usb_in;
193 u8 otg_in; /* OTG device attached status */
194 u8 otg_pmic5v; /* OTG device power supply from PMIC */
195 u8 dc_in;
196 u8 prop_status;
197 int cvtlmt_irq;
198 int current_avg;
199 int current_relax;
200 int voltage_avg;
201 int voltage_ocv;
202 int voltage_relax;
203 int voltage_k;/* VCALIB0 VCALIB1 */
204 int voltage_b;
205 int remain_cap;
206 int design_cap;
207 int nac;
208 int fcc;
209 int lock_fcc;
210 int qmax;
211 int dsoc;
212 int rsoc;
213 int poffset;
214 int fake_offline;
215 int age_ocv_soc;
216 bool age_allow_update;
217 int age_level;
218 int age_ocv_cap;
219 int age_voltage;
220 int age_adjust_cap;
221 unsigned long age_keep_sec;
222 int zero_timeout_cnt;
223 int zero_remain_cap;
224 int zero_dsoc;
225 int zero_linek;
226 u64 zero_drop_sec;
227 u64 shtd_drop_sec;
228 int sm_remain_cap;
229 int sm_linek;
230 int sm_chrg_dsoc;
231 int sm_dischrg_dsoc;
232 int algo_rest_val;
233 int algo_rest_mode;
234 int sleep_sum_cap;
235 int sleep_remain_cap;
236 unsigned long sleep_dischrg_sec;
237 unsigned long sleep_sum_sec;
238 bool sleep_chrg_online;
239 u8 sleep_chrg_status;
240 bool adc_allow_update;
241 int fb_blank;
242 bool s2r; /*suspend to resume*/
243 u32 work_mode;
244 int temperature;
245 int chrg_cur_lp_input;
246 int chrg_vol_sel;
247 int chrg_cur_input;
248 int chrg_cur_sel;
249 u32 monitor_ms;
250 u32 pwroff_min;
251 u32 adc_calib_cnt;
252 unsigned long chrg_finish_base;
253 unsigned long boot_base;
254 unsigned long flat_match_sec;
255 unsigned long plug_in_base;
256 unsigned long plug_out_base;
257 u8 halt_cnt;
258 bool is_halt;
259 bool is_max_soc_offset;
260 bool is_sw_reset;
261 bool is_ocv_calib;
262 bool is_first_on;
263 bool is_force_calib;
264 int last_dsoc;
288 void (*led_init)(struct rk816_battery *di); argument