Home
last modified time | relevance | path

Searched refs:battery_capacity (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/drivers/power/supply/
Dtest_power.c34 static int battery_capacity = 50; variable
103 val->intval = battery_capacity; in test_power_get_battery_property()
440 battery_capacity = tmp; in param_set_battery_capacity()
576 module_param(battery_capacity, battery_capacity, 0644);
577 MODULE_PARM_DESC(battery_capacity, "battery capacity (percentage)");
/kernel/linux/linux-5.10/drivers/hid/
Dhid-sony.c567 u8 battery_capacity; member
895 u8 cable_state, battery_capacity, battery_charging; in sixaxis_parse_report() local
906 battery_capacity = 100; in sixaxis_parse_report()
911 battery_capacity = sixaxis_battery_capacity[index]; in sixaxis_parse_report()
918 sc->battery_capacity = battery_capacity; in sixaxis_parse_report()
947 u8 cable_state, battery_capacity, battery_charging; in dualshock4_parse_report() local
1052 battery_capacity = rd[offset] & 0x0F; in dualshock4_parse_report()
1059 if (!cable_state || battery_capacity > 10) in dualshock4_parse_report()
1065 battery_capacity++; in dualshock4_parse_report()
1066 if (battery_capacity > 10) in dualshock4_parse_report()
[all …]
Dwacom.h139 int battery_capacity; member
Dhid-asus.c121 int battery_capacity; member
519 drvdata->battery_capacity = ((int)lvl * 100) / (int)BATTERY_LEVEL_MAX; in asus_parse_battery()
602 val->intval = drvdata->battery_capacity; in asus_battery_get_property()
627 drvdata->battery_capacity = 0; in asus_battery_probe()
Dwacom_wac.h318 int battery_capacity; member
Dwacom_wac.c61 battery->battery_capacity != bat_capacity || in __wacom_notify_battery()
68 battery->battery_capacity = bat_capacity; in __wacom_notify_battery()
309 int battery_capacity, ps_connected; in wacom_graphire_irq() local
448 battery_capacity = batcap_gr[rw]; in wacom_graphire_irq()
451 battery_capacity, ps_connected, 1, in wacom_graphire_irq()
1206 unsigned power_raw, battery_capacity, bat_charging, ps_connected; in wacom_intuos_bt_irq() local
1223 battery_capacity = batcap_i4[power_raw & 0x07]; in wacom_intuos_bt_irq()
1225 battery_capacity, bat_charging, in wacom_intuos_bt_irq()
1226 battery_capacity || bat_charging, in wacom_intuos_bt_irq()
1924 wacom_wac->hid_data.battery_capacity = value; in wacom_wac_battery_event()
[all …]
Dhid-input.c399 value = dev->battery_capacity; in hidinput_get_battery_property()
416 dev->battery_capacity = value; in hidinput_get_battery_property()
544 capacity != dev->battery_capacity) { in hidinput_update_battery()
545 dev->battery_capacity = capacity; in hidinput_update_battery()
Dwacom_sys.c1740 val->intval = battery->battery_capacity; in wacom_battery_get_property()
1747 else if (battery->battery_capacity == 100 && in wacom_battery_get_property()
/kernel/linux/linux-5.10/include/linux/
Dhid.h585 __s32 battery_capacity; member