Lines Matching refs:dbs_data
70 struct dbs_data *dbs_data = policy_dbs->dbs_data; in generic_powersave_bias_target() local
71 struct od_dbs_tuners *od_tuners = dbs_data->tuners; in generic_powersave_bias_target()
99 delay_hi_us = (freq_avg - freq_lo) * dbs_data->sampling_rate; in generic_powersave_bias_target()
104 dbs_info->freq_lo_delay_us = dbs_data->sampling_rate - delay_hi_us; in generic_powersave_bias_target()
118 struct dbs_data *dbs_data = policy_dbs->dbs_data; in dbs_freq_increase() local
119 struct od_dbs_tuners *od_tuners = dbs_data->tuners; in dbs_freq_increase()
140 struct dbs_data *dbs_data = policy_dbs->dbs_data; in od_update() local
141 struct od_dbs_tuners *od_tuners = dbs_data->tuners; in od_update()
147 if (load > dbs_data->up_threshold) { in od_update()
150 policy_dbs->rate_mult = dbs_data->sampling_down_factor; in od_update()
175 struct dbs_data *dbs_data = policy_dbs->dbs_data; in od_dbs_update() local
199 return dbs_data->sampling_rate * policy_dbs->rate_mult; in od_dbs_update()
208 struct dbs_data *dbs_data = to_dbs_data(attr_set); in io_is_busy_store() local
215 dbs_data->io_is_busy = !!input; in io_is_busy_store()
218 gov_update_cpu_data(dbs_data); in io_is_busy_store()
226 struct dbs_data *dbs_data = to_dbs_data(attr_set); in up_threshold_store() local
236 dbs_data->up_threshold = input; in up_threshold_store()
243 struct dbs_data *dbs_data = to_dbs_data(attr_set); in sampling_down_factor_store() local
252 dbs_data->sampling_down_factor = input; in sampling_down_factor_store()
271 struct dbs_data *dbs_data = to_dbs_data(attr_set); in ignore_nice_load_store() local
282 if (input == dbs_data->ignore_nice_load) { /* nothing to do */ in ignore_nice_load_store()
285 dbs_data->ignore_nice_load = input; in ignore_nice_load_store()
288 gov_update_cpu_data(dbs_data); in ignore_nice_load_store()
296 struct dbs_data *dbs_data = to_dbs_data(attr_set); in powersave_bias_store() local
297 struct od_dbs_tuners *od_tuners = dbs_data->tuners; in powersave_bias_store()
357 static int od_init(struct dbs_data *dbs_data) in od_init() argument
372 dbs_data->up_threshold = MICRO_FREQUENCY_UP_THRESHOLD; in od_init()
374 dbs_data->up_threshold = DEF_FREQUENCY_UP_THRESHOLD; in od_init()
377 dbs_data->sampling_down_factor = DEF_SAMPLING_DOWN_FACTOR; in od_init()
378 dbs_data->ignore_nice_load = 0; in od_init()
380 dbs_data->io_is_busy = should_io_be_busy(); in od_init()
382 dbs_data->tuners = tuners; in od_init()
386 static void od_exit(struct dbs_data *dbs_data) in od_exit() argument
388 kfree(dbs_data->tuners); in od_exit()
431 struct dbs_data *dbs_data; in od_set_powersave_bias() local
447 dbs_data = policy_dbs->dbs_data; in od_set_powersave_bias()
448 od_tuners = dbs_data->tuners; in od_set_powersave_bias()