Lines Matching refs:i2c_data
554 u8 i2c_data; in ov9650_set_exposure() local
560 i2c_data = (val >> 10) & 0x3f; in ov9650_set_exposure()
562 &i2c_data, 1); in ov9650_set_exposure()
567 i2c_data = (val >> 2) & 0xff; in ov9650_set_exposure()
569 &i2c_data, 1); in ov9650_set_exposure()
574 i2c_data = val & 0x03; in ov9650_set_exposure()
575 err = m5602_write_sensor(sd, OV9650_COM1, &i2c_data, 1); in ov9650_set_exposure()
582 u8 i2c_data; in ov9650_set_gain() local
590 err = m5602_read_sensor(sd, OV9650_VREF, &i2c_data, 1); in ov9650_set_gain()
595 i2c_data = ((val & 0x0300) >> 2) | in ov9650_set_gain()
596 (i2c_data & 0x3f); in ov9650_set_gain()
597 err = m5602_write_sensor(sd, OV9650_VREF, &i2c_data, 1); in ov9650_set_gain()
602 i2c_data = val & 0xff; in ov9650_set_gain()
603 err = m5602_write_sensor(sd, OV9650_GAIN, &i2c_data, 1); in ov9650_set_gain()
610 u8 i2c_data; in ov9650_set_red_balance() local
615 i2c_data = val & 0xff; in ov9650_set_red_balance()
616 err = m5602_write_sensor(sd, OV9650_RED, &i2c_data, 1); in ov9650_set_red_balance()
623 u8 i2c_data; in ov9650_set_blue_balance() local
628 i2c_data = val & 0xff; in ov9650_set_blue_balance()
629 err = m5602_write_sensor(sd, OV9650_BLUE, &i2c_data, 1); in ov9650_set_blue_balance()
636 u8 i2c_data; in ov9650_set_hvflip() local
646 i2c_data = (hflip << 5) | (vflip << 4); in ov9650_set_hvflip()
647 err = m5602_write_sensor(sd, OV9650_MVFP, &i2c_data, 1); in ov9650_set_hvflip()
662 u8 i2c_data; in ov9650_set_auto_exposure() local
667 err = m5602_read_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_exposure()
672 i2c_data = ((i2c_data & 0xfe) | ((val & 0x01) << 0)); in ov9650_set_auto_exposure()
674 return m5602_write_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_exposure()
681 u8 i2c_data; in ov9650_set_auto_white_balance() local
686 err = m5602_read_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_white_balance()
690 i2c_data = ((i2c_data & 0xfd) | ((val & 0x01) << 1)); in ov9650_set_auto_white_balance()
691 err = m5602_write_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_white_balance()
699 u8 i2c_data; in ov9650_set_auto_gain() local
704 err = m5602_read_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_gain()
708 i2c_data = ((i2c_data & 0xfb) | ((val & 0x01) << 2)); in ov9650_set_auto_gain()
710 return m5602_write_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_gain()