Lines Matching refs:ndata

44 typedef int (*exynos_rate_change_fn_t)(struct clk_notifier_data *ndata,
196 static int exynos_cpuclk_pre_rate_change(struct clk_notifier_data *ndata, in exynos_cpuclk_pre_rate_change() argument
207 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_pre_rate_change()
236 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos_cpuclk_pre_rate_change()
237 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos_cpuclk_pre_rate_change()
275 static int exynos_cpuclk_post_rate_change(struct clk_notifier_data *ndata, in exynos_cpuclk_post_rate_change() argument
287 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos_cpuclk_post_rate_change()
323 static int exynos5433_cpuclk_pre_rate_change(struct clk_notifier_data *ndata, in exynos5433_cpuclk_pre_rate_change() argument
334 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change()
357 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos5433_cpuclk_pre_rate_change()
358 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos5433_cpuclk_pre_rate_change()
385 static int exynos5433_cpuclk_post_rate_change(struct clk_notifier_data *ndata, in exynos5433_cpuclk_post_rate_change() argument
476 static int exynos850_cpuclk_pre_rate_change(struct clk_notifier_data *ndata, in exynos850_cpuclk_pre_rate_change() argument
491 if (ndata->new_rate == E850_OSCCLK || ndata->old_rate == E850_OSCCLK) in exynos850_cpuclk_pre_rate_change()
495 while ((cfg_data->prate * 1000) != ndata->new_rate) { in exynos850_cpuclk_pre_rate_change()
509 if (alt_prate > ndata->old_rate || ndata->old_rate > ndata->new_rate) { in exynos850_cpuclk_pre_rate_change()
510 unsigned long tmp_rate = min(ndata->old_rate, ndata->new_rate); in exynos850_cpuclk_pre_rate_change()
541 static int exynos850_cpuclk_post_rate_change(struct clk_notifier_data *ndata, in exynos850_cpuclk_post_rate_change() argument
551 if (ndata->new_rate == E850_OSCCLK || ndata->old_rate == E850_OSCCLK) in exynos850_cpuclk_post_rate_change()
604 struct clk_notifier_data *ndata = data; in exynos_cpuclk_notifier_cb() local
611 err = cpuclk->chip->pre_rate_cb(ndata, cpuclk); in exynos_cpuclk_notifier_cb()
613 err = cpuclk->chip->post_rate_cb(ndata, cpuclk); in exynos_cpuclk_notifier_cb()