gain 390 arch/m68k/include/asm/atarihw.h u_char gain; gain 207 drivers/bcma/sprom.c u8 gain; gain 210 drivers/bcma/sprom.c gain = (v & mask) >> shift; gain 211 drivers/bcma/sprom.c if (gain == 0xFF) { gain 212 drivers/bcma/sprom.c gain = 8; /* If unset use 2dBm */ gain 215 drivers/bcma/sprom.c gain = ((gain & 0xC0) >> 6) | ((gain & 0x3F) << 2); gain 218 drivers/bcma/sprom.c return (s8)gain; gain 206 drivers/gpu/drm/i2c/ch7006_mode.c int gain; gain 212 drivers/gpu/drm/i2c/ch7006_mode.c gain = 76; gain 216 drivers/gpu/drm/i2c/ch7006_mode.c gain = 71; gain 221 drivers/gpu/drm/i2c/ch7006_mode.c black_level = round_fixed(norm->black_level*26625)/gain; gain 1684 drivers/hid/hid-logitech-hidpp.c u16 gain; gain 1803 drivers/hid/hid-logitech-hidpp.c data->gain = (wd->params[0] << 8) + wd->params[1]; gain 2035 drivers/hid/hid-logitech-hidpp.c static void hidpp_ff_set_gain(struct input_dev *dev, u16 gain) gain 2040 drivers/hid/hid-logitech-hidpp.c dbg_hid("Setting gain to %d.\n", gain); gain 2042 drivers/hid/hid-logitech-hidpp.c params[0] = gain >> 8; gain 2043 drivers/hid/hid-logitech-hidpp.c params[1] = gain & 255; gain 2763 drivers/hid/hid-logitech-hidpp.c data->gain = ret ? gain 710 drivers/hid/usbhid/hid-pidff.c static void pidff_set_gain(struct input_dev *dev, u16 gain) gain 714 drivers/hid/usbhid/hid-pidff.c pidff_set(&pidff->device_gain[PID_DEVICE_GAIN_FIELD], gain); gain 122 drivers/hwmon/max16065.c static inline int ADC_TO_CURR(int adc, int gain) gain 124 drivers/hwmon/max16065.c return adc * 1400000 / (gain * 255); gain 138 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(1000), gain 143 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(2000), gain 148 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(4000), gain 153 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(12000), gain 217 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(1000), gain 222 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(2000), gain 227 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(3900), gain 301 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(61), gain 306 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(122), gain 311 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(183), gain 316 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(244), gain 321 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(732), gain 386 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(1000), gain 391 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(3000), gain 460 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(18000), gain 465 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(72000), gain 530 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(49000), gain 535 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(98000), gain 540 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(195000), gain 597 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(488), gain 661 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(15600), gain 666 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(31200), gain 671 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(62500), gain 676 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(187500), gain 730 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(976), gain 735 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(1952), gain 740 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(3904), gain 745 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(7808), gain 803 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(76), gain 870 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(15600), gain 875 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(31200), gain 880 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(62500), gain 885 drivers/iio/accel/st_accel_core.c .gain = IIO_G_TO_M_S_2(187500), gain 925 drivers/iio/accel/st_accel_core.c *val = adata->current_fullscale->gain / 1000000; gain 926 drivers/iio/accel/st_accel_core.c *val2 = adata->current_fullscale->gain % 1000000; gain 946 drivers/iio/accel/st_accel_core.c int gain; gain 948 drivers/iio/accel/st_accel_core.c gain = val * 1000000 + val2; gain 949 drivers/iio/accel/st_accel_core.c err = st_sensors_set_fullscale_by_gain(indio_dev, gain); gain 264 drivers/iio/adc/ad7124.c unsigned int gain) gain 270 drivers/iio/adc/ad7124.c ARRAY_SIZE(ad7124_gain), gain); gain 334 drivers/iio/adc/ad7124.c unsigned int res, gain, full_scale, vref; gain 353 drivers/iio/adc/ad7124.c gain = DIV_ROUND_CLOSEST(res, val2); gain 355 drivers/iio/adc/ad7124.c return ad7124_set_channel_gain(st, chan->address, gain); gain 65 drivers/iio/adc/ad7780.c unsigned int gain; gain 122 drivers/iio/adc/ad7780.c *val = voltage_uv * st->gain; gain 148 drivers/iio/adc/ad7780.c unsigned int full_scale, gain; gain 160 drivers/iio/adc/ad7780.c gain = DIV_ROUND_CLOSEST_ULL(vref, full_scale); gain 161 drivers/iio/adc/ad7780.c gain = DIV_ROUND_CLOSEST(gain, val2); gain 162 drivers/iio/adc/ad7780.c st->gain = gain; gain 163 drivers/iio/adc/ad7780.c if (gain < AD7780_GAIN_MIDPOINT) gain 164 drivers/iio/adc/ad7780.c gain = 0; gain 166 drivers/iio/adc/ad7780.c gain = 1; gain 167 drivers/iio/adc/ad7780.c gpiod_set_value(st->gain_gpio, gain); gain 195 drivers/iio/adc/ad7780.c st->gain = ad778x_gain[raw_sample & AD7780_GAIN]; gain 294 drivers/iio/adc/ad7780.c st->gain = 1; gain 28 drivers/iio/adc/hx711.c int gain; gain 48 drivers/iio/adc/hx711.c static int hx711_get_gain_to_pulse(int gain) gain 53 drivers/iio/adc/hx711.c if (hx711_gain_to_scale[i].gain == gain) gain 58 drivers/iio/adc/hx711.c static int hx711_get_gain_to_scale(int gain) gain 63 drivers/iio/adc/hx711.c if (hx711_gain_to_scale[i].gain == gain) gain 74 drivers/iio/adc/hx711.c return hx711_gain_to_scale[i].gain; gain 321 drivers/iio/adc/hx711.c int gain; gain 334 drivers/iio/adc/hx711.c gain = hx711_get_scale_to_gain(val2); gain 335 drivers/iio/adc/hx711.c if (gain < 0) { gain 337 drivers/iio/adc/hx711.c return gain; gain 340 drivers/iio/adc/hx711.c if (gain != hx711_data->gain_set) { gain 341 drivers/iio/adc/hx711.c hx711_data->gain_set = gain; gain 342 drivers/iio/adc/hx711.c if (gain != 32) gain 343 drivers/iio/adc/hx711.c hx711_data->gain_chan_a = gain; gain 542 drivers/iio/adc/hx711.c ret / hx711_gain_to_scale[i].gain / 1678; gain 424 drivers/iio/adc/ina2xx-adc.c unsigned int gain, gain 429 drivers/iio/adc/ina2xx-adc.c if (gain < 125 || gain > 1000) gain 432 drivers/iio/adc/ina2xx-adc.c bits = find_closest(gain, ina219_vshunt_gain_tab, gain 111 drivers/iio/adc/nau7802.c static int nau7802_set_gain(struct nau7802_state *st, int gain) gain 123 drivers/iio/adc/nau7802.c gain); gain 40 drivers/iio/adc/palmas_gpadc.c int gain; /* calculated from above (after reading trim regs) */ gain 52 drivers/iio/adc/palmas_gpadc.c .gain = PALMAS_TO_BE_CALCULATED, \ gain 296 drivers/iio/adc/palmas_gpadc.c int gain; gain 320 drivers/iio/adc/palmas_gpadc.c gain = ((v2 - v1) * 1000) / (x2 - x1); gain 323 drivers/iio/adc/palmas_gpadc.c adc->adc_info[adc_chan].gain = gain; gain 377 drivers/iio/adc/palmas_gpadc.c val = (val * adc->adc_info[adc_chan].gain) / 1000; gain 113 drivers/iio/adc/qcom-spmi-iadc.c u16 gain; gain 330 drivers/iio/adc/qcom-spmi-iadc.c vsense_uv /= (s32)iadc->gain - iadc->offset[chan->channel]; gain 335 drivers/iio/adc/qcom-spmi-iadc.c iadc->offset[chan->channel], iadc->gain, gain 366 drivers/iio/adc/qcom-spmi-iadc.c ret = iadc_do_conversion(iadc, IADC_GAIN_17P857MV, &iadc->gain); gain 375 drivers/iio/adc/qcom-spmi-iadc.c if (iadc->gain == iadc->offset[IADC_INT_RSENSE]) { gain 377 drivers/iio/adc/qcom-spmi-iadc.c iadc->gain); gain 386 drivers/iio/adc/qcom-spmi-iadc.c if (iadc->gain == iadc->offset[IADC_EXT_RSENSE]) { gain 388 drivers/iio/adc/qcom-spmi-iadc.c iadc->gain); gain 77 drivers/iio/adc/stx104.c int gain; gain 83 drivers/iio/adc/stx104.c gain = adc_config & 0x3; gain 85 drivers/iio/adc/stx104.c *val = 1 << gain; gain 113 drivers/iio/adc/stx104.c gain = adc_config & 0x3; gain 116 drivers/iio/adc/stx104.c *val2 = 15 - adbu + gain; gain 67 drivers/iio/adc/twl6030-gpadc.c s32 gain; gain 490 drivers/iio/adc/twl6030-gpadc.c gpadc->twl6030_cal_tbl[i].gain; gain 563 drivers/iio/adc/twl6030-gpadc.c int b, k, gain, x1, x2, i; gain 569 drivers/iio/adc/twl6030-gpadc.c gain = ((ideal[i].volt2 - ideal[i].volt1) * 1000) / gain 581 drivers/iio/adc/twl6030-gpadc.c gpadc->twl6030_cal_tbl[i].gain = gain; gain 589 drivers/iio/adc/twl6030-gpadc.c dev_dbg(gpadc->dev, "GPADC Gain for Chn: %d = %d\n", channel, gain); gain 104 drivers/iio/amplifiers/ad8366.c int code, gain = 0; gain 113 drivers/iio/amplifiers/ad8366.c gain = code * 253 + 4500; gain 116 drivers/iio/amplifiers/ad8366.c gain = 15000 - code * 1000; gain 119 drivers/iio/amplifiers/ad8366.c gain = 20000 - 31500 + code * 500; gain 124 drivers/iio/amplifiers/ad8366.c *val = gain / 1000; gain 125 drivers/iio/amplifiers/ad8366.c *val2 = (gain % 1000) * 1000; gain 145 drivers/iio/amplifiers/ad8366.c int code = 0, gain; gain 150 drivers/iio/amplifiers/ad8366.c gain = (val * 1000) - (val2 / 1000); gain 152 drivers/iio/amplifiers/ad8366.c gain = (val * 1000) + (val2 / 1000); gain 154 drivers/iio/amplifiers/ad8366.c if (gain > inf->gain_max || gain < inf->gain_min) gain 159 drivers/iio/amplifiers/ad8366.c code = (gain - 4500) / 253; gain 162 drivers/iio/amplifiers/ad8366.c code = (15000 - gain) / 1000; gain 165 drivers/iio/amplifiers/ad8366.c code = ((gain - 500 - 20000) / 500) & 0x3F; gain 518 drivers/iio/common/st_sensors/st_sensors_core.c if ((sdata->sensor_settings->fs.fs_avl[i].gain == scale) && gain 519 drivers/iio/common/st_sensors/st_sensors_core.c (sdata->sensor_settings->fs.fs_avl[i].gain != 0)) { gain 692 drivers/iio/common/st_sensors/st_sensors_core.c q = sdata->sensor_settings->fs.fs_avl[i].gain / 1000000; gain 693 drivers/iio/common/st_sensors/st_sensors_core.c r = sdata->sensor_settings->fs.fs_avl[i].gain % 1000000; gain 326 drivers/iio/dac/ad5592r-base.c bool gain; gain 330 drivers/iio/dac/ad5592r-base.c gain = false; gain 333 drivers/iio/dac/ad5592r-base.c gain = true; gain 347 drivers/iio/dac/ad5592r-base.c if (gain) gain 354 drivers/iio/dac/ad5592r-base.c if (gain) gain 93 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(8750), gain 98 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(17500), gain 103 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(70000), gain 171 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(8750), gain 176 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(17500), gain 181 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(70000), gain 245 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(8750), gain 250 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(17500), gain 255 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(70000), gain 319 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(8750), gain 324 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(17500), gain 329 drivers/iio/gyro/st_gyro_core.c .gain = IIO_DEGREE_TO_RAD(70000), gain 377 drivers/iio/gyro/st_gyro_core.c *val2 = gdata->current_fullscale->gain; gain 95 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h u32 gain; gain 279 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h u32 gain; gain 945 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c u32 gain) gain 953 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c if (fs_table->fs_avl[i].gain == gain) gain 967 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c sensor->gain = gain; gain 1124 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c *val2 = sensor->gain; gain 1223 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c fs_table->fs_avl[i].gain); gain 1460 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c sensor->gain = hw->settings->fs_table[id].fs_avl[0].gain; gain 61 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c .gain = 1500, gain 488 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c *val2 = sensor->gain; gain 563 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c settings->fs_table.fs_avl[i].gain); gain 611 drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c sensor->gain = info->fs_table.fs_avl[0].gain; gain 719 drivers/iio/light/ltr501.c static int ltr501_get_gain_index(struct ltr501_gain *gain, int size, gain 725 drivers/iio/light/ltr501.c if (val == gain[i].scale && val2 == gain[i].uscale) gain 127 drivers/iio/light/rpr0521.c const struct rpr0521_gain *gain; gain 134 drivers/iio/light/rpr0521.c .gain = rpr0521_pxs_gain, gain 141 drivers/iio/light/rpr0521.c .gain = rpr0521_als_gain, gain 148 drivers/iio/light/rpr0521.c .gain = rpr0521_als_gain, gain 588 drivers/iio/light/rpr0521.c *val = rpr0521_gain[chan].gain[idx].scale; gain 589 drivers/iio/light/rpr0521.c *val2 = rpr0521_gain[chan].gain[idx].uscale; gain 601 drivers/iio/light/rpr0521.c if (val == rpr0521_gain[chan].gain[i].scale && gain 602 drivers/iio/light/rpr0521.c val2 == rpr0521_gain[chan].gain[i].uscale) { gain 54 drivers/iio/light/tcs3414.c u8 gain; gain 148 drivers/iio/light/tcs3414.c i = (data->gain & TCS3414_GAIN_MASK) >> TCS3414_GAIN_SHIFT; gain 172 drivers/iio/light/tcs3414.c data->gain &= ~TCS3414_GAIN_MASK; gain 173 drivers/iio/light/tcs3414.c data->gain |= i << TCS3414_GAIN_SHIFT; gain 176 drivers/iio/light/tcs3414.c data->gain); gain 324 drivers/iio/light/tcs3414.c data->gain = ret; gain 361 drivers/iio/light/vl6180.c int i, ret, gain; gain 366 drivers/iio/light/vl6180.c gain = (val * 1000000 + val2) / 1000; gain 367 drivers/iio/light/vl6180.c if (gain < 1 || gain > 40000) gain 370 drivers/iio/light/vl6180.c i = find_closest(gain, vl6180_als_gain_tab, gain 75 drivers/iio/light/zopt2201.c u8 gain; gain 81 drivers/iio/light/zopt2201.c unsigned int gain; /* gain factor */ gain 92 drivers/iio/light/zopt2201.c unsigned int gain; /* gain factor */ gain 116 drivers/iio/light/zopt2201.c u8 gain; /* gain register value */ gain 145 drivers/iio/light/zopt2201.c u8 gain; /* gain register value */ gain 273 drivers/iio/light/zopt2201.c zopt2201_gain_uvb[data->gain].gain; gain 278 drivers/iio/light/zopt2201.c *val = zopt2201_gain_als[data->gain].scale; gain 281 drivers/iio/light/zopt2201.c *val = zopt2201_gain_uvb[data->gain].scale; gain 336 drivers/iio/light/zopt2201.c static int zopt2201_set_gain(struct zopt2201_data *data, u8 gain) gain 340 drivers/iio/light/zopt2201.c ret = i2c_smbus_write_byte_data(data->client, ZOPT2201_LS_GAIN, gain); gain 344 drivers/iio/light/zopt2201.c data->gain = gain; gain 358 drivers/iio/light/zopt2201.c ret = zopt2201_set_gain(data, zopt2201_scale_als[idx].gain); gain 388 drivers/iio/light/zopt2201.c ret = zopt2201_set_gain(data, zopt2201_scale_als[idx].gain); gain 140 drivers/iio/magnetometer/st_magn_core.c .gain = 1100, gain 146 drivers/iio/magnetometer/st_magn_core.c .gain = 855, gain 152 drivers/iio/magnetometer/st_magn_core.c .gain = 670, gain 158 drivers/iio/magnetometer/st_magn_core.c .gain = 450, gain 164 drivers/iio/magnetometer/st_magn_core.c .gain = 400, gain 170 drivers/iio/magnetometer/st_magn_core.c .gain = 330, gain 176 drivers/iio/magnetometer/st_magn_core.c .gain = 230, gain 219 drivers/iio/magnetometer/st_magn_core.c .gain = 909, gain 225 drivers/iio/magnetometer/st_magn_core.c .gain = 1169, gain 231 drivers/iio/magnetometer/st_magn_core.c .gain = 1492, gain 237 drivers/iio/magnetometer/st_magn_core.c .gain = 2222, gain 243 drivers/iio/magnetometer/st_magn_core.c .gain = 2500, gain 249 drivers/iio/magnetometer/st_magn_core.c .gain = 3030, gain 255 drivers/iio/magnetometer/st_magn_core.c .gain = 4347, gain 298 drivers/iio/magnetometer/st_magn_core.c .gain = 146, gain 303 drivers/iio/magnetometer/st_magn_core.c .gain = 292, gain 308 drivers/iio/magnetometer/st_magn_core.c .gain = 438, gain 313 drivers/iio/magnetometer/st_magn_core.c .gain = 584, gain 363 drivers/iio/magnetometer/st_magn_core.c .gain = 1500, gain 406 drivers/iio/magnetometer/st_magn_core.c *val2 = mdata->current_fullscale->gain; gain 271 drivers/iio/pressure/st_pressure_core.c .gain = ST_PRESS_KPASCAL_NANO_SCALE, gain 341 drivers/iio/pressure/st_pressure_core.c .gain = ST_PRESS_LPS001WP_FS_AVL_PRESS_GAIN, gain 394 drivers/iio/pressure/st_pressure_core.c .gain = ST_PRESS_KPASCAL_NANO_SCALE, gain 463 drivers/iio/pressure/st_pressure_core.c .gain = ST_PRESS_KPASCAL_NANO_SCALE, gain 532 drivers/iio/pressure/st_pressure_core.c .gain = ST_PRESS_KPASCAL_NANO_SCALE, gain 603 drivers/iio/pressure/st_pressure_core.c *val2 = press_data->current_fullscale->gain; gain 266 drivers/iio/proximity/isl29501.c u32 value, gain, coeff, exp; gain 271 drivers/iio/proximity/isl29501.c ret = isl29501_register_read(isl29501, reg, &gain); gain 275 drivers/iio/proximity/isl29501.c value = gain; gain 50 drivers/input/ff-memless.c int gain; gain 245 drivers/input/ff-memless.c int gain) gain 258 drivers/input/ff-memless.c x = fixp_mult(fixp_sin16(i), level) * gain / 0xffff; gain 259 drivers/input/ff-memless.c y = fixp_mult(-fixp_cos16(i), level) * gain / 0xffff; gain 272 drivers/input/ff-memless.c strong = (u32)new->u.rumble.strong_magnitude * gain / 0xffff; gain 273 drivers/input/ff-memless.c weak = (u32)new->u.rumble.weak_magnitude * gain / 0xffff; gain 299 drivers/input/ff-memless.c i = i * gain / 0x7fff; gain 383 drivers/input/ff-memless.c ml_combine_effects(combo_effect, state, ml->gain); gain 419 drivers/input/ff-memless.c static void ml_ff_set_gain(struct input_dev *dev, u16 gain) gain 424 drivers/input/ff-memless.c ml->gain = gain; gain 525 drivers/input/ff-memless.c ml->gain = 0xffff; gain 79 drivers/input/joystick/iforce/iforce-main.c static void iforce_set_gain(struct input_dev *dev, u16 gain) gain 84 drivers/input/joystick/iforce/iforce-main.c data[0] = gain >> 9; gain 328 drivers/input/keyboard/cap11xx.c int i, error, irq, gain = 0; gain 382 drivers/input/keyboard/cap11xx.c gain = ilog2(gain32); gain 403 drivers/input/keyboard/cap11xx.c gain << CAP11XX_REG_MAIN_CONTROL_GAIN_SHIFT); gain 219 drivers/input/misc/uinput.c static void uinput_dev_set_gain(struct input_dev *dev, u16 gain) gain 221 drivers/input/misc/uinput.c uinput_dev_event(dev, EV_FF, FF_GAIN, gain); gain 104 drivers/input/touchscreen/edt-ft5x06.c int gain; gain 495 drivers/input/touchscreen/edt-ft5x06.c static EDT_ATTR(gain, S_IWUSR | S_IRUGO, WORK_REGISTER_GAIN, gain 628 drivers/input/touchscreen/edt-ft5x06.c tsdata->gain); gain 933 drivers/input/touchscreen/edt-ft5x06.c tsdata->gain = val; gain 962 drivers/input/touchscreen/edt-ft5x06.c tsdata->gain = edt_ft5x06_register_read(tsdata, reg_addr->reg_gain); gain 178 drivers/input/touchscreen/sur40.c static uint gain = SUR40_GAIN_DEF; gain 179 drivers/input/touchscreen/sur40.c module_param(gain, uint, 0644); gain 180 drivers/input/touchscreen/sur40.c MODULE_PARM_DESC(gain, "set initial gain" gain 764 drivers/input/touchscreen/sur40.c SUR40_GAIN_MIN, SUR40_GAIN_MAX, 1, clamp(gain, gain 16 drivers/isdn/mISDN/dsp_biquad.h int32_t gain; gain 27 drivers/isdn/mISDN/dsp_biquad.h int32_t gain, int32_t a1, int32_t a2, int32_t b1, int32_t b2) gain 29 drivers/isdn/mISDN/dsp_biquad.h bq->gain = gain; gain 44 drivers/isdn/mISDN/dsp_biquad.h z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2; gain 593 drivers/media/dvb-frontends/dib0070.c static u16 dib0070_read_wbd_offset(struct dib0070_state *state, u8 gain) gain 600 drivers/media/dvb-frontends/dib0070.c dib0070_write_reg(state, 0x0f, (1 << 14) | (2 << 12) | (gain << 9) | (1 << 8) | (1 << 7) | (0 << 0)); gain 609 drivers/media/dvb-frontends/dib0070.c u8 gain; gain 610 drivers/media/dvb-frontends/dib0070.c for (gain = 6; gain < 8; gain++) { gain 611 drivers/media/dvb-frontends/dib0070.c state->wbd_offset_3_3[gain - 6] = ((dib0070_read_wbd_offset(state, gain) * 8 * 18 / 33 + 1) / 2); gain 612 drivers/media/dvb-frontends/dib0070.c dprintk("Gain: %d, WBDOffset (3.3V) = %hd\n", gain, state->wbd_offset_3_3[gain-6]); gain 139 drivers/media/dvb-frontends/dib0090.c u16 gain[2]; /* for channel monitoring */ gain 919 drivers/media/dvb-frontends/dib0090.c u16 i, v, gain_reg[4] = { 0 }, gain; gain 941 drivers/media/dvb-frontends/dib0090.c gain = ((state->rf_gain_limit >> WBD_ALPHA) + state->bb_ramp[0]) << GAIN_ALPHA; gain 942 drivers/media/dvb-frontends/dib0090.c if (gain_delta >= ((s16) gain - state->current_gain)) /* overflow */ gain 943 drivers/media/dvb-frontends/dib0090.c state->current_gain = gain; gain 951 drivers/media/dvb-frontends/dib0090.c gain = state->current_gain >> GAIN_ALPHA; gain 954 drivers/media/dvb-frontends/dib0090.c if (gain > (state->rf_gain_limit >> WBD_ALPHA)) { gain 956 drivers/media/dvb-frontends/dib0090.c bb = gain - rf; gain 960 drivers/media/dvb-frontends/dib0090.c rf = gain; gain 964 drivers/media/dvb-frontends/dib0090.c state->gain[0] = rf; gain 965 drivers/media/dvb-frontends/dib0090.c state->gain[1] = bb; gain 1317 drivers/media/dvb-frontends/dib0090.c *rf = state->gain[0]; gain 1319 drivers/media/dvb-frontends/dib0090.c *bb = state->gain[1]; gain 6073 drivers/media/dvb-frontends/drx39xyj/drxj.c vsb_pga_cfg.gain = ext_attr->vsb_pga_cfg; gain 8479 drivers/media/dvb-frontends/drx39xyj/drxj.c qam_pga_cfg.gain = ext_attr->qam_pga_cfg; gain 11257 drivers/media/dvb-frontends/drx39xyj/drxj.c u8 gain = 0; gain 11282 drivers/media/dvb-frontends/drx39xyj/drxj.c if (afe_gain->gain >= 329) gain 11283 drivers/media/dvb-frontends/drx39xyj/drxj.c gain = 15; gain 11284 drivers/media/dvb-frontends/drx39xyj/drxj.c else if (afe_gain->gain <= 147) gain 11285 drivers/media/dvb-frontends/drx39xyj/drxj.c gain = 0; gain 11287 drivers/media/dvb-frontends/drx39xyj/drxj.c gain = (afe_gain->gain - 140 + 6) / 13; gain 11291 drivers/media/dvb-frontends/drx39xyj/drxj.c rc = drxj_dap_write_reg16(dev_addr, IQM_AF_PGA_GAIN__A, gain, 0); gain 11301 drivers/media/dvb-frontends/drx39xyj/drxj.c ext_attr->vsb_pga_cfg = gain * 13 + 140; gain 11307 drivers/media/dvb-frontends/drx39xyj/drxj.c ext_attr->qam_pga_cfg = gain * 13 + 140; gain 200 drivers/media/dvb-frontends/drx39xyj/drxj.h u16 gain; /* gain in 0.1 dB steps, DRXJ range 140 .. 335 */}; gain 126 drivers/media/dvb-frontends/ix2505v.c u8 gain, cc, ref, psc, local_osc, lpf; gain 134 drivers/media/dvb-frontends/ix2505v.c gain = (state->config->tuner_gain < 4) gain 137 drivers/media/dvb-frontends/ix2505v.c gain = 0x0; gain 152 drivers/media/dvb-frontends/ix2505v.c data[0] = ((gain & 0x3) << 5) | (N >> 3); gain 354 drivers/media/dvb-frontends/l64781.c int gain = l64781_readreg (state, 0x0e); gain 361 drivers/media/dvb-frontends/l64781.c if (gain > 5) gain 395 drivers/media/dvb-frontends/l64781.c u8 gain = l64781_readreg (state, 0x0e); gain 396 drivers/media/dvb-frontends/l64781.c *signal_strength = (gain << 8) | gain; gain 1423 drivers/media/dvb-frontends/stb0899_drv.c u32 SearchRange, gain; gain 1439 drivers/media/dvb-frontends/stb0899_drv.c gain = 8; /* 15Mb < srate < 45Mb, gain = 8dB */ gain 1441 drivers/media/dvb-frontends/stb0899_drv.c gain = 12; /* 5Mb < srate < 15Mb, gain = 12dB */ gain 1443 drivers/media/dvb-frontends/stb0899_drv.c gain = 14; /* 1Mb < srate < 5Mb, gain = 14db */ gain 1444 drivers/media/dvb-frontends/stb0899_drv.c state->config->tuner_set_rfsiggain(fe, gain); gain 88 drivers/media/dvb-frontends/stv090x.h int (*tuner_set_bbgain)(struct dvb_frontend *fe, u32 gain); gain 89 drivers/media/dvb-frontends/stv090x.h int (*tuner_get_bbgain)(struct dvb_frontend *fe, u32 *gain); gain 30 drivers/media/dvb-frontends/stv6110.c u8 gain; gain 265 drivers/media/dvb-frontends/stv6110.c priv->regs[RSTV6110_CTRL2] |= (priv->gain & 0x0f); gain 419 drivers/media/dvb-frontends/stv6110.c priv->gain = config->gain; gain 30 drivers/media/dvb-frontends/stv6110.h u8 gain; gain 257 drivers/media/dvb-frontends/stv6110x.c static int stv6110x_get_bbgain(struct dvb_frontend *fe, u32 *gain) gain 262 drivers/media/dvb-frontends/stv6110x.c *gain = 2 * STV6110x_GETFIELD(CTRL2_BBGAIN, stv6110x->regs[STV6110x_CTRL2]); gain 267 drivers/media/dvb-frontends/stv6110x.c static int stv6110x_set_bbgain(struct dvb_frontend *fe, u32 gain) gain 271 drivers/media/dvb-frontends/stv6110x.c STV6110x_SETFIELD(stv6110x->regs[STV6110x_CTRL2], CTRL2_BBGAIN, gain / 2); gain 40 drivers/media/dvb-frontends/stv6110x.h int (*tuner_set_bbgain) (struct dvb_frontend *fe, u32 gain); gain 41 drivers/media/dvb-frontends/stv6110x.h int (*tuner_get_bbgain) (struct dvb_frontend *fe, u32 *gain); gain 544 drivers/media/dvb-frontends/stv6111.c s32 gain; gain 552 drivers/media/dvb-frontends/stv6111.c gain = table[0].value; gain 554 drivers/media/dvb-frontends/stv6111.c gain = table[imax].value; gain 565 drivers/media/dvb-frontends/stv6111.c gain = table[imin].value; gain 567 drivers/media/dvb-frontends/stv6111.c gain += ((s32)(reg_value - table[imin].reg_value) * gain 571 drivers/media/dvb-frontends/stv6111.c return gain; gain 578 drivers/media/dvb-frontends/stv6111.c s32 gain; gain 598 drivers/media/dvb-frontends/stv6111.c gain = table_lookup(lnagain_nf_lookup, gain 603 drivers/media/dvb-frontends/stv6111.c gain = table_lookup(lnagain_iip3_lookup, gain 607 drivers/media/dvb-frontends/stv6111.c gain += table_lookup(gain_rfagc_lookup, gain 610 drivers/media/dvb-frontends/stv6111.c gain -= 2400; gain 615 drivers/media/dvb-frontends/stv6111.c gain = table_lookup( gain 619 drivers/media/dvb-frontends/stv6111.c gain += 600; gain 622 drivers/media/dvb-frontends/stv6111.c gain = table_lookup( gain 631 drivers/media/dvb-frontends/stv6111.c gain -= ((((s32)(state->frequency / 1000) - 1550) * 2) / 12); gain 634 drivers/media/dvb-frontends/stv6111.c gain += (s32)((state->reg[0x01] & 0xC0) >> 6) * 600 - 1300; gain 636 drivers/media/dvb-frontends/stv6111.c if (gain < 0) gain 637 drivers/media/dvb-frontends/stv6111.c gain = 0; gain 638 drivers/media/dvb-frontends/stv6111.c else if (gain > 10000) gain 639 drivers/media/dvb-frontends/stv6111.c gain = 10000; gain 641 drivers/media/dvb-frontends/stv6111.c *st = 10000 - gain; gain 343 drivers/media/dvb-frontends/tda10021.c u8 gain = tda10021_readreg(state, 0x17); gain 346 drivers/media/dvb-frontends/tda10021.c gain = ~gain; gain 347 drivers/media/dvb-frontends/tda10021.c *strength = (gain << 8) | gain; gain 409 drivers/media/dvb-frontends/tda10023.c u16 gain = ((255-tda10023_readreg(state, 0x17))) + (255-ifgain)/16; gain 411 drivers/media/dvb-frontends/tda10023.c if (gain>0x90) gain 412 drivers/media/dvb-frontends/tda10023.c gain=gain+2*(gain-0x90); gain 413 drivers/media/dvb-frontends/tda10023.c if (gain>255) gain 414 drivers/media/dvb-frontends/tda10023.c gain=255; gain 416 drivers/media/dvb-frontends/tda10023.c *strength = (gain<<8)|gain; gain 459 drivers/media/dvb-frontends/ts2020.c __s64 gain; gain 469 drivers/media/dvb-frontends/ts2020.c gain = c->strength.stat[0].svalue; gain 472 drivers/media/dvb-frontends/ts2020.c if (gain < -85000) gain 475 drivers/media/dvb-frontends/ts2020.c else if (gain < -65000) gain 477 drivers/media/dvb-frontends/ts2020.c strength = 0 + div64_s64((85000 + gain) * 3, 1000); gain 478 drivers/media/dvb-frontends/ts2020.c else if (gain < -45000) gain 480 drivers/media/dvb-frontends/ts2020.c strength = 60 + div64_s64((65000 + gain) * 3, 2000); gain 483 drivers/media/dvb-frontends/ts2020.c strength = 90 + div64_s64((45000 + gain), 5000); gain 272 drivers/media/dvb-frontends/ves1820.c u8 gain = ves1820_readreg(state, 0x17); gain 273 drivers/media/dvb-frontends/ves1820.c *strength = (gain << 8) | gain; gain 11 drivers/media/dvb-frontends/zd1301_demod.c module_param_named(gain, zd1301_demod_gain, byte, 0644); gain 12 drivers/media/dvb-frontends/zd1301_demod.c MODULE_PARM_DESC(gain, "gain (value: 0x00 - 0x70, default: 0x38)"); gain 18 drivers/media/dvb-frontends/zd1301_demod.c u8 gain; gain 258 drivers/media/dvb-frontends/zd1301_demod.c if (dev->gain != zd1301_demod_gain) { gain 259 drivers/media/dvb-frontends/zd1301_demod.c dev->gain = zd1301_demod_gain; gain 261 drivers/media/dvb-frontends/zd1301_demod.c ret = zd1301_demod_wreg(dev, 0x6a43, dev->gain); gain 481 drivers/media/dvb-frontends/zd1301_demod.c dev->gain = zd1301_demod_gain; gain 554 drivers/media/i2c/et8ek8/et8ek8_driver.c static int et8ek8_set_gain(struct et8ek8_sensor *sensor, s32 gain) gain 560 drivers/media/i2c/et8ek8/et8ek8_driver.c new = et8ek8_gain_table[gain]; gain 486 drivers/media/i2c/imx274.c struct v4l2_ctrl *gain; gain 1280 drivers/media/i2c/imx274.c priv->ctrls.gain->val = IMX274_DEF_GAIN; gain 1296 drivers/media/i2c/imx274.c ret = v4l2_ctrl_s_ctrl(priv->ctrls.gain, priv->ctrls.gain->val); gain 1468 drivers/media/i2c/imx274.c u32 gain, analog_gain, digital_gain, gain_reg; gain 1470 drivers/media/i2c/imx274.c gain = (u32)(ctrl->val); gain 1474 drivers/media/i2c/imx274.c gain >> IMX274_GAIN_SHIFT, gain 1475 drivers/media/i2c/imx274.c ((gain & IMX274_GAIN_SHIFT_MASK) * 100) >> IMX274_GAIN_SHIFT); gain 1477 drivers/media/i2c/imx274.c if (gain > IMX274_MAX_DIGITAL_GAIN * IMX274_MAX_ANALOG_GAIN) gain 1478 drivers/media/i2c/imx274.c gain = IMX274_MAX_DIGITAL_GAIN * IMX274_MAX_ANALOG_GAIN; gain 1479 drivers/media/i2c/imx274.c else if (gain < IMX274_MIN_GAIN) gain 1480 drivers/media/i2c/imx274.c gain = IMX274_MIN_GAIN; gain 1482 drivers/media/i2c/imx274.c if (gain <= IMX274_MAX_ANALOG_GAIN) gain 1484 drivers/media/i2c/imx274.c else if (gain <= IMX274_MAX_ANALOG_GAIN * 2) gain 1486 drivers/media/i2c/imx274.c else if (gain <= IMX274_MAX_ANALOG_GAIN * 4) gain 1491 drivers/media/i2c/imx274.c analog_gain = gain / digital_gain; gain 1903 drivers/media/i2c/imx274.c imx274->ctrls.gain = v4l2_ctrl_new_std( gain 537 drivers/media/i2c/mt9m001.c unsigned long gain = ((ctrl->val - (s32)ctrl->default_value - 1) * gain 540 drivers/media/i2c/mt9m001.c if (gain <= 32) gain 541 drivers/media/i2c/mt9m001.c data = gain; gain 542 drivers/media/i2c/mt9m001.c else if (gain <= 64) gain 543 drivers/media/i2c/mt9m001.c data = ((gain - 32) * 16 + 16) / 32 + 80; gain 545 drivers/media/i2c/mt9m001.c data = ((gain - 64) * 7 + 28) / 56 + 96; gain 232 drivers/media/i2c/mt9m111.c struct v4l2_ctrl *gain; gain 812 drivers/media/i2c/mt9m111.c static int mt9m111_set_global_gain(struct mt9m111 *mt9m111, int gain) gain 817 drivers/media/i2c/mt9m111.c if (gain > 63 * 2 * 2) gain 820 drivers/media/i2c/mt9m111.c if ((gain >= 64 * 2) && (gain < 63 * 2 * 2)) gain 821 drivers/media/i2c/mt9m111.c val = (1 << 10) | (1 << 9) | (gain / 4); gain 822 drivers/media/i2c/mt9m111.c else if ((gain >= 64) && (gain < 64 * 2)) gain 823 drivers/media/i2c/mt9m111.c val = (1 << 9) | (gain / 2); gain 825 drivers/media/i2c/mt9m111.c val = gain; gain 922 drivers/media/i2c/mt9m111.c v4l2_ctrl_s_ctrl(mt9m111->gain, mt9m111_get_global_gain(mt9m111)); gain 1293 drivers/media/i2c/mt9m111.c mt9m111->gain = v4l2_ctrl_new_std(&mt9m111->hdl, &mt9m111_ctrl_ops, gain 490 drivers/media/i2c/mt9t001.c static u16 mt9t001_gain_value(s32 *gain) gain 506 drivers/media/i2c/mt9t001.c if (*gain <= 32) gain 507 drivers/media/i2c/mt9t001.c return *gain; gain 509 drivers/media/i2c/mt9t001.c if (*gain <= 64) { gain 510 drivers/media/i2c/mt9t001.c *gain &= ~1; gain 511 drivers/media/i2c/mt9t001.c return (1 << 6) | (*gain >> 1); gain 514 drivers/media/i2c/mt9t001.c *gain &= ~7; gain 515 drivers/media/i2c/mt9t001.c return ((*gain - 64) << 5) | (1 << 6) | 32; gain 550 drivers/media/i2c/mt9t001.c struct v4l2_ctrl *gain = mt9t001->gains[i]; gain 552 drivers/media/i2c/mt9t001.c if (gain->val != gain->cur.val) gain 564 drivers/media/i2c/mt9t001.c struct v4l2_ctrl *gain = mt9t001->gains[i]; gain 566 drivers/media/i2c/mt9t001.c if (gain->val == gain->cur.val) gain 569 drivers/media/i2c/mt9t001.c value = mt9t001_gain_value(&gain->val); gain 94 drivers/media/i2c/ov2680.c struct v4l2_ctrl *gain; gain 411 drivers/media/i2c/ov2680.c u32 gain; gain 419 drivers/media/i2c/ov2680.c if (auto_gain || !ctrls->gain->is_new) gain 422 drivers/media/i2c/ov2680.c gain = ctrls->gain->val; gain 424 drivers/media/i2c/ov2680.c ret = ov2680_write_reg16(sensor, OV2680_REG_GAIN_PK, gain); gain 431 drivers/media/i2c/ov2680.c u32 gain; gain 434 drivers/media/i2c/ov2680.c ret = ov2680_read_reg16(sensor, OV2680_REG_GAIN_PK, &gain); gain 438 drivers/media/i2c/ov2680.c return gain; gain 811 drivers/media/i2c/ov2680.c ctrls->gain->val = val; gain 960 drivers/media/i2c/ov2680.c ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, 0, 2047, 1, 0); gain 967 drivers/media/i2c/ov2680.c ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; gain 207 drivers/media/i2c/ov5640.c struct v4l2_ctrl *gain; gain 1178 drivers/media/i2c/ov5640.c u16 gain; gain 1181 drivers/media/i2c/ov5640.c ret = ov5640_read_reg16(sensor, OV5640_REG_AEC_PK_REAL_GAIN, &gain); gain 1185 drivers/media/i2c/ov5640.c return gain & 0x3ff; gain 1188 drivers/media/i2c/ov5640.c static int ov5640_set_gain(struct ov5640_dev *sensor, int gain) gain 1191 drivers/media/i2c/ov5640.c (u16)gain & 0x3ff); gain 2472 drivers/media/i2c/ov5640.c if (!auto_gain && ctrls->gain->is_new) gain 2473 drivers/media/i2c/ov5640.c ret = ov5640_set_gain(sensor, ctrls->gain->val); gain 2580 drivers/media/i2c/ov5640.c sensor->ctrls.gain->val = val; gain 2683 drivers/media/i2c/ov5640.c ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, gain 2712 drivers/media/i2c/ov5640.c ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; gain 189 drivers/media/i2c/ov6650.c struct v4l2_ctrl *gain; gain 329 drivers/media/i2c/ov6650.c priv->gain->val = reg; gain 362 drivers/media/i2c/ov6650.c ret = ov6650_reg_write(client, REG_GAIN, priv->gain->val); gain 1002 drivers/media/i2c/ov6650.c priv->gain = v4l2_ctrl_new_std(&priv->hdl, &ov6550_ctrl_ops, gain 83 drivers/media/i2c/ov7251.c struct v4l2_ctrl *gain; gain 707 drivers/media/i2c/ov7251.c static int ov7251_set_gain(struct ov7251 *ov7251, s32 gain) gain 713 drivers/media/i2c/ov7251.c val[0] = (gain & 0x0300) >> 8; /* goes to OV7251_AEC_AGC_ADJ_0 */ gain 714 drivers/media/i2c/ov7251.c val[1] = gain & 0xff; /* goes to OV7251_AEC_AGC_ADJ_1 */ gain 1073 drivers/media/i2c/ov7251.c ret = __v4l2_ctrl_s_ctrl(ov7251->gain, 16); gain 1213 drivers/media/i2c/ov7251.c ret = __v4l2_ctrl_s_ctrl(ov7251->gain, 16); gain 1350 drivers/media/i2c/ov7251.c ov7251->gain = v4l2_ctrl_new_std(&ov7251->ctrls, &ov7251_ctrl_ops, gain 228 drivers/media/i2c/ov7670.c struct v4l2_ctrl *gain; gain 1460 drivers/media/i2c/ov7670.c unsigned char gain; gain 1462 drivers/media/i2c/ov7670.c ret = ov7670_read(sd, REG_GAIN, &gain); gain 1463 drivers/media/i2c/ov7670.c *value = gain; gain 1570 drivers/media/i2c/ov7670.c return ov7670_g_gain(sd, &info->gain->val); gain 1597 drivers/media/i2c/ov7670.c return ov7670_s_gain(sd, info->gain->val); gain 1941 drivers/media/i2c/ov7670.c info->gain = v4l2_ctrl_new_std(&info->hdl, &ov7670_ctrl_ops, gain 98 drivers/media/i2c/ov7740.c struct v4l2_ctrl *gain; gain 446 drivers/media/i2c/ov7740.c ov7740->gain->val = (value1 << 8) | (value0 & 0xff); gain 565 drivers/media/i2c/ov7740.c ret = ov7740_set_gain(regmap, ov7740->gain->val); gain 1009 drivers/media/i2c/ov7740.c ov7740->gain = v4l2_ctrl_new_std(ctrl_hdlr, &ov7740_ctrl_ops, gain 219 drivers/media/i2c/ov9650.c struct v4l2_ctrl *gain; gain 695 drivers/media/i2c/ov9650.c if (ctrls->gain->is_new && !auto_gain) { gain 696 drivers/media/i2c/ov9650.c unsigned int gain = ctrls->gain->val; gain 704 drivers/media/i2c/ov9650.c if (gain >= (1 << m) * 16) gain 711 drivers/media/i2c/ov9650.c rgain = (gain - ((1 << m) * 16)) / (1 << m); gain 726 drivers/media/i2c/ov9650.c ctrls->gain->val = (1 << m) * (16 + (rgain & 0xf)); gain 859 drivers/media/i2c/ov9650.c unsigned int exposure, gain, m; gain 876 drivers/media/i2c/ov9650.c gain = ((reg1 >> 6) << 8) | reg0; gain 877 drivers/media/i2c/ov9650.c m = 0x01 << fls(gain >> 4); gain 878 drivers/media/i2c/ov9650.c ov965x->ctrls.gain->val = m * (16 + (gain & 0xf)); gain 1020 drivers/media/i2c/ov9650.c ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, gain 1048 drivers/media/i2c/ov9650.c ctrls->gain->flags |= V4L2_CTRL_FLAG_VOLATILE; gain 268 drivers/media/i2c/s5k5baf.c struct v4l2_ctrl *gain; gain 694 drivers/media/i2c/s5k5baf.c static void s5k5baf_hw_set_user_gain(struct s5k5baf *state, int gain) gain 696 drivers/media/i2c/s5k5baf.c s5k5baf_write_seq(state, REG_SF_USR_TOT_GAIN, gain, 1); gain 708 drivers/media/i2c/s5k5baf.c s5k5baf_hw_set_user_gain(state, state->ctrls.gain->val); gain 1661 drivers/media/i2c/s5k5baf.c ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, gain 216 drivers/media/i2c/s5k6aa.c struct v4l2_ctrl *gain; gain 522 drivers/media/i2c/s5k6aa.c static int s5k6aa_set_user_gain(struct i2c_client *client, int gain) gain 524 drivers/media/i2c/s5k6aa.c int ret = s5k6aa_write(client, REG_SF_USR_TOT_GAIN, gain); gain 550 drivers/media/i2c/s5k6aa.c ret = s5k6aa_set_user_gain(c, s5k6aa->ctrls.gain->val); gain 1394 drivers/media/i2c/s5k6aa.c ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, gain 78 drivers/media/i2c/saa7115.c struct v4l2_ctrl *gain; gain 820 drivers/media/i2c/saa7115.c state->gain->val = gain 852 drivers/media/i2c/saa7115.c saa711x_write(sd, R_0F_CHROMA_GAIN_CNTL, state->gain->val); gain 854 drivers/media/i2c/saa7115.c saa711x_write(sd, R_0F_CHROMA_GAIN_CNTL, state->gain->val | 0x80); gain 1871 drivers/media/i2c/saa7115.c state->gain = v4l2_ctrl_new_std(hdl, &saa711x_ctrl_ops, gain 487 drivers/media/pci/cx23885/cx23885-dvb.c .gain = 8, /* +16 dB - maximum gain */ gain 494 drivers/media/pci/cx23885/cx23885-dvb.c .gain = 8, /* +16 dB - maximum gain */ gain 157 drivers/media/pci/ddbridge/ddbridge-mci.h u16 gain; gain 225 drivers/media/platform/atmel/atmel-isc-base.c ctrls->gain[ISC_HIS_CFG_MODE_R] | gain 226 drivers/media/platform/atmel/atmel-isc-base.c (ctrls->gain[ISC_HIS_CFG_MODE_GR] << 16)); gain 228 drivers/media/platform/atmel/atmel-isc-base.c ctrls->gain[ISC_HIS_CFG_MODE_B] | gain 229 drivers/media/platform/atmel/atmel-isc-base.c (ctrls->gain[ISC_HIS_CFG_MODE_GB] << 16)); gain 238 drivers/media/platform/atmel/atmel-isc-base.c isc->ctrls.gain[c] = 1 << 9; gain 1724 drivers/media/platform/atmel/atmel-isc-base.c ctrls->gain[c] = s_gain[c] * gw_gain[c]; gain 1725 drivers/media/platform/atmel/atmel-isc-base.c ctrls->gain[c] >>= 9; gain 135 drivers/media/platform/atmel/atmel-isc.h u32 gain[HIST_BAYER]; gain 54 drivers/media/platform/davinci/dm355_ccdc.c .gain = { gain 140 drivers/media/platform/davinci/dm355_ccdc.c regw(ccdc_cfg.bayer.gain.r_ye, RYEGAIN); gain 141 drivers/media/platform/davinci/dm355_ccdc.c regw(ccdc_cfg.bayer.gain.gr_cy, GRCYGAIN); gain 142 drivers/media/platform/davinci/dm355_ccdc.c regw(ccdc_cfg.bayer.gain.gb_g, GBGGAIN); gain 143 drivers/media/platform/davinci/dm355_ccdc.c regw(ccdc_cfg.bayer.gain.b_mg, BMGGAIN); gain 167 drivers/media/platform/davinci/dm355_ccdc.c ccdc_cfg.bayer.gain.r_ye = GAIN_DEFAULT; gain 168 drivers/media/platform/davinci/dm355_ccdc.c ccdc_cfg.bayer.gain.gb_g = GAIN_DEFAULT; gain 169 drivers/media/platform/davinci/dm355_ccdc.c ccdc_cfg.bayer.gain.gr_cy = GAIN_DEFAULT; gain 170 drivers/media/platform/davinci/dm355_ccdc.c ccdc_cfg.bayer.gain.b_mg = GAIN_DEFAULT; gain 51 drivers/media/platform/davinci/isif.c .gain = { gain 99 drivers/media/platform/davinci/isif.c .gain = { gain 226 drivers/media/platform/davinci/isif.c val = (gain_off_p->gain.r_ye.integer << GAIN_INTEGER_SHIFT) | gain 227 drivers/media/platform/davinci/isif.c gain_off_p->gain.r_ye.decimal; gain 230 drivers/media/platform/davinci/isif.c val = (gain_off_p->gain.gr_cy.integer << GAIN_INTEGER_SHIFT) | gain 231 drivers/media/platform/davinci/isif.c gain_off_p->gain.gr_cy.decimal; gain 234 drivers/media/platform/davinci/isif.c val = (gain_off_p->gain.gb_g.integer << GAIN_INTEGER_SHIFT) | gain 235 drivers/media/platform/davinci/isif.c gain_off_p->gain.gb_g.decimal; gain 238 drivers/media/platform/davinci/isif.c val = (gain_off_p->gain.b_mg.integer << GAIN_INTEGER_SHIFT) | gain 239 drivers/media/platform/davinci/isif.c gain_off_p->gain.b_mg.decimal; gain 276 drivers/media/platform/omap3isp/isppreview.c cs->gain | (cs->thres << ISPPRV_CSUP_THRES_SHIFT) | gain 1320 drivers/media/platform/omap3isp/isppreview.c params->csup.gain = FLR_CSUP_GAIN; gain 268 drivers/media/platform/omap3isp/ispresizer.c rgval |= (luma->gain << ISPRSZ_YENH_GAIN_SHIFT) gain 69 drivers/media/platform/omap3isp/ispresizer.h u8 gain; /* maximum gain. */ gain 203 drivers/media/platform/vivid/vivid-core.h struct v4l2_ctrl *gain; gain 301 drivers/media/platform/vivid/vivid-ctrls.c dev->gain->val = (jiffies_to_msecs(jiffies) / 1000) & 0xff; gain 1512 drivers/media/platform/vivid/vivid-ctrls.c dev->gain = v4l2_ctrl_new_std(hdl_user_vid, &vivid_user_vid_ctrl_ops, gain 417 drivers/media/platform/vivid/vivid-kthread-cap.c s32 gain; gain 496 drivers/media/platform/vivid/vivid-kthread-cap.c gain = v4l2_ctrl_g_ctrl(dev->gain); gain 507 drivers/media/platform/vivid/vivid-kthread-cap.c dev->autogain->cur.val, gain, dev->alpha->cur.val); gain 489 drivers/media/tuners/m88rs6000t.c u16 gain; gain 550 drivers/media/tuners/m88rs6000t.c gain = RFG + IFG - TIAG + BBG + PGA2G; gain 553 drivers/media/tuners/m88rs6000t.c gain = clamp_val(gain, 1000U, 10500U); gain 554 drivers/media/tuners/m88rs6000t.c *strength = (10500 - gain) * 0xffff / (10500 - 1000); gain 1215 drivers/media/tuners/r820t.c int gain) gain 1244 drivers/media/tuners/r820t.c if (total_gain >= gain) gain 1249 drivers/media/tuners/r820t.c if (total_gain >= gain) gain 155 drivers/media/usb/dvb-usb/cinergyT2-fe.c if (0xffff - le16_to_cpu(state->status.gain) > 30) gain 194 drivers/media/usb/dvb-usb/cinergyT2-fe.c *strength = (0xffff - le16_to_cpu(state->status.gain)); gain 59 drivers/media/usb/dvb-usb/cinergyT2.h __le16 gain; gain 22 drivers/media/usb/gspca/autogain_functions.c s32 gain, orig_gain, exposure, orig_exposure; gain 28 drivers/media/usb/gspca/autogain_functions.c orig_gain = gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); gain 40 drivers/media/usb/gspca/autogain_functions.c if (gain > gain_knee) gain 41 drivers/media/usb/gspca/autogain_functions.c gain--; gain 44 drivers/media/usb/gspca/autogain_functions.c else if (gain > gspca_dev->gain->default_value) gain 45 drivers/media/usb/gspca/autogain_functions.c gain--; gain 48 drivers/media/usb/gspca/autogain_functions.c else if (gain > gspca_dev->gain->minimum) gain 49 drivers/media/usb/gspca/autogain_functions.c gain--; gain 53 drivers/media/usb/gspca/autogain_functions.c if (gain < gspca_dev->gain->default_value) gain 54 drivers/media/usb/gspca/autogain_functions.c gain++; gain 57 drivers/media/usb/gspca/autogain_functions.c else if (gain < gain_knee) gain 58 drivers/media/usb/gspca/autogain_functions.c gain++; gain 61 drivers/media/usb/gspca/autogain_functions.c else if (gain < gspca_dev->gain->maximum) gain 62 drivers/media/usb/gspca/autogain_functions.c gain++; gain 68 drivers/media/usb/gspca/autogain_functions.c if (gain != orig_gain) { gain 69 drivers/media/usb/gspca/autogain_functions.c v4l2_ctrl_s_ctrl(gspca_dev->gain, gain); gain 79 drivers/media/usb/gspca/autogain_functions.c gain, exposure); gain 102 drivers/media/usb/gspca/autogain_functions.c s32 gain_low, gain_high, gain, orig_gain, exposure, orig_exposure; gain 108 drivers/media/usb/gspca/autogain_functions.c orig_gain = gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); gain 111 drivers/media/usb/gspca/autogain_functions.c gain_low = (s32)(gspca_dev->gain->maximum - gspca_dev->gain->minimum) / gain 112 drivers/media/usb/gspca/autogain_functions.c 5 * 2 + gspca_dev->gain->minimum; gain 113 drivers/media/usb/gspca/autogain_functions.c gain_high = (s32)(gspca_dev->gain->maximum - gspca_dev->gain->minimum) / gain 114 drivers/media/usb/gspca/autogain_functions.c 5 * 4 + gspca_dev->gain->minimum; gain 123 drivers/media/usb/gspca/autogain_functions.c if ((gain + steps) > gain_high && gain 125 drivers/media/usb/gspca/autogain_functions.c gain = gain_high; gain 128 drivers/media/usb/gspca/autogain_functions.c } else if ((gain + steps) < gain_low && gain 130 drivers/media/usb/gspca/autogain_functions.c gain = gain_low; gain 134 drivers/media/usb/gspca/autogain_functions.c gain += steps; gain 135 drivers/media/usb/gspca/autogain_functions.c if (gain > gspca_dev->gain->maximum) gain 136 drivers/media/usb/gspca/autogain_functions.c gain = gspca_dev->gain->maximum; gain 137 drivers/media/usb/gspca/autogain_functions.c else if (gain < gspca_dev->gain->minimum) gain 138 drivers/media/usb/gspca/autogain_functions.c gain = gspca_dev->gain->minimum; gain 151 drivers/media/usb/gspca/autogain_functions.c if (gain != orig_gain) { gain 152 drivers/media/usb/gspca/autogain_functions.c v4l2_ctrl_s_ctrl(gspca_dev->gain, gain); gain 162 drivers/media/usb/gspca/autogain_functions.c gain, exposure); gain 269 drivers/media/usb/gspca/cpia1.c u8 gain; gain 518 drivers/media/usb/gspca/cpia1.c sd->params.exposure.gain = gspca_dev->usb_buf[0]; gain 632 drivers/media/usb/gspca/cpia1.c params->exposure.gain = 0; gain 840 drivers/media/usb/gspca/cpia1.c sd->params.exposure.gain, gain 856 drivers/media/usb/gspca/cpia1.c sd->params.exposure.gain, gain 1030 drivers/media/usb/gspca/cpia1.c currentexp = currentexp << sd->params.exposure.gain; gain 1031 drivers/media/usb/gspca/cpia1.c sd->params.exposure.gain = 0; gain 1084 drivers/media/usb/gspca/cpia1.c while (startexp > MAX_EXP && sd->params.exposure.gain < gain 1087 drivers/media/usb/gspca/cpia1.c ++sd->params.exposure.gain; gain 1341 drivers/media/usb/gspca/cpia1.c if (sd->params.exposure.gain > 0) { gain 1342 drivers/media/usb/gspca/cpia1.c --sd->params.exposure.gain; gain 1357 drivers/media/usb/gspca/cpia1.c if (sd->params.exposure.gain < gain 1359 drivers/media/usb/gspca/cpia1.c ++sd->params.exposure.gain; gain 149 drivers/media/usb/gspca/dtcs033.c s32 expo, s32 gain) gain 152 drivers/media/usb/gspca/dtcs033.c u16 sGain = (u16)gain; gain 183 drivers/media/usb/gspca/dtcs033.c struct v4l2_ctrl *gain; gain 202 drivers/media/usb/gspca/dtcs033.c ctrl->val, sd->gain->val); gain 227 drivers/media/usb/gspca/dtcs033.c sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 604 drivers/media/usb/gspca/etoms.c static void Et_setgainG(struct gspca_dev *gspca_dev, __u8 gain) gain 612 drivers/media/usb/gspca/etoms.c i2c_w(gspca_dev, PAS106_REG0e, &gain, 1, 1); gain 173 drivers/media/usb/gspca/gspca.h struct v4l2_ctrl *gain; gain 141 drivers/media/usb/gspca/m5602/m5602_bridge.h struct v4l2_ctrl *gain; gain 287 drivers/media/usb/gspca/m5602/m5602_ov7660.c sd->gain = v4l2_ctrl_new_std(hdl, &ov7660_ctrl_ops, V4L2_CID_GAIN, 0, gain 427 drivers/media/usb/gspca/m5602/m5602_ov7660.c err = ov7660_set_gain(gspca_dev, sd->gain->val); gain 389 drivers/media/usb/gspca/m5602/m5602_ov9650.c sd->gain = v4l2_ctrl_new_std(hdl, &ov9650_ctrl_ops, V4L2_CID_GAIN, 0, gain 743 drivers/media/usb/gspca/m5602/m5602_ov9650.c err = ov9650_set_gain(gspca_dev, sd->gain->val); gain 260 drivers/media/usb/gspca/m5602/m5602_po1030.c sd->gain = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, V4L2_CID_GAIN, 0, gain 1979 drivers/media/usb/gspca/nw80x.c if (gspca_dev->gain->is_new) gain 1980 drivers/media/usb/gspca/nw80x.c setgain(gspca_dev, gspca_dev->gain->val); gain 2012 drivers/media/usb/gspca/nw80x.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 2020 drivers/media/usb/gspca/nw80x.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 58 drivers/media/usb/gspca/ov534.c struct v4l2_ctrl *gain; gain 1131 drivers/media/usb/gspca/ov534.c if (ctrl->val && sd->gain && gspca_dev->streaming) gain 1132 drivers/media/usb/gspca/ov534.c sd->gain->val = getgain(gspca_dev); gain 1170 drivers/media/usb/gspca/ov534.c if (!gspca_dev->usb_err && !ctrl->val && sd->gain) gain 1171 drivers/media/usb/gspca/ov534.c setgain(gspca_dev, sd->gain->val); gain 1270 drivers/media/usb/gspca/ov534.c sd->gain = v4l2_ctrl_new_std(hdl, &ov534_ctrl_ops, gain 1423 drivers/media/usb/gspca/ov534.c if (sd->gain) gain 1424 drivers/media/usb/gspca/ov534.c setgain(gspca_dev, v4l2_ctrl_g_ctrl(sd->gain)); gain 215 drivers/media/usb/gspca/pac207.c gspca_dev->gain->val = PAC207_GAIN_DEFAULT; gain 230 drivers/media/usb/gspca/pac207.c if (gspca_dev->gain->is_new || (ctrl->is_new && ctrl->val)) gain 232 drivers/media/usb/gspca/pac207.c gspca_dev->gain->val); gain 263 drivers/media/usb/gspca/pac207.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 297 drivers/media/usb/gspca/pac207.c v4l2_ctrl_g_ctrl(gspca_dev->gain)); gain 470 drivers/media/usb/gspca/pac7302.c if (gspca_dev->gain->val < 32) { gain 471 drivers/media/usb/gspca/pac7302.c reg10 = gspca_dev->gain->val; gain 475 drivers/media/usb/gspca/pac7302.c reg12 = gspca_dev->gain->val - 31; gain 585 drivers/media/usb/gspca/pac7302.c gspca_dev->gain->val = PAC7302_GAIN_DEFAULT; gain 611 drivers/media/usb/gspca/pac7302.c if (gspca_dev->gain->is_new || (ctrl->is_new && ctrl->val)) gain 665 drivers/media/usb/gspca/pac7302.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 297 drivers/media/usb/gspca/pac7311.c reg_w(gspca_dev, 0x0f, gspca_dev->gain->maximum - val + 1); gain 370 drivers/media/usb/gspca/pac7311.c gspca_dev->gain->val = PAC7311_GAIN_DEFAULT; gain 384 drivers/media/usb/gspca/pac7311.c if (gspca_dev->gain->is_new || (ctrl->is_new && ctrl->val)) gain 385 drivers/media/usb/gspca/pac7311.c setgain(gspca_dev, gspca_dev->gain->val); gain 416 drivers/media/usb/gspca/pac7311.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 441 drivers/media/usb/gspca/pac7311.c setgain(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->gain)); gain 167 drivers/media/usb/gspca/se401.c u16 gain = 63 - val; gain 170 drivers/media/usb/gspca/se401.c se401_set_feature(gspca_dev, HV7131_REG_ARCG, gain); gain 172 drivers/media/usb/gspca/se401.c se401_set_feature(gspca_dev, HV7131_REG_AGCG, gain); gain 174 drivers/media/usb/gspca/se401.c se401_set_feature(gspca_dev, HV7131_REG_ABCG, gain); gain 31 drivers/media/usb/gspca/sn9c2028.c struct v4l2_ctrl *gain; gain 293 drivers/media/usb/gspca/sn9c2028.c set_gain(gspca_dev, sd->gain->val); gain 314 drivers/media/usb/gspca/sn9c2028.c sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 714 drivers/media/usb/gspca/sn9c2028.c if (sd->gain) gain 715 drivers/media/usb/gspca/sn9c2028.c set_gain(gspca_dev, v4l2_ctrl_g_ctrl(sd->gain)); gain 857 drivers/media/usb/gspca/sn9c2028.c s32 cur_gain = v4l2_ctrl_g_ctrl(sd->gain); gain 863 drivers/media/usb/gspca/sn9c2028.c if (cur_gain == sd->gain->maximum) gain 866 drivers/media/usb/gspca/sn9c2028.c v4l2_ctrl_s_ctrl(sd->gain, cur_gain); gain 869 drivers/media/usb/gspca/sn9c2028.c if (cur_gain == sd->gain->minimum) gain 872 drivers/media/usb/gspca/sn9c2028.c v4l2_ctrl_s_ctrl(sd->gain, cur_gain); gain 76 drivers/media/usb/gspca/sn9c20x.c struct v4l2_ctrl *gain; gain 1492 drivers/media/usb/gspca/sn9c20x.c u8 gain[8] = {sd->i2c_intf, sd->i2c_addr, gain 1496 drivers/media/usb/gspca/sn9c20x.c gain[7] = 0x15; /* or 1d ? */ gain 1504 drivers/media/usb/gspca/sn9c20x.c gain[0] |= (2 << 4); gain 1505 drivers/media/usb/gspca/sn9c20x.c gain[3] = ov_gain[g]; gain 1508 drivers/media/usb/gspca/sn9c20x.c gain[0] |= (3 << 4); gain 1509 drivers/media/usb/gspca/sn9c20x.c gain[2] = 0x35; gain 1510 drivers/media/usb/gspca/sn9c20x.c gain[3] = micron1_gain[g] >> 8; gain 1511 drivers/media/usb/gspca/sn9c20x.c gain[4] = micron1_gain[g]; gain 1514 drivers/media/usb/gspca/sn9c20x.c gain[0] |= (3 << 4); gain 1515 drivers/media/usb/gspca/sn9c20x.c gain[2] = 0x2f; gain 1516 drivers/media/usb/gspca/sn9c20x.c gain[3] = micron1_gain[g] >> 8; gain 1517 drivers/media/usb/gspca/sn9c20x.c gain[4] = micron1_gain[g]; gain 1520 drivers/media/usb/gspca/sn9c20x.c gain[0] |= (3 << 4); gain 1521 drivers/media/usb/gspca/sn9c20x.c gain[2] = 0x2f; gain 1522 drivers/media/usb/gspca/sn9c20x.c gain[3] = micron2_gain[g] >> 8; gain 1523 drivers/media/usb/gspca/sn9c20x.c gain[4] = micron2_gain[g]; gain 1526 drivers/media/usb/gspca/sn9c20x.c gain[0] |= (2 << 4); gain 1527 drivers/media/usb/gspca/sn9c20x.c gain[2] = 0x30; gain 1528 drivers/media/usb/gspca/sn9c20x.c gain[3] = hv7131r_gain[g]; gain 1533 drivers/media/usb/gspca/sn9c20x.c i2c_w(gspca_dev, gain); gain 1695 drivers/media/usb/gspca/sn9c20x.c set_gain(gspca_dev, sd->gain->val); gain 1752 drivers/media/usb/gspca/sn9c20x.c sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 2035 drivers/media/usb/gspca/sn9c20x.c if (sd->gain) gain 2036 drivers/media/usb/gspca/sn9c20x.c set_gain(gspca_dev, v4l2_ctrl_g_ctrl(sd->gain)); gain 2126 drivers/media/usb/gspca/sn9c20x.c s32 cur_gain = v4l2_ctrl_g_ctrl(sd->gain); gain 2128 drivers/media/usb/gspca/sn9c20x.c if (avg_lum < MIN_AVG_LUM && cur_gain < sd->gain->maximum) gain 2129 drivers/media/usb/gspca/sn9c20x.c v4l2_ctrl_s_ctrl(sd->gain, cur_gain + 1); gain 2130 drivers/media/usb/gspca/sn9c20x.c if (avg_lum > MAX_AVG_LUM && cur_gain > sd->gain->minimum) gain 2131 drivers/media/usb/gspca/sn9c20x.c v4l2_ctrl_s_ctrl(sd->gain, cur_gain - 1); gain 582 drivers/media/usb/gspca/sonixb.c u8 gain = gspca_dev->gain->val; gain 589 drivers/media/usb/gspca/sonixb.c i2c[3] = 0x3f - gain; gain 590 drivers/media/usb/gspca/sonixb.c i2c[4] = 0x3f - gain; gain 591 drivers/media/usb/gspca/sonixb.c i2c[5] = 0x3f - gain; gain 601 drivers/media/usb/gspca/sonixb.c i2c[4] = 255 - gain; gain 608 drivers/media/usb/gspca/sonixb.c gain = 255 - gain; gain 610 drivers/media/usb/gspca/sonixb.c i2c[3] |= (gain & 0x80) >> 7; gain 611 drivers/media/usb/gspca/sonixb.c i2c[3] |= (gain & 0x40) >> 5; gain 612 drivers/media/usb/gspca/sonixb.c i2c[3] |= (gain & 0x20) >> 3; gain 613 drivers/media/usb/gspca/sonixb.c i2c[3] |= (gain & 0x10) >> 1; gain 614 drivers/media/usb/gspca/sonixb.c i2c[3] |= (gain & 0x08) << 1; gain 615 drivers/media/usb/gspca/sonixb.c i2c[3] |= (gain & 0x04) << 3; gain 616 drivers/media/usb/gspca/sonixb.c i2c[3] |= (gain & 0x02) << 5; gain 617 drivers/media/usb/gspca/sonixb.c i2c[3] |= (gain & 0x01) << 7; gain 629 drivers/media/usb/gspca/sonixb.c if (sd->sensor == SENSOR_OV7630 && gain >= 32) gain 630 drivers/media/usb/gspca/sonixb.c gain += 16; gain 633 drivers/media/usb/gspca/sonixb.c i2c[3] = gain; gain 654 drivers/media/usb/gspca/sonixb.c i2cpgain[3] = gain; gain 655 drivers/media/usb/gspca/sonixb.c i2cpcolorgain[3] = gain >> 1; gain 656 drivers/media/usb/gspca/sonixb.c i2cpcolorgain[4] = gain >> 1; gain 657 drivers/media/usb/gspca/sonixb.c i2cpcolorgain[5] = gain >> 1; gain 658 drivers/media/usb/gspca/sonixb.c i2cpcolorgain[6] = gain >> 1; gain 667 drivers/media/usb/gspca/sonixb.c u8 buf[3] = { gain, gain, gain }; /* R, G, B */ gain 671 drivers/media/usb/gspca/sonixb.c buf[0] = gain << 4 | gain; /* Red and blue */ gain 672 drivers/media/usb/gspca/sonixb.c buf[1] = gain; /* Green */ gain 908 drivers/media/usb/gspca/sonixb.c int gain_knee = (s32)gspca_dev->gain->maximum * 9 / 10; gain 966 drivers/media/usb/gspca/sonixb.c gspca_dev->gain->val = gspca_dev->gain->default_value; gain 981 drivers/media/usb/gspca/sonixb.c if (gspca_dev->gain->is_new || (ctrl->is_new && ctrl->val)) gain 1016 drivers/media/usb/gspca/sonixb.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 1020 drivers/media/usb/gspca/sonixb.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 1024 drivers/media/usb/gspca/sonixb.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 1030 drivers/media/usb/gspca/sonixb.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 1035 drivers/media/usb/gspca/sonixb.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 1038 drivers/media/usb/gspca/sonixb.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 1655 drivers/media/usb/gspca/sonixj.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 1996 drivers/media/usb/gspca/sonixj.c rgain[3] = gspca_dev->gain->val; gain 28 drivers/media/usb/gspca/sq930x.c struct v4l2_ctrl *gain; gain 750 drivers/media/usb/gspca/sq930x.c static void setexposure(struct gspca_dev *gspca_dev, s32 expo, s32 gain) gain 777 drivers/media/usb/gspca/sq930x.c buf[i++] = gain; gain 793 drivers/media/usb/gspca/sq930x.c buf[i++] = 0x80 + gain / 2; /* val L */ gain 1040 drivers/media/usb/gspca/sq930x.c v4l2_ctrl_g_ctrl(sd->gain)); gain 1077 drivers/media/usb/gspca/sq930x.c setexposure(gspca_dev, ctrl->val, sd->gain->val); gain 1096 drivers/media/usb/gspca/sq930x.c sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 41 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c struct v4l2_ctrl *gain; gain 90 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c err = pb0100_set_gain(gspca_dev, ctrls->gain->val); gain 138 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c ctrls->gain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, gain 347 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c val += ctrls->gain->val; gain 366 drivers/media/usb/gspca/stv06xx/stv06xx_pb0100.c val += ctrls->gain->val; gain 51 drivers/media/usb/gspca/stv06xx/stv06xx_st6422.c static int setgain(struct sd *sd, u8 gain); gain 213 drivers/media/usb/gspca/stv06xx/stv06xx_st6422.c static int setgain(struct sd *sd, u8 gain) gain 218 drivers/media/usb/gspca/stv06xx/stv06xx_st6422.c err = stv06xx_write_bridge(sd, 0x0509, gain); gain 222 drivers/media/usb/gspca/stv06xx/stv06xx_st6422.c err = stv06xx_write_bridge(sd, 0x050a, gain); gain 226 drivers/media/usb/gspca/stv06xx/stv06xx_st6422.c err = stv06xx_write_bridge(sd, 0x050b, gain); gain 33 drivers/media/usb/gspca/t613.c struct v4l2_ctrl *gain; gain 496 drivers/media/usb/gspca/t613.c green_gain = sd->gain->val; gain 887 drivers/media/usb/gspca/t613.c sd->gain->val = green_gain; gain 969 drivers/media/usb/gspca/t613.c sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 1398 drivers/media/usb/gspca/topro.c static void setexposure(struct gspca_dev *gspca_dev, s32 expo, s32 gain, gain 1409 drivers/media/usb/gspca/topro.c gain >> 8); gain 1410 drivers/media/usb/gspca/topro.c i2c_w(gspca_dev, CX0342_RAW_GBGAIN_L, gain); gain 1413 drivers/media/usb/gspca/topro.c gain >> 8); gain 1414 drivers/media/usb/gspca/topro.c i2c_w(gspca_dev, CX0342_RAW_GRGAIN_L, gain); gain 1435 drivers/media/usb/gspca/topro.c gain); gain 3967 drivers/media/usb/gspca/topro.c s32 val = gspca_dev->gain->val; gain 3970 drivers/media/usb/gspca/topro.c s32 old = gspca_dev->gain->cur.val ? gain 3971 drivers/media/usb/gspca/topro.c gspca_dev->gain->cur.val : 1; gain 3983 drivers/media/usb/gspca/topro.c gspca_dev->gain->val, gain 3987 drivers/media/usb/gspca/topro.c gspca_dev->gain->val, 0, 0); gain 4238 drivers/media/usb/gspca/topro.c v4l2_ctrl_g_ctrl(gspca_dev->gain), gain 4243 drivers/media/usb/gspca/topro.c v4l2_ctrl_g_ctrl(gspca_dev->gain), 0, 0); gain 4458 drivers/media/usb/gspca/topro.c v4l2_ctrl_g_ctrl(gspca_dev->gain), gain 4463 drivers/media/usb/gspca/topro.c v4l2_ctrl_g_ctrl(gspca_dev->gain), 0, 0); gain 4497 drivers/media/usb/gspca/topro.c v4l2_ctrl_g_ctrl(gspca_dev->gain), gain 4502 drivers/media/usb/gspca/topro.c v4l2_ctrl_g_ctrl(gspca_dev->gain), 0, 0); gain 4534 drivers/media/usb/gspca/topro.c v4l2_ctrl_g_ctrl(gspca_dev->gain), gain 4539 drivers/media/usb/gspca/topro.c v4l2_ctrl_g_ctrl(gspca_dev->gain), 0, 0); gain 4569 drivers/media/usb/gspca/topro.c v4l2_ctrl_g_ctrl(gspca_dev->gain), gain 4575 drivers/media/usb/gspca/topro.c v4l2_ctrl_g_ctrl(gspca_dev->gain), 0, 0); gain 4895 drivers/media/usb/gspca/topro.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 4898 drivers/media/usb/gspca/topro.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 289 drivers/media/usb/gspca/touptek.c u16 gain, u16 global_gain) gain 294 drivers/media/usb/gspca/touptek.c ((u32)global_gain) * gain / GAIN_MAX; gain 302 drivers/media/usb/gspca/touptek.c REG_BLUE_GAIN, normalized, gain); gain 308 drivers/media/usb/gspca/touptek.c u16 gain, u16 global_gain) gain 313 drivers/media/usb/gspca/touptek.c ((u32)global_gain) * gain / GAIN_MAX; gain 321 drivers/media/usb/gspca/touptek.c REG_RED_GAIN, normalized, gain); gain 602 drivers/media/usb/gspca/touptek.c setggain(gspca_dev, gspca_dev->gain->val); gain 606 drivers/media/usb/gspca/touptek.c setbgain(gspca_dev, sd->blue->val, gspca_dev->gain->val); gain 610 drivers/media/usb/gspca/touptek.c setrgain(gspca_dev, sd->red->val, gspca_dev->gain->val); gain 632 drivers/media/usb/gspca/touptek.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, gain 106 drivers/media/usb/gspca/vicam.c s32 gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); gain 109 drivers/media/usb/gspca/vicam.c req_data[0] = gain; gain 296 drivers/media/usb/gspca/vicam.c gspca_dev->gain = v4l2_ctrl_new_std(hdl, NULL, gain 234 drivers/media/usb/pwc/pwc-v4l.c pdev->gain = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, gain 275 drivers/media/usb/pwc/pwc-v4l.c pdev->autogain_expo_cluster[1] = pdev->gain; gain 544 drivers/media/usb/pwc/pwc-v4l.c pdev->gain->val = pdev->last_gain; gain 548 drivers/media/usb/pwc/pwc-v4l.c READ_AGC_FORMATTER, &pdev->gain->val); gain 551 drivers/media/usb/pwc/pwc-v4l.c pdev->last_gain = pdev->gain->val; gain 646 drivers/media/usb/pwc/pwc-v4l.c if (pdev->gain->is_new) { gain 649 drivers/media/usb/pwc/pwc-v4l.c pdev->gain->val); gain 707 drivers/media/usb/pwc/pwc-v4l.c if (pdev->gain->is_new) { gain 710 drivers/media/usb/pwc/pwc-v4l.c pdev->gain->val); gain 304 drivers/media/usb/pwc/pwc.h struct v4l2_ctrl *gain; gain 136 drivers/mfd/ab8500-gpadc.c s64 gain; gain 200 drivers/mfd/ab8500-gpadc.c if (!gpadc->cal_data[ADC_INPUT_VMAIN].gain) { gain 207 drivers/mfd/ab8500-gpadc.c res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VMAIN].gain + gain 218 drivers/mfd/ab8500-gpadc.c if (!gpadc->cal_data[ADC_INPUT_BTEMP].gain) { gain 225 drivers/mfd/ab8500-gpadc.c res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_BTEMP].gain + gain 232 drivers/mfd/ab8500-gpadc.c if (!gpadc->cal_data[ADC_INPUT_VBAT].gain) { gain 239 drivers/mfd/ab8500-gpadc.c res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VBAT].gain + gain 276 drivers/mfd/ab8500-gpadc.c if (!gpadc->cal_data[ADC_INPUT_IBAT].gain) { gain 283 drivers/mfd/ab8500-gpadc.c res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_IBAT].gain + gain 738 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].gain = CALIB_SCALE * gain 744 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].gain = 0; gain 788 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_IBAT].gain = gain 793 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_IBAT].gain = 0; gain 797 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_IBAT].gain, gain 812 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].gain = CALIB_SCALE * gain 819 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].gain = 0; gain 832 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_BTEMP].gain = gain 838 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_BTEMP].gain = 0; gain 849 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VBAT].gain = CALIB_SCALE * gain 855 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VBAT].gain = 0; gain 859 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VMAIN].gain, gain 863 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_BTEMP].gain, gain 867 drivers/mfd/ab8500-gpadc.c gpadc->cal_data[ADC_INPUT_VBAT].gain, gain 419 drivers/net/wireless/ath/ath9k/ar9003_paprd.c static bool create_pa_curve(u32 *data_L, u32 *data_U, u32 *pa_table, u16 *gain) gain 747 drivers/net/wireless/ath/ath9k/ar9003_paprd.c *gain = G_fxp; gain 879 drivers/net/wireless/broadcom/b43/phy_lp.c static void lpphy_set_pa_gain(struct b43_wldev *dev, u16 gain) gain 881 drivers/net/wireless/broadcom/b43/phy_lp.c b43_phy_maskset(dev, B43_PHY_OFDM(0xFB), 0xE03F, gain << 6); gain 882 drivers/net/wireless/broadcom/b43/phy_lp.c b43_phy_maskset(dev, B43_PHY_OFDM(0xFD), 0x80FF, gain << 8); gain 913 drivers/net/wireless/broadcom/b43/phy_lp.c static void lpphy_rev0_1_set_rx_gain(struct b43_wldev *dev, u32 gain) gain 915 drivers/net/wireless/broadcom/b43/phy_lp.c u16 trsw = gain & 0x1; gain 916 drivers/net/wireless/broadcom/b43/phy_lp.c u16 lna = (gain & 0xFFFC) | ((gain & 0xC) >> 2); gain 917 drivers/net/wireless/broadcom/b43/phy_lp.c u16 ext_lna = (gain & 2) >> 1; gain 927 drivers/net/wireless/broadcom/b43/phy_lp.c static void lpphy_rev2plus_set_rx_gain(struct b43_wldev *dev, u32 gain) gain 929 drivers/net/wireless/broadcom/b43/phy_lp.c u16 low_gain = gain & 0xFFFF; gain 930 drivers/net/wireless/broadcom/b43/phy_lp.c u16 high_gain = (gain >> 16) & 0xF; gain 931 drivers/net/wireless/broadcom/b43/phy_lp.c u16 ext_lna = (gain >> 21) & 0x1; gain 932 drivers/net/wireless/broadcom/b43/phy_lp.c u16 trsw = ~(gain >> 20) & 0x1; gain 943 drivers/net/wireless/broadcom/b43/phy_lp.c tmp = (gain >> 2) & 0x3; gain 950 drivers/net/wireless/broadcom/b43/phy_lp.c static void lpphy_set_rx_gain(struct b43_wldev *dev, u32 gain) gain 953 drivers/net/wireless/broadcom/b43/phy_lp.c lpphy_rev0_1_set_rx_gain(dev, gain); gain 955 drivers/net/wireless/broadcom/b43/phy_lp.c lpphy_rev2plus_set_rx_gain(dev, gain); gain 961 drivers/net/wireless/broadcom/b43/phy_lp.c u32 gain = b43_lptab_read(dev, B43_LPTAB16(12, idx)); gain 962 drivers/net/wireless/broadcom/b43/phy_lp.c lpphy_set_rx_gain(dev, gain); gain 583 drivers/net/wireless/broadcom/b43/phy_n.c s16 gain[2]; gain 592 drivers/net/wireless/broadcom/b43/phy_n.c gain[0] = 6; gain 593 drivers/net/wireless/broadcom/b43/phy_n.c gain[1] = 6; gain 596 drivers/net/wireless/broadcom/b43/phy_n.c gain[0] = ((tmp >> 13) + ((tmp >> 12) & 1)); gain 598 drivers/net/wireless/broadcom/b43/phy_n.c gain[1] = ((tmp >> 13) + ((tmp >> 12) & 1)); gain 601 drivers/net/wireless/broadcom/b43/phy_n.c gain[0] = 0; gain 602 drivers/net/wireless/broadcom/b43/phy_n.c gain[1] = 0; gain 607 drivers/net/wireless/broadcom/b43/phy_n.c data[0] = 19 + gain[i]; gain 608 drivers/net/wireless/broadcom/b43/phy_n.c data[1] = 25 + gain[i]; gain 609 drivers/net/wireless/broadcom/b43/phy_n.c data[2] = 25 + gain[i]; gain 610 drivers/net/wireless/broadcom/b43/phy_n.c data[3] = 25 + gain[i]; gain 612 drivers/net/wireless/broadcom/b43/phy_n.c data[0] = lna_gain[0] + gain[i]; gain 613 drivers/net/wireless/broadcom/b43/phy_n.c data[1] = lna_gain[1] + gain[i]; gain 614 drivers/net/wireless/broadcom/b43/phy_n.c data[2] = lna_gain[2] + gain[i]; gain 615 drivers/net/wireless/broadcom/b43/phy_n.c data[3] = lna_gain[3] + gain[i]; gain 619 drivers/net/wireless/broadcom/b43/phy_n.c minmax[i] = 23 + gain[i]; gain 3170 drivers/net/wireless/broadcom/b43/phy_n.c u16 *vmid, *gain; gain 3236 drivers/net/wireless/broadcom/b43/phy_n.c gain = gains[min_t(u16, pdet_range, 4)]; gain 3247 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x0c), 4, gain); gain 3248 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x1c), 4, gain); gain 3256 drivers/net/wireless/broadcom/b43/phy_n.c gain[3] = 3; gain 3259 drivers/net/wireless/broadcom/b43/phy_n.c gain[3] = 2; gain 3263 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x0c), 4, gain); gain 3264 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x1c), 4, gain); gain 3272 drivers/net/wireless/broadcom/b43/phy_n.c gain[3] = 0x2; gain 3276 drivers/net/wireless/broadcom/b43/phy_n.c gain[3] = 0; gain 3282 drivers/net/wireless/broadcom/b43/phy_n.c gain[3] = 0x2; gain 3286 drivers/net/wireless/broadcom/b43/phy_n.c gain[3] = 0; gain 3290 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x0c), 4, gain); gain 3293 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(8, 0x1c), 4, gain); gain 3556 drivers/net/wireless/broadcom/b43/phy_n.c u16 gain; gain 3574 drivers/net/wireless/broadcom/b43/phy_n.c gain = (target.pad[core]) | (target.pga[core] << 4) | gain 3580 drivers/net/wireless/broadcom/b43/phy_n.c if (tbl_iqcal_gainparams[indx][i][0] == gain) gain 5388 drivers/net/wireless/broadcom/b43/phy_n.c u16 gain[2]; gain 5403 drivers/net/wireless/broadcom/b43/phy_n.c gain[i] = params[i].cal_gain; gain 5406 drivers/net/wireless/broadcom/b43/phy_n.c b43_ntab_write_bulk(dev, B43_NTAB16(7, 0x110), 2, gain); gain 3141 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_set_pa_gain(struct brcms_phy *pi, u16 gain) gain 3145 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c gain << LCNPHY_txgainctrlovrval1_pagain_ovr_val1_SHIFT); gain 3148 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c gain << LCNPHY_stxtxgainctrlovrval1_pagain_ovr_val1_SHIFT); gain 5086 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c static void wlc_lcnphy_set_rx_gain(struct brcms_phy *pi, u32 gain) gain 5090 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c trsw = (gain & ((u32) 1 << 28)) ? 0 : 1; gain 5091 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c ext_lna = (u16) (gain >> 29) & 0x01; gain 5092 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c lna1 = (u16) (gain >> 0) & 0x0f; gain 5093 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c lna2 = (u16) (gain >> 4) & 0x0f; gain 5094 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c tia = (u16) (gain >> 8) & 0xf; gain 5095 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c biq0 = (u16) (gain >> 12) & 0xf; gain 5096 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c biq1 = (u16) (gain >> 16) & 0xf; gain 5155 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c s32 gain = 0; gain 5167 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c gain = lcnphy_gain_table[gain_index]; gain 5187 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c desired_gain = gain + gain_mismatch; gain 2063 drivers/net/wireless/intel/iwlegacy/3945.c u8 gain, dsp_atten; gain 2149 drivers/net/wireless/intel/iwlegacy/3945.c gain = power_gain_table[a_band][pwr_idx].tx_gain; gain 2161 drivers/net/wireless/intel/iwlegacy/3945.c pwr_info->tpc.tx_gain = gain; gain 460 drivers/net/wireless/intel/iwlwifi/fw/api/power.h s8 gain[IWL_NUM_CHAIN_LIMITS][IWL_NUM_SUB_BANDS]; gain 1089 drivers/net/wireless/intel/iwlwifi/mvm/fw.c mvm->ppag_table.gain[i][j] = ent->integer.value; gain 1116 drivers/net/wireless/intel/iwlwifi/mvm/fw.c i, j, mvm->ppag_table.gain[i][j]); gain 413 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c u8 gain; gain 415 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c gain = FIELD_GET(MT_BBP_AGC_GAIN, val); gain 416 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c gain -= dev->cal.rx.lna_gain * 2; gain 418 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c val |= FIELD_PREP(MT_BBP_AGC_GAIN, gain); gain 1057 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c u8 gain = dev->cal.agc_gain_cur[0] - dev->cal.agc_gain_adjust; gain 1059 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c mt76_rmw_field(dev, MT_BBP(AGC, 8), MT_BBP_AGC_GAIN, gain); gain 73 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c int mt76x2_mcu_init_gain(struct mt76x02_dev *dev, u8 channel, u32 gain, gain 81 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c .gain_val = cpu_to_le32(gain), gain 65 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.h int mt76x2_mcu_init_gain(struct mt76x02_dev *dev, u8 channel, u32 gain, gain 15 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c s8 gain; gain 17 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c gain = FIELD_GET(MT_BBP_AGC_LNA_HIGH_GAIN, gain 19 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c gain -= offset / 2; gain 20 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_LNA_HIGH_GAIN, gain); gain 26 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c s8 gain; gain 28 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c gain = FIELD_GET(MT_BBP_AGC_GAIN, mt76_rr(dev, MT_BBP(AGC, reg))); gain 29 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c gain += offset; gain 30 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_GAIN, gain); gain 144 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c int base_power, gain; gain 163 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c gain = min(txp_0, txp_1); gain 164 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c if (gain < 0) { gain 165 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c base_power -= gain; gain 166 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c txp_0 -= gain; gain 167 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c txp_1 -= gain; gain 168 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c } else if (gain > 0x2f) { gain 169 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c base_power -= gain - 0x2f; gain 276 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c u8 *gain = dev->cal.agc_gain_init; gain 342 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c dev->cal.agc_gain_cur[0] = gain[0] - gain_delta; gain 343 drivers/net/wireless/mediatek/mt76/mt76x2/phy.c dev->cal.agc_gain_cur[1] = gain[1] - gain_delta; gain 39 drivers/net/wireless/mediatek/mt7601u/mac.h u8 gain; gain 248 drivers/net/wireless/mediatek/mt7601u/phy.c int lna_id = FIELD_GET(MT_RXWI_GAIN_RSSI_LNA_ID, rxwi->gain); gain 256 drivers/net/wireless/mediatek/mt7601u/phy.c val -= FIELD_GET(MT_RXWI_GAIN_RSSI_VAL, rxwi->gain); gain 272 drivers/net/wireless/mediatek/mt7601u/trace.h __entry->rxwi.gain, __entry->rxwi.freq_off, gain 553 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u8 gain:7, trsw:1; gain 555 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u8 trsw:1, gain:7; gain 145 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c rx_pwr[i] = ((p_phystrpt->path_agc[i].gain & 0x3f) * 2) gain 493 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.h u8 gain:7, trsw:1; gain 495 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.h u8 trsw:1, gain:7; gain 120 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c rx_pwr[i] = ((p_phystrpt->path_agc[i].gain & 0x3f) * 2) gain 399 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.h u8 gain:7, trsw:1; gain 401 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.h u8 trsw:1, gain:7; gain 405 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.h u8 gain:7, trsw:1; gain 407 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.h u8 trsw:1, gain:7; gain 331 drivers/ssb/pci.c u8 gain; gain 334 drivers/ssb/pci.c gain = (v & mask) >> shift; gain 335 drivers/ssb/pci.c if (gain == 0xFF) gain 336 drivers/ssb/pci.c gain = 2; /* If unset use 2dBm */ gain 339 drivers/ssb/pci.c gain <<= 2; gain 342 drivers/ssb/pci.c gain = ((gain & 0xC0) >> 6) | ((gain & 0x3F) << 2); gain 345 drivers/ssb/pci.c return (s8)gain; gain 265 drivers/staging/comedi/drivers/cb_pcidda.c unsigned int gain; gain 272 drivers/staging/comedi/drivers/cb_pcidda.c gain = devpriv->eeprom_data[0x8 + index]; gain 280 drivers/staging/comedi/drivers/cb_pcidda.c (gain >> 8) & 0xff); gain 282 drivers/staging/comedi/drivers/cb_pcidda.c gain & 0xff); gain 267 drivers/staging/comedi/drivers/daqboard2000.c static void db2k_setup_sampling(struct comedi_device *dev, int chan, int gain) gain 322 drivers/staging/comedi/drivers/daqboard2000.c int gain, chan; gain 339 drivers/staging/comedi/drivers/daqboard2000.c gain = CR_RANGE(insn->chanspec); gain 349 drivers/staging/comedi/drivers/daqboard2000.c db2k_setup_sampling(dev, chan, gain); gain 372 drivers/staging/comedi/drivers/das800.c unsigned int gain = CR_RANGE(cmd->chanlist[0]); gain 387 drivers/staging/comedi/drivers/das800.c if (board->resolution == 12 && gain > 0) gain 388 drivers/staging/comedi/drivers/das800.c gain += 0x7; gain 389 drivers/staging/comedi/drivers/das800.c gain &= 0xf; gain 390 drivers/staging/comedi/drivers/das800.c outb(gain, dev->iobase + DAS800_GAIN); gain 249 drivers/staging/comedi/drivers/dt3000.c unsigned int gain) gain 254 drivers/staging/comedi/drivers/dt3000.c writew(gain, dev->mmio + DPR_PARAMS(1)); gain 511 drivers/staging/comedi/drivers/dt3000.c unsigned int chan, gain, aref; gain 514 drivers/staging/comedi/drivers/dt3000.c gain = CR_RANGE(insn->chanspec); gain 519 drivers/staging/comedi/drivers/dt3000.c data[i] = dt3k_readsingle(dev, DPR_SUBSYS_AI, chan, gain); gain 378 drivers/staging/comedi/drivers/dt9812.c enum dt9812_gain gain) gain 384 drivers/staging/comedi/drivers/dt9812.c gain <<= 1; gain 391 drivers/staging/comedi/drivers/dt9812.c switch (gain) { gain 426 drivers/staging/comedi/drivers/dt9812.c int channel, u16 *value, enum dt9812_gain gain) gain 441 drivers/staging/comedi/drivers/dt9812.c dt9812_configure_gain(dev, &rmw[0], gain); gain 302 drivers/staging/comedi/drivers/ni_atmio16d.c unsigned int sample_count, tmp, chan, gain; gain 326 drivers/staging/comedi/drivers/ni_atmio16d.c gain = CR_RANGE(cmd->chanlist[i]); gain 328 drivers/staging/comedi/drivers/ni_atmio16d.c tmp = chan | (gain << 6); gain 475 drivers/staging/comedi/drivers/ni_atmio16d.c int gain; gain 479 drivers/staging/comedi/drivers/ni_atmio16d.c gain = CR_RANGE(insn->chanspec); gain 487 drivers/staging/comedi/drivers/ni_atmio16d.c outw(chan | (gain << 6), dev->iobase + MUX_GAIN_REG); gain 157 drivers/staging/comedi/drivers/rti800.c unsigned int gain = CR_RANGE(insn->chanspec); gain 165 drivers/staging/comedi/drivers/rti800.c muxgain_bits = chan | (gain << 5); gain 174 drivers/staging/comedi/drivers/rti800.c int delay = (gain == 0) ? 10 : gain 175 drivers/staging/comedi/drivers/rti800.c (gain == 1) ? 20 : gain 176 drivers/staging/comedi/drivers/rti800.c (gain == 2) ? 40 : 80; gain 333 drivers/staging/comedi/drivers/usbduxfast.c unsigned int gain = CR_RANGE(cmd->chanlist[i]); gain 340 drivers/staging/comedi/drivers/usbduxfast.c if (gain != gain0 && cmd->chanlist_len > 3) { gain 39 drivers/staging/fbtft/fb_uc1611.c static unsigned int gain = 3; gain 40 drivers/staging/fbtft/fb_uc1611.c module_param(gain, uint, 0000); gain 41 drivers/staging/fbtft/fb_uc1611.c MODULE_PARM_DESC(gain, "GN[1:0] Bias voltage gain: 0-3 (default: 3)"); gain 82 drivers/staging/fbtft/fb_uc1611.c write_reg(par, (gain & 0x03) << 6 | (pot & 0x3F)); gain 565 drivers/staging/ks7010/ks_hostif.c memcpy(&priv->gain, priv->rxp, sizeof(priv->gain)); gain 567 drivers/staging/ks7010/ks_hostif.c priv->gain.tx_mode, priv->gain.rx_mode, gain 568 drivers/staging/ks7010/ks_hostif.c priv->gain.tx_gain, priv->gain.rx_gain); gain 2160 drivers/staging/ks7010/ks_hostif.c &priv->gain, sizeof(priv->gain)); gain 502 drivers/staging/ks7010/ks_wlan.h struct local_gain gain; gain 2126 drivers/staging/ks7010/ks_wlan_net.c priv->gain.tx_gain = (u8)*uwrq; gain 2127 drivers/staging/ks7010/ks_wlan_net.c priv->gain.tx_mode = (priv->gain.tx_gain < 0xFF) ? 1 : 0; gain 2141 drivers/staging/ks7010/ks_wlan_net.c *uwrq = priv->gain.tx_gain; gain 2158 drivers/staging/ks7010/ks_wlan_net.c priv->gain.rx_gain = (u8)*uwrq; gain 2159 drivers/staging/ks7010/ks_wlan_net.c priv->gain.rx_mode = (priv->gain.rx_gain < 0xFF) ? 1 : 0; gain 2173 drivers/staging/ks7010/ks_wlan_net.c *uwrq = priv->gain.rx_gain; gain 2146 drivers/staging/media/ipu3/include/intel-ipu3.h struct ipu3_uapi_yuvp1_y_ee_nr_gain_config gain; gain 9452 drivers/staging/media/ipu3/ipu3-tables.c .gain = { 8, X, 0, X, 8, X, 0, X }, gain 498 drivers/staging/media/soc_camera/mt9t031.c unsigned long gain = ((ctrl->val - (s32)ctrl->default_value - 1) * gain 501 drivers/staging/media/soc_camera/mt9t031.c if (gain <= 32) /* calculated gain 9..32 -> 9..32 */ gain 502 drivers/staging/media/soc_camera/mt9t031.c data = gain; gain 503 drivers/staging/media/soc_camera/mt9t031.c else if (gain <= 64) /* calculated gain 33..64 -> 0x51..0x60 */ gain 504 drivers/staging/media/soc_camera/mt9t031.c data = ((gain - 32) * 16 + 16) / 32 + 80; gain 507 drivers/staging/media/soc_camera/mt9t031.c data = (((gain - 64 + 7) * 32) & 0xff00) | 0x60; gain 148 drivers/staging/media/soc_camera/soc_mt9v022.c struct v4l2_ctrl *gain; gain 529 drivers/staging/media/soc_camera/soc_mt9v022.c struct v4l2_ctrl *gain = mt9v022->gain; gain 540 drivers/staging/media/soc_camera/soc_mt9v022.c range = gain->maximum - gain->minimum; gain 541 drivers/staging/media/soc_camera/soc_mt9v022.c gain->val = ((data - 16) * range + 24) / 48 + gain->minimum; gain 597 drivers/staging/media/soc_camera/soc_mt9v022.c struct v4l2_ctrl *gain = mt9v022->gain; gain 599 drivers/staging/media/soc_camera/soc_mt9v022.c unsigned long range = gain->maximum - gain->minimum; gain 601 drivers/staging/media/soc_camera/soc_mt9v022.c unsigned long gain_val = ((gain->val - (s32)gain->minimum) * gain 914 drivers/staging/media/soc_camera/soc_mt9v022.c mt9v022->gain = v4l2_ctrl_new_std(&mt9v022->hdl, &mt9v022_ctrl_ops, gain 181 drivers/staging/rtl8188eu/hal/odm_hwconfig.c rx_pwr[i] = ((pPhyStaRpt->path_agc[i].gain & 0x3F) * 2) - 110; gain 52 drivers/staging/rtl8188eu/include/odm_hwconfig.h u8 gain:7, trsw:1; gain 54 drivers/staging/rtl8188eu/include/odm_hwconfig.h u8 trsw:1, gain:7; gain 163 drivers/staging/rtl8723bs/hal/odm_HWConfig.c rx_pwr[i] = ((pPhyStaRpt->path_agc[i].gain&0x3F)*2) - 110; gain 35 drivers/staging/rtl8723bs/hal/odm_HWConfig.h u8 gain:7, trsw:1; gain 37 drivers/staging/rtl8723bs/hal/odm_HWConfig.h u8 trsw:1, gain:7; gain 187 drivers/thermal/samsung/exynos_tmu.c u8 gain; gain 339 drivers/thermal/samsung/exynos_tmu.c con |= (data->gain << EXYNOS_TMU_BUF_SLOPE_SEL_SHIFT); gain 905 drivers/thermal/samsung/exynos_tmu.c data->gain = 15; gain 925 drivers/thermal/samsung/exynos_tmu.c data->gain = 8; gain 944 drivers/thermal/samsung/exynos_tmu.c data->gain = 8; gain 962 drivers/thermal/samsung/exynos_tmu.c data->gain = 9; gain 102 include/linux/iio/common/st_sensors.h unsigned int gain; gain 539 include/linux/input.h void (*set_gain)(struct input_dev *dev, u16 gain); gain 411 include/linux/mfd/palmas.h s32 gain; gain 4530 include/linux/platform_data/cros_ec_commands.h struct ec_codec_i2s_gain gain; gain 293 include/media/davinci/dm355_ccdc.h struct ccdc_gain gain; gain 361 include/media/davinci/isif.h struct isif_gain gain; gain 494 include/media/davinci/isif.h struct isif_gain gain; gain 236 include/net/regulatory.h #define DBI_TO_MBI(gain) ((gain) * 100) gain 237 include/net/regulatory.h #define MBI_TO_DBI(gain) ((gain) / 100) gain 238 include/net/regulatory.h #define DBM_TO_MBM(gain) ((gain) * 100) gain 239 include/net/regulatory.h #define MBM_TO_DBM(gain) ((gain) / 100) gain 241 include/net/regulatory.h #define REG_RULE_EXT(start, end, bw, gain, eirp, dfs_cac, reg_flags) \ gain 246 include/net/regulatory.h .power_rule.max_antenna_gain = DBI_TO_MBI(gain), \ gain 252 include/net/regulatory.h #define REG_RULE(start, end, bw, gain, eirp, reg_flags) \ gain 253 include/net/regulatory.h REG_RULE_EXT(start, end, bw, gain, eirp, 0, reg_flags) gain 515 include/uapi/linux/omap3isp.h __u8 gain; gain 312 include/uapi/sound/compress_params.h __u32 gain; gain 242 net/ipv4/tcp_bbr.c static u64 bbr_rate_bytes_per_sec(struct sock *sk, u64 rate, int gain) gain 247 net/ipv4/tcp_bbr.c rate *= gain; gain 254 net/ipv4/tcp_bbr.c static unsigned long bbr_bw_to_pacing_rate(struct sock *sk, u32 bw, int gain) gain 258 net/ipv4/tcp_bbr.c rate = bbr_rate_bytes_per_sec(sk, rate, gain); gain 283 net/ipv4/tcp_bbr.c static void bbr_set_pacing_rate(struct sock *sk, u32 bw, int gain) gain 287 net/ipv4/tcp_bbr.c unsigned long rate = bbr_bw_to_pacing_rate(sk, bw, gain); gain 357 net/ipv4/tcp_bbr.c static u32 bbr_bdp(struct sock *sk, u32 bw, int gain) gain 377 net/ipv4/tcp_bbr.c bdp = (((w * gain) >> BBR_SCALE) + BW_UNIT - 1) / BW_UNIT; gain 410 net/ipv4/tcp_bbr.c static u32 bbr_inflight(struct sock *sk, u32 bw, int gain) gain 414 net/ipv4/tcp_bbr.c inflight = bbr_bdp(sk, bw, gain); gain 517 net/ipv4/tcp_bbr.c u32 acked, u32 bw, int gain) gain 529 net/ipv4/tcp_bbr.c target_cwnd = bbr_bdp(sk, bw, gain); gain 489 sound/firewire/isight.c __be32 gain; gain 492 sound/firewire/isight.c err = reg_read(isight, REG_GAIN, &gain); gain 496 sound/firewire/isight.c value->value.integer.value[0] = (s32)be32_to_cpu(gain); gain 171 sound/oss/dmasound/dmasound.h int gain; gain 202 sound/oss/dmasound/dmasound.h static inline int dmasound_set_gain(int gain) gain 204 sound/oss/dmasound/dmasound.h return dmasound.mach.setGain ? dmasound.mach.setGain(gain) : 100; gain 130 sound/oss/dmasound/dmasound_atari.c static int TTSetGain(int gain); gain 1005 sound/oss/dmasound/dmasound_atari.c static int TTSetGain(int gain) gain 1007 sound/oss/dmasound/dmasound_atari.c dmasound.gain = GAIN_VOXWARE_TO_DB(gain); gain 1008 sound/oss/dmasound/dmasound_atari.c atari_microwire_cmd(MW_LM1992_VOLUME(dmasound.gain)); gain 1009 sound/oss/dmasound/dmasound_atari.c return GAIN_DB_TO_VOXWARE(dmasound.gain); gain 1417 sound/oss/dmasound/dmasound_atari.c return IOCTL_OUT(arg, GAIN_DB_TO_VOXWARE(dmasound.gain)); gain 158 sound/parisc/harmony.c harmony_write(h, HARMONY_GAINCTL, h->st.gain); gain 672 sound/parisc/harmony.c harmony_write(h, HARMONY_GAINCTL, h->st.gain); gain 705 sound/parisc/harmony.c left = (h->st.gain >> shift_left) & mask; gain 706 sound/parisc/harmony.c right = (h->st.gain >> shift_right) & mask; gain 731 sound/parisc/harmony.c int old_gain = h->st.gain; gain 738 sound/parisc/harmony.c h->st.gain &= ~( (mask << shift_left ) ); gain 739 sound/parisc/harmony.c h->st.gain |= (left << shift_left); gain 745 sound/parisc/harmony.c h->st.gain &= ~( (mask << shift_right) ); gain 746 sound/parisc/harmony.c h->st.gain |= (right << shift_right); gain 753 sound/parisc/harmony.c return h->st.gain != old_gain; gain 774 sound/parisc/harmony.c value = (h->st.gain >> HARMONY_GAIN_IS_SHIFT) & 1; gain 788 sound/parisc/harmony.c int old_gain = h->st.gain; gain 793 sound/parisc/harmony.c h->st.gain &= ~HARMONY_GAIN_IS_MASK; gain 794 sound/parisc/harmony.c h->st.gain |= value << HARMONY_GAIN_IS_SHIFT; gain 800 sound/parisc/harmony.c return h->st.gain != old_gain; gain 839 sound/parisc/harmony.c h->st.gain = HARMONY_GAIN_DEFAULT; gain 26 sound/parisc/harmony.h u32 gain; gain 1860 sound/pci/asihpi/asihpi.c short gain; gain 1862 sound/pci/asihpi/asihpi.c hpi_handle_error(hpi_tuner_get_gain(h_control, &gain)); gain 1863 sound/pci/asihpi/asihpi.c ucontrol->value.integer.value[0] = gain / HPI_UNITS_PER_dB; gain 1875 sound/pci/asihpi/asihpi.c short gain; gain 1877 sound/pci/asihpi/asihpi.c gain = (ucontrol->value.integer.value[0]) * HPI_UNITS_PER_dB; gain 1878 sound/pci/asihpi/asihpi.c hpi_handle_error(hpi_tuner_set_gain(h_control, gain)); gain 1435 sound/pci/asihpi/hpi.h u16 hpi_tuner_set_gain(u32 h_control, short gain); gain 838 sound/pci/asihpi/hpi_internal.h u32 gain; gain 867 sound/pci/asihpi/hpi_internal.h u32 gain; gain 2539 sound/pci/asihpi/hpifunc.c u16 hpi_tuner_set_gain(u32 h_control, short gain) gain 2541 sound/pci/asihpi/hpifunc.c return hpi_control_param_set(h_control, HPI_TUNER_GAIN, gain, 0); gain 2546 sound/pci/asihpi/hpifunc.c u32 gain = 0; gain 2549 sound/pci/asihpi/hpifunc.c error = hpi_control_param1_get(h_control, HPI_TUNER_GAIN, &gain); gain 2551 sound/pci/asihpi/hpifunc.c *pn_gain = (u16)gain; gain 39 sound/pci/au88x0/au88x0_eq.c static void vortex_EqHw_SetTimeConsts(vortex_t * vortex, u16 gain, u16 level) gain 41 sound/pci/au88x0/au88x0_eq.c hwwrite(vortex->mmio, 0x2b3c4, gain); gain 493 sound/pci/au88x0/au88x0_eq.c static int vortex_Eqlzr_GetLeftGain(vortex_t * vortex, u16 index, u16 * gain) gain 498 sound/pci/au88x0/au88x0_eq.c *gain = eq->this130[index]; gain 504 sound/pci/au88x0/au88x0_eq.c static void vortex_Eqlzr_SetLeftGain(vortex_t * vortex, u16 index, u16 gain) gain 511 sound/pci/au88x0/au88x0_eq.c eq->this130[index] = gain; gain 515 sound/pci/au88x0/au88x0_eq.c vortex_EqHw_SetLeftGainsSingleTarget(vortex, index, gain); gain 518 sound/pci/au88x0/au88x0_eq.c static int vortex_Eqlzr_GetRightGain(vortex_t * vortex, u16 index, u16 * gain) gain 523 sound/pci/au88x0/au88x0_eq.c *gain = eq->this130[index + eq->this10]; gain 529 sound/pci/au88x0/au88x0_eq.c static void vortex_Eqlzr_SetRightGain(vortex_t * vortex, u16 index, u16 gain) gain 536 sound/pci/au88x0/au88x0_eq.c eq->this130[index + eq->this10] = gain; gain 540 sound/pci/au88x0/au88x0_eq.c vortex_EqHw_SetRightGainsSingleTarget(vortex, index, gain); gain 1783 sound/pci/ctxfi/cthw20k2.c u32 adcmc, gain; gain 1798 sound/pci/ctxfi/cthw20k2.c gain = gain_in_db * MIC_BOOST_STEPS_PER_DB + MIC_BOOST_0DB; gain 1800 sound/pci/ctxfi/cthw20k2.c hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_AADCL, gain), gain 1801 sound/pci/ctxfi/cthw20k2.c MAKE_WM8775_DATA(gain)); gain 1803 sound/pci/ctxfi/cthw20k2.c hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_AADCR, gain), gain 1804 sound/pci/ctxfi/cthw20k2.c MAKE_WM8775_DATA(gain)); gain 1006 sound/pci/echoaudio/echoaudio.c int c, changed, gain; gain 1012 sound/pci/echoaudio/echoaudio.c gain = ucontrol->value.integer.value[c]; gain 1014 sound/pci/echoaudio/echoaudio.c if (gain < ECHOGAIN_MINOUT || gain > ECHOGAIN_MAXOUT) gain 1016 sound/pci/echoaudio/echoaudio.c if (chip->output_gain[c] != gain) { gain 1017 sound/pci/echoaudio/echoaudio.c set_output_gain(chip, c, gain); gain 1087 sound/pci/echoaudio/echoaudio.c int c, gain, changed; gain 1093 sound/pci/echoaudio/echoaudio.c gain = ucontrol->value.integer.value[c]; gain 1095 sound/pci/echoaudio/echoaudio.c if (gain < ECHOGAIN_MININP || gain > ECHOGAIN_MAXINP) gain 1097 sound/pci/echoaudio/echoaudio.c if (chip->input_gain[c] != gain) { gain 1098 sound/pci/echoaudio/echoaudio.c set_input_gain(chip, c, gain); gain 1288 sound/pci/echoaudio/echoaudio.c int changed, gain; gain 1297 sound/pci/echoaudio/echoaudio.c gain = ucontrol->value.integer.value[0]; gain 1298 sound/pci/echoaudio/echoaudio.c if (gain < ECHOGAIN_MINOUT || gain > ECHOGAIN_MAXOUT) gain 1300 sound/pci/echoaudio/echoaudio.c if (chip->monitor_gain[out][in] != gain) { gain 1302 sound/pci/echoaudio/echoaudio.c set_monitor_gain(chip, out, in, gain); gain 1358 sound/pci/echoaudio/echoaudio.c int gain, changed; gain 1365 sound/pci/echoaudio/echoaudio.c gain = ucontrol->value.integer.value[0]; gain 1366 sound/pci/echoaudio/echoaudio.c if (gain < ECHOGAIN_MINOUT || gain > ECHOGAIN_MAXOUT) gain 552 sound/pci/echoaudio/echoaudio_dsp.c static int set_output_gain(struct echoaudio *chip, u16 channel, s8 gain) gain 561 sound/pci/echoaudio/echoaudio_dsp.c chip->output_gain[channel] = gain; gain 562 sound/pci/echoaudio/echoaudio_dsp.c chip->comm_page->line_out_level[channel] = gain; gain 571 sound/pci/echoaudio/echoaudio_dsp.c s8 gain) gain 580 sound/pci/echoaudio/echoaudio_dsp.c chip->monitor_gain[output][input] = gain; gain 581 sound/pci/echoaudio/echoaudio_dsp.c chip->comm_page->monitors[monitor_index(chip, output, input)] = gain; gain 178 sound/pci/echoaudio/gina20_dsp.c static int set_input_gain(struct echoaudio *chip, u16 input, int gain) gain 186 sound/pci/echoaudio/gina20_dsp.c chip->input_gain[input] = gain; gain 187 sound/pci/echoaudio/gina20_dsp.c gain += GL20_INPUT_GAIN_MAGIC_NUMBER; gain 188 sound/pci/echoaudio/gina20_dsp.c chip->comm_page->line_in_level[input] = gain; gain 33 sound/pci/echoaudio/indigo_dsp.c int gain); gain 135 sound/pci/echoaudio/indigo_dsp.c int gain) gain 146 sound/pci/echoaudio/indigo_dsp.c chip->vmixer_gain[output][pipe] = gain; gain 148 sound/pci/echoaudio/indigo_dsp.c chip->comm_page->vmixer[index] = gain; gain 151 sound/pci/echoaudio/indigo_dsp.c "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); gain 78 sound/pci/echoaudio/indigo_express_dsp.c int gain) gain 89 sound/pci/echoaudio/indigo_express_dsp.c chip->vmixer_gain[output][pipe] = gain; gain 91 sound/pci/echoaudio/indigo_express_dsp.c chip->comm_page->vmixer[index] = gain; gain 94 sound/pci/echoaudio/indigo_express_dsp.c "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); gain 33 sound/pci/echoaudio/indigodj_dsp.c int gain); gain 135 sound/pci/echoaudio/indigodj_dsp.c int gain) gain 146 sound/pci/echoaudio/indigodj_dsp.c chip->vmixer_gain[output][pipe] = gain; gain 148 sound/pci/echoaudio/indigodj_dsp.c chip->comm_page->vmixer[index] = gain; gain 151 sound/pci/echoaudio/indigodj_dsp.c "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); gain 31 sound/pci/echoaudio/indigodjx_dsp.c u16 pipe, int gain); gain 33 sound/pci/echoaudio/indigoio_dsp.c int gain); gain 105 sound/pci/echoaudio/indigoio_dsp.c int gain) gain 116 sound/pci/echoaudio/indigoio_dsp.c chip->vmixer_gain[output][pipe] = gain; gain 118 sound/pci/echoaudio/indigoio_dsp.c chip->comm_page->vmixer[index] = gain; gain 121 sound/pci/echoaudio/indigoio_dsp.c "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); gain 31 sound/pci/echoaudio/indigoiox_dsp.c u16 pipe, int gain); gain 252 sound/pci/echoaudio/layla20_dsp.c static int set_input_gain(struct echoaudio *chip, u16 input, int gain) gain 260 sound/pci/echoaudio/layla20_dsp.c chip->input_gain[input] = gain; gain 261 sound/pci/echoaudio/layla20_dsp.c gain += GL20_INPUT_GAIN_MAGIC_NUMBER; gain 262 sound/pci/echoaudio/layla20_dsp.c chip->comm_page->line_in_level[input] = gain; gain 36 sound/pci/echoaudio/mia_dsp.c int gain); gain 169 sound/pci/echoaudio/mia_dsp.c int gain) gain 180 sound/pci/echoaudio/mia_dsp.c chip->vmixer_gain[output][pipe] = gain; gain 182 sound/pci/echoaudio/mia_dsp.c chip->comm_page->vmixer[index] = gain; gain 185 sound/pci/echoaudio/mia_dsp.c "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); gain 556 sound/pci/emu10k1/emu10k1_main.c unsigned short gain) gain 571 sound/pci/emu10k1/emu10k1_main.c if (gain & bit) gain 209 sound/pci/lola/lola_mixer.c unsigned short gain, bool on) gain 222 sound/pci/lola/lola_mixer.c (gain == readw(&chip->mixer.array->src_gain[id]))) gain 227 sound/pci/lola/lola_mixer.c id, gain, val); gain 228 sound/pci/lola/lola_mixer.c writew(gain, &chip->mixer.array->src_gain[id]); gain 270 sound/pci/lola/lola_mixer.c unsigned short gain, bool on) gain 278 sound/pci/lola/lola_mixer.c writew(gain, &chip->mixer.array->dest_mix_gain[dest][src]); gain 2645 sound/pci/rme9652/hdsp.c int gain; gain 2659 sound/pci/rme9652/hdsp.c gain = ucontrol->value.integer.value[2]; gain 2662 sound/pci/rme9652/hdsp.c change = gain != hdsp_read_gain(hdsp, addr); gain 2664 sound/pci/rme9652/hdsp.c hdsp_write_gain(hdsp, addr, gain); gain 1785 sound/pci/rme9652/hdspm.c unsigned int gain; gain 1788 sound/pci/rme9652/hdspm.c gain = UNITY_GAIN; gain 1790 sound/pci/rme9652/hdspm.c gain = 0; gain 1792 sound/pci/rme9652/hdspm.c gain = sgain; gain 1796 sound/pci/rme9652/hdspm.c hdspm_write_in_gain(hdspm, i, j, gain); gain 1797 sound/pci/rme9652/hdspm.c hdspm_write_pb_gain(hdspm, i, j, gain); gain 3682 sound/pci/rme9652/hdspm.c int gain; gain 3695 sound/pci/rme9652/hdspm.c gain = ucontrol->value.integer.value[2]; gain 3700 sound/pci/rme9652/hdspm.c change = gain != hdspm_read_pb_gain(hdspm, destination, gain 3704 sound/pci/rme9652/hdspm.c change = gain != hdspm_read_in_gain(hdspm, destination, gain 3711 sound/pci/rme9652/hdspm.c gain); gain 3714 sound/pci/rme9652/hdspm.c gain); gain 3771 sound/pci/rme9652/hdspm.c int gain; gain 3781 sound/pci/rme9652/hdspm.c gain = ucontrol->value.integer.value[0]*UNITY_GAIN/64; gain 3785 sound/pci/rme9652/hdspm.c gain != hdspm_read_pb_gain(hdspm, channel, gain 3789 sound/pci/rme9652/hdspm.c gain); gain 2087 sound/soc/codecs/arizona.c u16 gain; gain 2101 sound/soc/codecs/arizona.c int gain; gain 2308 sound/soc/codecs/arizona.c cfg->gain = fll_gains[i].gain; gain 2323 sound/soc/codecs/arizona.c arizona_fll_dbg(fll, "GAIN=0x%x(%d)\n", cfg->gain, 1 << cfg->gain); gain 2348 sound/soc/codecs/arizona.c cfg->gain << ARIZONA_FLL1_GAIN_SHIFT); gain 2355 sound/soc/codecs/arizona.c cfg->gain << ARIZONA_FLL1_GAIN_SHIFT); gain 271 sound/soc/codecs/cros_ec_codec.c param.gain.left = left; gain 272 sound/soc/codecs/cros_ec_codec.c param.gain.right = right; gain 3394 sound/soc/codecs/madera.c int gain; /* main gain */ gain 3580 sound/soc/codecs/madera.c cfg->gain = gains[i].gain; gain 3679 sound/soc/codecs/madera.c madera_fll_dbg(fll, "GAIN=0x%x(%d)\n", cfg->gain, 1 << cfg->gain); gain 3686 sound/soc/codecs/madera.c bool sync, int gain) gain 3720 sound/soc/codecs/madera.c gain << MADERA_FLL1_GAIN_SHIFT, gain 3727 sound/soc/codecs/madera.c gain << MADERA_FLL1_GAIN_SHIFT, gain 3856 sound/soc/codecs/madera.c int gain, ret; gain 3911 sound/soc/codecs/madera.c true, cfg.gain); gain 3931 sound/soc/codecs/madera.c gain = cfg.gain; gain 3938 sound/soc/codecs/madera.c gain = cfg.alt_gain; gain 3940 sound/soc/codecs/madera.c gain = cfg.gain; gain 3946 sound/soc/codecs/madera.c gain = cfg.gain; gain 3952 sound/soc/codecs/madera.c gain = cfg.alt_gain; gain 3954 sound/soc/codecs/madera.c gain = cfg.gain; gain 3960 sound/soc/codecs/madera.c false, gain); gain 152 sound/soc/codecs/madera.h int gain; gain 22 sound/soc/codecs/max9759.c unsigned int gain; gain 48 sound/soc/codecs/max9759.c ucontrol->value.integer.value[0] = priv->gain; gain 70 sound/soc/codecs/max9759.c priv->gain = ucontrol->value.integer.value[0]; gain 74 sound/soc/codecs/max9759.c speaker_gain_table[priv->gain][0]); gain 77 sound/soc/codecs/max9759.c speaker_gain_table[priv->gain][1]); gain 175 sound/soc/codecs/max9759.c priv->gain = 0; gain 425 sound/soc/codecs/nau8825.c u32 gain, sidetone; gain 433 sound/soc/codecs/nau8825.c gain = (sig_org - sig_cros) * 20 + GAIN_AUGMENT; gain 435 sound/soc/codecs/nau8825.c gain = (sig_cros - sig_org) * 20 + GAIN_AUGMENT; gain 436 sound/soc/codecs/nau8825.c sidetone = SIDETONE_BASE - gain * 2; gain 225 sound/soc/codecs/wcd-clsh-v2.c int val = 0, gain = 0, res_val; gain 233 sound/soc/codecs/wcd-clsh-v2.c gain = DAC_GAIN_0DB; gain 238 sound/soc/codecs/wcd-clsh-v2.c gain = DAC_GAIN_0DB; gain 243 sound/soc/codecs/wcd-clsh-v2.c gain = DAC_GAIN_M0P2DB; gain 261 sound/soc/codecs/wcd-clsh-v2.c gain); gain 3361 sound/soc/codecs/wcd9335.c u8 gain) gain 3376 sound/soc/codecs/wcd9335.c l_val = (hph_l_en & 0xC0) | 0x20 | gain; gain 3377 sound/soc/codecs/wcd9335.c r_val = (hph_r_en & 0xC0) | 0x20 | gain; gain 587 sound/soc/intel/atom/sst-atom-controls.c struct sst_module *gain = NULL; gain 589 sound/soc/intel/atom/sst-atom-controls.c list_for_each_entry(gain, &ids->gain_list, node) { gain 590 sound/soc/intel/atom/sst-atom-controls.c struct snd_kcontrol *kctl = gain->kctl;