Home
last modified time | relevance | path

Searched refs:gain (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/linux/drivers/media/usb/gspca/
A Dautogain_functions.c28 orig_gain = gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); in gspca_expo_autogain()
44 else if (gain > gspca_dev->gain->default_value) in gspca_expo_autogain()
48 else if (gain > gspca_dev->gain->minimum) in gspca_expo_autogain()
53 if (gain < gspca_dev->gain->default_value) in gspca_expo_autogain()
61 else if (gain < gspca_dev->gain->maximum) in gspca_expo_autogain()
69 v4l2_ctrl_s_ctrl(gspca_dev->gain, gain); in gspca_expo_autogain()
135 if (gain > gspca_dev->gain->maximum) in gspca_coarse_grained_expo_autogain()
136 gain = gspca_dev->gain->maximum; in gspca_coarse_grained_expo_autogain()
137 else if (gain < gspca_dev->gain->minimum) in gspca_coarse_grained_expo_autogain()
138 gain = gspca_dev->gain->minimum; in gspca_coarse_grained_expo_autogain()
[all …]
A Dsonixb.c582 u8 gain = gspca_dev->gain->val; in setgain() local
589 i2c[3] = 0x3f - gain; in setgain()
590 i2c[4] = 0x3f - gain; in setgain()
601 i2c[4] = 255 - gain; in setgain()
608 gain = 255 - gain; in setgain()
630 gain += 16; in setgain()
633 i2c[3] = gain; in setgain()
654 i2cpgain[3] = gain; in setgain()
667 u8 buf[3] = { gain, gain, gain }; /* R, G, B */ in setgain()
671 buf[0] = gain << 4 | gain; /* Red and blue */ in setgain()
[all …]
A Dsn9c2028.c31 struct v4l2_ctrl *gain; member
293 set_gain(gspca_dev, sd->gain->val); in sd_s_ctrl()
314 sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
714 if (sd->gain) in start_genius_videocam_live()
715 set_gain(gspca_dev, v4l2_ctrl_g_ctrl(sd->gain)); in start_genius_videocam_live()
857 s32 cur_gain = v4l2_ctrl_g_ctrl(sd->gain); in do_autogain()
863 if (cur_gain == sd->gain->maximum) in do_autogain()
866 v4l2_ctrl_s_ctrl(sd->gain, cur_gain); in do_autogain()
869 if (cur_gain == sd->gain->minimum) in do_autogain()
872 v4l2_ctrl_s_ctrl(sd->gain, cur_gain); in do_autogain()
/linux/drivers/staging/media/atomisp/pci/isp/kernels/dp/dp_1.0/
A Dia_css_dp.host.c51 int gain = from->gain; in ia_css_dp_encode() local
62 to->gain = in ia_css_dp_encode()
63 uDIGIT_FITTING(from->gain, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
66 uDIGIT_FITTING(gain * gr / r, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
68 uDIGIT_FITTING(gain * gb / r, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
70 uDIGIT_FITTING(gain * gb / b, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
72 uDIGIT_FITTING(gain * gr / b, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
74 uDIGIT_FITTING(gain * r / gr, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
76 uDIGIT_FITTING(gain * b / gr, 8, SH_CSS_DP_GAIN_SHIFT); in ia_css_dp_encode()
97 "dp_gain", dp->gain); in ia_css_dp_dump()
[all …]
/linux/drivers/iio/accel/
A Dst_accel_core.c156 .gain = IIO_G_TO_M_S_2(1000),
161 .gain = IIO_G_TO_M_S_2(2000),
166 .gain = IIO_G_TO_M_S_2(4000),
319 .gain = IIO_G_TO_M_S_2(61),
324 .gain = IIO_G_TO_M_S_2(122),
329 .gain = IIO_G_TO_M_S_2(183),
334 .gain = IIO_G_TO_M_S_2(244),
339 .gain = IIO_G_TO_M_S_2(732),
821 .gain = IIO_G_TO_M_S_2(76),
1133 int gain; in st_accel_write_raw() local
[all …]
/linux/drivers/iio/amplifiers/
A Dhmc425a.c42 u32 gain; member
62 int code, gain = 0; in hmc425a_read_raw() local
68 code = st->gain; in hmc425a_read_raw()
72 gain = ~code * -500; in hmc425a_read_raw()
76 *val = gain / 1000; in hmc425a_read_raw()
77 *val2 = (gain % 1000) * 1000; in hmc425a_read_raw()
95 int code = 0, gain; in hmc425a_write_raw() local
99 gain = (val * 1000) - (val2 / 1000); in hmc425a_write_raw()
103 if (gain > inf->gain_max || gain < inf->gain_min) in hmc425a_write_raw()
108 code = ~((abs(gain) / 500) & 0x3F); in hmc425a_write_raw()
[all …]
A Dad8366.c113 int code, gain = 0; in ad8366_read_raw() local
122 gain = code * 253 + 4500; in ad8366_read_raw()
125 gain = 15000 - code * 1000; in ad8366_read_raw()
131 gain = -1 * code * 250; in ad8366_read_raw()
136 *val = gain / 1000; in ad8366_read_raw()
137 *val2 = (gain % 1000) * 1000; in ad8366_read_raw()
157 int code = 0, gain; in ad8366_write_raw() local
166 if (gain > inf->gain_max || gain < inf->gain_min) in ad8366_write_raw()
171 code = (gain - 4500) / 253; in ad8366_write_raw()
174 code = (15000 - gain) / 1000; in ad8366_write_raw()
[all …]
/linux/drivers/iio/magnetometer/
A Dst_magn_core.c185 .gain = 855,
191 .gain = 670,
197 .gain = 450,
203 .gain = 400,
209 .gain = 330,
215 .gain = 230,
258 .gain = 909,
337 .gain = 146,
342 .gain = 292,
347 .gain = 438,
[all …]
/linux/drivers/media/dvb-frontends/
A Dstv6111.c535 s32 gain; in table_lookup() local
562 return gain; in table_lookup()
569 s32 gain; in get_rf_strength() local
601 gain -= 2400; in get_rf_strength()
606 gain = table_lookup( in get_rf_strength()
610 gain += 600; in get_rf_strength()
613 gain = table_lookup( in get_rf_strength()
627 if (gain < 0) in get_rf_strength()
628 gain = 0; in get_rf_strength()
630 gain = 10000; in get_rf_strength()
[all …]
/linux/Documentation/userspace-api/media/v4l/
A Dext-ctrls-rf-tuner.rst50 Enables/disables LNA automatic gain control (AGC)
53 Enables/disables mixer automatic gain control (AGC)
56 Enables/disables IF automatic gain control (AGC)
61 LNA gain and the RF gain in this document is that the LNA gain is
62 integrated in the tuner chip while the RF gain is a separate chip.
63 There may be both RF and LNA gain controls in the same device. The
67 LNA (low noise amplifier) gain is first gain stage on the RF tuner
70 ``V4L2_CID_RF_TUNER_RF_GAIN`` to understand how RF gain and LNA gain
75 Mixer gain is second gain stage on the RF tuner signal path. It is
81 IF gain is last gain stage on the RF tuner signal path. It is
/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
A Dphy.c15 s8 gain; in mt76x2_adjust_high_lna_gain() local
19 gain -= offset / 2; in mt76x2_adjust_high_lna_gain()
26 s8 gain; in mt76x2_adjust_agc_gain() local
29 gain += offset; in mt76x2_adjust_agc_gain()
144 int base_power, gain; in mt76x2_phy_set_txpower() local
163 gain = min(txp_0, txp_1); in mt76x2_phy_set_txpower()
164 if (gain < 0) { in mt76x2_phy_set_txpower()
165 base_power -= gain; in mt76x2_phy_set_txpower()
166 txp_0 -= gain; in mt76x2_phy_set_txpower()
167 txp_1 -= gain; in mt76x2_phy_set_txpower()
[all …]
/linux/drivers/iio/adc/
A Dhx711.c29 int gain; member
54 if (hx711_gain_to_scale[i].gain == gain) in hx711_get_gain_to_pulse()
64 if (hx711_gain_to_scale[i].gain == gain) in hx711_get_gain_to_scale()
75 return hx711_gain_to_scale[i].gain; in hx711_get_scale_to_gain()
309 int gain; in hx711_write_raw() local
323 if (gain < 0) { in hx711_write_raw()
325 return gain; in hx711_write_raw()
328 if (gain != hx711_data->gain_set) { in hx711_write_raw()
329 hx711_data->gain_set = gain; in hx711_write_raw()
330 if (gain != 32) in hx711_write_raw()
[all …]
A Dad7780.c65 unsigned int gain; member
122 *val = voltage_uv * st->gain; in ad7780_read_raw()
148 unsigned int full_scale, gain; in ad7780_write_raw() local
160 gain = DIV_ROUND_CLOSEST_ULL(vref, full_scale); in ad7780_write_raw()
161 gain = DIV_ROUND_CLOSEST(gain, val2); in ad7780_write_raw()
162 st->gain = gain; in ad7780_write_raw()
163 if (gain < AD7780_GAIN_MIDPOINT) in ad7780_write_raw()
164 gain = 0; in ad7780_write_raw()
166 gain = 1; in ad7780_write_raw()
167 gpiod_set_value(st->gain_gpio, gain); in ad7780_write_raw()
[all …]
A Dab8500-gpadc.c200 s64 gain; member
286 if (!gpadc->cal_data[AB8500_CAL_VMAIN].gain) { in ab8500_gpadc_ad_to_voltage()
318 if (!gpadc->cal_data[AB8500_CAL_VBAT].gain) { in ab8500_gpadc_ad_to_voltage()
362 if (!gpadc->cal_data[AB8500_CAL_IBAT].gain) { in ab8500_gpadc_ad_to_voltage()
779 gpadc->cal_data[AB8500_CAL_VMAIN].gain = 0; in ab8500_gpadc_read_calibration_data()
823 gpadc->cal_data[AB8500_CAL_IBAT].gain = in ab8500_gpadc_read_calibration_data()
828 gpadc->cal_data[AB8500_CAL_IBAT].gain = 0; in ab8500_gpadc_read_calibration_data()
850 gpadc->cal_data[AB8500_CAL_VMAIN].gain = 0; in ab8500_gpadc_read_calibration_data()
863 gpadc->cal_data[AB8500_CAL_BTEMP].gain = in ab8500_gpadc_read_calibration_data()
869 gpadc->cal_data[AB8500_CAL_BTEMP].gain = 0; in ab8500_gpadc_read_calibration_data()
[all …]
/linux/drivers/iio/gyro/
A Dst_gyro_core.c104 .gain = IIO_DEGREE_TO_RAD(8750),
109 .gain = IIO_DEGREE_TO_RAD(17500),
114 .gain = IIO_DEGREE_TO_RAD(70000),
182 .gain = IIO_DEGREE_TO_RAD(8750),
187 .gain = IIO_DEGREE_TO_RAD(17500),
192 .gain = IIO_DEGREE_TO_RAD(70000),
256 .gain = IIO_DEGREE_TO_RAD(8750),
261 .gain = IIO_DEGREE_TO_RAD(17500),
266 .gain = IIO_DEGREE_TO_RAD(70000),
330 .gain = IIO_DEGREE_TO_RAD(8750),
[all …]
/linux/drivers/iio/light/
A Dzopt2201.c77 u8 gain; member
83 unsigned int gain; /* gain factor */ member
94 unsigned int gain; /* gain factor */ member
118 u8 gain; /* gain register value */ member
147 u8 gain; /* gain register value */ member
275 zopt2201_gain_uvb[data->gain].gain; in zopt2201_read_raw()
280 *val = zopt2201_gain_als[data->gain].scale; in zopt2201_read_raw()
283 *val = zopt2201_gain_uvb[data->gain].scale; in zopt2201_read_raw()
346 data->gain = gain; in zopt2201_set_gain()
360 ret = zopt2201_set_gain(data, zopt2201_scale_als[idx].gain); in zopt2201_write_scale_als_by_idx()
[all …]
/linux/drivers/isdn/mISDN/
A Ddsp_biquad.h16 int32_t gain; member
27 int32_t gain, int32_t a1, int32_t a2, int32_t b1, int32_t b2) in biquad2_init() argument
29 bq->gain = gain; in biquad2_init()
44 z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2; in biquad2()
/linux/Documentation/userspace-api/media/drivers/
A Dccs.rst65 Analogue gain model
68 The CCS defines an analogue gain model where the gain can be calculated using
71 gain = m0 * x + c0 / (m1 * x + c1)
81 The analogue gain (``x`` in the formula) is controlled through
84 Alternate analogue gain model
87 The CCS defines another analogue gain model called alternate analogue gain. In
88 this case, the formula to calculate actual gain consists of linear and
91 gain = linear * 2 ^ exponent
/linux/sound/pci/echoaudio/
A Dindigoio_dsp.c33 int gain);
107 int gain) in set_vmixer_gain() argument
118 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
120 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
123 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
A Dindigo_dsp.c33 int gain);
137 int gain) in set_vmixer_gain() argument
148 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
150 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
153 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
A Dindigodj_dsp.c33 int gain);
137 int gain) in set_vmixer_gain() argument
148 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
150 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
153 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
/linux/Documentation/devicetree/bindings/iio/afe/
A Dcurrent-sense-amplifier.yaml30 sense-gain-mult:
32 description: Amplifier gain multiplier. The default is <1>.
34 sense-gain-div:
36 description: Amplifier gain divider. The default is <1>.
52 sense-gain-mult = <50>;
/linux/Documentation/devicetree/bindings/iio/light/
A Dupisemi,us5182.yaml33 upisemi,upper-dark-gain:
36 8-bit dark gain compensation factor(4 int and 4 fractional bits - Q4.4)
40 upisemi,lower-dark-gain:
43 8-bit dark gain compensation factor(4 int and 4 fractional bits - Q4.4)
74 upisemi,upper-dark-gain = /bits/ 8 <0x00>;
75 upisemi,lower-dark-gain = /bits/ 8 <0x16>;
/linux/sound/soc/codecs/
A Dmax9759.c22 unsigned int gain; member
48 ucontrol->value.integer.value[0] = priv->gain; in speaker_gain_control_get()
70 priv->gain = ucontrol->value.integer.value[0]; in speaker_gain_control_put()
74 speaker_gain_table[priv->gain][0]); in speaker_gain_control_put()
77 speaker_gain_table[priv->gain][1]); in speaker_gain_control_put()
175 priv->gain = 0; in max9759_probe()
/linux/Documentation/devicetree/bindings/hwmon/
A Dti,tmp513.yaml39 rshunt <= pga-gain * 40 * 1000 * 1000.
43 ti,pga-gain:
45 The gain value for the PGA function. This is 8, 4, 2 or 1.
46 The PGA gain affect the shunt voltage range.
47 The range will be equal to: pga-gain * 40mV
88 ti,pga-gain = <8>;

Completed in 50 milliseconds

12345678910>>...15