Lines Matching defs:bix
70 struct acpi_bix bix;
384 if (acpi_PkgInt16(res, i++, &sc->bix.rev) != 0) {
400 if (sc->bix.rev != ACPI_BIX_REV_0 &&
401 sc->bix.rev != ACPI_BIX_REV_1)
402 ACPI_BIX_REV_MISMATCH_ERR(sc->bix.rev, ACPI_BIX_REV_1);
404 if (sc->bix.rev != ACPI_BIX_REV_0)
405 ACPI_BIX_REV_MISMATCH_ERR(sc->bix.rev, ACPI_BIX_REV_0);
408 if (ACPI_BIX_REV_MIN_CHECK(sc->bix.rev, ACPI_BIX_REV_1 + 1)) {
416 sc->bix.rev, ACPI_BIX_REV_1);
428 sc->bix.rev, res->Package.Count);
435 sc->bix.rev = ACPI_BIX_REV_BIF;
446 "rev = %04x\n", sc->bix.rev);
449 #NAME " = %u\n", sc->bix.NAME); \
450 if (acpi_PkgInt32(res, i++, &sc->bix.NAME) != 0) \
461 if (ACPI_BIX_REV_MIN_CHECK(sc->bix.rev, ACPI_BIX_REV_0)) {
471 if (acpi_PkgStr(res, i++, sc->bix.model, ACPI_CMBAT_MAXSTRLEN) != 0)
473 if (acpi_PkgStr(res, i++, sc->bix.serial, ACPI_CMBAT_MAXSTRLEN) != 0)
475 if (acpi_PkgStr(res, i++, sc->bix.type, ACPI_CMBAT_MAXSTRLEN) != 0)
477 if (acpi_PkgStr(res, i++, sc->bix.oeminfo, ACPI_CMBAT_MAXSTRLEN) != 0)
479 if (ACPI_BIX_REV_MIN_CHECK(sc->bix.rev, ACPI_BIX_REV_1))
487 acpi_cmbat_bix(device_t dev, void *bix, size_t len)
504 memcpy(bix, &sc->bix, len);
576 if (retry == 0 || !acpi_battery_bix_valid(&sc->bix))
580 acpi_battery_bix_valid(&sc->bix);