Lines Matching refs:chip_info

102 	const struct bq25980_chip_info *chip_info;  member
307 busocp = min(busocp, bq->chip_info->busocp_sc_max); in bq25980_set_input_curr_lim()
309 busocp = min(busocp, bq->chip_info->busocp_byp_max); in bq25980_set_input_curr_lim()
329 busovp_step = bq->chip_info->busovp_byp_step; in bq25980_get_input_volt_lim()
330 busovp_offset = bq->chip_info->busovp_byp_offset; in bq25980_get_input_volt_lim()
332 busovp_step = bq->chip_info->busovp_sc_step; in bq25980_get_input_volt_lim()
333 busovp_offset = bq->chip_info->busovp_sc_offset; in bq25980_get_input_volt_lim()
351 busovp_step = bq->chip_info->busovp_byp_step; in bq25980_set_input_volt_lim()
352 busovp_offset = bq->chip_info->busovp_byp_offset; in bq25980_set_input_volt_lim()
353 if (busovp > bq->chip_info->busovp_byp_max) in bq25980_set_input_volt_lim()
354 busovp = bq->chip_info->busovp_byp_max; in bq25980_set_input_volt_lim()
355 else if (busovp < bq->chip_info->busovp_byp_min) in bq25980_set_input_volt_lim()
356 busovp = bq->chip_info->busovp_byp_min; in bq25980_set_input_volt_lim()
358 busovp_step = bq->chip_info->busovp_sc_step; in bq25980_set_input_volt_lim()
359 busovp_offset = bq->chip_info->busovp_sc_offset; in bq25980_set_input_volt_lim()
360 if (busovp > bq->chip_info->busovp_sc_max) in bq25980_set_input_volt_lim()
361 busovp = bq->chip_info->busovp_sc_max; in bq25980_set_input_volt_lim()
362 else if (busovp < bq->chip_info->busovp_sc_min) in bq25980_set_input_volt_lim()
363 busovp = bq->chip_info->busovp_sc_min; in bq25980_set_input_volt_lim()
394 batocp = min(batocp, bq->chip_info->batocp_max); in bq25980_set_const_charge_curr()
416 return ((batovp_reg_code * bq->chip_info->batovp_step) + in bq25980_get_const_charge_volt()
417 bq->chip_info->batovp_offset); in bq25980_get_const_charge_volt()
425 if (batovp < bq->chip_info->batovp_min) in bq25980_set_const_charge_volt()
426 batovp = bq->chip_info->batovp_min; in bq25980_set_const_charge_volt()
428 if (batovp > bq->chip_info->batovp_max) in bq25980_set_const_charge_volt()
429 batovp = bq->chip_info->batovp_max; in bq25980_set_const_charge_volt()
431 batovp_reg_code = (batovp - bq->chip_info->batovp_offset) / in bq25980_set_const_charge_volt()
432 bq->chip_info->batovp_step; in bq25980_set_const_charge_volt()
1160 bq->init_data.sc_vlim = bq->chip_info->busovp_sc_def; in bq25980_parse_dt()
1162 if (bq->init_data.sc_vlim > bq->chip_info->busovp_sc_max || in bq25980_parse_dt()
1163 bq->init_data.sc_vlim < bq->chip_info->busovp_sc_min) { in bq25980_parse_dt()
1172 bq->init_data.sc_ilim = bq->chip_info->busocp_def; in bq25980_parse_dt()
1174 if (bq->init_data.sc_ilim > bq->chip_info->busocp_sc_max || in bq25980_parse_dt()
1175 bq->init_data.sc_ilim < bq->chip_info->busocp_sc_min) { in bq25980_parse_dt()
1184 bq->init_data.bypass_vlim = bq->chip_info->busovp_byp_def; in bq25980_parse_dt()
1186 if (bq->init_data.bypass_vlim > bq->chip_info->busovp_byp_max || in bq25980_parse_dt()
1187 bq->init_data.bypass_vlim < bq->chip_info->busovp_byp_min) { in bq25980_parse_dt()
1196 bq->init_data.bypass_ilim = bq->chip_info->busocp_def; in bq25980_parse_dt()
1198 if (bq->init_data.bypass_ilim > bq->chip_info->busocp_byp_max || in bq25980_parse_dt()
1199 bq->init_data.bypass_ilim < bq->chip_info->busocp_byp_min) { in bq25980_parse_dt()
1227 bq->chip_info = &bq25980_chip_info_tbl[id->driver_data]; in bq25980_probe()
1230 bq->chip_info->regmap_config); in bq25980_probe()