Lines Matching defs:battinfo
117 acpi_battery_get_battinfo(device_t dev, struct acpi_battinfo *battinfo)
139 * Allocate storage for all _BST data, their derived battinfo data,
274 battinfo->cap = (total_cap * 100) / total_lfcap;
276 battinfo->cap = 0;
277 battinfo->min = total_min;
278 battinfo->state = batt_stat;
279 battinfo->rate = valid_rate;
281 battinfo->cap = bi[dev_idx].cap;
282 battinfo->min = bi[dev_idx].min;
283 battinfo->state = bi[dev_idx].state;
284 battinfo->rate = bst[dev_idx].rate;
291 if (valid_rate == 0 || (battinfo->state & ACPI_BATT_STAT_CHARGING))
292 battinfo->min = -1;
294 acpi_reset_battinfo(battinfo);
391 bzero(&ioctl_arg->battinfo, sizeof(ioctl_arg->battinfo));
392 error = acpi_battery_get_battinfo(dev, &ioctl_arg->battinfo);