Lines Matching refs:ndata
240 struct clk_notifier_data *ndata = data; in ttc_rate_change_clocksource_cb() local
251 if (ndata->new_rate > ndata->old_rate) { in ttc_rate_change_clocksource_cb()
252 factor = DIV_ROUND_CLOSEST(ndata->new_rate, in ttc_rate_change_clocksource_cb()
253 ndata->old_rate); in ttc_rate_change_clocksource_cb()
254 rate_low = ndata->old_rate; in ttc_rate_change_clocksource_cb()
255 rate_high = ndata->new_rate; in ttc_rate_change_clocksource_cb()
257 factor = DIV_ROUND_CLOSEST(ndata->old_rate, in ttc_rate_change_clocksource_cb()
258 ndata->new_rate); in ttc_rate_change_clocksource_cb()
259 rate_low = ndata->new_rate; in ttc_rate_change_clocksource_cb()
260 rate_high = ndata->old_rate; in ttc_rate_change_clocksource_cb()
282 if (ndata->new_rate < ndata->old_rate) in ttc_rate_change_clocksource_cb()
297 if (ndata->new_rate < ndata->old_rate) in ttc_rate_change_clocksource_cb()
307 if (ndata->new_rate > ndata->old_rate) in ttc_rate_change_clocksource_cb()
317 if (ndata->new_rate < ndata->old_rate) in ttc_rate_change_clocksource_cb()
394 struct clk_notifier_data *ndata = data; in ttc_rate_change_clockevent_cb() local
402 ttc->freq = ndata->new_rate; in ttc_rate_change_clockevent_cb()
404 clockevents_update_freq(&ttcce->ce, ndata->new_rate / PRESCALE); in ttc_rate_change_clockevent_cb()