Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/hid/
Dhid-steelseries.c33 uint8_t battery_capacity; member
443 val->intval = sd->battery_capacity; in steelseries_headset_battery_get_property()
494 sd->battery_capacity = 100; in steelseries_headset_battery_register()
594 int capacity = sd->battery_capacity; in steelseries_headset_raw_event()
626 if (capacity != sd->battery_capacity) { in steelseries_headset_raw_event()
629 sd->battery_capacity, capacity); in steelseries_headset_raw_event()
630 sd->battery_capacity = capacity; in steelseries_headset_raw_event()
Dhid-playstation.c45 uint8_t battery_capacity; member
636 uint8_t battery_capacity; in ps_battery_get_property() local
642 battery_capacity = dev->battery_capacity; in ps_battery_get_property()
654 val->intval = battery_capacity; in ps_battery_get_property()
1321 uint8_t battery_data, battery_capacity, charging_status, value; in dualsense_parse_report() local
1462 battery_capacity = min(battery_data * 10 + 5, 100); in dualsense_parse_report()
1466 battery_capacity = min(battery_data * 10 + 5, 100); in dualsense_parse_report()
1470 battery_capacity = 100; in dualsense_parse_report()
1475 battery_capacity = 0; in dualsense_parse_report()
1480 battery_capacity = 0; in dualsense_parse_report()
[all …]
Dhid-sony.c506 u8 battery_capacity; member
801 u8 battery_capacity; in sixaxis_parse_report() local
813 battery_capacity = 100; in sixaxis_parse_report()
817 battery_capacity = sixaxis_battery_capacity[index]; in sixaxis_parse_report()
822 sc->battery_capacity = battery_capacity; in sixaxis_parse_report()
1629 u8 battery_capacity; in sony_battery_get_property() local
1633 battery_capacity = sc->battery_capacity; in sony_battery_get_property()
1645 val->intval = battery_capacity; in sony_battery_get_property()
1670 sc->battery_capacity = 100; in sony_battery_probe()
Dwacom.h137 int battery_capacity; member
Dhid-nintendo.c612 u8 battery_capacity; member
1599 ctlr->battery_capacity = POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL; in joycon_parse_battery_status()
1602 ctlr->battery_capacity = POWER_SUPPLY_CAPACITY_LEVEL_LOW; in joycon_parse_battery_status()
1605 ctlr->battery_capacity = POWER_SUPPLY_CAPACITY_LEVEL_NORMAL; in joycon_parse_battery_status()
1608 ctlr->battery_capacity = POWER_SUPPLY_CAPACITY_LEVEL_HIGH; in joycon_parse_battery_status()
1611 ctlr->battery_capacity = POWER_SUPPLY_CAPACITY_LEVEL_FULL; in joycon_parse_battery_status()
1614 ctlr->battery_capacity = POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN; in joycon_parse_battery_status()
2344 capacity = ctlr->battery_capacity; in joycon_battery_get_property()
2390 ctlr->battery_capacity = POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN; in joycon_power_supply_create()
Dhid-asus.c126 int battery_capacity; member
596 drvdata->battery_capacity = ((int)lvl * 100) / (int)BATTERY_LEVEL_MAX; in asus_parse_battery()
679 val->intval = drvdata->battery_capacity; in asus_battery_get_property()
704 drvdata->battery_capacity = 0; in asus_battery_probe()
Dwacom_wac.h324 int battery_capacity; member
Dwacom_wac.c94 battery->battery_capacity != bat_capacity || in __wacom_notify_battery()
101 battery->battery_capacity = bat_capacity; in __wacom_notify_battery()
347 int battery_capacity, ps_connected; in wacom_graphire_irq() local
486 battery_capacity = batcap_gr[rw]; in wacom_graphire_irq()
489 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()
1943 wacom_wac->hid_data.battery_capacity = value; in wacom_wac_battery_event()
[all …]
Dhid-input.c461 value = dev->battery_capacity; in hidinput_get_battery_property()
478 dev->battery_capacity = value; in hidinput_get_battery_property()
611 capacity != dev->battery_capacity || in hidinput_update_battery()
613 dev->battery_capacity = capacity; in hidinput_update_battery()
Dhid-magicmouse.c778 if (hdev->battery_capacity == hdev->battery_max) in magicmouse_fetch_battery()
Dhid-apple.c598 if (hdev->battery_capacity == hdev->battery_max) in apple_fetch_battery()
Dwacom_sys.c1732 val->intval = battery->battery_capacity; in wacom_battery_get_property()
1739 else if (battery->battery_capacity == 100 && in wacom_battery_get_property()
/linux-6.12.1/drivers/power/supply/
Dtest_power.c34 static int battery_capacity = 50; variable
105 val->intval = battery_capacity; in test_power_get_battery_property()
475 battery_capacity = tmp; in param_set_battery_capacity()
611 module_param(battery_capacity, battery_capacity, 0644);
612 MODULE_PARM_DESC(battery_capacity, "battery capacity (percentage)");
/linux-6.12.1/include/linux/
Dhid.h637 __s32 battery_capacity; member