Lines Matching refs:red_gain
494 s32 red_gain, blue_gain, green_gain; in setawb_n_RGB() local
498 red_gain = green_gain + sd->red_balance->val; in setawb_n_RGB()
499 if (red_gain > 0x40) in setawb_n_RGB()
500 red_gain = 0x40; in setawb_n_RGB()
501 else if (red_gain < 0x10) in setawb_n_RGB()
502 red_gain = 0x10; in setawb_n_RGB()
510 all_gain_reg[1] = red_gain; in setawb_n_RGB()
863 s32 red_gain, blue_gain, green_gain; in sd_g_volatile_ctrl() local
869 red_gain = reg_r(gspca_dev, 0x0087); in sd_g_volatile_ctrl()
870 if (red_gain > 0x40) in sd_g_volatile_ctrl()
871 red_gain = 0x40; in sd_g_volatile_ctrl()
872 else if (red_gain < 0x10) in sd_g_volatile_ctrl()
873 red_gain = 0x10; in sd_g_volatile_ctrl()
888 sd->red_balance->val = red_gain - green_gain; in sd_g_volatile_ctrl()