Lines Matching refs:df

984 	struct devfreq *df = to_devfreq(dev);  in governor_store()  local
999 if (df->governor == governor) { in governor_store()
1002 } else if ((df->governor && df->governor->immutable) || in governor_store()
1008 if (df->governor) { in governor_store()
1009 ret = df->governor->event_handler(df, DEVFREQ_GOV_STOP, NULL); in governor_store()
1012 __func__, df->governor->name, ret); in governor_store()
1016 df->governor = governor; in governor_store()
1017 strncpy(df->governor_name, governor->name, DEVFREQ_NAME_LEN); in governor_store()
1018 ret = df->governor->event_handler(df, DEVFREQ_GOV_START, NULL); in governor_store()
1021 __func__, df->governor->name, ret); in governor_store()
1035 struct devfreq *df = to_devfreq(d); in available_governors_show() local
1044 if (df->governor->immutable) { in available_governors_show()
1046 "%s ", df->governor_name); in available_governors_show()
1105 struct devfreq *df = to_devfreq(dev); in polling_interval_store() local
1109 if (!df->governor) in polling_interval_store()
1116 df->governor->event_handler(df, DEVFREQ_GOV_INTERVAL, &value); in polling_interval_store()
1126 struct devfreq *df = to_devfreq(dev); in min_freq_store() local
1135 mutex_lock(&df->lock); in min_freq_store()
1136 max = df->max_freq; in min_freq_store()
1142 df->min_freq = value; in min_freq_store()
1143 update_devfreq(df); in min_freq_store()
1146 mutex_unlock(&df->lock); in min_freq_store()
1153 struct devfreq *df = to_devfreq(dev); in min_freq_show() local
1155 return sprintf(buf, "%lu\n", MAX(df->scaling_min_freq, df->min_freq)); in min_freq_show()
1161 struct devfreq *df = to_devfreq(dev); in max_freq_store() local
1170 mutex_lock(&df->lock); in max_freq_store()
1171 min = df->min_freq; in max_freq_store()
1177 df->max_freq = value; in max_freq_store()
1178 update_devfreq(df); in max_freq_store()
1181 mutex_unlock(&df->lock); in max_freq_store()
1189 struct devfreq *df = to_devfreq(dev); in max_freq_show() local
1191 return sprintf(buf, "%lu\n", MIN(df->scaling_max_freq, df->max_freq)); in max_freq_show()
1199 struct devfreq *df = to_devfreq(d); in available_frequencies_show() local
1203 mutex_lock(&df->lock); in available_frequencies_show()
1205 for (i = 0; i < df->profile->max_state; i++) in available_frequencies_show()
1207 "%lu ", df->profile->freq_table[i]); in available_frequencies_show()
1209 mutex_unlock(&df->lock); in available_frequencies_show()