Lines Matching refs:i2c_data
326 u8 i2c_data = val; in ov7660_set_gain() local
331 err = m5602_write_sensor(sd, OV7660_GAIN, &i2c_data, 1); in ov7660_set_gain()
339 u8 i2c_data; in ov7660_set_auto_white_balance() local
344 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_white_balance()
348 i2c_data = ((i2c_data & 0xfd) | ((val & 0x01) << 1)); in ov7660_set_auto_white_balance()
349 err = m5602_write_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_white_balance()
357 u8 i2c_data; in ov7660_set_auto_gain() local
362 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_gain()
366 i2c_data = ((i2c_data & 0xfb) | ((val & 0x01) << 2)); in ov7660_set_auto_gain()
368 return m5602_write_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_gain()
375 u8 i2c_data; in ov7660_set_auto_exposure() local
380 err = m5602_read_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_exposure()
385 i2c_data = ((i2c_data & 0xfe) | ((val & 0x01) << 0)); in ov7660_set_auto_exposure()
387 return m5602_write_sensor(sd, OV7660_COM8, &i2c_data, 1); in ov7660_set_auto_exposure()
393 u8 i2c_data; in ov7660_set_hvflip() local
399 i2c_data = (sd->hflip->val << 5) | (sd->vflip->val << 4); in ov7660_set_hvflip()
401 err = m5602_write_sensor(sd, OV7660_MVFP, &i2c_data, 1); in ov7660_set_hvflip()