Lines Matching refs:ref_rate
202 #define DVCO_RATE_TO_MULT(rate, ref_rate) ((rate) / ((ref_rate) / 2)) argument
203 #define MULT_TO_DVCO_RATE(mult, ref_rate) ((mult) * ((ref_rate) / 2)) argument
275 unsigned long ref_rate; member
583 div = DIV_ROUND_UP(td->ref_rate, td->pwm_rate); in dfll_pwm_set_output_enabled()
854 val = DVCO_RATE_TO_MULT(rate, td->ref_rate); in dfll_calculate_rate_request()
861 req->dvco_target_rate = MULT_TO_DVCO_RATE(req->mult_bits, td->ref_rate); in dfll_calculate_rate_request()
1236 unsigned long ref_rate) in dfll_calc_monitored_rate() argument
1238 return monitor_data * (ref_rate / REF_CLK_CYC_PER_DVCO_SAMPLE); in dfll_calc_monitored_rate()
1264 pre_scaler_rate = dfll_calc_monitored_rate(v, td->ref_rate); in dfll_read_monitor_rate()
1399 val = DIV_ROUND_UP(td->ref_rate, td->sample_rate * 32); in dfll_set_default_params()
1460 td->ref_rate = clk_get_rate(td->ref_clk); in dfll_init()
1461 if (td->ref_rate != REF_CLOCK_RATE) { in dfll_init()
1463 td->ref_rate, REF_CLOCK_RATE); in dfll_init()