Lines Matching refs:error_reason
604 char *error_reason;
612 error_reason = (char *)kmem_zalloc(SUSPEND_MAX_REASON_SIZE, KM_SLEEP);
620 rv = suspend_pre(error_reason, SUSPEND_MAX_REASON_SIZE,
624 (void) strncpy(error_reason, DOMAIN_SUSPEND_DR_ERROR_STR,
633 DOMAIN_SUSPEND_PRE_FAILURE, rec_result, error_reason, 0, 0);
637 kmem_free(error_reason, SUSPEND_MAX_REASON_SIZE);
645 rv = suspend_start(error_reason, SUSPEND_MAX_REASON_SIZE);
651 DOMAIN_SUSPEND_SUSPEND_FAILURE, rec_result, error_reason,
655 kmem_free(error_reason, SUSPEND_MAX_REASON_SIZE);
660 rv = suspend_post(error_reason, SUSPEND_MAX_REASON_SIZE);
663 DOMAIN_SUSPEND_POST_FAILURE, 0, error_reason,
667 DOMAIN_SUSPEND_POST_SUCCESS, 0, error_reason,
672 kmem_free(error_reason, SUSPEND_MAX_REASON_SIZE);