Home
last modified time | relevance | path

Searched refs:weight_num (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpu/drm/ingenic/
H A Dingenic-ipu.c236 unsigned int i, offset, weight, weight_num = denom; in ingenic_ipu_set_downscale_coefs() local
239 weight_num = num + (weight_num - num) % (num * 2); in ingenic_ipu_set_downscale_coefs()
240 weight = 512 - 512 * (weight_num - num) / (num * 2); in ingenic_ipu_set_downscale_coefs()
241 weight_num += denom * 2; in ingenic_ipu_set_downscale_coefs()
242 offset = (weight_num - num) / (num * 2); in ingenic_ipu_set_downscale_coefs()
268 unsigned int i, offset, weight, weight_num = 0; in ingenic_ipu_set_upscale_coefs() local
271 weight = 512 - 512 * weight_num / num; in ingenic_ipu_set_upscale_coefs()
272 weight_num += denom; in ingenic_ipu_set_upscale_coefs()
273 offset = weight_num >= num; in ingenic_ipu_set_upscale_coefs()
276 weight_num -= num; in ingenic_ipu_set_upscale_coefs()