Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/media/i2c/
Dadv7842.c1133 u8 gain_buf[4]; in adv7842_set_gain() local
1149 gain_buf[0] = ((gain_man << 7) | (agc_mode_man << 6) | ((gain_a & 0x3f0) >> 4)); in adv7842_set_gain()
1150 gain_buf[1] = (((gain_a & 0x00f) << 4) | ((gain_b & 0x3c0) >> 6)); in adv7842_set_gain()
1151 gain_buf[2] = (((gain_b & 0x03f) << 2) | ((gain_c & 0x300) >> 8)); in adv7842_set_gain()
1152 gain_buf[3] = ((gain_c & 0x0ff)); in adv7842_set_gain()
1155 if (i2c_smbus_write_i2c_block_data(state->i2c_cp, 0x73, 4, gain_buf)) in adv7842_set_gain()
Dadv7604.c1082 u8 gain_buf[4]; in adv76xx_set_gain() local
1098 gain_buf[0] = ((gain_man << 7) | (agc_mode_man << 6) | ((gain_a & 0x3f0) >> 4)); in adv76xx_set_gain()
1099 gain_buf[1] = (((gain_a & 0x00f) << 4) | ((gain_b & 0x3c0) >> 6)); in adv76xx_set_gain()
1100 gain_buf[2] = (((gain_b & 0x03f) << 2) | ((gain_c & 0x300) >> 8)); in adv76xx_set_gain()
1101 gain_buf[3] = ((gain_c & 0x0ff)); in adv76xx_set_gain()
1105 0x73, gain_buf, 4)) in adv76xx_set_gain()