Lines Matching refs:value

24 	u32 value = 0;  in medusa_enable_bluefield_output()  local
63 value = cx25821_i2c_read(&dev->i2c_bus[0], out_ctrl, &tmp); in medusa_enable_bluefield_output()
64 value &= 0xFFFFFF7F; /* clear BLUE_FIELD_EN */ in medusa_enable_bluefield_output()
66 value |= 0x00000080; /* set BLUE_FIELD_EN */ in medusa_enable_bluefield_output()
67 cx25821_i2c_write(&dev->i2c_bus[0], out_ctrl, value); in medusa_enable_bluefield_output()
69 value = cx25821_i2c_read(&dev->i2c_bus[0], out_ctrl_ns, &tmp); in medusa_enable_bluefield_output()
70 value &= 0xFFFFFF7F; in medusa_enable_bluefield_output()
72 value |= 0x00000080; /* set BLUE_FIELD_EN */ in medusa_enable_bluefield_output()
73 cx25821_i2c_write(&dev->i2c_bus[0], out_ctrl_ns, value); in medusa_enable_bluefield_output()
80 u32 value = 0; in medusa_initialize_ntsc() local
85 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
87 value &= 0xFFFFFFF0; in medusa_initialize_ntsc()
89 value |= 0x10001; in medusa_initialize_ntsc()
91 MODE_CTRL + (0x200 * i), value); in medusa_initialize_ntsc()
94 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
96 value &= 0x00C00C00; in medusa_initialize_ntsc()
97 value |= 0x612D0074; in medusa_initialize_ntsc()
99 HORIZ_TIM_CTRL + (0x200 * i), value); in medusa_initialize_ntsc()
101 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
103 value &= 0x00C00C00; in medusa_initialize_ntsc()
104 value |= 0x1C1E001A; /* vblank_cnt + 2 to get camera ID */ in medusa_initialize_ntsc()
106 VERT_TIM_CTRL + (0x200 * i), value); in medusa_initialize_ntsc()
113 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
115 value &= 0xFFFBFFFF; in medusa_initialize_ntsc()
116 value |= 0x00040000; in medusa_initialize_ntsc()
118 OUT_CTRL_NS + (0x200 * i), value); in medusa_initialize_ntsc()
121 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
123 value &= 0xFFFBFFFF; in medusa_initialize_ntsc()
124 value |= 0x00040000; in medusa_initialize_ntsc()
126 OUT_CTRL1 + (0x200 * i), value); in medusa_initialize_ntsc()
132 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
135 value = setBitAtPos(value, 14); in medusa_initialize_ntsc()
136 value = clearBitAtPos(value, 15); in medusa_initialize_ntsc()
138 MISC_TIM_CTRL + (0x200 * i), value); in medusa_initialize_ntsc()
141 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
143 value = clearBitAtPos(value, 29); in medusa_initialize_ntsc()
145 DFE_CTRL1 + (0x200 * i), value); in medusa_initialize_ntsc()
153 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
155 value &= 0xF000FC00; in medusa_initialize_ntsc()
156 value |= 0x06B402D0; in medusa_initialize_ntsc()
158 DENC_A_REG_1 + (0x100 * i), value); in medusa_initialize_ntsc()
161 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
163 value &= 0xFF000000; in medusa_initialize_ntsc()
164 value |= 0x007E9054; in medusa_initialize_ntsc()
166 DENC_A_REG_2 + (0x100 * i), value); in medusa_initialize_ntsc()
168 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
170 value &= 0xFC00FE00; in medusa_initialize_ntsc()
171 value |= 0x00EC00F0; in medusa_initialize_ntsc()
173 DENC_A_REG_3 + (0x100 * i), value); in medusa_initialize_ntsc()
176 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
178 value &= 0x00FCFFFF; in medusa_initialize_ntsc()
179 value |= 0x13020000; in medusa_initialize_ntsc()
181 DENC_A_REG_4 + (0x100 * i), value); in medusa_initialize_ntsc()
183 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_ntsc()
185 value &= 0xFFFF0000; in medusa_initialize_ntsc()
186 value |= 0x0000E575; in medusa_initialize_ntsc()
188 DENC_A_REG_5 + (0x100 * i), value); in medusa_initialize_ntsc()
205 value = cx25821_i2c_read(&dev->i2c_bus[0], BYP_AB_CTRL, &tmp); in medusa_initialize_ntsc()
206 value |= 0x00080200; in medusa_initialize_ntsc()
207 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], BYP_AB_CTRL, value); in medusa_initialize_ntsc()
215 u32 value = 0, tmp = 0; in medusa_PALCombInit() local
226 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_PALCombInit()
228 value &= 0x06230000; in medusa_PALCombInit()
230 COMB_FLAT_THRESH_CTRL + (0x200 * dec), value); in medusa_PALCombInit()
247 u32 value = 0; in medusa_initialize_pal() local
252 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
254 value &= 0xFFFFFFF0; in medusa_initialize_pal()
256 value |= 0x10004; in medusa_initialize_pal()
258 MODE_CTRL + (0x200 * i), value); in medusa_initialize_pal()
261 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
263 value &= 0x00C00C00; in medusa_initialize_pal()
264 value |= 0x632D007D; in medusa_initialize_pal()
266 HORIZ_TIM_CTRL + (0x200 * i), value); in medusa_initialize_pal()
269 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
271 value &= 0x00C00C00; in medusa_initialize_pal()
272 value |= 0x28240026; /* vblank_cnt + 2 to get camera ID */ in medusa_initialize_pal()
274 VERT_TIM_CTRL + (0x200 * i), value); in medusa_initialize_pal()
281 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
283 value &= 0xFFFBFFFF; in medusa_initialize_pal()
284 value |= 0x00040000; in medusa_initialize_pal()
286 OUT_CTRL_NS + (0x200 * i), value); in medusa_initialize_pal()
289 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
291 value &= 0xFFFBFFFF; in medusa_initialize_pal()
292 value |= 0x00040000; in medusa_initialize_pal()
294 OUT_CTRL1 + (0x200 * i), value); in medusa_initialize_pal()
300 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
303 value = setBitAtPos(value, 14); in medusa_initialize_pal()
304 value = clearBitAtPos(value, 15); in medusa_initialize_pal()
306 MISC_TIM_CTRL + (0x200 * i), value); in medusa_initialize_pal()
309 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
311 value = clearBitAtPos(value, 29); in medusa_initialize_pal()
313 DFE_CTRL1 + (0x200 * i), value); in medusa_initialize_pal()
323 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
325 value &= 0xF000FC00; in medusa_initialize_pal()
326 value |= 0x06C002D0; in medusa_initialize_pal()
328 DENC_A_REG_1 + (0x100 * i), value); in medusa_initialize_pal()
331 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
333 value &= 0xFF000000; in medusa_initialize_pal()
334 value |= 0x007E9754; in medusa_initialize_pal()
336 DENC_A_REG_2 + (0x100 * i), value); in medusa_initialize_pal()
339 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
341 value &= 0xFC00FE00; in medusa_initialize_pal()
342 value |= 0x00FC0120; in medusa_initialize_pal()
344 DENC_A_REG_3 + (0x100 * i), value); in medusa_initialize_pal()
347 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
349 value &= 0x00FCFFFF; in medusa_initialize_pal()
350 value |= 0x14010000; in medusa_initialize_pal()
352 DENC_A_REG_4 + (0x100 * i), value); in medusa_initialize_pal()
354 value = cx25821_i2c_read(&dev->i2c_bus[0], in medusa_initialize_pal()
356 value &= 0xFFFF0000; in medusa_initialize_pal()
357 value |= 0x0000F078; in medusa_initialize_pal()
359 DENC_A_REG_5 + (0x100 * i), value); in medusa_initialize_pal()
376 value = cx25821_i2c_read(&dev->i2c_bus[0], BYP_AB_CTRL, &tmp); in medusa_initialize_pal()
377 value &= 0xFFF7FDFF; in medusa_initialize_pal()
378 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], BYP_AB_CTRL, value); in medusa_initialize_pal()
386 u32 value = 0, tmp = 0; in medusa_set_videostandard() local
394 value = cx25821_i2c_read(&dev->i2c_bus[0], DENC_A_REG_4, &tmp); in medusa_set_videostandard()
395 value = setBitAtPos(value, 4); in medusa_set_videostandard()
396 status = cx25821_i2c_write(&dev->i2c_bus[0], DENC_A_REG_4, value); in medusa_set_videostandard()
399 value = cx25821_i2c_read(&dev->i2c_bus[0], DENC_B_REG_4, &tmp); in medusa_set_videostandard()
400 value = setBitAtPos(value, 4); in medusa_set_videostandard()
401 status = cx25821_i2c_write(&dev->i2c_bus[0], DENC_B_REG_4, value); in medusa_set_videostandard()
554 int value = 0; in medusa_set_brightness() local
562 SIGNED_BYTE_MIN, SIGNED_BYTE_MAX, &value); in medusa_set_brightness()
563 value = convert_to_twos(value, 8); in medusa_set_brightness()
568 VDEC_A_BRITE_CTRL + (0x200 * decoder), val | value); in medusa_set_brightness()
575 int value = 0; in medusa_set_contrast() local
583 UNSIGNED_BYTE_MIN, UNSIGNED_BYTE_MAX, &value); in medusa_set_contrast()
588 VDEC_A_CNTRST_CTRL + (0x200 * decoder), val | value); in medusa_set_contrast()
596 int value = 0; in medusa_set_hue() local
604 SIGNED_BYTE_MIN, SIGNED_BYTE_MAX, &value); in medusa_set_hue()
606 value = convert_to_twos(value, 8); in medusa_set_hue()
612 VDEC_A_HUE_CTRL + (0x200 * decoder), val | value); in medusa_set_hue()
620 int value = 0; in medusa_set_saturation() local
629 UNSIGNED_BYTE_MIN, UNSIGNED_BYTE_MAX, &value); in medusa_set_saturation()
635 VDEC_A_USAT_CTRL + (0x200 * decoder), val | value); in medusa_set_saturation()
641 VDEC_A_VSAT_CTRL + (0x200 * decoder), val | value); in medusa_set_saturation()
650 u32 value = 0, tmp = 0; in medusa_video_init() local
655 value = cx25821_i2c_read(&dev->i2c_bus[0], MON_A_CTRL, &tmp); in medusa_video_init()
656 value &= 0xFFFFF0FF; in medusa_video_init()
657 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], MON_A_CTRL, value); in medusa_video_init()
663 value = cx25821_i2c_read(&dev->i2c_bus[0], MON_A_CTRL, &tmp); in medusa_video_init()
664 value &= 0xFFFFFFDF; in medusa_video_init()
665 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], MON_A_CTRL, value); in medusa_video_init()
680 value = cx25821_i2c_read(&dev->i2c_bus[0], DENC_AB_CTRL, &tmp); in medusa_video_init()
681 value &= 0xFF70FF70; in medusa_video_init()
682 value |= 0x00090008; /* set en_active */ in medusa_video_init()
683 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], DENC_AB_CTRL, value); in medusa_video_init()
689 value = cx25821_i2c_read(&dev->i2c_bus[0], BYP_AB_CTRL, &tmp); in medusa_video_init()
690 value |= 0x00040100; /* enable VIP */ in medusa_video_init()
691 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], BYP_AB_CTRL, value); in medusa_video_init()
697 value = cx25821_i2c_read(&dev->i2c_bus[0], AFE_AB_DIAG_CTRL, &tmp); in medusa_video_init()
698 value &= 0x83FFFFFF; in medusa_video_init()
700 value | 0x10000000); in medusa_video_init()
706 value = cx25821_i2c_read(&dev->i2c_bus[0], PIN_OE_CTRL, &tmp); in medusa_video_init()
707 value &= 0xFEF0FE00; in medusa_video_init()
715 value |= 0x010001F8; in medusa_video_init()
718 value |= 0x010F0108; in medusa_video_init()
721 value |= 7; in medusa_video_init()
722 ret_val = cx25821_i2c_write(&dev->i2c_bus[0], PIN_OE_CTRL, value); in medusa_video_init()