Searched refs:gain_buf (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/media/i2c/
H A Dadv7842.c1057 u8 gain_buf[4]; adv7842_set_gain() local
1073 gain_buf[0] = ((gain_man << 7) | (agc_mode_man << 6) | ((gain_a & 0x3f0) >> 4)); adv7842_set_gain()
1074 gain_buf[1] = (((gain_a & 0x00f) << 4) | ((gain_b & 0x3c0) >> 6)); adv7842_set_gain()
1075 gain_buf[2] = (((gain_b & 0x03f) << 2) | ((gain_c & 0x300) >> 8)); adv7842_set_gain()
1076 gain_buf[3] = ((gain_c & 0x0ff)); adv7842_set_gain()
1079 if (adv_smbus_write_i2c_block_data(state->i2c_cp, 0x73, 4, gain_buf)) adv7842_set_gain()
H A Dadv7604.c1012 u8 gain_buf[4]; adv76xx_set_gain() local
1028 gain_buf[0] = ((gain_man << 7) | (agc_mode_man << 6) | ((gain_a & 0x3f0) >> 4)); adv76xx_set_gain()
1029 gain_buf[1] = (((gain_a & 0x00f) << 4) | ((gain_b & 0x3c0) >> 6)); adv76xx_set_gain()
1030 gain_buf[2] = (((gain_b & 0x03f) << 2) | ((gain_c & 0x300) >> 8)); adv76xx_set_gain()
1031 gain_buf[3] = ((gain_c & 0x0ff)); adv76xx_set_gain()
1035 0x73, 4, gain_buf)) adv76xx_set_gain()

Completed in 75 milliseconds