Lines Matching refs:power_state

74 	bls.power_state = 0;  in bt_bas_bls_init()
112 .power_state = sys_cpu_to_le16(bls.power_state), in bt_bas_bls_update_battery_level_status()
148 .power_state = sys_cpu_to_le16(bls.power_state), in bt_bas_bls_read_blvl_status()
166 bls.power_state &= ~BATTERY_MASK; in bt_bas_bls_set_battery_present()
167 bls.power_state |= (present << BATTERY_SHIFT) & BATTERY_MASK; in bt_bas_bls_set_battery_present()
173 bls.power_state &= ~WIRED_POWER_MASK; in bt_bas_bls_set_wired_external_power_source()
174 bls.power_state |= (source << WIRED_POWER_SHIFT) & WIRED_POWER_MASK; in bt_bas_bls_set_wired_external_power_source()
180 bls.power_state &= ~WIRELESS_POWER_MASK; in bt_bas_bls_set_wireless_external_power_source()
181 bls.power_state |= (source << WIRELESS_POWER_SHIFT) & WIRELESS_POWER_MASK; in bt_bas_bls_set_wireless_external_power_source()
187 bls.power_state &= ~BATTERY_CHARGE_STATE_MASK; in bt_bas_bls_set_battery_charge_state()
188 bls.power_state |= (state << BATTERY_CHARGE_STATE_SHIFT) & BATTERY_CHARGE_STATE_MASK; in bt_bas_bls_set_battery_charge_state()
194 bls.power_state &= ~BATTERY_CHARGE_LEVEL_MASK; in bt_bas_bls_set_battery_charge_level()
195 bls.power_state |= (level << BATTERY_CHARGE_LEVEL_SHIFT) & BATTERY_CHARGE_LEVEL_MASK; in bt_bas_bls_set_battery_charge_level()
215 bls.power_state &= ~BATTERY_CHARGE_TYPE_MASK; in bt_bas_bls_set_battery_charge_type()
216 bls.power_state |= (type << BATTERY_CHARGE_TYPE_SHIFT) & BATTERY_CHARGE_TYPE_MASK; in bt_bas_bls_set_battery_charge_type()
222 bls.power_state &= ~CHARGING_FAULT_MASK; in bt_bas_bls_set_charging_fault_reason()
223 bls.power_state |= (reason << CHARGING_FAULT_SHIFT) & CHARGING_FAULT_MASK; in bt_bas_bls_set_charging_fault_reason()