Lines Matching defs:dytc
133 struct ideapad_dytc_priv *dytc;
139 bool dytc : 1;
785 struct ideapad_dytc_priv *dytc = container_of(pprof, struct ideapad_dytc_priv, pprof);
787 *profile = dytc->current_profile;
838 struct ideapad_dytc_priv *dytc = container_of(pprof, struct ideapad_dytc_priv, pprof);
839 struct ideapad_private *priv = dytc->priv;
843 err = mutex_lock_interruptible(&dytc->mutex);
867 dytc->current_profile = profile;
870 mutex_unlock(&dytc->mutex);
881 mutex_lock(&priv->dytc->mutex);
883 mutex_unlock(&priv->dytc->mutex);
892 if (profile != priv->dytc->current_profile) {
893 priv->dytc->current_profile = profile;
921 if (!priv->features.dytc)
949 priv->dytc = kzalloc(sizeof(*priv->dytc), GFP_KERNEL);
950 if (!priv->dytc)
953 mutex_init(&priv->dytc->mutex);
955 priv->dytc->priv = priv;
956 priv->dytc->pprof.profile_get = dytc_profile_get;
957 priv->dytc->pprof.profile_set = dytc_profile_set;
960 set_bit(PLATFORM_PROFILE_LOW_POWER, priv->dytc->pprof.choices);
961 set_bit(PLATFORM_PROFILE_BALANCED, priv->dytc->pprof.choices);
962 set_bit(PLATFORM_PROFILE_PERFORMANCE, priv->dytc->pprof.choices);
965 err = platform_profile_register(&priv->dytc->pprof);
975 mutex_destroy(&priv->dytc->mutex);
976 kfree(priv->dytc);
977 priv->dytc = NULL;
984 if (!priv->dytc)
988 mutex_destroy(&priv->dytc->mutex);
989 kfree(priv->dytc);
991 priv->dytc = NULL;
1222 if (priv->dytc)
1746 priv->features.dytc = true;
2045 if (priv->dytc)