/linux-master/drivers/media/usb/gspca/stv06xx/ |
H A D | stv06xx_pb0100.c | 23 * PB_PREADCTRL = R32 = 0x1400 (5120 dec) : Enables global gain changes 25 * PB_ADCMINGAIN = R52 = 0x10 (16 dec) : Sets the minimum gain for 27 * PB_ADCGLOBALGAIN = R53 = 0x10 (16 dec) : Sets the global gain 41 struct v4l2_ctrl *gain; member in struct:pb0100_ctrls::__anon277 90 err = pb0100_set_gain(gspca_dev, ctrls->gain->val); 138 ctrls->gain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, 274 /* gain max for autoexposure */ 276 /* gain min for autoexposure */ 330 gspca_dbg(gspca_dev, D_CONF, "Set green gain to %d, status: %d\n", 347 val += ctrls->gain [all...] |
/linux-master/drivers/media/dvb-frontends/ |
H A D | l64781.c | 91 l64781_writereg (state, 0x0e, 0); /* AGC gain to zero in beginning */ 354 int gain = l64781_readreg (state, 0x0e); local 361 if (gain > 5) 395 u8 gain = l64781_readreg (state, 0x0e); local 396 *signal_strength = (gain << 8) | gain; 449 /* AGC loop gain, and polarity is positive */
|
H A D | zd1301_demod.c | 11 module_param_named(gain, zd1301_demod_gain, byte, 0644); 12 MODULE_PARM_DESC(gain, "gain (value: 0x00 - 0x70, default: 0x38)"); 18 u8 gain; member in struct:zd1301_demod_dev 246 * 0x6a05: get some gain value 247 * 0x6a06: get about same gain value than set to 0x6a43 248 * 0x6a07: get some gain value 249 * 0x6a43: set gain value by driver 254 * and 0x6a07. Looks like gain register 0x6a43 value could be from 258 if (dev->gain ! [all...] |
H A D | dib0070.c | 600 static u16 dib0070_read_wbd_offset(struct dib0070_state *state, u8 gain) argument 607 dib0070_write_reg(state, 0x0f, (1 << 14) | (2 << 12) | (gain << 9) | (1 << 8) | (1 << 7) | (0 << 0)); 616 u8 gain; local 617 for (gain = 6; gain < 8; gain++) { 618 state->wbd_offset_3_3[gain - 6] = ((dib0070_read_wbd_offset(state, gain) * 8 * 18 / 33 + 1) / 2); 619 dprintk("Gain: %d, WBDOffset (3.3V) = %hd\n", gain, state->wbd_offset_3_3[gain [all...] |
H A D | stv6110x.c | 257 static int stv6110x_get_bbgain(struct dvb_frontend *fe, u32 *gain) argument 262 *gain = 2 * STV6110x_GETFIELD(CTRL2_BBGAIN, stv6110x->regs[STV6110x_CTRL2]); 267 static int stv6110x_set_bbgain(struct dvb_frontend *fe, u32 gain) argument 271 STV6110x_SETFIELD(stv6110x->regs[STV6110x_CTRL2], CTRL2_BBGAIN, gain / 2);
|
H A D | stv6110.c | 30 u8 gain; member in struct:stv6110_priv 265 priv->regs[RSTV6110_CTRL2] |= (priv->gain & 0x0f); 419 priv->gain = config->gain;
|
/linux-master/drivers/iio/light/ |
H A D | vl6180.c | 278 * Available Ambient Light Sensor gain settings, 1/1000th, and 315 /* one ALS count is 0.32 Lux @ gain 1, IT 100 ms */ 361 int i, ret, gain; local 366 gain = (val * 1000000 + val2) / 1000; 367 if (gain < 1 || gain > 40000) 370 i = find_closest(gain, vl6180_als_gain_tab, 482 /* ALS gain: 1 */
|
/linux-master/drivers/net/wireless/realtek/rtw89/ |
H A D | rtw8852b.c | 633 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; local 637 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_CCK], 638 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_2G_CCK]); 640 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_OFDM], 641 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_2G_OFDM]); 643 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_LOW], 644 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_5G_LOW]); 646 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_MID], 647 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_5G_MID]); 649 &gain 825 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; local 991 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain.ax; local 1089 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain.ax; local 1431 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; local [all...] |
H A D | rtw8922a.c | 520 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; local 525 gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_CCK] = map->rx_gain_a._2g_cck; 526 gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_2G_CCK] = map->rx_gain_b._2g_cck; 527 gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_OFDM] = map->rx_gain_a._2g_ofdm; 528 gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_2G_OFDM] = map->rx_gain_b._2g_ofdm; 529 gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_LOW] = map->rx_gain_a._5g_low; 530 gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_5G_LOW] = map->rx_gain_b._5g_low; 531 gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_MID] = map->rx_gain_a._5g_mid; 532 gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_5G_MID] = map->rx_gain_b._5g_mid; 533 gain 967 const struct rtw89_phy_bb_gain_info_be *gain = &rtwdev->bb_gain.be; local 1012 const struct rtw89_phy_bb_gain_info_be *gain = &rtwdev->bb_gain.be; local 1061 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; local 1093 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; local 1122 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; local [all...] |
H A D | phy_be.c | 117 struct rtw89_phy_bb_gain_info_be *gain = &rtwdev->bb_gain.be; local 127 gain->lna_gain[gband][bw_type][path][i] = data & 0xff; 131 gain->lna_gain[gband][bw_type][path][i] = data & 0xff; 135 gain->tia_gain[gband][bw_type][path][i] = data & 0xff; 139 "bb gain error {0x%x:0x%x} with unknown type: %d\n", 149 struct rtw89_phy_bb_gain_info_be *gain = &rtwdev->bb_gain.be; local 159 gain->rpl_ofst_20[gband][path][0] = (s8)data; 163 gain->rpl_ofst_40[gband][path][i] = data & 0xff; 167 gain->rpl_ofst_80[gband][path][i] = data & 0xff; 176 gain 190 struct rtw89_phy_bb_gain_info_be *gain = &rtwdev->bb_gain.be; local [all...] |
H A D | rtw8852c.c | 425 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; local 429 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_CCK], 430 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_2G_CCK]); 432 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_OFDM], 433 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_2G_OFDM]); 435 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_LOW], 436 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_5G_LOW]); 438 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_MID], 439 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_5G_MID]); 441 &gain 845 const struct rtw89_phy_bb_gain_info *gain = &rtwdev->bb_gain.ax; local 1646 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; local [all...] |
/linux-master/drivers/iio/proximity/ |
H A D | sx9310.c | 294 unsigned int regval, gain; local 304 gain = FIELD_GET(SX9310_REG_PROX_CTRL3_GAIN0_MASK, regval); 308 gain = FIELD_GET(SX9310_REG_PROX_CTRL3_GAIN12_MASK, regval); 314 *val = 1 << gain; 660 unsigned int gain, mask; local 662 gain = ilog2(val); 668 gain = FIELD_PREP(SX9310_REG_PROX_CTRL3_GAIN0_MASK, gain); 673 gain = FIELD_PREP(SX9310_REG_PROX_CTRL3_GAIN12_MASK, gain); [all...] |
/linux-master/drivers/iio/adc/ |
H A D | twl6030-gpadc.c | 75 * @gain: slope coefficient for ideal curve 76 * @gain_error: gain error 80 s32 gain; member in struct:twl6030_chnl_calib 131 * channel with gain error and offset 503 gpadc->twl6030_cal_tbl[i].gain; 568 * The goal is to find offset and gain of the real curve for each calibrated 570 * gain: k = 1 + ((d2 - d1) / (x2 - x1)) 576 int b, k, gain, x1, x2, i; local 582 gain = ((ideal[i].volt2 - ideal[i].volt1) * 1000) / 588 /* k - real curve gain */ [all...] |
H A D | palmas_gpadc.c | 39 int gain; /* calculated from above (after reading trim regs) */ member in struct:palmas_gpadc_info 51 .gain = PALMAS_TO_BE_CALCULATED, \ 347 int gain; local 367 /* gain error calculation */ 370 /* gain calculation */ 371 gain = ((v2 - v1) * 1000) / (x2 - x1); 374 adc->adc_info[adc_chan].gain = gain; 444 val = (val * adc->adc_info[adc_chan].gain) / 1000; 454 * linearity (INL), offset error and gain erro [all...] |
/linux-master/drivers/staging/media/atomisp/i2c/ |
H A D | atomisp-gc0310.c | 96 struct v4l2_ctrl *gain; member in struct:gc0310_device::gc0310_ctrls 216 { 0x70, 0x70 }, /* 70 //80//global gain */ 217 { 0x71, 0x20 }, /* pregain gain */ 218 { 0x72, 0x40 }, /* post gain */ 219 { 0x5a, 0x84 }, /* 84//analog gain 0 */ 221 { 0x5c, 0xed }, /* ed//not use pga gain highest level */ 222 { 0x77, 0x40 }, /* R gain 0x74 //awb gain */ 223 { 0x78, 0x40 }, /* G gain */ 224 { 0x79, 0x40 }, /* B gain 302 gc0310_gain_set(struct gc0310_device *dev, u32 gain) argument [all...] |
H A D | atomisp-ov2722.c | 265 int gain, int digitgain) 312 /* set analog gain */ 314 OV2722_AGC_ADJ_H, gain); 318 /* set digital gain */ 336 int gain, int digitgain) 342 ret = __ov2722_set_exposure(sd, exposure, gain, digitgain); 352 int gain = exposure->gain[0]; local 353 int digitgain = exposure->gain[1]; 356 if (gain 264 __ov2722_set_exposure(struct v4l2_subdev *sd, int coarse_itg, int gain, int digitgain) argument 335 ov2722_set_exposure(struct v4l2_subdev *sd, int exposure, int gain, int digitgain) argument [all...] |
/linux-master/sound/soc/codecs/ |
H A D | idt821034.c | 21 u16 gain; member in struct:idt821034_amp 342 * The gain programming coefficients should be calculated as: 347 * gain_X is the target gain; 350 * gain_R is the target gain; 353 * A gain programming coefficient is 14-bit wide and in binary format. 361 * coefficient. To program a +3 dB gain in transmit path and a -3.5 dB 362 * gain in receive path: 418 val = idt821034->amps.ch[ch].amp_out.gain; 420 val = idt821034->amps.ch[ch].amp_in.gain; 469 if (amp->gain [all...] |
/linux-master/drivers/media/usb/gspca/ |
H A D | pac7311.c | 27 * does not use this as the quality gain is small and the 37 * 0x0f Master gain 1-245, low value = high gain 38 * 0x10 Another gain 0-15, limited influence (1-2x gain I guess) 44 * for max gain, 0x14 for minimal gain. 297 reg_w(gspca_dev, 0x0f, gspca_dev->gain->maximum - val + 1); 366 we are on a valid point of the autogain gain / 370 gspca_dev->gain [all...] |
/linux-master/drivers/media/i2c/ |
H A D | mt9m111.c | 231 struct v4l2_ctrl *gain; member in struct:mt9m111 805 static int mt9m111_set_global_gain(struct mt9m111 *mt9m111, int gain) argument 810 if (gain > 63 * 2 * 2) 813 if ((gain >= 64 * 2) && (gain < 63 * 2 * 2)) 814 val = (1 << 10) | (1 << 9) | (gain / 4); 815 else if ((gain >= 64) && (gain < 64 * 2)) 816 val = (1 << 9) | (gain / 2); 818 val = gain; [all...] |
H A D | imx274.c | 44 * The input gain is shifted by IMX274_GAIN_SHIFT to get 45 * decimal number. The real gain is 53 * min gain is 1X 54 * max gain is calculated based on IMX274_GAIN_REG_MAX 62 #define IMX274_GAIN_CONST (2048) /* for gain formula */ 537 * @gain: Pointer to gain ctrl structure 544 struct v4l2_ctrl *gain; member in struct:imx274_ctrls 1419 priv->ctrls.gain->val = IMX274_DEF_GAIN; 1465 * gain i 1587 u32 gain, analog_gain, digital_gain, gain_reg; local [all...] |
H A D | ov5693.c | 415 static int ov5693_get_gain(struct ov5693_device *ov5693, u32 *gain) argument 425 *gain = value >> 4; 431 u32 gain) 435 gain &= OV5693_MWB_GAIN_MASK; 437 cci_write(ov5693->regmap, OV5693_MWB_RED_GAIN_REG, gain, &ret); 438 cci_write(ov5693->regmap, OV5693_MWB_GREEN_GAIN_REG, gain, &ret); 439 cci_write(ov5693->regmap, OV5693_MWB_BLUE_GAIN_REG, gain, &ret); 444 static int ov5693_analog_gain_configure(struct ov5693_device *ov5693, u32 gain) argument 448 gain = (gain << 430 ov5693_digital_gain_configure(struct ov5693_device *ov5693, u32 gain) argument [all...] |
/linux-master/sound/parisc/ |
H A D | harmony.h | 26 u32 gain; member in struct:snd_harmony::__anon14349 122 /* input gain */ 129 /* output gain (master volume) */
|
/linux-master/drivers/media/usb/gspca/m5602/ |
H A D | m5602_bridge.h | 139 struct { /* autogain / gain cluster */ 141 struct v4l2_ctrl *gain; member in struct:sd::__anon380
|
/linux-master/drivers/media/usb/pwc/ |
H A D | pwc-v4l.c | 193 /* auto white balance, red gain, blue gain */ 221 /* autogain, gain */ 225 /* Note a register value if 0 means auto gain is on */ 234 pdev->gain = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, 261 /* CODEC2: separate auto gain & auto exposure */ 273 /* CODEC3: both gain and exposure controlled by autogain */ 275 pdev->autogain_expo_cluster[1] = pdev->gain; 544 pdev->gain->val = pdev->last_gain; 548 READ_AGC_FORMATTER, &pdev->gain [all...] |
/linux-master/include/uapi/sound/ |
H A D | firewire.h | 196 * @mixer.source.gain: The gain of source to mixer. 213 * @input.gain_and_invert: The value including gain and invert for input, only for Ultralite, 4 pre 224 __u8 gain[SNDRV_FIREWIRE_MOTU_REGISTER_DSP_MIXER_SRC_COUNT]; member in struct:snd_firewire_motu_register_dsp_parameter::__anon4473::__anon4474
|