Lines Matching refs:denom
234 unsigned int denom) in ingenic_ipu_set_downscale_coefs() argument
236 unsigned int i, offset, weight, weight_num = denom; in ingenic_ipu_set_downscale_coefs()
241 weight_num += denom * 2; in ingenic_ipu_set_downscale_coefs()
266 unsigned int denom) in ingenic_ipu_set_upscale_coefs() argument
272 weight_num += denom; in ingenic_ipu_set_upscale_coefs()
284 unsigned int num, unsigned int denom) in ingenic_ipu_set_coefs() argument
289 if (denom > num) in ingenic_ipu_set_coefs()
290 ingenic_ipu_set_downscale_coefs(ipu, reg, num, denom); in ingenic_ipu_set_coefs()
291 else if (denom == 1) in ingenic_ipu_set_coefs()
294 ingenic_ipu_set_upscale_coefs(ipu, reg, num, denom); in ingenic_ipu_set_coefs()
297 static int reduce_fraction(unsigned int *num, unsigned int *denom) in reduce_fraction() argument
299 unsigned long d = gcd(*num, *denom); in reduce_fraction()
306 *denom /= d; in reduce_fraction()