Searched refs:bix (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/power/supply/ |
D | surface_battery.c | 134 struct spwr_bix bix; member 178 status = ssam_retry(ssam_bat_get_bix, bat->sdev, &bat->bix); in spwr_battery_load_bix() 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() 260 if (bat->bix.revision != SPWR_BIX_REVISION) in spwr_battery_update_bix_unlocked() 261 dev_warn(&bat->sdev->dev, "unsupported battery revision: %u\n", bat->bix.revision); in spwr_battery_update_bix_unlocked() 269 u32 full_cap = get_unaligned_le32(&bat->bix.last_full_charge_cap); in sprw_battery_get_full_cap_safe() 274 full_cap = get_unaligned_le32(&bat->bix.design_cap); in sprw_battery_get_full_cap_safe() [all …]
|
/linux-6.12.1/drivers/platform/surface/ |
D | surface3_power.c | 66 struct bix { struct 109 struct bix bix; member 184 static const struct bix default_bix = { 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() [all …]
|