Lines Matching refs:intval

52 		val->intval = ac_online;  in test_power_get_ac_property()
66 val->intval = usb_online; in test_power_get_usb_property()
89 val->intval = battery_status; in test_power_get_battery_property()
92 val->intval = battery_charge_types; in test_power_get_battery_property()
95 val->intval = battery_health; in test_power_get_battery_property()
98 val->intval = battery_present; in test_power_get_battery_property()
101 val->intval = battery_technology; in test_power_get_battery_property()
104 val->intval = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; in test_power_get_battery_property()
108 val->intval = battery_capacity; in test_power_get_battery_property()
111 val->intval = battery_charge_counter; in test_power_get_battery_property()
115 val->intval = 100; in test_power_get_battery_property()
119 val->intval = 3600; in test_power_get_battery_property()
122 val->intval = 26; in test_power_get_battery_property()
125 val->intval = battery_voltage; in test_power_get_battery_property()
129 val->intval = battery_current; in test_power_get_battery_property()
132 val->intval = battery_charge_behaviour; in test_power_get_battery_property()
135 val->intval = battery_charge_types; in test_power_get_battery_property()
157 if (val->intval < 0 || in test_power_set_battery_property()
158 val->intval >= BITS_PER_TYPE(typeof(psy->desc->charge_behaviours)) || in test_power_set_battery_property()
159 !(BIT(val->intval) & psy->desc->charge_behaviours)) { in test_power_set_battery_property()
162 battery_charge_behaviour = val->intval; in test_power_set_battery_property()
165 if (val->intval < 0 || in test_power_set_battery_property()
166 val->intval >= BITS_PER_TYPE(typeof(psy->desc->charge_types)) || in test_power_set_battery_property()
167 !(BIT(val->intval) & psy->desc->charge_types)) { in test_power_set_battery_property()
170 battery_charge_types = val->intval; in test_power_set_battery_property()
278 val->intval = test_power_battery_extmanufacture_year; in test_power_battery_extget_property()
281 val->intval = test_power_battery_exttemp_max; in test_power_battery_extget_property()
297 test_power_battery_extmanufacture_year = val->intval; in test_power_battery_extset_property()
300 test_power_battery_exttemp_max = val->intval; in test_power_battery_extset_property()