Lines Matching defs:num
194 unsigned int num,
199 for (i = 0; i < num; i++) {
200 weight_num = num + (weight_num - num) % (num * 2);
201 weight = 512 - 512 * (weight_num - num) / (num * 2);
203 offset = (weight_num - num) / (num * 2);
212 unsigned int num)
220 for (i = 0; i < num; i++)
221 ipu->soc_info->set_coefs(ipu, reg, 0, false, 512, i == num - 1);
226 unsigned int num,
231 for (i = 0; i < num; i++) {
232 weight = 512 - 512 * weight_num / num;
234 offset = weight_num >= num;
237 weight_num -= num;
245 unsigned int num, unsigned int denom)
250 if (denom > num)
251 ingenic_ipu_set_downscale_coefs(ipu, reg, num, denom);
253 ingenic_ipu_set_integer_upscale_coefs(ipu, reg, num);
255 ingenic_ipu_set_upscale_coefs(ipu, reg, num, denom);
258 static int reduce_fraction(unsigned int *num, unsigned int *denom)
260 unsigned long d = gcd(*num, *denom);
263 if (*num > 31 * d)
266 *num /= d;