• Home
  • Raw
  • Download

Lines Matching refs:i2c_data

406 	u8 i2c_data;  in ov9650_set_exposure()  local
412 i2c_data = (val >> 10) & 0x3f; in ov9650_set_exposure()
414 &i2c_data, 1); in ov9650_set_exposure()
419 i2c_data = (val >> 2) & 0xff; in ov9650_set_exposure()
421 &i2c_data, 1); in ov9650_set_exposure()
426 i2c_data = val & 0x03; in ov9650_set_exposure()
427 err = m5602_write_sensor(sd, OV9650_COM1, &i2c_data, 1); in ov9650_set_exposure()
434 u8 i2c_data; in ov9650_set_gain() local
442 err = m5602_read_sensor(sd, OV9650_VREF, &i2c_data, 1); in ov9650_set_gain()
447 i2c_data = ((val & 0x0300) >> 2) | in ov9650_set_gain()
448 (i2c_data & 0x3f); in ov9650_set_gain()
449 err = m5602_write_sensor(sd, OV9650_VREF, &i2c_data, 1); in ov9650_set_gain()
454 i2c_data = val & 0xff; in ov9650_set_gain()
455 err = m5602_write_sensor(sd, OV9650_GAIN, &i2c_data, 1); in ov9650_set_gain()
462 u8 i2c_data; in ov9650_set_red_balance() local
467 i2c_data = val & 0xff; in ov9650_set_red_balance()
468 err = m5602_write_sensor(sd, OV9650_RED, &i2c_data, 1); in ov9650_set_red_balance()
475 u8 i2c_data; in ov9650_set_blue_balance() local
480 i2c_data = val & 0xff; in ov9650_set_blue_balance()
481 err = m5602_write_sensor(sd, OV9650_BLUE, &i2c_data, 1); in ov9650_set_blue_balance()
488 u8 i2c_data; in ov9650_set_hvflip() local
498 i2c_data = (hflip << 5) | (vflip << 4); in ov9650_set_hvflip()
499 err = m5602_write_sensor(sd, OV9650_MVFP, &i2c_data, 1); in ov9650_set_hvflip()
514 u8 i2c_data; in ov9650_set_auto_exposure() local
519 err = m5602_read_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_exposure()
524 i2c_data = ((i2c_data & 0xfe) | ((val & 0x01) << 0)); in ov9650_set_auto_exposure()
526 return m5602_write_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_exposure()
533 u8 i2c_data; in ov9650_set_auto_white_balance() local
538 err = m5602_read_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_white_balance()
542 i2c_data = ((i2c_data & 0xfd) | ((val & 0x01) << 1)); in ov9650_set_auto_white_balance()
543 err = m5602_write_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_white_balance()
551 u8 i2c_data; in ov9650_set_auto_gain() local
556 err = m5602_read_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_gain()
560 i2c_data = ((i2c_data & 0xfb) | ((val & 0x01) << 2)); in ov9650_set_auto_gain()
562 return m5602_write_sensor(sd, OV9650_COM8, &i2c_data, 1); in ov9650_set_auto_gain()