Searched refs:gain_reg (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/drivers/media/dvb-frontends/ |
D | dib0090.c | 159 u16 gain_reg[4]; member 931 u16 i, v, gain_reg[4] = { 0 }, gain; in dib0090_gain_apply() local 992 gain_reg[0] = v; in dib0090_gain_apply() 994 gain_reg[0] |= v << 7; in dib0090_gain_apply() 996 gain_reg[1] = v; in dib0090_gain_apply() 998 gain_reg[1] |= v << 7; in dib0090_gain_apply() 1000 gain_reg[2] = v | state->rf_lt_def; in dib0090_gain_apply() 1002 gain_reg[3] = v << 3; in dib0090_gain_apply() 1004 gain_reg[3] |= v << 8; in dib0090_gain_apply() 1014 gain_reg[3] |= state->bb_1_def; in dib0090_gain_apply() [all …]
|
/Linux-v4.19/drivers/media/i2c/ |
D | imx274.c | 1489 u32 gain, analog_gain, digital_gain, gain_reg; in imx274_set_gain() local 1525 gain_reg = (u32)IMX274_GAIN_CONST - in imx274_set_gain() 1527 if (gain_reg > IMX274_GAIN_REG_MAX) in imx274_set_gain() 1528 gain_reg = IMX274_GAIN_REG_MAX; in imx274_set_gain() 1530 err = imx274_write_mbreg(priv, IMX274_ANALOG_GAIN_ADDR_LSB, gain_reg, in imx274_set_gain() 1535 if (IMX274_GAIN_CONST - gain_reg == 0) { in imx274_set_gain() 1542 / (IMX274_GAIN_CONST - gain_reg) * digital_gain; in imx274_set_gain() 1546 __func__, gain_reg, ctrl->val); in imx274_set_gain()
|