Home
last modified time | relevance | path

Searched refs:gain (Results 1 – 200 of 226) sorted by relevance

12

/linux-4.4.14/drivers/media/usb/gspca/
Dautogain_functions.c35 s32 gain, orig_gain, exposure, orig_exposure; in gspca_expo_autogain() local
41 orig_gain = gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); in gspca_expo_autogain()
53 if (gain > gain_knee) in gspca_expo_autogain()
54 gain--; in gspca_expo_autogain()
57 else if (gain > gspca_dev->gain->default_value) in gspca_expo_autogain()
58 gain--; in gspca_expo_autogain()
61 else if (gain > gspca_dev->gain->minimum) in gspca_expo_autogain()
62 gain--; in gspca_expo_autogain()
66 if (gain < gspca_dev->gain->default_value) in gspca_expo_autogain()
67 gain++; in gspca_expo_autogain()
[all …]
Dsonixb.c590 u8 gain = gspca_dev->gain->val; in setgain() local
597 i2c[3] = 0x3f - gain; in setgain()
598 i2c[4] = 0x3f - gain; in setgain()
599 i2c[5] = 0x3f - gain; in setgain()
609 i2c[4] = 255 - gain; in setgain()
616 gain = 255 - gain; in setgain()
618 i2c[3] |= (gain & 0x80) >> 7; in setgain()
619 i2c[3] |= (gain & 0x40) >> 5; in setgain()
620 i2c[3] |= (gain & 0x20) >> 3; in setgain()
621 i2c[3] |= (gain & 0x10) >> 1; in setgain()
[all …]
Dsn9c2028.c44 struct v4l2_ctrl *gain; member
304 set_gain(gspca_dev, sd->gain->val); in sd_s_ctrl()
325 sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
725 if (sd->gain) in start_genius_videocam_live()
726 set_gain(gspca_dev, v4l2_ctrl_g_ctrl(sd->gain)); in start_genius_videocam_live()
868 s32 cur_gain = v4l2_ctrl_g_ctrl(sd->gain); in do_autogain()
874 if (cur_gain == sd->gain->maximum) in do_autogain()
877 v4l2_ctrl_s_ctrl(sd->gain, cur_gain); in do_autogain()
880 if (cur_gain == sd->gain->minimum) in do_autogain()
883 v4l2_ctrl_s_ctrl(sd->gain, cur_gain); in do_autogain()
Dtouptek.c298 u16 gain, u16 global_gain) in setbgain() argument
303 ((u32)global_gain) * gain / GAIN_MAX; in setbgain()
311 REG_BLUE_GAIN, normalized, gain); in setbgain()
317 u16 gain, u16 global_gain) in setrgain() argument
322 ((u32)global_gain) * gain / GAIN_MAX; in setrgain()
330 REG_RED_GAIN, normalized, gain); in setrgain()
606 setggain(gspca_dev, gspca_dev->gain->val); in sd_s_ctrl()
610 setbgain(gspca_dev, sd->blue->val, gspca_dev->gain->val); in sd_s_ctrl()
614 setrgain(gspca_dev, sd->red->val, gspca_dev->gain->val); in sd_s_ctrl()
636 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
Dsn9c20x.c90 struct v4l2_ctrl *gain; member
1495 u8 gain[8] = {sd->i2c_intf, sd->i2c_addr, in set_gain() local
1499 gain[7] = 0x15; /* or 1d ? */ in set_gain()
1507 gain[0] |= (2 << 4); in set_gain()
1508 gain[3] = ov_gain[g]; in set_gain()
1511 gain[0] |= (3 << 4); in set_gain()
1512 gain[2] = 0x35; in set_gain()
1513 gain[3] = micron1_gain[g] >> 8; in set_gain()
1514 gain[4] = micron1_gain[g]; in set_gain()
1517 gain[0] |= (3 << 4); in set_gain()
[all …]
Ddtcs033.c160 s32 expo, s32 gain) in dtcs033_setexposure() argument
163 u16 sGain = (u16)gain; in dtcs033_setexposure()
194 struct v4l2_ctrl *gain; member
213 ctrl->val, sd->gain->val); in sd_s_ctrl()
238 sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in dtcs033_init_controls()
Dtopro.c1409 static void setexposure(struct gspca_dev *gspca_dev, s32 expo, s32 gain, in setexposure() argument
1420 gain >> 8); in setexposure()
1421 i2c_w(gspca_dev, CX0342_RAW_GBGAIN_L, gain); in setexposure()
1424 gain >> 8); in setexposure()
1425 i2c_w(gspca_dev, CX0342_RAW_GRGAIN_L, gain); in setexposure()
1446 gain); in setexposure()
3978 s32 val = gspca_dev->gain->val; in sd_setgain()
3981 s32 old = gspca_dev->gain->cur.val ? in sd_setgain()
3982 gspca_dev->gain->cur.val : 1; in sd_setgain()
3994 gspca_dev->gain->val, in sd_setgain()
[all …]
Dvicam.c120 s32 gain = v4l2_ctrl_g_ctrl(gspca_dev->gain); in vicam_read_frame() local
123 req_data[0] = gain; in vicam_read_frame()
313 gspca_dev->gain = v4l2_ctrl_new_std(hdl, NULL, in sd_init_controls()
Dpac7311.c310 reg_w(gspca_dev, 0x0f, gspca_dev->gain->maximum - val + 1); in setgain()
383 gspca_dev->gain->val = PAC7311_GAIN_DEFAULT; in sd_s_ctrl()
397 if (gspca_dev->gain->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl()
398 setgain(gspca_dev, gspca_dev->gain->val); in sd_s_ctrl()
429 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
454 setgain(gspca_dev, v4l2_ctrl_g_ctrl(gspca_dev->gain)); in sd_start()
Dpac207.c229 gspca_dev->gain->val = PAC207_GAIN_DEFAULT; in sd_s_ctrl()
244 if (gspca_dev->gain->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl()
246 gspca_dev->gain->val); in sd_s_ctrl()
277 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
311 v4l2_ctrl_g_ctrl(gspca_dev->gain)); in sd_start()
Dpac7302.c484 if (gspca_dev->gain->val < 32) { in setgain()
485 reg10 = gspca_dev->gain->val; in setgain()
489 reg12 = gspca_dev->gain->val - 31; in setgain()
599 gspca_dev->gain->val = PAC7302_GAIN_DEFAULT; in sd_s_ctrl()
625 if (gspca_dev->gain->is_new || (ctrl->is_new && ctrl->val)) in sd_s_ctrl()
679 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
Dsq930x.c41 struct v4l2_ctrl *gain; member
758 static void setexposure(struct gspca_dev *gspca_dev, s32 expo, s32 gain) in setexposure() argument
785 buf[i++] = gain; in setexposure()
801 buf[i++] = 0x80 + gain / 2; /* val L */ in setexposure()
1047 v4l2_ctrl_g_ctrl(sd->gain)); in sd_dq_callback()
1084 setexposure(gspca_dev, ctrl->val, sd->gain->val); in sd_s_ctrl()
1103 sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
Dov534.c70 struct v4l2_ctrl *gain; member
1077 if (ctrl->val && sd->gain && gspca_dev->streaming) in ov534_g_volatile_ctrl()
1078 sd->gain->val = getgain(gspca_dev); in ov534_g_volatile_ctrl()
1116 if (!gspca_dev->usb_err && !ctrl->val && sd->gain) in ov534_s_ctrl()
1117 setgain(gspca_dev, sd->gain->val); in ov534_s_ctrl()
1216 sd->gain = v4l2_ctrl_new_std(hdl, &ov534_ctrl_ops, in sd_init_controls()
1361 if (sd->gain) in sd_start()
1362 setgain(gspca_dev, v4l2_ctrl_g_ctrl(sd->gain)); in sd_start()
Dcpia1.c281 u8 gain; member
529 sd->params.exposure.gain = gspca_dev->usb_buf[0]; in do_command()
639 params->exposure.gain = 0; in reset_camera_params()
847 sd->params.exposure.gain, in command_setexposure()
863 sd->params.exposure.gain, in command_setexposure()
1037 currentexp = currentexp << sd->params.exposure.gain; in set_flicker()
1038 sd->params.exposure.gain = 0; in set_flicker()
1091 while (startexp > MAX_EXP && sd->params.exposure.gain < in set_flicker()
1094 ++sd->params.exposure.gain; in set_flicker()
1348 if (sd->params.exposure.gain > 0) { in monitor_exposure()
[all …]
Dnw80x.c1985 if (gspca_dev->gain->is_new) in sd_s_ctrl()
1986 setgain(gspca_dev, gspca_dev->gain->val); in sd_s_ctrl()
2018 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
2026 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
Dse401.c176 u16 gain = 63 - val; in setgain() local
179 se401_set_feature(gspca_dev, HV7131_REG_ARCG, gain); in setgain()
181 se401_set_feature(gspca_dev, HV7131_REG_AGCG, gain); in setgain()
183 se401_set_feature(gspca_dev, HV7131_REG_ABCG, gain); in setgain()
Dt613.c46 struct v4l2_ctrl *gain; member
509 green_gain = sd->gain->val; in setawb_n_RGB()
900 sd->gain->val = green_gain; in sd_g_volatile_ctrl()
982 sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
Dgspca.h166 struct v4l2_ctrl *gain; member
Detoms.c617 static void Et_setgainG(struct gspca_dev *gspca_dev, __u8 gain) in Et_setgainG() argument
625 i2c_w(gspca_dev, PAS106_REG0e, &gain, 1, 1); in Et_setgainG()
Dsonixj.c1662 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
2003 rgain[3] = gspca_dev->gain->val; in setgain()
/linux-4.4.14/include/net/
Dregulatory.h208 #define DBI_TO_MBI(gain) ((gain) * 100) argument
209 #define MBI_TO_DBI(gain) ((gain) / 100) argument
210 #define DBM_TO_MBM(gain) ((gain) * 100) argument
211 #define MBM_TO_DBM(gain) ((gain) / 100) argument
213 #define REG_RULE_EXT(start, end, bw, gain, eirp, dfs_cac, reg_flags) \ argument
218 .power_rule.max_antenna_gain = DBI_TO_MBI(gain), \
224 #define REG_RULE(start, end, bw, gain, eirp, reg_flags) \ argument
225 REG_RULE_EXT(start, end, bw, gain, eirp, 0, reg_flags)
/linux-4.4.14/Documentation/sound/oss/
DWaveArtist16 00 | 0 | 0 0 1 1 | left line mixer gain | left aux1 mixer gain |lmute|
18 01 | 0 | 0 1 0 1 | left aux2 mixer gain | right 2 left mic gain |mmute|
20 02 | 0 | 0 1 1 1 | left mic mixer gain | left mic | left mixer gain |dith |
22 03 | 0 | 1 0 0 1 | left mixer input select |lrfg | left ADC gain |
24 04 | 0 | 1 0 1 1 | right line mixer gain | right aux1 mixer gain |rmute|
26 05 | 0 | 1 1 0 1 | right aux2 mixer gain | left 2 right mic gain |test |
28 06 | 0 | 1 1 1 1 | right mic mixer gain | right mic |right mixer gain |rbyps|
30 07 | 1 | 0 0 0 1 | right mixer select |rrfg | right ADC gain |
32 08 | 1 | 0 0 1 1 | mono mixer gain |right ADC mux sel|left ADC mux sel |
/linux-4.4.14/Documentation/devicetree/bindings/iio/light/
Dus5182d.txt12 - upisemi,upper-dark-gain: 8-bit dark gain compensation factor(4 int and 4
14 - upisemi,lower-dark-gain: 8-bit dark gain compensation factor(4 int and 4
22 There will be no dark-gain compensation by default when ALS > thresh
23 (0 * dark-gain), and a 1.35 compensation factor when ALS < thresh.
32 upisemi,upper-dark-gain = /bits/ 8 <0x00>;
33 upisemi,lower-dark-gain = /bits/ 8 <0x16>;
Dtsl2563.txt10 - amstaos,cover-comp-gain : integer used as multiplier for gain
18 amstaos,cover-comp-gain = <16>;
/linux-4.4.14/drivers/iio/magnetometer/
Dst_magn_core.c266 .gain = ST_MAGN_0_FS_AVL_1300_GAIN_XY,
272 .gain = ST_MAGN_0_FS_AVL_1900_GAIN_XY,
278 .gain = ST_MAGN_0_FS_AVL_2500_GAIN_XY,
284 .gain = ST_MAGN_0_FS_AVL_4000_GAIN_XY,
290 .gain = ST_MAGN_0_FS_AVL_4700_GAIN_XY,
296 .gain = ST_MAGN_0_FS_AVL_5600_GAIN_XY,
302 .gain = ST_MAGN_0_FS_AVL_8100_GAIN_XY,
345 .gain = ST_MAGN_1_FS_AVL_1300_GAIN_XY,
351 .gain = ST_MAGN_1_FS_AVL_1900_GAIN_XY,
357 .gain = ST_MAGN_1_FS_AVL_2500_GAIN_XY,
[all …]
/linux-4.4.14/drivers/isdn/mISDN/
Ddsp_biquad.h30 int32_t gain; member
41 int32_t gain, int32_t a1, int32_t a2, int32_t b1, int32_t b2) in biquad2_init() argument
43 bq->gain = gain; in biquad2_init()
58 z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2; in biquad2()
/linux-4.4.14/drivers/iio/accel/
Dst_accel_core.c267 .gain = ST_ACCEL_1_FS_AVL_2_GAIN,
272 .gain = ST_ACCEL_1_FS_AVL_4_GAIN,
277 .gain = ST_ACCEL_1_FS_AVL_8_GAIN,
282 .gain = ST_ACCEL_1_FS_AVL_16_GAIN,
335 .gain = ST_ACCEL_2_FS_AVL_2_GAIN,
340 .gain = ST_ACCEL_2_FS_AVL_4_GAIN,
345 .gain = ST_ACCEL_2_FS_AVL_8_GAIN,
400 .gain = ST_ACCEL_3_FS_AVL_2_GAIN,
405 .gain = ST_ACCEL_3_FS_AVL_4_GAIN,
410 .gain = ST_ACCEL_3_FS_AVL_6_GAIN,
[all …]
/linux-4.4.14/drivers/mfd/
Dab8500-gpadc.c136 s64 gain; member
200 if (!gpadc->cal_data[ADC_INPUT_VMAIN].gain) { in ab8500_gpadc_ad_to_voltage()
207 res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VMAIN].gain + in ab8500_gpadc_ad_to_voltage()
218 if (!gpadc->cal_data[ADC_INPUT_BTEMP].gain) { in ab8500_gpadc_ad_to_voltage()
225 res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_BTEMP].gain + in ab8500_gpadc_ad_to_voltage()
232 if (!gpadc->cal_data[ADC_INPUT_VBAT].gain) { in ab8500_gpadc_ad_to_voltage()
239 res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VBAT].gain + in ab8500_gpadc_ad_to_voltage()
276 if (!gpadc->cal_data[ADC_INPUT_IBAT].gain) { in ab8500_gpadc_ad_to_voltage()
283 res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_IBAT].gain + in ab8500_gpadc_ad_to_voltage()
738 gpadc->cal_data[ADC_INPUT_VMAIN].gain = CALIB_SCALE * in ab8500_gpadc_read_calibration_data()
[all …]
/linux-4.4.14/sound/pci/echoaudio/
Dindigoio_dsp.c33 int gain);
105 int gain) in set_vmixer_gain() argument
116 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
118 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
121 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dindigodj_dsp.c33 int gain);
135 int gain) in set_vmixer_gain() argument
146 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
148 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
151 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dindigo_dsp.c33 int gain);
135 int gain) in set_vmixer_gain() argument
146 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
148 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
151 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dindigo_express_dsp.c78 int gain) in set_vmixer_gain() argument
89 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
91 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
94 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dmia_dsp.c36 int gain);
169 int gain) in set_vmixer_gain() argument
180 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
182 chip->comm_page->vmixer[index] = gain; in set_vmixer_gain()
185 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dgina20_dsp.c178 static int set_input_gain(struct echoaudio *chip, u16 input, int gain) in set_input_gain() argument
186 chip->input_gain[input] = gain; in set_input_gain()
187 gain += GL20_INPUT_GAIN_MAGIC_NUMBER; in set_input_gain()
188 chip->comm_page->line_in_level[input] = gain; in set_input_gain()
Dlayla20_dsp.c252 static int set_input_gain(struct echoaudio *chip, u16 input, int gain) in set_input_gain() argument
260 chip->input_gain[input] = gain; in set_input_gain()
261 gain += GL20_INPUT_GAIN_MAGIC_NUMBER; in set_input_gain()
262 chip->comm_page->line_in_level[input] = gain; in set_input_gain()
Dechoaudio.c1019 int c, changed, gain; in snd_echo_output_gain_put() local
1025 gain = ucontrol->value.integer.value[c]; in snd_echo_output_gain_put()
1027 if (gain < ECHOGAIN_MINOUT || gain > ECHOGAIN_MAXOUT) in snd_echo_output_gain_put()
1029 if (chip->output_gain[c] != gain) { in snd_echo_output_gain_put()
1030 set_output_gain(chip, c, gain); in snd_echo_output_gain_put()
1100 int c, gain, changed; in snd_echo_input_gain_put() local
1106 gain = ucontrol->value.integer.value[c]; in snd_echo_input_gain_put()
1108 if (gain < ECHOGAIN_MININP || gain > ECHOGAIN_MAXINP) in snd_echo_input_gain_put()
1110 if (chip->input_gain[c] != gain) { in snd_echo_input_gain_put()
1111 set_input_gain(chip, c, gain); in snd_echo_input_gain_put()
[all …]
Dindigoiox_dsp.c31 u16 pipe, int gain);
Dindigodjx_dsp.c31 u16 pipe, int gain);
Dechoaudio_dsp.c552 static int set_output_gain(struct echoaudio *chip, u16 channel, s8 gain) in set_output_gain() argument
561 chip->output_gain[channel] = gain; in set_output_gain()
562 chip->comm_page->line_out_level[channel] = gain; in set_output_gain()
571 s8 gain) in set_monitor_gain() argument
580 chip->monitor_gain[output][input] = gain; in set_monitor_gain()
581 chip->comm_page->monitors[monitor_index(chip, output, input)] = gain; in set_monitor_gain()
/linux-4.4.14/drivers/iio/gyro/
Dst_gyro_core.c167 .gain = ST_GYRO_1_FS_AVL_250_GAIN,
172 .gain = ST_GYRO_1_FS_AVL_500_GAIN,
177 .gain = ST_GYRO_1_FS_AVL_2000_GAIN,
230 .gain = ST_GYRO_2_FS_AVL_250_GAIN,
235 .gain = ST_GYRO_2_FS_AVL_500_GAIN,
240 .gain = ST_GYRO_2_FS_AVL_2000_GAIN,
289 .gain = ST_GYRO_3_FS_AVL_250_GAIN,
294 .gain = ST_GYRO_3_FS_AVL_500_GAIN,
299 .gain = ST_GYRO_3_FS_AVL_2000_GAIN,
332 *val2 = gdata->current_fullscale->gain; in st_gyro_read_raw()
/linux-4.4.14/Documentation/devicetree/bindings/regulator/
Dmax1586-regulator.txt6 - v3-gain: integer specifying the V3 gain as per datasheet
16 v3-gain = <1000000>;
/linux-4.4.14/drivers/media/usb/gspca/stv06xx/
Dstv06xx_st6422.c65 static int setgain(struct sd *sd, u8 gain);
227 static int setgain(struct sd *sd, u8 gain) in setgain() argument
232 err = stv06xx_write_bridge(sd, 0x0509, gain); in setgain()
236 err = stv06xx_write_bridge(sd, 0x050a, gain); in setgain()
240 err = stv06xx_write_bridge(sd, 0x050b, gain); in setgain()
Dstv06xx_pb0100.c54 struct v4l2_ctrl *gain; member
103 err = pb0100_set_gain(gspca_dev, ctrls->gain->val); in pb0100_s_ctrl()
151 ctrls->gain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
355 val += ctrls->gain->val; in pb0100_set_red_balance()
373 val += ctrls->gain->val; in pb0100_set_blue_balance()
/linux-4.4.14/drivers/input/
Dff-memless.c62 int gain; member
257 int gain) in ml_combine_effects() argument
270 x = fixp_mult(fixp_sin16(i), level) * gain / 0xffff; in ml_combine_effects()
271 y = fixp_mult(-fixp_cos16(i), level) * gain / 0xffff; in ml_combine_effects()
284 strong = (u32)new->u.rumble.strong_magnitude * gain / 0xffff; in ml_combine_effects()
285 weak = (u32)new->u.rumble.weak_magnitude * gain / 0xffff; in ml_combine_effects()
311 i = i * gain / 0x7fff; in ml_combine_effects()
395 ml_combine_effects(combo_effect, state, ml->gain); in ml_get_combo_effect()
431 static void ml_ff_set_gain(struct input_dev *dev, u16 gain) in ml_ff_set_gain() argument
436 ml->gain = gain; in ml_ff_set_gain()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/hwmon/
Dads1015.txt18 - pga is the programmable gain amplifier (values are full scale)
64 - ti,gain : the programmable gain amplifier setting
71 ti,gain = <3>;
/linux-4.4.14/Documentation/devicetree/bindings/input/
Dcap11xx.txt24 microchip,sensor-gain: Defines the gain of the sensor circuitry. This
29 By default, a gain of 1 is set.
50 microchip,sensor-gain = <2>;
/linux-4.4.14/drivers/staging/iio/adc/
Dad7780.c46 unsigned int gain; member
98 *val = st->int_vref_mv * st->gain; in ad7780_read_raw()
120 st->gain = 1; in ad7780_postprocess_sample()
122 st->gain = 128; in ad7780_postprocess_sample()
176 st->gain = 1; in ad7780_probe()
/linux-4.4.14/drivers/media/i2c/
Dmt9t001.c482 static u16 mt9t001_gain_value(s32 *gain) in mt9t001_gain_value() argument
498 if (*gain <= 32) in mt9t001_gain_value()
499 return *gain; in mt9t001_gain_value()
501 if (*gain <= 64) { in mt9t001_gain_value()
502 *gain &= ~1; in mt9t001_gain_value()
503 return (1 << 6) | (*gain >> 1); in mt9t001_gain_value()
506 *gain &= ~7; in mt9t001_gain_value()
507 return ((*gain - 64) << 5) | (1 << 6) | 32; in mt9t001_gain_value()
542 struct v4l2_ctrl *gain = mt9t001->gains[i]; in mt9t001_s_ctrl() local
544 if (gain->val != gain->cur.val) in mt9t001_s_ctrl()
[all …]
Dov9650.c218 struct v4l2_ctrl *gain; member
699 if (ctrls->gain->is_new && !auto_gain) { in ov965x_set_gain()
700 unsigned int gain = ctrls->gain->val; in ov965x_set_gain() local
708 if (gain >= (1 << m) * 16) in ov965x_set_gain()
710 rgain = (gain - ((1 << m) * 16)) / (1 << m); in ov965x_set_gain()
725 ctrls->gain->val = (1 << m) * (16 + (rgain & 0xf)); in ov965x_set_gain()
860 unsigned int exposure, gain, m; in __g_volatile_ctrl() local
877 gain = ((reg1 >> 6) << 8) | reg0; in __g_volatile_ctrl()
878 m = 0x01 << fls(gain >> 4); in __g_volatile_ctrl()
879 ov965x->ctrls.gain->val = m * (16 + (gain & 0xf)); in __g_volatile_ctrl()
[all …]
Dov7670.c217 struct v4l2_ctrl *gain; member
1349 unsigned char gain; in ov7670_g_gain() local
1351 ret = ov7670_read(sd, REG_GAIN, &gain); in ov7670_g_gain()
1352 *value = gain; in ov7670_g_gain()
1440 return ov7670_g_gain(sd, &info->gain->val); in ov7670_g_volatile_ctrl()
1467 return ov7670_s_gain(sd, info->gain->val); in ov7670_s_ctrl()
1628 info->gain = v4l2_ctrl_new_std(&info->hdl, &ov7670_ctrl_ops, in ov7670_probe()
Dsaa7115.c82 struct v4l2_ctrl *gain; member
824 state->gain->val = in saa711x_g_volatile_ctrl()
856 saa711x_write(sd, R_0F_CHROMA_GAIN_CNTL, state->gain->val); in saa711x_s_ctrl()
858 saa711x_write(sd, R_0F_CHROMA_GAIN_CNTL, state->gain->val | 0x80); in saa711x_s_ctrl()
1850 state->gain = v4l2_ctrl_new_std(hdl, &saa711x_ctrl_ops, in saa711x_probe()
Ds5k6aa.c220 struct v4l2_ctrl *gain; member
525 static int s5k6aa_set_user_gain(struct i2c_client *client, int gain) in s5k6aa_set_user_gain() argument
527 int ret = s5k6aa_write(client, REG_SF_USR_TOT_GAIN, gain); in s5k6aa_set_user_gain()
553 ret = s5k6aa_set_user_gain(c, s5k6aa->ctrls.gain->val); in s5k6aa_set_auto_exposure()
1393 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, in s5k6aa_initialize_ctrls()
Ds5k5baf.c271 struct v4l2_ctrl *gain; member
697 static void s5k5baf_hw_set_user_gain(struct s5k5baf *state, int gain) in s5k5baf_hw_set_user_gain() argument
699 s5k5baf_write_seq(state, REG_SF_USR_TOT_GAIN, gain, 1); in s5k5baf_hw_set_user_gain()
711 s5k5baf_hw_set_user_gain(state, state->ctrls.gain->val); in s5k5baf_hw_set_auto_exposure()
1664 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, in s5k5baf_initialize_ctrls()
/linux-4.4.14/sound/parisc/
Dharmony.c171 harmony_write(h, HARMONY_GAINCTL, h->st.gain); in harmony_unmute()
691 harmony_write(h, HARMONY_GAINCTL, h->st.gain); in snd_harmony_set_new_gain()
724 left = (h->st.gain >> shift_left) & mask; in snd_harmony_volume_get()
725 right = (h->st.gain >> shift_right) & mask; in snd_harmony_volume_get()
750 int old_gain = h->st.gain; in snd_harmony_volume_put()
757 h->st.gain &= ~( (mask << shift_left ) ); in snd_harmony_volume_put()
758 h->st.gain |= (left << shift_left); in snd_harmony_volume_put()
764 h->st.gain &= ~( (mask << shift_right) ); in snd_harmony_volume_put()
765 h->st.gain |= (right << shift_right); in snd_harmony_volume_put()
772 return h->st.gain != old_gain; in snd_harmony_volume_put()
[all …]
Dharmony.h25 u32 gain; member
/linux-4.4.14/drivers/media/i2c/soc_camera/
Dmt9v022.c152 struct v4l2_ctrl *gain; member
527 struct v4l2_ctrl *gain = mt9v022->gain; in mt9v022_g_volatile_ctrl() local
538 range = gain->maximum - gain->minimum; in mt9v022_g_volatile_ctrl()
539 gain->val = ((data - 16) * range + 24) / 48 + gain->minimum; in mt9v022_g_volatile_ctrl()
595 struct v4l2_ctrl *gain = mt9v022->gain; in mt9v022_s_ctrl() local
597 unsigned long range = gain->maximum - gain->minimum; in mt9v022_s_ctrl()
599 unsigned long gain_val = ((gain->val - (s32)gain->minimum) * in mt9v022_s_ctrl()
913 mt9v022->gain = v4l2_ctrl_new_std(&mt9v022->hdl, &mt9v022_ctrl_ops, in mt9v022_probe()
Dmt9m111.c207 struct v4l2_ctrl *gain; member
663 static int mt9m111_set_global_gain(struct mt9m111 *mt9m111, int gain) in mt9m111_set_global_gain() argument
668 if (gain > 63 * 2 * 2) in mt9m111_set_global_gain()
671 if ((gain >= 64 * 2) && (gain < 63 * 2 * 2)) in mt9m111_set_global_gain()
672 val = (1 << 10) | (1 << 9) | (gain / 4); in mt9m111_set_global_gain()
673 else if ((gain >= 64) && (gain < 64 * 2)) in mt9m111_set_global_gain()
674 val = (1 << 9) | (gain / 2); in mt9m111_set_global_gain()
676 val = gain; in mt9m111_set_global_gain()
727 v4l2_ctrl_s_ctrl(mt9m111->gain, mt9m111_get_global_gain(mt9m111)); in mt9m111_suspend()
975 mt9m111->gain = v4l2_ctrl_new_std(&mt9m111->hdl, &mt9m111_ctrl_ops, in mt9m111_probe()
Dmt9m001.c429 unsigned long gain = ((ctrl->val - (s32)ctrl->default_value - 1) * in mt9m001_s_ctrl() local
432 if (gain <= 32) in mt9m001_s_ctrl()
433 data = gain; in mt9m001_s_ctrl()
434 else if (gain <= 64) in mt9m001_s_ctrl()
435 data = ((gain - 32) * 16 + 16) / 32 + 80; in mt9m001_s_ctrl()
437 data = ((gain - 64) * 7 + 28) / 56 + 96; in mt9m001_s_ctrl()
Dmt9t031.c496 unsigned long gain = ((ctrl->val - (s32)ctrl->default_value - 1) * in mt9t031_s_ctrl() local
499 if (gain <= 32) /* calculated gain 9..32 -> 9..32 */ in mt9t031_s_ctrl()
500 data = gain; in mt9t031_s_ctrl()
501 else if (gain <= 64) /* calculated gain 33..64 -> 0x51..0x60 */ in mt9t031_s_ctrl()
502 data = ((gain - 32) * 16 + 16) / 32 + 80; in mt9t031_s_ctrl()
505 data = (((gain - 64 + 7) * 32) & 0xff00) | 0x60; in mt9t031_s_ctrl()
Dov6650.c191 struct v4l2_ctrl *gain; member
321 priv->gain->val = reg; in ov6550_g_volatile_ctrl()
354 ret = ov6650_reg_write(client, REG_GAIN, priv->gain->val); in ov6550_s_ctrl()
997 priv->gain = v4l2_ctrl_new_std(&priv->hdl, &ov6550_ctrl_ops, in ov6650_probe()
/linux-4.4.14/drivers/media/dvb-frontends/
Dtda10023.c423 u16 gain = ((255-tda10023_readreg(state, 0x17))) + (255-ifgain)/16; in tda10023_read_signal_strength() local
425 if (gain>0x90) in tda10023_read_signal_strength()
426 gain=gain+2*(gain-0x90); in tda10023_read_signal_strength()
427 if (gain>255) in tda10023_read_signal_strength()
428 gain=255; in tda10023_read_signal_strength()
430 *strength = (gain<<8)|gain; in tda10023_read_signal_strength()
Ddib0070.c609 static u16 dib0070_read_wbd_offset(struct dib0070_state *state, u8 gain) in dib0070_read_wbd_offset() argument
616 …dib0070_write_reg(state, 0x0f, (1 << 14) | (2 << 12) | (gain << 9) | (1 << 8) | (1 << 7) | (0 << 0… in dib0070_read_wbd_offset()
625 u8 gain; in dib0070_wbd_offset_calibration() local
626 for (gain = 6; gain < 8; gain++) { in dib0070_wbd_offset_calibration()
627 state->wbd_offset_3_3[gain - 6] = ((dib0070_read_wbd_offset(state, gain) * 8 * 18 / 33 + 1) / 2); in dib0070_wbd_offset_calibration()
628 dprintk("Gain: %d, WBDOffset (3.3V) = %hd", gain, state->wbd_offset_3_3[gain-6]); in dib0070_wbd_offset_calibration()
Dstv6110x.h49 int (*tuner_set_bbgain) (struct dvb_frontend *fe, u32 gain);
50 int (*tuner_get_bbgain) (struct dvb_frontend *fe, u32 *gain);
Dix2505v.c140 u8 gain, cc, ref, psc, local_osc, lpf; in ix2505v_set_params() local
148 gain = (state->config->tuner_gain < 4) in ix2505v_set_params()
151 gain = 0x0; in ix2505v_set_params()
166 data[0] = ((gain & 0x3) << 5) | (N >> 3); in ix2505v_set_params()
Dts2020.c469 __s64 gain; in ts2020_read_signal_strength() local
479 gain = c->strength.stat[0].svalue; in ts2020_read_signal_strength()
482 if (gain < -85000) in ts2020_read_signal_strength()
485 else if (gain < -65000) in ts2020_read_signal_strength()
487 strength = 0 + div64_s64((85000 + gain) * 3, 1000); in ts2020_read_signal_strength()
488 else if (gain < -45000) in ts2020_read_signal_strength()
490 strength = 60 + div64_s64((65000 + gain) * 3, 2000); in ts2020_read_signal_strength()
493 strength = 90 + div64_s64((45000 + gain), 5000); in ts2020_read_signal_strength()
Dstv090x.h99 int (*tuner_set_bbgain)(struct dvb_frontend *fe, u32 gain);
100 int (*tuner_get_bbgain)(struct dvb_frontend *fe, u32 *gain);
Dtda10021.c356 u8 gain = tda10021_readreg(state, 0x17); in tda10021_read_signal_strength() local
359 gain = ~gain; in tda10021_read_signal_strength()
360 *strength = (gain << 8) | gain; in tda10021_read_signal_strength()
Dl64781.c366 int gain = l64781_readreg (state, 0x0e); in l64781_read_status() local
373 if (gain > 5) in l64781_read_status()
407 u8 gain = l64781_readreg (state, 0x0e); in l64781_read_signal_strength() local
408 *signal_strength = (gain << 8) | gain; in l64781_read_signal_strength()
Dstv6110x.c267 static int stv6110x_get_bbgain(struct dvb_frontend *fe, u32 *gain) in stv6110x_get_bbgain() argument
272 *gain = 2 * STV6110x_GETFIELD(CTRL2_BBGAIN, stv6110x->regs[STV6110x_CTRL2]); in stv6110x_get_bbgain()
277 static int stv6110x_set_bbgain(struct dvb_frontend *fe, u32 gain) in stv6110x_set_bbgain() argument
281 STV6110x_SETFIELD(stv6110x->regs[STV6110x_CTRL2], CTRL2_BBGAIN, gain / 2); in stv6110x_set_bbgain()
Dstv6110.c44 u8 gain; member
289 priv->regs[RSTV6110_CTRL2] |= (priv->gain & 0x0f); in stv6110_set_frequency()
443 priv->gain = config->gain; in stv6110_attach()
Dstv6110.h45 u8 gain; member
Dves1820.c284 u8 gain = ves1820_readreg(state, 0x17); in ves1820_read_signal_strength() local
285 *strength = (gain << 8) | gain; in ves1820_read_signal_strength()
Ddib0090.c155 u16 gain[2]; /* for channel monitoring */ member
929 u16 i, v, gain_reg[4] = { 0 }, gain; in dib0090_gain_apply() local
951 gain = ((state->rf_gain_limit >> WBD_ALPHA) + state->bb_ramp[0]) << GAIN_ALPHA; in dib0090_gain_apply()
952 if (gain_delta >= ((s16) gain - state->current_gain)) /* overflow */ in dib0090_gain_apply()
953 state->current_gain = gain; in dib0090_gain_apply()
961 gain = state->current_gain >> GAIN_ALPHA; in dib0090_gain_apply()
964 if (gain > (state->rf_gain_limit >> WBD_ALPHA)) { in dib0090_gain_apply()
966 bb = gain - rf; in dib0090_gain_apply()
970 rf = gain; in dib0090_gain_apply()
974 state->gain[0] = rf; in dib0090_gain_apply()
[all …]
Dstb0899_drv.c1441 u32 SearchRange, gain; in stb0899_search() local
1457 gain = 8; /* 15Mb < srate < 45Mb, gain = 8dB */ in stb0899_search()
1459 gain = 12; /* 5Mb < srate < 15Mb, gain = 12dB */ in stb0899_search()
1461 gain = 14; /* 1Mb < srate < 5Mb, gain = 14db */ in stb0899_search()
1462 state->config->tuner_set_rfsiggain(fe, gain); in stb0899_search()
/linux-4.4.14/drivers/iio/light/
Dtcs3414.c58 u8 gain; member
152 i = (data->gain & TCS3414_GAIN_MASK) >> TCS3414_GAIN_SHIFT; in tcs3414_read_raw()
176 data->gain &= ~TCS3414_GAIN_MASK; in tcs3414_write_raw()
177 data->gain |= i << TCS3414_GAIN_SHIFT; in tcs3414_write_raw()
180 data->gain); in tcs3414_write_raw()
330 data->gain = ret; in tcs3414_probe()
Drpr0521.c109 const struct rpr0521_gain *gain; member
116 .gain = rpr0521_als_gain,
123 .gain = rpr0521_als_gain,
130 .gain = rpr0521_pxs_gain,
290 *val = rpr0521_gain[chan].gain[idx].scale; in rpr0521_get_gain()
291 *val2 = rpr0521_gain[chan].gain[idx].uscale; in rpr0521_get_gain()
303 if (val == rpr0521_gain[chan].gain[i].scale && in rpr0521_set_gain()
304 val2 == rpr0521_gain[chan].gain[i].uscale) { in rpr0521_set_gain()
Dltr501.c712 static int ltr501_get_gain_index(struct ltr501_gain *gain, int size, in ltr501_get_gain_index() argument
718 if (val == gain[i].scale && val2 == gain[i].uscale) in ltr501_get_gain_index()
/linux-4.4.14/drivers/iio/adc/
Dqcom-spmi-iadc.c121 u16 gain; member
338 vsense_uv /= (s32)iadc->gain - iadc->offset[chan->channel]; in iadc_read_raw()
343 iadc->offset[chan->channel], iadc->gain, in iadc_read_raw()
375 ret = iadc_do_conversion(iadc, IADC_GAIN_17P857MV, &iadc->gain); in iadc_update_offset()
384 if (iadc->gain == iadc->offset[IADC_INT_RSENSE]) { in iadc_update_offset()
386 iadc->gain); in iadc_update_offset()
395 if (iadc->gain == iadc->offset[IADC_EXT_RSENSE]) { in iadc_update_offset()
397 iadc->gain); in iadc_update_offset()
Dtwl6030-gpadc.c81 s32 gain; member
504 gpadc->twl6030_cal_tbl[i].gain; in twl6030_gpadc_get_processed()
577 int b, k, gain, x1, x2, i; in twl6030_calibrate_channel() local
583 gain = ((ideal[i].volt2 - ideal[i].volt1) * 1000) / in twl6030_calibrate_channel()
595 gpadc->twl6030_cal_tbl[i].gain = gain; in twl6030_calibrate_channel()
603 dev_dbg(gpadc->dev, "GPADC Gain for Chn: %d = %d\n", channel, gain); in twl6030_calibrate_channel()
Dnau7802.c93 static int nau7802_set_gain(struct nau7802_state *st, int gain) in nau7802_set_gain() argument
105 gain); in nau7802_set_gain()
/linux-4.4.14/Documentation/sound/alsa/soc/
Dpops_clicks.txt29 a PGA (programmable gain amplifier) before being output to the speakers.
48 when a volume control is changed near its maximum gain value. The zipper noise
49 is heard when the gain increase or decrease changes the mean audio signal
51 for each volume control. The ZC forces the gain change to occur when the signal
Ddapm.txt55 o PGA - A programmable gain amplifier or attenuation widget.
/linux-4.4.14/drivers/staging/comedi/drivers/
Drti800.c166 unsigned int gain = CR_RANGE(insn->chanspec); in rti800_ai_insn_read() local
174 muxgain_bits = chan | (gain << 5); in rti800_ai_insn_read()
183 int delay = (gain == 0) ? 10 : in rti800_ai_insn_read()
184 (gain == 1) ? 20 : in rti800_ai_insn_read()
185 (gain == 2) ? 40 : 80; in rti800_ai_insn_read()
Dcb_pcidda.c274 unsigned int gain; in cb_pcidda_calibrate() local
281 gain = devpriv->eeprom_data[0x8 + index]; in cb_pcidda_calibrate()
289 (gain >> 8) & 0xff); in cb_pcidda_calibrate()
291 gain & 0xff); in cb_pcidda_calibrate()
Dni_atmio16d.c295 unsigned int sample_count, tmp, chan, gain; in atmio16d_ai_cmd() local
317 gain = CR_RANGE(cmd->chanlist[i]); in atmio16d_ai_cmd()
319 tmp = chan | (gain << 6); in atmio16d_ai_cmd()
464 int gain; in atmio16d_ai_insn_read() local
468 gain = CR_RANGE(insn->chanspec); in atmio16d_ai_insn_read()
476 outw(chan | (gain << 6), dev->iobase + MUX_GAIN_REG); in atmio16d_ai_insn_read()
Ddas800.c381 unsigned int gain = CR_RANGE(cmd->chanlist[0]); in das800_ai_do_cmd() local
396 if (board->resolution == 12 && gain > 0) in das800_ai_do_cmd()
397 gain += 0x7; in das800_ai_do_cmd()
398 gain &= 0xf; in das800_ai_do_cmd()
399 outb(gain, dev->iobase + DAS800_GAIN); in das800_ai_do_cmd()
Ddaqboard2000.c287 static void setup_sampling(struct comedi_device *dev, int chan, int gain) in setup_sampling() argument
349 int gain, chan; in daqboard2000_ai_insn_read() local
365 gain = CR_RANGE(insn->chanspec); in daqboard2000_ai_insn_read()
373 setup_sampling(dev, chan, gain); in daqboard2000_ai_insn_read()
Ddt3000.c258 unsigned int gain) in dt3k_readsingle() argument
263 writew(gain, dev->mmio + DPR_PARAMS(1)); in dt3k_readsingle()
520 unsigned int chan, gain, aref; in dt3k_ai_insn_read() local
523 gain = CR_RANGE(insn->chanspec); in dt3k_ai_insn_read()
528 data[i] = dt3k_readsingle(dev, DPR_SUBSYS_AI, chan, gain); in dt3k_ai_insn_read()
Ddt9812.c387 enum dt9812_gain gain) in dt9812_configure_gain() argument
393 gain <<= 1; in dt9812_configure_gain()
400 switch (gain) { in dt9812_configure_gain()
435 int channel, u16 *value, enum dt9812_gain gain) in dt9812_analog_in() argument
450 dt9812_configure_gain(dev, &rmw[0], gain); in dt9812_analog_in()
Dusbduxfast.c341 unsigned int gain = CR_RANGE(cmd->chanlist[i]); in usbduxfast_ai_check_chanlist() local
348 if (gain != gain0 && cmd->chanlist_len > 3) { in usbduxfast_ai_check_chanlist()
/linux-4.4.14/Documentation/sound/alsa/
DControlNames.txt75 [Analogue|Digital] Capture Switch (aka input gain switch)
76 [Analogue|Digital] Capture Volume (aka input gain volume)
77 [Analogue|Digital] Playback Switch (aka output gain switch)
78 [Analogue|Digital] Playback Volume (aka output gain volume)
/linux-4.4.14/sound/pci/au88x0/
Dau88x0_eq.c51 static void vortex_EqHw_SetTimeConsts(vortex_t * vortex, u16 gain, u16 level) in vortex_EqHw_SetTimeConsts() argument
53 hwwrite(vortex->mmio, 0x2b3c4, gain); in vortex_EqHw_SetTimeConsts()
505 static int vortex_Eqlzr_GetLeftGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetLeftGain() argument
510 *gain = eq->this130[index]; in vortex_Eqlzr_GetLeftGain()
516 static void vortex_Eqlzr_SetLeftGain(vortex_t * vortex, u16 index, u16 gain) in vortex_Eqlzr_SetLeftGain() argument
523 eq->this130[index] = gain; in vortex_Eqlzr_SetLeftGain()
527 vortex_EqHw_SetLeftGainsSingleTarget(vortex, index, gain); in vortex_Eqlzr_SetLeftGain()
530 static int vortex_Eqlzr_GetRightGain(vortex_t * vortex, u16 index, u16 * gain) in vortex_Eqlzr_GetRightGain() argument
535 *gain = eq->this130[index + eq->this10]; in vortex_Eqlzr_GetRightGain()
541 static void vortex_Eqlzr_SetRightGain(vortex_t * vortex, u16 index, u16 gain) in vortex_Eqlzr_SetRightGain() argument
[all …]
/linux-4.4.14/drivers/staging/fbtft/
Dfb_uc1611.c48 static unsigned gain = 3; variable
49 module_param(gain, uint, 0);
50 MODULE_PARM_DESC(gain, "GN[1:0] Bias voltage gain: 0-3 (default: 3)");
91 write_reg(par, (gain & 0x03) << 6 | (pot & 0x3F)); in init_display()
/linux-4.4.14/drivers/bcma/
Dsprom.c207 u8 gain; in sprom_extract_antgain() local
210 gain = (v & mask) >> shift; in sprom_extract_antgain()
211 if (gain == 0xFF) { in sprom_extract_antgain()
212 gain = 8; /* If unset use 2dBm */ in sprom_extract_antgain()
215 gain = ((gain & 0xC0) >> 6) | ((gain & 0x3F) << 2); in sprom_extract_antgain()
218 return (s8)gain; in sprom_extract_antgain()
/linux-4.4.14/drivers/staging/rtl8188eu/include/
Dodm_HWConfig.h65 u8 gain:7, trsw:1; member
67 u8 trsw:1, gain:7;
/linux-4.4.14/sound/oss/dmasound/
Ddmasound.h170 int gain; member
201 static inline int dmasound_set_gain(int gain) in dmasound_set_gain() argument
203 return dmasound.mach.setGain ? dmasound.mach.setGain(gain) : 100; in dmasound_set_gain()
Ddmasound_atari.c129 static int TTSetGain(int gain);
1004 static int TTSetGain(int gain) in TTSetGain() argument
1006 dmasound.gain = GAIN_VOXWARE_TO_DB(gain); in TTSetGain()
1007 atari_microwire_cmd(MW_LM1992_VOLUME(dmasound.gain)); in TTSetGain()
1008 return GAIN_DB_TO_VOXWARE(dmasound.gain); in TTSetGain()
1416 return IOCTL_OUT(arg, GAIN_DB_TO_VOXWARE(dmasound.gain)); in TTMixerIoctl()
/linux-4.4.14/drivers/media/platform/davinci/
Ddm355_ccdc.c72 .gain = {
158 regw(ccdc_cfg.bayer.gain.r_ye, RYEGAIN); in ccdc_config_gain_offset()
159 regw(ccdc_cfg.bayer.gain.gr_cy, GRCYGAIN); in ccdc_config_gain_offset()
160 regw(ccdc_cfg.bayer.gain.gb_g, GBGGAIN); in ccdc_config_gain_offset()
161 regw(ccdc_cfg.bayer.gain.b_mg, BMGGAIN); in ccdc_config_gain_offset()
185 ccdc_cfg.bayer.gain.r_ye = GAIN_DEFAULT; in ccdc_restore_defaults()
186 ccdc_cfg.bayer.gain.gb_g = GAIN_DEFAULT; in ccdc_restore_defaults()
187 ccdc_cfg.bayer.gain.gr_cy = GAIN_DEFAULT; in ccdc_restore_defaults()
188 ccdc_cfg.bayer.gain.b_mg = GAIN_DEFAULT; in ccdc_restore_defaults()
Disif.c66 .gain = {
114 .gain = {
241 val = (gain_off_p->gain.r_ye.integer << GAIN_INTEGER_SHIFT) | in isif_config_gain_offset()
242 gain_off_p->gain.r_ye.decimal; in isif_config_gain_offset()
245 val = (gain_off_p->gain.gr_cy.integer << GAIN_INTEGER_SHIFT) | in isif_config_gain_offset()
246 gain_off_p->gain.gr_cy.decimal; in isif_config_gain_offset()
249 val = (gain_off_p->gain.gb_g.integer << GAIN_INTEGER_SHIFT) | in isif_config_gain_offset()
250 gain_off_p->gain.gb_g.decimal; in isif_config_gain_offset()
253 val = (gain_off_p->gain.b_mg.integer << GAIN_INTEGER_SHIFT) | in isif_config_gain_offset()
254 gain_off_p->gain.b_mg.decimal; in isif_config_gain_offset()
/linux-4.4.14/net/wireless/
Dgenregdb.awk61 gain = 0
119 …printf "\t\tREG_RULE_EXT(%d, %d, %d, %d, %.0f, %d, %s),\n", start, end, bw, gain, power, dfs_cac, …
/linux-4.4.14/Documentation/input/
Dff.txt75 - FF_GAIN gain is adjustable
148 3.5 Setting the gain
150 Not all devices have the same strength. Therefore, users should set a gain
154 /* Set the gain of the device
155 int gain; /* between 0 and 100 */
160 ie.value = 0xFFFFUL * gain / 100;
163 perror("set gain");
Dedt-ft5x06.txt20 /sys/class/input/eventX/device/device/gain:
Diforce-protocol.txt217 **** Set overall gain ****
/linux-4.4.14/drivers/staging/rtl8723au/include/
Dodm_HWConfig.h70 u8 gain:7, trsw:1; member
72 u8 trsw:1, gain:7;
/linux-4.4.14/drivers/media/usb/pwc/
Dpwc-v4l.c246 pdev->gain = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
287 pdev->autogain_expo_cluster[1] = pdev->gain; in pwc_init_controls()
561 pdev->gain->val = pdev->last_gain; in pwc_g_volatile_ctrl()
565 READ_AGC_FORMATTER, &pdev->gain->val); in pwc_g_volatile_ctrl()
568 pdev->last_gain = pdev->gain->val; in pwc_g_volatile_ctrl()
662 if (pdev->gain->is_new) { in pwc_set_autogain()
665 pdev->gain->val); in pwc_set_autogain()
723 if (pdev->gain->is_new) { in pwc_set_autogain_expo()
726 pdev->gain->val); in pwc_set_autogain_expo()
Dpwc.h316 struct v4l2_ctrl *gain; member
/linux-4.4.14/drivers/staging/iio/light/
Dtsl2583.c515 char gain[4] = {0}; in taos_gain_show() local
519 strcpy(gain, "001"); in taos_gain_show()
522 strcpy(gain, "008"); in taos_gain_show()
525 strcpy(gain, "016"); in taos_gain_show()
528 strcpy(gain, "111"); in taos_gain_show()
532 return sprintf(buf, "%s\n", gain); in taos_gain_show()
/linux-4.4.14/drivers/staging/iio/Documentation/light/
Dsysfs-bus-iio-light-tsl25835 This property causes an internal calibration of the als gain trim
Dsysfs-bus-iio-light-tsl2x7x5 Causes an internal calibration of the als gain trim
/linux-4.4.14/drivers/thermal/samsung/
Dexynos_tmu.h60 u8 gain; member
Dexynos_tmu.c374 con |= (pdata->gain << EXYNOS_TMU_BUF_SLOPE_SEL_SHIFT); in get_con_reg()
1140 pdata->gain = (u8)value; in exynos_of_sensor_conf()
/linux-4.4.14/drivers/iio/pressure/
Dst_pressure_core.c210 .gain = ST_PRESS_LPS331AP_FS_AVL_1260_GAIN,
294 .gain = ST_PRESS_LPS25H_FS_AVL_1260_GAIN,
353 *val2 = press_data->current_fullscale->gain; in st_press_read_raw()
/linux-4.4.14/drivers/ssb/
Dpci.c333 u8 gain; in sprom_extract_antgain() local
336 gain = (v & mask) >> shift; in sprom_extract_antgain()
337 if (gain == 0xFF) in sprom_extract_antgain()
338 gain = 2; /* If unset use 2dBm */ in sprom_extract_antgain()
341 gain <<= 2; in sprom_extract_antgain()
344 gain = ((gain & 0xC0) >> 6) | ((gain & 0x3F) << 2); in sprom_extract_antgain()
347 return (s8)gain; in sprom_extract_antgain()
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-bus-iio-proximity-as393514 Show or set the gain boost of the amp, from 0-31 range.
/linux-4.4.14/include/media/davinci/
Disif.h374 struct isif_gain gain; member
507 struct isif_gain gain; member
Ddm355_ccdc.h306 struct ccdc_gain gain; member
/linux-4.4.14/drivers/media/tuners/
Dm88rs6000t.c499 u16 gain; in m88rs6000t_get_rf_strength() local
560 gain = RFG + IFG - TIAG + BBG + PGA2G; in m88rs6000t_get_rf_strength()
563 gain = clamp_val(gain, 1000U, 10500U); in m88rs6000t_get_rf_strength()
564 *strength = (10500 - gain) * 0xffff / (10500 - 1000); in m88rs6000t_get_rf_strength()
Dr820t.c1221 int gain)
1250 if (total_gain >= gain)
1255 if (total_gain >= gain)
/linux-4.4.14/drivers/media/usb/dvb-usb/
DcinergyT2-fe.c159 if (0xffff - le16_to_cpu(result.gain) > 30) in cinergyt2_fe_read_status()
226 *strength = (0xffff - le16_to_cpu(status.gain)); in cinergyt2_fe_read_signal_strength()
DcinergyT2.h73 __le16 gain; member
/linux-4.4.14/sound/pci/lola/
Dlola_mixer.c222 unsigned short gain, bool on) in lola_mixer_set_src_gain() argument
235 (gain == readw(&chip->mixer.array->src_gain[id]))) in lola_mixer_set_src_gain()
240 id, gain, val); in lola_mixer_set_src_gain()
241 writew(gain, &chip->mixer.array->src_gain[id]); in lola_mixer_set_src_gain()
283 unsigned short gain, bool on) in lola_mixer_set_mapping_gain() argument
291 writew(gain, &chip->mixer.array->dest_mix_gain[dest][src]); in lola_mixer_set_mapping_gain()
/linux-4.4.14/drivers/staging/iio/Documentation/
Dsysfs-bus-iio-light-tsl258312 This property causes an internal calibration of the als gain trim
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispresizer.h72 u8 gain; /* maximum gain. */ member
/linux-4.4.14/drivers/input/keyboard/
Dcap11xx.c340 int i, error, irq, gain = 0; in cap11xx_i2c_probe() local
396 gain = ilog2(gain32); in cap11xx_i2c_probe()
417 gain << CAP11XX_REG_MAIN_CONTROL_GAIN_SHIFT); in cap11xx_i2c_probe()
/linux-4.4.14/drivers/gpu/drm/i2c/
Dch7006_mode.c206 int gain; in ch7006_setup_levels() local
212 gain = 76; in ch7006_setup_levels()
216 gain = 71; in ch7006_setup_levels()
221 black_level = round_fixed(norm->black_level*26625)/gain; in ch7006_setup_levels()
/linux-4.4.14/Documentation/devicetree/bindings/phy/
Dapm-xgene-phy.txt27 - apm,tx-boost-gain : Frequency boost AC (LSB 3-bit) and DC (2-bit)
28 gain control. Two set of 3-tuple setting for each
/linux-4.4.14/drivers/media/usb/gspca/m5602/
Dm5602_ov7660.c138 sd->gain = v4l2_ctrl_new_std(hdl, &ov7660_ctrl_ops, V4L2_CID_GAIN, 0, in ov7660_init_controls()
277 err = ov7660_set_gain(gspca_dev, sd->gain->val); in ov7660_s_ctrl()
Dm5602_bridge.h160 struct v4l2_ctrl *gain; member
Dm5602_ov9650.c241 sd->gain = v4l2_ctrl_new_std(hdl, &ov9650_ctrl_ops, V4L2_CID_GAIN, 0, in ov9650_init_controls()
595 err = ov9650_set_gain(gspca_dev, sd->gain->val); in ov9650_s_ctrl()
Dm5602_po1030.c156 sd->gain = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, V4L2_CID_GAIN, 0, in po1030_init_controls()
/linux-4.4.14/Documentation/misc-devices/
Dapds990x.txt31 ALS contains 4 different gain steps. Driver automatically
32 selects suitable gain step. After each measurement, reliability of the results
/linux-4.4.14/drivers/net/wireless/b43/
Dphy_lp.c891 static void lpphy_set_pa_gain(struct b43_wldev *dev, u16 gain) in lpphy_set_pa_gain() argument
893 b43_phy_maskset(dev, B43_PHY_OFDM(0xFB), 0xE03F, gain << 6); in lpphy_set_pa_gain()
894 b43_phy_maskset(dev, B43_PHY_OFDM(0xFD), 0x80FF, gain << 8); in lpphy_set_pa_gain()
925 static void lpphy_rev0_1_set_rx_gain(struct b43_wldev *dev, u32 gain) in lpphy_rev0_1_set_rx_gain() argument
927 u16 trsw = gain & 0x1; in lpphy_rev0_1_set_rx_gain()
928 u16 lna = (gain & 0xFFFC) | ((gain & 0xC) >> 2); in lpphy_rev0_1_set_rx_gain()
929 u16 ext_lna = (gain & 2) >> 1; in lpphy_rev0_1_set_rx_gain()
939 static void lpphy_rev2plus_set_rx_gain(struct b43_wldev *dev, u32 gain) in lpphy_rev2plus_set_rx_gain() argument
941 u16 low_gain = gain & 0xFFFF; in lpphy_rev2plus_set_rx_gain()
942 u16 high_gain = (gain >> 16) & 0xF; in lpphy_rev2plus_set_rx_gain()
[all …]
Dphy_n.c595 s16 gain[2]; in b43_nphy_adjust_lna_gain_table() local
604 gain[0] = 6; in b43_nphy_adjust_lna_gain_table()
605 gain[1] = 6; in b43_nphy_adjust_lna_gain_table()
608 gain[0] = ((tmp >> 13) + ((tmp >> 12) & 1)); in b43_nphy_adjust_lna_gain_table()
610 gain[1] = ((tmp >> 13) + ((tmp >> 12) & 1)); in b43_nphy_adjust_lna_gain_table()
613 gain[0] = 0; in b43_nphy_adjust_lna_gain_table()
614 gain[1] = 0; in b43_nphy_adjust_lna_gain_table()
619 data[0] = 19 + gain[i]; in b43_nphy_adjust_lna_gain_table()
620 data[1] = 25 + gain[i]; in b43_nphy_adjust_lna_gain_table()
621 data[2] = 25 + gain[i]; in b43_nphy_adjust_lna_gain_table()
[all …]
/linux-4.4.14/Documentation/mtd/
Dnand_ecc.txt262 No pain. no gain.
474 Unrolling twice keeps the gain at about 15%
475 Unrolling three times gives a gain of 30% compared to attempt 2.
480 feeling that in the next steps I would obtain additional gain from it.
559 Measuring this code again showed big gain. When executing the original
658 shift after parity[rp7] << 7; No gain.
665 No gain.
690 It proved to be fastest to do some table lookups. Performance gain
700 The gain when calculating the ecc is tremendous. Om my development hardware
705 For correction not much gain could be obtained (as bitflips are rare). Then
[all …]
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Ddm365_ipipeif.h140 int gain; member
Ddavinci_vpfe_user.h776 unsigned short gain; member
1094 unsigned char gain; member
Ddm365_ipipeif.c240 ipipeif_write(ipipeif->gain, ipipeif_base_addr, IPIPEIF_GAIN); in ipipeif_hw_setup()
245 ipipeif_write(ipipeif->gain, ipipeif_base_addr, IPIPEIF_GAIN); in ipipeif_hw_setup()
495 ipipeif->gain = ctrl->val; in ipipeif_s_ctrl()
Ddm365_ipipe_hw.c590 regw_ip(base_addr, gic->gain & GIC_GAIN_MASK, GIC_GAN); in ipipe_set_gic_regs()
968 regw_ip(base_addr, car->gain1.gain, CAR_GN1_GAN); in ipipe_set_gain_ctrl()
972 regw_ip(base_addr, car->gain2.gain, CAR_GN2_GAN); in ipipe_set_gain_ctrl()
/linux-4.4.14/drivers/iio/common/st_sensors/
Dst_sensors_core.c424 if ((sdata->sensor_settings->fs.fs_avl[i].gain == scale) && in st_sensors_set_fullscale_by_gain()
425 (sdata->sensor_settings->fs.fs_avl[i].gain != 0)) { in st_sensors_set_fullscale_by_gain()
582 sdata->sensor_settings->fs.fs_avl[i].gain); in st_sensors_sysfs_scale_avail()
/linux-4.4.14/Documentation/devicetree/bindings/input/touchscreen/
Dedt-ft5x06.txt40 - gain: allows setting the sensitivity in the range from 0 to
/linux-4.4.14/drivers/mtd/spi-nor/
DKconfig15 on the usage this feature may provide performance gain in comparison
/linux-4.4.14/drivers/input/joystick/iforce/
Diforce-main.c103 static void iforce_set_gain(struct input_dev *dev, u16 gain) in iforce_set_gain() argument
108 data[0] = gain >> 9; in iforce_set_gain()
/linux-4.4.14/sound/soc/codecs/
Darizona.c1813 u16 gain; member
1827 int gain; member
2009 cfg->gain = fll_gains[i].gain; in arizona_calc_fll()
2023 arizona_fll_dbg(fll, "GAIN=%d\n", cfg->gain); in arizona_calc_fll()
2049 cfg->gain << ARIZONA_FLL1_GAIN_SHIFT); in arizona_apply_fll()
2056 cfg->gain << ARIZONA_FLL1_GAIN_SHIFT); in arizona_apply_fll()
/linux-4.4.14/drivers/input/touchscreen/
Dedt-ft5x06.c104 int gain; member
468 static EDT_ATTR(gain, S_IWUSR | S_IRUGO, WORK_REGISTER_GAIN,
592 tsdata->gain); in edt_ft5x06_work_mode()
844 tsdata->gain = edt_ft5x06_register_read(tsdata, reg_addr->reg_gain); in edt_ft5x06_ts_get_parameters()
/linux-4.4.14/Documentation/hwmon/
Dads101545 - pga is the programmable gain amplifier (values are full scale)
Dvt1211124 According to the VIA VT1211 BIOS porting guide, the following gain and offset
/linux-4.4.14/sound/firewire/
Disight.c490 __be32 gain; in isight_gain_get() local
493 err = reg_read(isight, REG_GAIN, &gain); in isight_gain_get()
497 value->value.integer.value[0] = (s32)be32_to_cpu(gain); in isight_gain_get()
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/
Dmac.h47 u8 gain; member
Dtrace.h280 __entry->rxwi.gain, __entry->rxwi.freq_off,
Dphy.c254 int lna_id = MT76_GET(MT_RXWI_GAIN_RSSI_LNA_ID, rxwi->gain); in mt7601u_phy_get_rssi()
262 val -= MT76_GET(MT_RXWI_GAIN_RSSI_VAL, rxwi->gain); in mt7601u_phy_get_rssi()
/linux-4.4.14/include/linux/iio/common/
Dst_sensors.h97 unsigned int gain; member
/linux-4.4.14/drivers/lguest/
DREADME12 Along your way to the Noble Goal, you will also gain masterly insight into
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-kthread-cap.c428 s32 gain; in vivid_fillbuff() local
513 gain = v4l2_ctrl_g_ctrl(dev->gain); in vivid_fillbuff()
524 dev->autogain->cur.val, gain, dev->alpha->cur.val); in vivid_fillbuff()
Dvivid-core.h203 struct v4l2_ctrl *gain; member
Dvivid-ctrls.c291 dev->gain->val = dev->jiffies_vid_cap & 0xff; in vivid_user_vid_g_volatile_ctrl()
1377 dev->gain = v4l2_ctrl_new_std(hdl_user_vid, &vivid_user_vid_ctrl_ops, in vivid_create_controls()
/linux-4.4.14/drivers/staging/gs_fpgaboot/
DREADME48 This is a real gain :)
/linux-4.4.14/sound/pci/rme9652/
Dhdspm.c1795 unsigned int gain; in all_in_all_mixer() local
1798 gain = UNITY_GAIN; in all_in_all_mixer()
1800 gain = 0; in all_in_all_mixer()
1802 gain = sgain; in all_in_all_mixer()
1806 hdspm_write_in_gain(hdspm, i, j, gain); in all_in_all_mixer()
1807 hdspm_write_pb_gain(hdspm, i, j, gain); in all_in_all_mixer()
3686 int gain; in snd_hdspm_put_mixer() local
3699 gain = ucontrol->value.integer.value[2]; in snd_hdspm_put_mixer()
3704 change = gain != hdspm_read_pb_gain(hdspm, destination, in snd_hdspm_put_mixer()
3708 change = gain != hdspm_read_in_gain(hdspm, destination, in snd_hdspm_put_mixer()
[all …]
/linux-4.4.14/Documentation/video4linux/
Dsi4713.txt100 acomp_gain - Sets the gain for audio dynamic range control.
106 it is possible to adjust the front-end gain of the audio input and always
Dsi476x.txt104 0x06 | pgagain | PGA gain in dB
Dv4l2-controls.txt445 the value will not be used by the hardware as long as the automatic gain
556 Handling autogain/gain-type Controls with Auto Clusters
560 controls. Typical examples are autogain/gain, autoexposure/exposure,
591 you to obtain the current gain value).
/linux-4.4.14/include/uapi/sound/
Dcompress_params.h310 __u32 gain; member
/linux-4.4.14/drivers/mmc/card/
DKconfig48 a big performance gain at the cost of up to 64 KiB of
/linux-4.4.14/sound/pci/ctxfi/
Dcthw20k2.c1793 u32 adcmc, gain; in hw_wm8775_input_select() local
1808 gain = gain_in_db * MIC_BOOST_STEPS_PER_DB + MIC_BOOST_0DB; in hw_wm8775_input_select()
1810 hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_AADCL, gain), in hw_wm8775_input_select()
1811 MAKE_WM8775_DATA(gain)); in hw_wm8775_input_select()
1813 hw20k2_i2c_write(hw, MAKE_WM8775_ADDR(WM8775_AADCR, gain), in hw_wm8775_input_select()
1814 MAKE_WM8775_DATA(gain)); in hw_wm8775_input_select()
/linux-4.4.14/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu.h327 u8 gain:7, trsw:1; member
329 u8 trsw:1, gain:7;
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_lcn.c3155 static void wlc_lcnphy_set_pa_gain(struct brcms_phy *pi, u16 gain) in wlc_lcnphy_set_pa_gain() argument
3159 gain << LCNPHY_txgainctrlovrval1_pagain_ovr_val1_SHIFT); in wlc_lcnphy_set_pa_gain()
3162 gain << LCNPHY_stxtxgainctrlovrval1_pagain_ovr_val1_SHIFT); in wlc_lcnphy_set_pa_gain()
5111 static void wlc_lcnphy_set_rx_gain(struct brcms_phy *pi, u32 gain) in wlc_lcnphy_set_rx_gain() argument
5115 trsw = (gain & ((u32) 1 << 28)) ? 0 : 1; in wlc_lcnphy_set_rx_gain()
5116 ext_lna = (u16) (gain >> 29) & 0x01; in wlc_lcnphy_set_rx_gain()
5117 lna1 = (u16) (gain >> 0) & 0x0f; in wlc_lcnphy_set_rx_gain()
5118 lna2 = (u16) (gain >> 4) & 0x0f; in wlc_lcnphy_set_rx_gain()
5119 tia = (u16) (gain >> 8) & 0xf; in wlc_lcnphy_set_rx_gain()
5120 biq0 = (u16) (gain >> 12) & 0xf; in wlc_lcnphy_set_rx_gain()
[all …]
/linux-4.4.14/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.h200 u16 gain; /* gain in 0.1 dB steps, DRXJ range 140 .. 335 */}; member
Ddrxj.c6065 vsb_pga_cfg.gain = ext_attr->vsb_pga_cfg; in set_vsb()
8470 qam_pga_cfg.gain = ext_attr->qam_pga_cfg; in set_qam()
11247 u8 gain = 0; in ctrl_set_cfg_afe_gain() local
11272 if (afe_gain->gain >= 329) in ctrl_set_cfg_afe_gain()
11273 gain = 15; in ctrl_set_cfg_afe_gain()
11274 else if (afe_gain->gain <= 147) in ctrl_set_cfg_afe_gain()
11275 gain = 0; in ctrl_set_cfg_afe_gain()
11277 gain = (afe_gain->gain - 140 + 6) / 13; in ctrl_set_cfg_afe_gain()
11281 rc = drxj_dap_write_reg16(dev_addr, IQM_AF_PGA_GAIN__A, gain, 0); in ctrl_set_cfg_afe_gain()
11291 ext_attr->vsb_pga_cfg = gain * 13 + 140; in ctrl_set_cfg_afe_gain()
[all …]
/linux-4.4.14/include/uapi/linux/
Domap3isp.h492 __u8 gain; member
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dtrx.h375 u8 gain:7, trsw:1; member
377 u8 trsw:1, gain:7;
Dtrx.c141 rx_pwr[i] = ((p_phystrpt->path_agc[i].gain & 0x3f) * 2) in _rtl8723be_query_rxphystatus()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dtrx.h370 u8 gain:7, trsw:1; member
372 u8 trsw:1, gain:7;
/linux-4.4.14/drivers/hwmon/
Dmax16065.c125 static inline int ADC_TO_CURR(int adc, int gain) in ADC_TO_CURR() argument
127 return adc * 1400000 / (gain * 255); in ADC_TO_CURR()
/linux-4.4.14/Documentation/acpi/
Dmethod-customizing.txt71 memory and gain additional rights, if root's privileges got
/linux-4.4.14/drivers/staging/rtl8723au/hal/
Dodm_HWConfig.c206 rx_pwr[i] = ((pPhyStaRpt->path_agc[i].gain & 0x3F)*2) - 110; in odm_RxPhyStatus92CSeries_Parsing()
/linux-4.4.14/fs/proc/
DKconfig14 that are used by the attached devices to gain the CPU's attention --
/linux-4.4.14/include/linux/
Dinput.h509 void (*set_gain)(struct input_dev *dev, u16 gain);
/linux-4.4.14/Documentation/mmc/
Dmmc-async-req.txt24 performance gain is 5% for large writes and 10% on large reads on a L2 cache
/linux-4.4.14/Documentation/s390/
DDASD56 1kB blocks anyway and you gain approx. 50% of capacity increasing your
/linux-4.4.14/sound/pci/asihpi/
Dasihpi.c1883 short gain; in snd_asihpi_tuner_gain_get() local
1885 hpi_handle_error(hpi_tuner_get_gain(h_control, &gain)); in snd_asihpi_tuner_gain_get()
1886 ucontrol->value.integer.value[0] = gain / HPI_UNITS_PER_dB; in snd_asihpi_tuner_gain_get()
1898 short gain; in snd_asihpi_tuner_gain_put() local
1900 gain = (ucontrol->value.integer.value[0]) * HPI_UNITS_PER_dB; in snd_asihpi_tuner_gain_put()
1901 hpi_handle_error(hpi_tuner_set_gain(h_control, gain)); in snd_asihpi_tuner_gain_put()
Dhpi_internal.h849 u32 gain; member
878 u32 gain; member
Dhpifunc.c2541 u16 hpi_tuner_set_gain(u32 h_control, short gain) in hpi_tuner_set_gain() argument
2543 return hpi_control_param_set(h_control, HPI_TUNER_GAIN, gain, 0); in hpi_tuner_set_gain()
2548 u32 gain = 0; in hpi_tuner_get_gain() local
2551 error = hpi_control_param1_get(h_control, HPI_TUNER_GAIN, &gain); in hpi_tuner_get_gain()
2553 *pn_gain = (u16)gain; in hpi_tuner_get_gain()
/linux-4.4.14/drivers/input/misc/
Duinput.c179 static void uinput_dev_set_gain(struct input_dev *dev, u16 gain) in uinput_dev_set_gain() argument
181 uinput_dev_event(dev, EV_FF, FF_GAIN, gain); in uinput_dev_set_gain()
/linux-4.4.14/drivers/staging/rtl8188eu/hal/
Dodm_HWConfig.c206 rx_pwr[i] = ((pPhyStaRpt->path_agc[i].gain & 0x3F)*2) - 110; in odm_RxPhyStatus92CSeries_Parsing()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dtrx.h549 u8 gain:7, trsw:1; member
551 u8 trsw:1, gain:7;
/linux-4.4.14/arch/arm64/boot/dts/apm/
Dapm-storm.dtsi695 apm,tx-boost-gain = <30 30 30 30 30 30>;
705 apm,tx-boost-gain = <30 30 30 30 30 30>;
715 apm,tx-boost-gain = <31 31 31 31 31 31>;
/linux-4.4.14/sound/soc/intel/atom/
Dsst-atom-controls.c594 struct sst_module *gain = NULL; in sst_set_pipe_gain() local
596 list_for_each_entry(gain, &ids->gain_list, node) { in sst_set_pipe_gain()
597 struct snd_kcontrol *kctl = gain->kctl; in sst_set_pipe_gain()
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dar9003_paprd.c419 static bool create_pa_curve(u32 *data_L, u32 *data_U, u32 *pa_table, u16 *gain) in create_pa_curve() argument
747 *gain = G_fxp; in create_pa_curve()
/linux-4.4.14/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dtrx.h605 u8 gain:7, trsw:1; member
607 u8 trsw:1, gain:7;
/linux-4.4.14/drivers/hid/usbhid/
Dhid-pidff.c722 static void pidff_set_gain(struct input_dev *dev, u16 gain) in pidff_set_gain() argument
726 pidff_set(&pidff->device_gain[PID_DEVICE_GAIN_FIELD], gain); in pidff_set_gain()
/linux-4.4.14/fs/cramfs/
DREADME141 variables instead of #define'd constants. The gain is that people
/linux-4.4.14/arch/m68k/include/asm/
Datarihw.h392 u_char gain; member
/linux-4.4.14/drivers/net/wireless/iwlegacy/
D3945.c2079 u8 gain, dsp_atten; in il3945_txpower_set_from_eeprom() local
2165 gain = power_gain_table[a_band][pwr_idx].tx_gain; in il3945_txpower_set_from_eeprom()
2177 pwr_info->tpc.tx_gain = gain; in il3945_txpower_set_from_eeprom()
/linux-4.4.14/Documentation/filesystems/
Dtmpfs.txt14 you gain swapping and limit checking. Another similar thing is the RAM
Daffs.txt30 gain above 4K seems not really worth the price, so you don't lose too
Dsquashfs.txt250 are packed together into blocks (to gain greater compression) the read of a
/linux-4.4.14/Documentation/
Dkref.txt50 3) If the code attempts to gain a reference to a kref-ed structure
Dstable_api_nonsense.txt130 gain, for free, is not a possibility.
Dintel_txt.txt146 attempt to crash the system to gain control on reboot and steal
/linux-4.4.14/Documentation/vm/
Dtranshuge.txt110 time to defrag memory, we would expect to gain even more by the fact
169 A lower value leads to gain less thp performance. Value of
/linux-4.4.14/sound/pci/emu10k1/
Demu10k1_main.c571 unsigned short gain) in snd_emu10k1_ecard_setadcgain() argument
586 if (gain & bit) in snd_emu10k1_ecard_setadcgain()

12