Lines Matching refs:i2c_data
177 u8 i2c_data = val; in ov7660_set_gain() local
182 err = m5602_write_sensor(sd, OV7660_GAIN, &i2c_data, 1); in ov7660_set_gain()
190 u8 i2c_data; in ov7660_set_auto_white_balance() local
195 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_white_balance()
199 i2c_data = ((i2c_data & 0xfd) | ((val & 0x01) << 1)); in ov7660_set_auto_white_balance()
200 err = m5602_write_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_white_balance()
208 u8 i2c_data; in ov7660_set_auto_gain() local
213 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_gain()
217 i2c_data = ((i2c_data & 0xfb) | ((val & 0x01) << 2)); in ov7660_set_auto_gain()
219 return m5602_write_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_gain()
226 u8 i2c_data; in ov7660_set_auto_exposure() local
231 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_exposure()
236 i2c_data = ((i2c_data & 0xfe) | ((val & 0x01) << 0)); in ov7660_set_auto_exposure()
238 return m5602_write_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_exposure()
244 u8 i2c_data; in ov7660_set_hvflip() local
249 i2c_data = (sd->hflip->val << 5) | (sd->vflip->val << 4); in ov7660_set_hvflip()
251 err = m5602_write_sensor(sd, OV7660_MVFP, &i2c_data, 1); in ov7660_set_hvflip()