Lines Matching refs:status

70  * The encoding of the EC status register is illustrated below.
167 /* Default delay in microseconds between each run of the status polling loop. */
173 #define EVENT_READY(event, status) \
175 ((status) & EC_FLAG_OUTPUT_BUFFER) != 0) || \
177 ((status) & EC_FLAG_INPUT_BUFFER) == 0))
196 ACPI_STATUS status;
199 status = AE_OK;
201 status = AcpiAcquireGlobalLock(EC_LOCK_TIMEOUT, &sc->ec_glkhandle);
202 if (ACPI_FAILURE(status))
203 return (status);
206 return (status);
278 ACPI_STATUS status;
286 status = AcpiGetTable(ACPI_SIG_ECDT, 1, (ACPI_TABLE_HEADER **)&ecdt);
287 if (ACPI_FAILURE(status) ||
301 status = AcpiGetHandle(NULL, ecdt->Id, &h);
302 if (ACPI_FAILURE(status)) {
340 ACPI_STATUS status;
375 status = acpi_GetInteger(h, "_UID", &params->uid);
376 if (ACPI_FAILURE(status))
378 status = acpi_GetInteger(h, "_GLK", &params->glk);
379 if (ACPI_FAILURE(status))
384 * signal status (SCI). If it's a package, it contains a reference
387 status = AcpiEvaluateObject(h, "_GPE", NULL, &buf);
388 if (ACPI_FAILURE(status)) {
390 AcpiFormatException(status));
468 /* Attach bus resources for data and command/status ports. */
483 device_printf(dev, "can't allocate command/status port\n");
574 ACPI_STATUS status;
577 status = EcSpaceHandler(ACPI_READ, addr, width * 8, val, sc, NULL);
578 if (ACPI_FAILURE(status))
587 ACPI_STATUS status;
590 status = EcSpaceHandler(ACPI_WRITE, addr, width * 8, &val, sc, NULL);
591 if (ACPI_FAILURE(status))
599 ACPI_STATUS status;
602 status = AE_NO_HARDWARE_RESPONSE;
609 CTR2(KTR_ACPI, "ec %s wait ready, status %#x", msg, ec_status);
610 status = AE_OK;
612 return (status);
716 * Notify EcWaitEvent() that the status register is now fresh. If we
725 * If the EC_SCI bit of the status register is set, queue a query handler.
868 * Wait for the GPE to signal the status changed, checking the
869 * status register each time we get one. It's possible to get a
914 ACPI_STATUS status;
945 status = EcWaitEvent(sc, EC_EVENT_INPUT_BUFFER_EMPTY, 0);
946 if (ACPI_FAILURE(status))
947 return (status);
953 status = EcWaitEvent(sc, event, gen_count);
954 if (ACPI_SUCCESS(status)) {
959 status = AE_ERROR;
963 return (status);
969 ACPI_STATUS status;
977 status = EcCommand(sc, EC_COMMAND_READ);
978 if (ACPI_FAILURE(status))
979 return (status);
983 status = EcWaitEvent(sc, EC_EVENT_OUTPUT_BUFFER_FULL, gen_count);
984 if (ACPI_SUCCESS(status)) {
993 return (status);
999 ACPI_STATUS status;
1005 status = EcCommand(sc, EC_COMMAND_WRITE);
1006 if (ACPI_FAILURE(status))
1007 return (status);
1011 status = EcWaitEvent(sc, EC_EVENT_INPUT_BUFFER_EMPTY, gen_count);
1012 if (ACPI_FAILURE(status)) {
1014 return (status);
1019 status = EcWaitEvent(sc, EC_EVENT_INPUT_BUFFER_EMPTY, gen_count);
1020 if (ACPI_FAILURE(status)) {
1022 return (status);