Lines Matching refs:rats
773 * @rats: ratnum_t array
780 unsigned int rats_count, struct snd_ratnum *rats,
793 unsigned int num = rats[k].num;
800 if (den < rats[k].den_min)
802 if (den > rats[k].den_max)
803 den = rats[k].den_max;
806 r = (den - rats[k].den_min) % rats[k].den_step;
832 unsigned int num = rats[k].num;
841 if (den > rats[k].den_max)
843 if (den < rats[k].den_min)
844 den = rats[k].den_min;
847 r = (den - rats[k].den_min) % rats[k].den_step;
849 den += rats[k].den_step - r;
891 * @rats: struct ratden array
898 unsigned int rats_count, struct snd_ratden *rats,
909 unsigned int den = rats[k].den;
913 if (num > rats[k].num_max)
915 if (num < rats[k].num_min)
916 num = rats[k].num_max;
919 r = (num - rats[k].num_min) % rats[k].num_step;
921 num += rats[k].num_step - r;
941 unsigned int den = rats[k].den;
945 if (num < rats[k].num_min)
947 if (num > rats[k].num_max)
948 num = rats[k].num_max;
951 r = (num - rats[k].num_min) % rats[k].num_step;
1215 r->nrats, r->rats, &num, &den);
1248 r->nrats, r->rats, &num, &den);