Searched refs:sample_div (Results 1 – 1 of 1) sorted by relevance
317 unsigned short sample_div; in sirfsoc_calc_sample_div() local323 for (sample_div = SIRF_MIN_SAMPLE_DIV; in sirfsoc_calc_sample_div()324 sample_div <= SIRF_MAX_SAMPLE_DIV; sample_div++) { in sirfsoc_calc_sample_div()325 ioclk_div = (ioclk_rate / (baud_rate * (sample_div + 1))) - 1; in sirfsoc_calc_sample_div()328 baud_tmp = ioclk_rate / ((ioclk_div + 1) * (sample_div + 1)); in sirfsoc_calc_sample_div()335 regv = regv | (sample_div << SIRF_SAMPLE_DIV_SHIFT); in sirfsoc_calc_sample_div()