Lines Matching full:den

846 		unsigned int den;  in snd_interval_ratnum()  local
851 den = div_up(num, q); in snd_interval_ratnum()
852 if (den < rats[k].den_min) in snd_interval_ratnum()
854 if (den > rats[k].den_max) in snd_interval_ratnum()
855 den = rats[k].den_max; in snd_interval_ratnum()
858 r = (den - rats[k].den_min) % rats[k].den_step; in snd_interval_ratnum()
860 den -= r; in snd_interval_ratnum()
862 diff = num - q * den; in snd_interval_ratnum()
866 diff * best_den < best_diff * den) { in snd_interval_ratnum()
868 best_den = den; in snd_interval_ratnum()
885 unsigned int den; in snd_interval_ratnum() local
892 den = div_down(num, q); in snd_interval_ratnum()
893 if (den > rats[k].den_max) in snd_interval_ratnum()
895 if (den < rats[k].den_min) in snd_interval_ratnum()
896 den = rats[k].den_min; in snd_interval_ratnum()
899 r = (den - rats[k].den_min) % rats[k].den_step; in snd_interval_ratnum()
901 den += rats[k].den_step - r; in snd_interval_ratnum()
903 diff = q * den - num; in snd_interval_ratnum()
907 diff * best_den < best_diff * den) { in snd_interval_ratnum()
909 best_den = den; in snd_interval_ratnum()
962 unsigned int den = rats[k].den; in snd_interval_ratden() local
965 num = mul(q, den); in snd_interval_ratden()
976 diff = num - q * den; in snd_interval_ratden()
978 diff * best_den < best_diff * den) { in snd_interval_ratden()
980 best_den = den; in snd_interval_ratden()
994 unsigned int den = rats[k].den; in snd_interval_ratden() local
997 num = mul(q, den); in snd_interval_ratden()
1008 diff = q * den - num; in snd_interval_ratden()
1010 diff * best_den < best_diff * den) { in snd_interval_ratden()
1012 best_den = den; in snd_interval_ratden()
1362 unsigned int num = 0, den = 0; in snd_pcm_hw_rule_ratnums() local
1365 r->nrats, r->rats, &num, &den); in snd_pcm_hw_rule_ratnums()
1366 if (err >= 0 && den && rule->var == SNDRV_PCM_HW_PARAM_RATE) { in snd_pcm_hw_rule_ratnums()
1368 params->rate_den = den; in snd_pcm_hw_rule_ratnums()
1397 unsigned int num = 0, den = 0; in snd_pcm_hw_rule_ratdens() local
1399 r->nrats, r->rats, &num, &den); in snd_pcm_hw_rule_ratdens()
1400 if (err >= 0 && den && rule->var == SNDRV_PCM_HW_PARAM_RATE) { in snd_pcm_hw_rule_ratdens()
1402 params->rate_den = den; in snd_pcm_hw_rule_ratdens()