/drivers/media/usb/gspca/ |
H A D | autogain_functions.c | 2 * Functions for auto gain. 22 /* auto gain and exposure algorithm based on the knee algorithm described here: 25 Returns 0 if no changes were made, 1 if the gain and or exposure settings 35 s32 gain, orig_gain, exposure, orig_exposure; local 41 orig_gain = gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); 53 if (gain > gain_knee) 54 gain--; 57 else if (gain > gspca_dev->gain 115 s32 gain_low, gain_high, gain, orig_gain, exposure, orig_exposure; local [all...] |
H A D | sonixb.c | 27 0x10 high nibble red gain low nibble blue gain 28 0x11 low nibble green gain 30 0x05 red gain 0-127 31 0x06 blue gain 0-127 32 0x07 green gain 0-127 128 if we adjust the gain or exposure we must ignore atleast the next frame for 243 add a bit additional red gain and a lot additional blue gain, which 308 0x0e Global gain 590 u8 gain = gspca_dev->gain->val; local [all...] |
H A D | vicam.c | 120 s32 gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); local 123 req_data[0] = gain; 313 gspca_dev->gain = v4l2_ctrl_new_std(hdl, NULL,
|
/drivers/isdn/mISDN/ |
H A D | dsp_biquad.h | 30 int32_t gain; member in struct:biquad2_state 41 int32_t gain, int32_t a1, int32_t a2, int32_t b1, int32_t b2) 43 bq->gain = gain; 58 z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2; 40 biquad2_init(struct biquad2_state *bq, int32_t gain, int32_t a1, int32_t a2, int32_t b1, int32_t b2) argument
|
/drivers/iio/magnetometer/ |
H A D | st_magn_core.c | 187 .gain = ST_MAGN_1_FS_AVL_1300_GAIN_XY, 193 .gain = ST_MAGN_1_FS_AVL_1900_GAIN_XY, 199 .gain = ST_MAGN_1_FS_AVL_2500_GAIN_XY, 205 .gain = ST_MAGN_1_FS_AVL_4000_GAIN_XY, 211 .gain = ST_MAGN_1_FS_AVL_4700_GAIN_XY, 217 .gain = ST_MAGN_1_FS_AVL_5600_GAIN_XY, 223 .gain = ST_MAGN_1_FS_AVL_8100_GAIN_XY, 264 .gain = ST_MAGN_2_FS_AVL_4000_GAIN, 269 .gain = ST_MAGN_2_FS_AVL_8000_GAIN, 274 .gain [all...] |
/drivers/media/dvb-frontends/ |
H A D | stv6110.h | 45 u8 gain; member in struct:stv6110_config
|
H A D | stv6110x.h | 49 int (*tuner_set_bbgain) (struct dvb_frontend *fe, u32 gain); 50 int (*tuner_get_bbgain) (struct dvb_frontend *fe, u32 *gain);
|
H A D | stv090x.h | 99 int (*tuner_set_bbgain) (struct dvb_frontend *fe, u32 gain); 100 int (*tuner_get_bbgain) (struct dvb_frontend *fe, u32 *gain);
|
H A D | ix2505v.c | 140 u8 gain, cc, ref, psc, local_osc, lpf; local 148 gain = (state->config->tuner_gain < 4) 151 gain = 0x0; 166 data[0] = ((gain & 0x3) << 5) | (N >> 3);
|
H A D | tda10023.c | 422 u16 gain = ((255-tda10023_readreg(state, 0x17))) + (255-ifgain)/16; local 424 if (gain>0x90) 425 gain=gain+2*(gain-0x90); 426 if (gain>255) 427 gain=255; 429 *strength = (gain<<8)|gain;
|
/drivers/iio/accel/ |
H A D | st_accel_core.c | 205 .gain = ST_ACCEL_1_FS_AVL_2_GAIN, 210 .gain = ST_ACCEL_1_FS_AVL_4_GAIN, 215 .gain = ST_ACCEL_1_FS_AVL_8_GAIN, 220 .gain = ST_ACCEL_1_FS_AVL_16_GAIN, 272 .gain = ST_ACCEL_2_FS_AVL_2_GAIN, 277 .gain = ST_ACCEL_2_FS_AVL_4_GAIN, 282 .gain = ST_ACCEL_2_FS_AVL_8_GAIN, 336 .gain = ST_ACCEL_3_FS_AVL_2_GAIN, 341 .gain = ST_ACCEL_3_FS_AVL_4_GAIN, 346 .gain [all...] |
/drivers/staging/rtl8188eu/include/ |
H A D | odm_HWConfig.h | 65 u8 gain:7, trsw:1; member in struct:phy_rx_agc_info 67 u8 trsw:1, gain:7;
|
/drivers/mfd/ |
H A D | ab8500-gpadc.c | 108 /* This is used to not lose precision when dividing to get gain and offset */ 112 * when dividing to get ibat gain. 130 * struct adc_cal_data - Table for storing gain and offset for the calibrated 132 * @gain: Gain of the ADC channel 136 s64 gain; member in struct:adc_cal_data 200 if (!gpadc->cal_data[ADC_INPUT_VMAIN].gain) { 207 res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VMAIN].gain + 218 if (!gpadc->cal_data[ADC_INPUT_BTEMP].gain) { 225 res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_BTEMP].gain + 232 if (!gpadc->cal_data[ADC_INPUT_VBAT].gain) { [all...] |
/drivers/iio/gyro/ |
H A D | st_gyro_core.c | 141 .gain = ST_GYRO_1_FS_AVL_250_GAIN, 146 .gain = ST_GYRO_1_FS_AVL_500_GAIN, 151 .gain = ST_GYRO_1_FS_AVL_2000_GAIN, 203 .gain = ST_GYRO_2_FS_AVL_250_GAIN, 208 .gain = ST_GYRO_2_FS_AVL_500_GAIN, 213 .gain = ST_GYRO_2_FS_AVL_2000_GAIN, 246 *val2 = gdata->current_fullscale->gain;
|
/drivers/media/usb/gspca/stv06xx/ |
H A D | stv06xx_st6422.c | 65 static int setgain(struct sd *sd, u8 gain); 227 static int setgain(struct sd *sd, u8 gain) argument 231 /* Set red, green, blue, gain */ 232 err = stv06xx_write_bridge(sd, 0x0509, gain); 236 err = stv06xx_write_bridge(sd, 0x050a, gain); 240 err = stv06xx_write_bridge(sd, 0x050b, gain);
|
/drivers/staging/comedi/drivers/ |
H A D | rti800.c | 167 unsigned int gain = CR_RANGE(insn->chanspec); local 175 muxgain_bits = chan | (gain << 5); 184 int delay = (gain == 0) ? 10 : 185 (gain == 1) ? 20 : 186 (gain == 2) ? 40 : 80;
|
/drivers/staging/iio/adc/ |
H A D | ad7780.c | 46 unsigned int gain; member in struct:ad7780_state 98 *val = st->int_vref_mv * st->gain; 120 st->gain = 1; 122 st->gain = 128; 176 st->gain = 1;
|
/drivers/input/ |
H A D | ff-memless.c | 62 int gain; member in struct:ml_device 241 * Combine two effects and apply gain. 245 int gain) 258 x = fixp_mult(fixp_sin(i), level) * gain / 0xffff; 259 y = fixp_mult(-fixp_cos(i), level) * gain / 0xffff; 272 strong = (u32)new->u.rumble.strong_magnitude * gain / 0xffff; 273 weak = (u32)new->u.rumble.weak_magnitude * gain / 0xffff; 299 i = i * gain / 0x7fff; 383 ml_combine_effects(combo_effect, state, ml->gain); 417 * Sets requested gain fo 243 ml_combine_effects(struct ff_effect *effect, struct ml_effect_state *state, int gain) argument 419 ml_ff_set_gain(struct input_dev *dev, u16 gain) argument [all...] |
/drivers/iio/light/ |
H A D | tcs3414.c | 58 u8 gain; member in struct:tcs3414_data 80 /* scale factors: 1/gain */ 152 i = (data->gain & TCS3414_GAIN_MASK) >> TCS3414_GAIN_SHIFT; 176 data->gain &= ~TCS3414_GAIN_MASK; 177 data->gain |= i << TCS3414_GAIN_SHIFT; 180 data->gain); 330 data->gain = ret;
|
/drivers/thermal/samsung/ |
H A D | exynos_tmu_data.c | 60 .gain = 15, 129 .gain = 8, \ 212 .gain = 8, \ 303 .gain = 8, \ 383 .gain = 8, \ 464 .gain = 5, \
|
/drivers/staging/rtl8723au/include/ |
H A D | odm_HWConfig.h | 70 u8 gain:7, trsw:1; member in struct:phy_rx_agc_info 72 u8 trsw:1, gain:7;
|
/drivers/media/platform/omap3isp/ |
H A D | ispresizer.h | 72 u8 gain; /* maximum gain. */ member in struct:resizer_luma_yenh
|
/drivers/media/usb/dvb-usb/ |
H A D | cinergyT2.h | 73 __le16 gain; member in struct:dvbt_get_status_msg
|
/drivers/media/i2c/ |
H A D | mt9t001.c | 477 static u16 mt9t001_gain_value(s32 *gain) argument 488 * To minimize noise, the gain stages should be used in the second 493 if (*gain <= 32) 494 return *gain; 496 if (*gain <= 64) { 497 *gain &= ~1; 498 return (1 << 6) | (*gain >> 1); 501 *gain &= ~7; 502 return ((*gain - 64) << 5) | (1 << 6) | 32; 537 struct v4l2_ctrl *gain local 551 struct v4l2_ctrl *gain = mt9t001->gains[i]; local [all...] |
/drivers/media/i2c/soc_camera/ |
H A D | mt9v022.c | 150 /* gain/auto-gain cluster */ 152 struct v4l2_ctrl *gain; member in struct:mt9v022::__anon2206 514 struct v4l2_ctrl *gain = mt9v022->gain; local 525 range = gain->maximum - gain->minimum; 526 gain->val = ((data - 16) * range + 24) / 48 + gain->minimum; 582 struct v4l2_ctrl *gain local [all...] |