Lines Matching refs:cur_state
829 int rc, cur_state; in afu_update_state() local
831 rc = afu_read_error_state(afu, &cur_state); in afu_update_state()
835 if (afu->guest->previous_state == cur_state) in afu_update_state()
838 pr_devel("AFU(%d) update state to %#x\n", afu->slice, cur_state); in afu_update_state()
840 switch (cur_state) { in afu_update_state()
842 afu->guest->previous_state = cur_state; in afu_update_state()
853 rc = afu_read_error_state(afu, &cur_state); in afu_update_state()
854 if (!rc && cur_state == H_STATE_NORMAL) { in afu_update_state()
863 afu->guest->previous_state = cur_state; in afu_update_state()
870 afu->guest->previous_state = cur_state; in afu_update_state()
875 afu->slice, cur_state); in afu_update_state()