Lines Matching refs:rc_state
204 enum dpu_enc_rc_states rc_state; member
801 dpu_enc->rc_state, "begin"); in dpu_encoder_resource_control()
813 if (dpu_enc->rc_state == DPU_ENC_RC_STATE_ON) { in dpu_encoder_resource_control()
818 } else if (dpu_enc->rc_state != DPU_ENC_RC_STATE_OFF && in dpu_encoder_resource_control()
819 dpu_enc->rc_state != DPU_ENC_RC_STATE_IDLE) { in dpu_encoder_resource_control()
822 dpu_enc->rc_state); in dpu_encoder_resource_control()
827 if (is_vid_mode && dpu_enc->rc_state == DPU_ENC_RC_STATE_IDLE) in dpu_encoder_resource_control()
832 dpu_enc->rc_state = DPU_ENC_RC_STATE_ON; in dpu_encoder_resource_control()
835 dpu_enc->idle_pc_supported, dpu_enc->rc_state, in dpu_encoder_resource_control()
848 if (dpu_enc->rc_state != DPU_ENC_RC_STATE_ON) { in dpu_encoder_resource_control()
851 dpu_enc->rc_state); in dpu_encoder_resource_control()
869 dpu_enc->idle_pc_supported, dpu_enc->rc_state, in dpu_encoder_resource_control()
882 dpu_enc->rc_state == DPU_ENC_RC_STATE_IDLE) { in dpu_encoder_resource_control()
886 else if (dpu_enc->rc_state == DPU_ENC_RC_STATE_OFF || in dpu_encoder_resource_control()
887 dpu_enc->rc_state == DPU_ENC_RC_STATE_IDLE) { in dpu_encoder_resource_control()
890 dpu_enc->rc_state); in dpu_encoder_resource_control()
895 dpu_enc->rc_state = DPU_ENC_RC_STATE_PRE_OFF; in dpu_encoder_resource_control()
898 dpu_enc->idle_pc_supported, dpu_enc->rc_state, in dpu_encoder_resource_control()
908 if (dpu_enc->rc_state == DPU_ENC_RC_STATE_OFF) { in dpu_encoder_resource_control()
913 } else if (dpu_enc->rc_state == DPU_ENC_RC_STATE_ON) { in dpu_encoder_resource_control()
915 DRMID(drm_enc), sw_event, dpu_enc->rc_state); in dpu_encoder_resource_control()
924 if (dpu_enc->rc_state == DPU_ENC_RC_STATE_PRE_OFF) in dpu_encoder_resource_control()
927 dpu_enc->rc_state = DPU_ENC_RC_STATE_OFF; in dpu_encoder_resource_control()
930 dpu_enc->idle_pc_supported, dpu_enc->rc_state, in dpu_encoder_resource_control()
939 if (dpu_enc->rc_state != DPU_ENC_RC_STATE_ON) { in dpu_encoder_resource_control()
941 DRMID(drm_enc), sw_event, dpu_enc->rc_state); in dpu_encoder_resource_control()
952 DRMID(drm_enc), sw_event, dpu_enc->rc_state); in dpu_encoder_resource_control()
962 dpu_enc->rc_state = DPU_ENC_RC_STATE_IDLE; in dpu_encoder_resource_control()
965 dpu_enc->idle_pc_supported, dpu_enc->rc_state, in dpu_encoder_resource_control()
975 dpu_enc->idle_pc_supported, dpu_enc->rc_state, in dpu_encoder_resource_control()
981 dpu_enc->idle_pc_supported, dpu_enc->rc_state, in dpu_encoder_resource_control()