Lines Matching full:gain
3 * AD8366 and similar Gain Amplifiers
4 * This driver supports the following gain amplifiers:
5 * AD8366 Dual-Digital Variable Gain Amplifier (VGA)
6 * ADA4961 BiCMOS RF Digital Gain Amplifier (DGA)
7 * ADL5240 Digitally controlled variable gain amplifier (VGA)
120 int code, gain = 0; in ad8366_read_raw() local
129 gain = code * 253 + 4500; in ad8366_read_raw()
132 gain = 15000 - code * 1000; in ad8366_read_raw()
135 gain = 20000 - 31500 + code * 500; in ad8366_read_raw()
138 gain = -1 * code * 500; in ad8366_read_raw()
141 gain = -1 * code * 250; in ad8366_read_raw()
146 *val = gain / 1000; in ad8366_read_raw()
147 *val2 = (gain % 1000) * 1000; in ad8366_read_raw()
167 int code = 0, gain; in ad8366_write_raw() local
172 gain = (val * 1000) - (val2 / 1000); in ad8366_write_raw()
174 gain = (val * 1000) + (val2 / 1000); in ad8366_write_raw()
176 if (gain > inf->gain_max || gain < inf->gain_min) in ad8366_write_raw()
181 code = (gain - 4500) / 253; in ad8366_write_raw()
184 code = (15000 - gain) / 1000; in ad8366_write_raw()
187 code = ((gain - 500 - 20000) / 500) & 0x3F; in ad8366_write_raw()
190 code = (abs(gain) / 500) & 0x3F; in ad8366_write_raw()
193 code = (abs(gain) / 250) & 0x7F; in ad8366_write_raw()
349 MODULE_DESCRIPTION("Analog Devices AD8366 and similar Gain Amplifiers");