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)
113 int code, gain = 0; in ad8366_read_raw() local
122 gain = code * 253 + 4500; in ad8366_read_raw()
125 gain = 15000 - code * 1000; in ad8366_read_raw()
128 gain = 20000 - 31500 + code * 500; in ad8366_read_raw()
131 gain = -1 * code * 250; in ad8366_read_raw()
136 *val = gain / 1000; in ad8366_read_raw()
137 *val2 = (gain % 1000) * 1000; in ad8366_read_raw()
157 int code = 0, gain; in ad8366_write_raw() local
162 gain = (val * 1000) - (val2 / 1000); in ad8366_write_raw()
164 gain = (val * 1000) + (val2 / 1000); in ad8366_write_raw()
166 if (gain > inf->gain_max || gain < inf->gain_min) in ad8366_write_raw()
171 code = (gain - 4500) / 253; in ad8366_write_raw()
174 code = (15000 - gain) / 1000; in ad8366_write_raw()
177 code = ((gain - 500 - 20000) / 500) & 0x3F; in ad8366_write_raw()
180 code = (abs(gain) / 250) & 0x7F; in ad8366_write_raw()
336 MODULE_DESCRIPTION("Analog Devices AD8366 and similar Gain Amplifiers");