Searched refs:gain (Results 126 - 150 of 264) sorted by relevance

1234567891011

/linux-master/drivers/staging/media/atomisp/include/linux/
H A Datomisp.h74 /* [gain] Strength of noise reduction for Bayer NR (Used by Bayer NR) */
76 /* [gain] Strength of noise reduction for YCC NR (Used by YCC NR) */
88 unsigned int gain; /* [gain] Strength of NR */ member in struct:atomisp_tnr_config
127 /* [gain] The strength of sharpness. u5_11 */
128 unsigned int gain; member in struct:atomisp_ee_config
131 /* [gain] The strength of sharpness in pell-mell area. u5_11 */
158 unsigned int ae_y_coef_r; /* [gain] Weight of R for Y */
159 unsigned int ae_y_coef_g; /* [gain] Weight of G for Y */
160 unsigned int ae_y_coef_b; /* [gain] Weigh
315 unsigned int gain; member in struct:atomisp_dp_config
587 unsigned int gain[4]; member in struct:atomisp_exposure
[all...]
/linux-master/drivers/input/touchscreen/
H A Dhycon-hy46xx.c65 int gain; member in struct:hycon_hy46xx_data
254 static HYCON_ATTR_U8(gain, 0644, HY46XX_GAIN, 0, 5);
324 error = device_property_read_u32(dev, "hycon,gain", &val);
330 tsdata->gain = val;
380 tsdata->gain = val;
/linux-master/drivers/iio/imu/st_lsm6dsx/
H A Dst_lsm6dsx.h152 u32 gain; member in struct:st_lsm6dsx_fs
306 * @fs_table: Hw sensors gain table (gain + val).
367 * @gain: Configured sensor sensitivity.
381 u32 gain; member in struct:st_lsm6dsx_sensor
/linux-master/sound/pci/echoaudio/
H A Dechoaudio_dsp.c554 /* Set the gain for a single physical output channel (dB). */
555 static int set_output_gain(struct echoaudio *chip, u16 channel, s8 gain) argument
564 chip->output_gain[channel] = gain;
565 chip->comm_page->line_out_level[channel] = gain;
574 s8 gain)
583 chip->monitor_gain[output][input] = gain;
584 chip->comm_page->monitors[monitor_index(chip, output, input)] = gain;
573 set_monitor_gain(struct echoaudio *chip, u16 output, u16 input, s8 gain) argument
/linux-master/drivers/media/usb/gspca/
H A Dpac7302.c39 * as the quality gain is small and the generated JPG-s are
55 * 0x12 Another gain 0-31, unlike 0x10 this one seems to start with an
470 if (gspca_dev->gain->val < 32) {
471 reg10 = gspca_dev->gain->val;
475 reg12 = gspca_dev->gain->val - 31;
581 we are on a valid point of the autogain gain /
585 gspca_dev->gain->val = PAC7302_GAIN_DEFAULT;
611 if (gspca_dev->gain->is_new || (ctrl->is_new && ctrl->val))
665 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops,
H A Dsn9c2028.c29 struct { /* autogain and gain control cluster */
31 struct v4l2_ctrl *gain; member in struct:sd::__anon206
258 {{0x1d, 0x25, 0x10 /* This byte is gain */,
287 /* standalone gain control */
293 set_gain(gspca_dev, sd->gain->val);
314 sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops,
338 {{0x13, 0x28, 0x01, 0x09, 0x00, 0x00}, 4}, /* red gain ?*/
370 /* brightness or gain. 0 is default. 4 is good
714 if (sd->gain)
715 set_gain(gspca_dev, v4l2_ctrl_g_ctrl(sd->gain));
[all...]
H A Dsq930x.c26 struct { /* exposure/gain control cluster */
28 struct v4l2_ctrl *gain; member in struct:sd::__anon242
209 {0x35, 0x0020}, /* global gain */
210 {0x2b, 0x0020}, /* green1 gain */
211 {0x2c, 0x002a}, /* blue gain */
212 {0x2d, 0x0028}, /* red gain */
213 {0x2e, 0x0020}, /* green2 gain */
247 {0x35, 0x0020}, /* global gain */
248 {0x2b, 0x0020}, /* green1 gain */
249 {0x2c, 0x0020}, /* blue gain */
750 setexposure(struct gspca_dev *gspca_dev, s32 expo, s32 gain) argument
[all...]
/linux-master/sound/pci/lola/
H A Dlola_mixer.c211 unsigned short gain, bool on)
224 (gain == readw(&chip->mixer.array->src_gain[id])))
228 "lola_mixer_set_src_gain (id=%d, gain=%d) enable=%x\n",
229 id, gain, val);
230 writew(gain, &chip->mixer.array->src_gain[id]);
233 /* inform micro-controller about the new source gain */
272 unsigned short gain, bool on)
280 writew(gain, &chip->mixer.array->dest_mix_gain[dest][src]);
480 /* set gain value 0dB diagonally in matrix - part INPUT -> CAPTURE */
485 /* set gain valu
210 lola_mixer_set_src_gain(struct lola *chip, unsigned int id, unsigned short gain, bool on) argument
270 lola_mixer_set_mapping_gain(struct lola *chip, unsigned int src, unsigned int dest, unsigned short gain, bool on) argument
[all...]
/linux-master/drivers/iio/dac/
H A Dad7293.c363 u16 gain)
368 gain << (4 * ch));
372 u16 *gain)
376 ret = ad7293_spi_read(st, AD7293_REG_ISENSE_GAIN, gain);
380 *gain = (*gain >> (4 * ch)) & 0xf;
362 ad7293_isense_set_scale(struct ad7293_state *st, unsigned int ch, u16 gain) argument
371 ad7293_isense_get_scale(struct ad7293_state *st, unsigned int ch, u16 *gain) argument
/linux-master/drivers/iio/light/
H A Dtsl2591.c512 dev_err(&client->dev, "Failed to set als gain & int time\n");
787 int gain; local
806 gain = tsl2591_multiplier_to_gain(val);
807 if (gain < 0) {
808 ret = gain;
811 ret = tsl2591_compatible_gain(chip, gain);
815 chip->als_settings.als_gain = gain;
/linux-master/drivers/comedi/drivers/
H A Dni_atmio16d.c291 unsigned int sample_count, tmp, chan, gain; local
315 gain = CR_RANGE(cmd->chanlist[i]);
317 tmp = chan | (gain << 6);
464 int gain; local
468 gain = CR_RANGE(insn->chanspec);
475 /* set the Input MUX gain */
476 outw(chan | (gain << 6), dev->iobase + MUX_GAIN_REG);
H A Ddt9812.c434 enum dt9812_gain gain)
438 /* In the DT9812/10V, there is an external gain of 0.5 */
440 gain <<= 1;
447 switch (gain) {
461 /* this should never happen, just use a gain of 1 */
482 int channel, u16 *value, enum dt9812_gain gain)
496 /* 1 select the gain */
497 dt9812_configure_gain(dev, &rmw[0], gain);
432 dt9812_configure_gain(struct comedi_device *dev, struct dt9812_rmw_byte *rmw, enum dt9812_gain gain) argument
481 dt9812_analog_in(struct comedi_device *dev, int channel, u16 *value, enum dt9812_gain gain) argument
/linux-master/drivers/thermal/samsung/
H A Dexynos_tmu.c155 * @gain: gain of amplifier in the positive-TC generator block
156 * 0 < gain <= 15
185 u8 gain; member in struct:exynos_tmu_data
318 con |= (data->gain << EXYNOS_TMU_BUF_SLOPE_SEL_SHIFT);
879 data->gain = 15;
901 data->gain = 8;
922 data->gain = 8;
942 data->gain = 9;
/linux-master/drivers/media/i2c/
H A Dmt9m001.c526 dev_dbg(&client->dev, "Setting gain %d\n", data);
532 unsigned long gain = ((ctrl->val - (s32)ctrl->default_value - 1) * local
535 if (gain <= 32)
536 data = gain;
537 else if (gain <= 64)
538 data = ((gain - 32) * 16 + 16) / 32 + 80;
540 data = ((gain - 64) * 7 + 28) / 56 + 96;
542 dev_dbg(&client->dev, "Setting gain from %d to %d\n",
/linux-master/drivers/iio/proximity/
H A Dsx9324.c724 unsigned int gain, reg; local
728 gain = ilog2(val) + 1;
729 if (val <= 0 || gain > SX9324_REG_PROX_CTRL0_GAIN_8)
732 gain = FIELD_PREP(SX9324_REG_PROX_CTRL0_GAIN_MASK, gain);
738 gain);
952 "semtech,input-analog-gain", &raw);
956 * The analog gain has the following setting:
H A Disl29501.c266 u32 value, gain, coeff, exp; local
271 ret = isl29501_register_read(isl29501, reg, &gain);
275 value = gain;
/linux-master/sound/oss/dmasound/
H A Ddmasound_atari.c130 static int TTSetGain(int gain);
1005 static int TTSetGain(int gain) argument
1007 dmasound.gain = GAIN_VOXWARE_TO_DB(gain);
1008 atari_microwire_cmd(MW_LM1992_VOLUME(dmasound.gain));
1009 return GAIN_DB_TO_VOXWARE(dmasound.gain);
1417 return IOCTL_OUT(arg, GAIN_DB_TO_VOXWARE(dmasound.gain));
/linux-master/sound/soc/codecs/
H A Dmadera.c3424 int gain; /* main gain */ member in struct:madera_fll_gains
3425 int alt_gain; /* alternate integer gain */
3610 cfg->gain = gains[i].gain;
3616 madera_fll_err(fll, "Unable to find gain for fref=%uHz\n", fref);
3709 madera_fll_dbg(fll, "GAIN=0x%x(%d)\n", cfg->gain, 1 << cfg->gain);
3716 bool sync, int gain)
3750 gain << MADERA_FLL1_GAIN_SHIF
3714 madera_write_fll(struct madera *madera, unsigned int base, struct madera_fll_cfg *cfg, int source, bool sync, int gain) argument
3955 int gain, ret; local
[all...]
H A Dwcd-clsh-v2.c275 int val = 0, gain = 0, res_val; local
283 gain = DAC_GAIN_0DB;
288 gain = DAC_GAIN_0DB;
293 gain = DAC_GAIN_M0P2DB;
311 gain);
/linux-master/drivers/media/dvb-frontends/
H A Ddib0090.c135 s16 rf_gain_limit; /* take-over-point: where to split between bb and rf gain */
136 s16 current_gain; /* keeps the currently programmed gain */
139 u16 gain[2]; /* for channel monitoring */ member in struct:dib0090_state
680 550, /* max BB gain in 10th of dB */
681 (1<<9) | 8, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> BB_RAMP2 */
690 280, /* max RF gain in 10th of dB */
691 18, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
704 186, /* max RF gain in 10th of dB */
705 40, /* ramp_slope = 1dB of gain -> clock_ticks_per_db = clk_khz / ramp_slope -> RF_RAMP2 */
718 86, /* max RF gain i
919 u16 i, v, gain_reg[4] = { 0 }, gain; local
[all...]
/linux-master/drivers/net/wireless/broadcom/b43/
H A Dphy_n.c583 s16 gain[2]; local
592 gain[0] = 6;
593 gain[1] = 6;
596 gain[0] = ((tmp >> 13) + ((tmp >> 12) & 1));
598 gain[1] = ((tmp >> 13) + ((tmp >> 12) & 1));
601 gain[0] = 0;
602 gain[1] = 0;
607 data[0] = 19 + gain[i];
608 data[1] = 25 + gain[i];
609 data[2] = 25 + gain[
3166 u16 *vmid, *gain; local
3553 u16 gain; local
5340 u16 gain[2]; local
[all...]
H A Dphy_lp.c879 static void lpphy_set_pa_gain(struct b43_wldev *dev, u16 gain) argument
881 b43_phy_maskset(dev, B43_PHY_OFDM(0xFB), 0xE03F, gain << 6);
882 b43_phy_maskset(dev, B43_PHY_OFDM(0xFD), 0x80FF, gain << 8);
913 static void lpphy_rev0_1_set_rx_gain(struct b43_wldev *dev, u32 gain) argument
915 u16 trsw = gain & 0x1;
916 u16 lna = (gain & 0xFFFC) | ((gain & 0xC) >> 2);
917 u16 ext_lna = (gain & 2) >> 1;
927 static void lpphy_rev2plus_set_rx_gain(struct b43_wldev *dev, u32 gain) argument
929 u16 low_gain = gain
950 lpphy_set_rx_gain(struct b43_wldev *dev, u32 gain) argument
961 u32 gain = b43_lptab_read(dev, B43_LPTAB16(12, idx)); local
[all...]
/linux-master/drivers/media/tuners/
H A Dm88rs6000t.c489 u16 gain; local
550 gain = RFG + IFG - TIAG + BBG + PGA2G;
553 gain = clamp_val(gain, 1000U, 10500U);
554 *strength = (10500 - gain) * 0xffff / (10500 - 1000);
/linux-master/sound/firewire/
H A Disight.c482 __be32 gain; local
485 err = reg_read(isight, REG_GAIN, &gain);
489 value->value.integer.value[0] = (s32)be32_to_cpu(gain);
/linux-master/drivers/iio/adc/
H A Dti-ads1298.c284 u8 gain; local
305 gain = ads1298_pga_settings[FIELD_GET(ADS1298_MASK_CH_PGA, regval)];
306 *val /= gain; /* Full scale is VREF / gain */

Completed in 272 milliseconds

1234567891011