Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/media/common/saa7146/
Dsaa7146_hlp.c218 u32 yacm = 0, ysci = 0, yacl = 0, ypo = 0, ype = 0; in calculate_v_scale_registers() local
254 ysci = ((1024 * in_y) / (out_y + 1)) - 1024; in calculate_v_scale_registers()
256 ysci = 0; in calculate_v_scale_registers()
261 ype = ysci / 16; in calculate_v_scale_registers()
262 ypo = ype + (ysci / 64); in calculate_v_scale_registers()
268 ysci = (((10 * 1024 * (in_y - out_y - 1)) / in_y) + 9) / 10; in calculate_v_scale_registers()
271 ypo = ype = ((ysci + 15) / 16); in calculate_v_scale_registers()
278 if ( ysci < 512) { in calculate_v_scale_registers()
281 yacl = ( ysci / (1024 - ysci) ); in calculate_v_scale_registers()
299 *hps_v_scale |= (yacm << 31) | (ysci << 21) | (yacl << 15) | (ypo << 8 ) | (ype << 1); in calculate_v_scale_registers()