H A D | battery.c | 114 struct acpi_battery { struct 152 static inline int acpi_battery_present(struct acpi_battery *battery) acpi_battery_present() 157 static int acpi_battery_technology(struct acpi_battery *battery) acpi_battery_technology() 172 static int acpi_battery_get_state(struct acpi_battery *battery); 174 static int acpi_battery_is_charged(struct acpi_battery *battery) acpi_battery_is_charged() 202 struct acpi_battery *battery = to_acpi_battery(psy); acpi_battery_get_property() 347 {offsetof(struct acpi_battery, state), 0}, 348 {offsetof(struct acpi_battery, rate_now), 0}, 349 {offsetof(struct acpi_battery, capacity_now), 0}, 350 {offsetof(struct acpi_battery, voltage_now), 0}, 354 {offsetof(struct acpi_battery, power_unit), 0}, 355 {offsetof(struct acpi_battery, design_capacity), 0}, 356 {offsetof(struct acpi_battery, full_charge_capacity), 0}, 357 {offsetof(struct acpi_battery, technology), 0}, 358 {offsetof(struct acpi_battery, design_voltage), 0}, 359 {offsetof(struct acpi_battery, design_capacity_warning), 0}, 360 {offsetof(struct acpi_battery, design_capacity_low), 0}, 361 {offsetof(struct acpi_battery, capacity_granularity_1), 0}, 362 {offsetof(struct acpi_battery, capacity_granularity_2), 0}, 363 {offsetof(struct acpi_battery, model_number), 1}, 364 {offsetof(struct acpi_battery, serial_number), 1}, 365 {offsetof(struct acpi_battery, type), 1}, 366 {offsetof(struct acpi_battery, oem_info), 1}, 370 {offsetof(struct acpi_battery, revision), 0}, 371 {offsetof(struct acpi_battery, power_unit), 0}, 372 {offsetof(struct acpi_battery, design_capacity), 0}, 373 {offsetof(struct acpi_battery, full_charge_capacity), 0}, 374 {offsetof(struct acpi_battery, technology), 0}, 375 {offsetof(struct acpi_battery, design_voltage), 0}, 376 {offsetof(struct acpi_battery, design_capacity_warning), 0}, 377 {offsetof(struct acpi_battery, design_capacity_low), 0}, 378 {offsetof(struct acpi_battery, cycle_count), 0}, 379 {offsetof(struct acpi_battery, measurement_accuracy), 0}, 380 {offsetof(struct acpi_battery, max_sampling_time), 0}, 381 {offsetof(struct acpi_battery, min_sampling_time), 0}, 382 {offsetof(struct acpi_battery, max_averaging_interval), 0}, 383 {offsetof(struct acpi_battery, min_averaging_interval), 0}, 384 {offsetof(struct acpi_battery, capacity_granularity_1), 0}, 385 {offsetof(struct acpi_battery, capacity_granularity_2), 0}, 386 {offsetof(struct acpi_battery, model_number), 1}, 387 {offsetof(struct acpi_battery, serial_number), 1}, 388 {offsetof(struct acpi_battery, type), 1}, 389 {offsetof(struct acpi_battery, oem_info), 1}, 392 static int extract_package(struct acpi_battery *battery, extract_package() 424 static int acpi_battery_get_status(struct acpi_battery *battery) acpi_battery_get_status() 433 static int acpi_battery_get_info(struct acpi_battery *battery) acpi_battery_get_info() 486 static int acpi_battery_get_state(struct acpi_battery *battery) acpi_battery_get_state() 539 static int acpi_battery_set_alarm(struct acpi_battery *battery) acpi_battery_set_alarm() 559 static int acpi_battery_init_alarm(struct acpi_battery *battery) acpi_battery_init_alarm() 576 struct acpi_battery *battery = to_acpi_battery(dev_get_drvdata(dev)); acpi_battery_alarm_show() 585 struct acpi_battery *battery = to_acpi_battery(dev_get_drvdata(dev)); acpi_battery_alarm_store() 599 static int sysfs_add_battery(struct acpi_battery *battery) sysfs_add_battery() 629 static void sysfs_remove_battery(struct acpi_battery *battery) sysfs_remove_battery() 645 struct acpi_battery *battery = (struct acpi_battery *)private; find_battery() 673 static void acpi_battery_quirks(struct acpi_battery *battery) acpi_battery_quirks() 714 static int acpi_battery_update(struct acpi_battery *battery, bool resume) acpi_battery_update() 758 static void acpi_battery_refresh(struct acpi_battery *battery) acpi_battery_refresh() 784 static const char *acpi_battery_units(const struct acpi_battery *battery) acpi_battery_units() 792 struct acpi_battery *battery = seq->private; acpi_battery_print_info() 848 struct acpi_battery *battery = seq->private; acpi_battery_print_state() 895 struct acpi_battery *battery = seq->private; acpi_battery_print_alarm() 923 struct acpi_battery *battery = m->private; acpi_battery_write_alarm() 957 struct acpi_battery *battery = seq->private; acpi_battery_read() 1065 struct acpi_battery *battery = acpi_driver_data(device); acpi_battery_notify() 1094 struct acpi_battery *battery = container_of(nb, struct acpi_battery, battery_notify() 1165 static int acpi_battery_update_retry(struct acpi_battery *battery) acpi_battery_update_retry() 1182 struct acpi_battery *battery = NULL; acpi_battery_add() 1190 battery = kzalloc(sizeof(struct acpi_battery), GFP_KERNEL); acpi_battery_add() 1237 struct acpi_battery *battery = NULL; acpi_battery_remove() 1258 struct acpi_battery *battery; acpi_battery_resume()
|