Lines Matching defs:dytc
133 struct ideapad_dytc_priv *dytc;
139 bool dytc : 1;
748 struct ideapad_dytc_priv *dytc = container_of(pprof, struct ideapad_dytc_priv, pprof);
750 *profile = dytc->current_profile;
801 struct ideapad_dytc_priv *dytc = container_of(pprof, struct ideapad_dytc_priv, pprof);
802 struct ideapad_private *priv = dytc->priv;
806 err = mutex_lock_interruptible(&dytc->mutex);
830 dytc->current_profile = profile;
833 mutex_unlock(&dytc->mutex);
844 mutex_lock(&priv->dytc->mutex);
846 mutex_unlock(&priv->dytc->mutex);
855 if (profile != priv->dytc->current_profile) {
856 priv->dytc->current_profile = profile;
884 if (!priv->features.dytc)
912 priv->dytc = kzalloc(sizeof(*priv->dytc), GFP_KERNEL);
913 if (!priv->dytc)
916 mutex_init(&priv->dytc->mutex);
918 priv->dytc->priv = priv;
919 priv->dytc->pprof.profile_get = dytc_profile_get;
920 priv->dytc->pprof.profile_set = dytc_profile_set;
923 set_bit(PLATFORM_PROFILE_LOW_POWER, priv->dytc->pprof.choices);
924 set_bit(PLATFORM_PROFILE_BALANCED, priv->dytc->pprof.choices);
925 set_bit(PLATFORM_PROFILE_PERFORMANCE, priv->dytc->pprof.choices);
928 err = platform_profile_register(&priv->dytc->pprof);
938 mutex_destroy(&priv->dytc->mutex);
939 kfree(priv->dytc);
940 priv->dytc = NULL;
947 if (!priv->dytc)
951 mutex_destroy(&priv->dytc->mutex);
952 kfree(priv->dytc);
954 priv->dytc = NULL;
1645 priv->features.dytc = true;
1929 if (priv->dytc)