Home
last modified time | relevance | path

Searched refs:bat_profile (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/power/fuel_gauge/
H A Dfg_cw221x.c112 u8 *bat_profile; member
178 cw221x->bat_profile = config_profile_info; in cw221x_ofdata_to_platdata()
183 size = sizeof(*cw221x->bat_profile) * len; in cw221x_ofdata_to_platdata()
184 cw221x->bat_profile = calloc(size, 1); in cw221x_ofdata_to_platdata()
185 if (!cw221x->bat_profile) { in cw221x_ofdata_to_platdata()
196 cw221x->bat_profile[i] = info[i]; in cw221x_ofdata_to_platdata()
197 CW_DBG("%#x ", cw221x->bat_profile[i]); in cw221x_ofdata_to_platdata()
417 if (cw221x->bat_profile[i] != reg_val) in cw221X_get_state()
434 cw_write_profile(cw221x, cw221x->bat_profile); in cw_config_start_ic()
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dcw221x_battery.c119 u8 *bat_profile; member
556 cw_bat->bat_profile = devm_kzalloc(dev, length, GFP_KERNEL); in cw221x_parse_properties()
557 if (!cw_bat->bat_profile) in cw221x_parse_properties()
562 cw_bat->bat_profile, in cw221x_parse_properties()
575 cw_bat->bat_profile = config_profile_info; in cw_config_profile_init()
580 cw_printk("[%d]: 0x%x\n", i, cw_bat->bat_profile[i]); in cw_config_profile_init()
595 ret = cw_write_profile(cw_bat->client, cw_bat->bat_profile); in cw_config_start_ic()
601 cw_printk("[%d]: 0x%x\n", i, cw_bat->bat_profile[i]); in cw_config_start_ic()
663 if (cw_bat->bat_profile[i] != reg_val) in cw221X_get_state()
H A Dcw2017_battery.c74 u8 *bat_profile; member
132 cw_bat->bat_profile, in cw_update_profile()
191 if (cw_bat->bat_profile) { in cw_init()
202 } else if (cw_bat->bat_profile) { in cw_init()
213 if (memcmp(bat_info, cw_bat->bat_profile, CW2017_SIZE_BATINFO)) { in cw_init()
488 cw_bat->bat_profile = devm_kzalloc(dev, length, GFP_KERNEL); in cw2017_parse_properties()
489 if (!cw_bat->bat_profile) in cw2017_parse_properties()
494 cw_bat->bat_profile, in cw2017_parse_properties()
H A Dcw2015_battery.c65 u8 *bat_profile; member
118 cw_bat->bat_profile, in cw_update_profile()
191 if (cw_bat->bat_profile) { in cw_init()
202 } else if (cw_bat->bat_profile) { in cw_init()
213 if (memcmp(bat_info, cw_bat->bat_profile, CW2015_SIZE_BATINFO)) { in cw_init()
593 cw_bat->bat_profile = devm_kzalloc(dev, length, GFP_KERNEL); in cw2015_parse_properties()
594 if (!cw_bat->bat_profile) in cw2015_parse_properties()
599 cw_bat->bat_profile, in cw2015_parse_properties()