Lines Matching refs:bst
176 struct acpi_battery_status **bst) in acpi_battery_get_status() argument
188 if (!battery || !bst) in acpi_battery_get_status()
229 (*bst) = (struct acpi_battery_status *) data.pointer; in acpi_battery_get_status()
443 struct acpi_battery_status *bst = NULL; in acpi_battery_read_state() local
466 result = acpi_battery_get_status(battery, &bst); in acpi_battery_read_state()
467 if (result || !bst) { in acpi_battery_read_state()
472 if (!(bst->state & 0x04)) in acpi_battery_read_state()
477 if ((bst->state & 0x01) && (bst->state & 0x02)){ in acpi_battery_read_state()
482 else if (bst->state & 0x01) in acpi_battery_read_state()
484 else if (bst->state & 0x02) in acpi_battery_read_state()
490 if (bst->present_rate == ACPI_BATTERY_VALUE_UNKNOWN) in acpi_battery_read_state()
494 (u32) bst->present_rate, units); in acpi_battery_read_state()
496 if (bst->remaining_capacity == ACPI_BATTERY_VALUE_UNKNOWN) in acpi_battery_read_state()
500 (u32) bst->remaining_capacity, units); in acpi_battery_read_state()
502 if (bst->present_voltage == ACPI_BATTERY_VALUE_UNKNOWN) in acpi_battery_read_state()
506 (u32) bst->present_voltage); in acpi_battery_read_state()
509 kfree(bst); in acpi_battery_read_state()