• Home
  • Raw
  • Download

Lines Matching refs:gain

582 	u8 gain = gspca_dev->gain->val;  in setgain()  local
589 i2c[3] = 0x3f - gain; in setgain()
590 i2c[4] = 0x3f - gain; in setgain()
591 i2c[5] = 0x3f - gain; in setgain()
601 i2c[4] = 255 - gain; in setgain()
608 gain = 255 - gain; in setgain()
610 i2c[3] |= (gain & 0x80) >> 7; in setgain()
611 i2c[3] |= (gain & 0x40) >> 5; in setgain()
612 i2c[3] |= (gain & 0x20) >> 3; in setgain()
613 i2c[3] |= (gain & 0x10) >> 1; in setgain()
614 i2c[3] |= (gain & 0x08) << 1; in setgain()
615 i2c[3] |= (gain & 0x04) << 3; in setgain()
616 i2c[3] |= (gain & 0x02) << 5; in setgain()
617 i2c[3] |= (gain & 0x01) << 7; in setgain()
629 if (sd->sensor == SENSOR_OV7630 && gain >= 32) in setgain()
630 gain += 16; in setgain()
633 i2c[3] = gain; in setgain()
654 i2cpgain[3] = gain; in setgain()
655 i2cpcolorgain[3] = gain >> 1; in setgain()
656 i2cpcolorgain[4] = gain >> 1; in setgain()
657 i2cpcolorgain[5] = gain >> 1; in setgain()
658 i2cpcolorgain[6] = gain >> 1; in setgain()
667 u8 buf[3] = { gain, gain, gain }; /* R, G, B */ in setgain()
671 buf[0] = gain << 4 | gain; /* Red and blue */ in setgain()
672 buf[1] = gain; /* Green */ in setgain()
908 int gain_knee = (s32)gspca_dev->gain->maximum * 9 / 10; in do_autogain()
966 gspca_dev->gain->val = gspca_dev->gain->default_value; in sd_s_ctrl()
981 if (gspca_dev->gain->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl()
1016 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1020 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1024 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1030 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1035 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1038 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()