Searched refs:acpi_battery (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/acpi/
H A Dsbs.c72 struct acpi_battery { struct
108 struct acpi_battery battery[MAX_SBS_BAT];
118 static int acpi_battery_get_state(struct acpi_battery *battery);
128 static inline int acpi_battery_vscale(struct acpi_battery *battery) acpi_battery_vscale()
133 static inline int acpi_battery_ipscale(struct acpi_battery *battery) acpi_battery_ipscale()
138 static inline int acpi_battery_mode(struct acpi_battery *battery) acpi_battery_mode()
143 static inline int acpi_battery_scale(struct acpi_battery *battery) acpi_battery_scale()
164 static int acpi_battery_technology(struct acpi_battery *battery) acpi_battery_technology()
181 struct acpi_battery *battery = to_acpi_battery(psy); acpi_sbs_battery_get_property()
322 {0x01, SMBUS_READ_WORD, offsetof(struct acpi_battery, alarm_capacity)},
323 {0x03, SMBUS_READ_WORD, offsetof(struct acpi_battery, mode)},
324 {0x10, SMBUS_READ_WORD, offsetof(struct acpi_battery, full_charge_capacity)},
325 {0x17, SMBUS_READ_WORD, offsetof(struct acpi_battery, cycle_count)},
326 {0x18, SMBUS_READ_WORD, offsetof(struct acpi_battery, design_capacity)},
327 {0x19, SMBUS_READ_WORD, offsetof(struct acpi_battery, design_voltage)},
328 {0x1a, SMBUS_READ_WORD, offsetof(struct acpi_battery, spec)},
329 {0x1c, SMBUS_READ_WORD, offsetof(struct acpi_battery, serial_number)},
330 {0x20, SMBUS_READ_BLOCK, offsetof(struct acpi_battery, manufacturer_name)},
331 {0x21, SMBUS_READ_BLOCK, offsetof(struct acpi_battery, device_name)},
332 {0x22, SMBUS_READ_BLOCK, offsetof(struct acpi_battery, device_chemistry)},
336 {0x08, SMBUS_READ_WORD, offsetof(struct acpi_battery, temp_now)},
337 {0x09, SMBUS_READ_WORD, offsetof(struct acpi_battery, voltage_now)},
338 {0x0a, SMBUS_READ_WORD, offsetof(struct acpi_battery, rate_now)},
339 {0x0b, SMBUS_READ_WORD, offsetof(struct acpi_battery, rate_avg)},
340 {0x0f, SMBUS_READ_WORD, offsetof(struct acpi_battery, capacity_now)},
341 {0x0e, SMBUS_READ_WORD, offsetof(struct acpi_battery, state_of_charge)},
342 {0x16, SMBUS_READ_WORD, offsetof(struct acpi_battery, state)},
357 static int acpi_battery_get_info(struct acpi_battery *battery) acpi_battery_get_info()
374 static int acpi_battery_get_state(struct acpi_battery *battery) acpi_battery_get_state()
397 static int acpi_battery_get_alarm(struct acpi_battery *battery) acpi_battery_get_alarm()
404 static int acpi_battery_set_alarm(struct acpi_battery *battery) acpi_battery_set_alarm()
459 struct acpi_battery *battery = to_acpi_battery(dev_get_drvdata(dev)); acpi_battery_alarm_show()
470 struct acpi_battery *battery = to_acpi_battery(dev_get_drvdata(dev)); acpi_battery_alarm_store()
488 static int acpi_battery_read(struct acpi_battery *battery) acpi_battery_read()
525 struct acpi_battery *battery = &sbs->battery[id]; acpi_battery_add()
569 struct acpi_battery *battery = &sbs->battery[id]; acpi_battery_remove()
611 struct acpi_battery *bat; acpi_sbs_callback()
H A Dbattery.c114 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()

Completed in 124 milliseconds