Home
last modified time | relevance | path

Searched refs:bix (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dsurface_battery.c134 struct spwr_bix bix; member
181 bat->bix.model[ARRAY_SIZE(bat->bix.model) - 1] = 0; in spwr_battery_load_bix()
182 bat->bix.serial[ARRAY_SIZE(bat->bix.serial) - 1] = 0; in spwr_battery_load_bix()
183 bat->bix.type[ARRAY_SIZE(bat->bix.type) - 1] = 0; in spwr_battery_load_bix()
184 bat->bix.oem_info[ARRAY_SIZE(bat->bix.oem_info) - 1] = 0; in spwr_battery_load_bix()
490 if (!strcasecmp("NiCd", bat->bix.type)) in spwr_battery_prop_technology()
493 if (!strcasecmp("NiMH", bat->bix.type)) in spwr_battery_prop_technology()
502 if (!strcasecmp("LiP", bat->bix.type)) in spwr_battery_prop_technology()
644 val->strval = bat->bix.model; in spwr_battery_get_property()
648 val->strval = bat->bix.oem_info; in spwr_battery_get_property()
[all …]
/openbmc/linux/drivers/platform/surface/
H A Dsurface3_power.c66 struct bix { struct
109 struct bix bix; member
207 static int mshw0011_bix(struct mshw0011_data *cdata, struct bix *bix) in mshw0011_bix() argument
213 *bix = default_bix; in mshw0011_bix()
223 bix->design_capacity = ret; in mshw0011_bix()
233 bix->last_full_charg_capacity = ret; in mshw0011_bix()
248 snprintf(bix->serial, ARRAY_SIZE(bix->serial), "%3pE%6pE", buf + 7, buf); in mshw0011_bix()
257 bix->cycle_count = ret; in mshw0011_bix()
266 snprintf(bix->OEM, ARRAY_SIZE(bix->OEM), "%3pE", buf); in mshw0011_bix()
313 struct bix bix; in mshw0011_isr() local
[all …]