| /freebsd/sys/gnu/dev/bwn/phy_n/ |
| H A D | if_bwn_phy_n_regs.h | 51 #define BWN_NPHY_C1_CGAINI BWN_PHY_N(0x01C) /* Core 1 compute gain info */ 52 #define BWN_NPHY_C1_CGAINI_GAINBKOFF 0x001F /* Gain backoff */ 54 #define BWN_NPHY_C1_CGAINI_CLIPGBKOFF 0x03E0 /* Clip gain backoff */ 56 #define BWN_NPHY_C1_CGAINI_GAINSTEP 0x1C00 /* Gain step */ 59 #define BWN_NPHY_C1_CCK_CGAINI BWN_PHY_N(0x01D) /* Core 1 CCK compute gain info */ 60 #define BWN_NPHY_C1_CCK_CGAINI_GAINBKOFF 0x001F /* Gain backoff */ 61 #define BWN_NPHY_C1_CCK_CGAINI_CLIPGBKOFF 0x01E0 /* CCK barely clip gain backoff */ 62 #define BWN_NPHY_C1_MINMAX_GAIN BWN_PHY_N(0x01E) /* Core 1 min/max gain */ 63 #define BWN_NPHY_C1_MINGAIN 0x00FF /* Minimum gain */ 65 #define BWN_NPHY_C1_MAXGAIN 0xFF00 /* Maximum gain */ [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/ |
| H A D | phy.c | 15 s8 gain; in mt76x2_adjust_high_lna_gain() local 17 gain = FIELD_GET(MT_BBP_AGC_LNA_HIGH_GAIN, in mt76x2_adjust_high_lna_gain() 19 gain -= offset / 2; in mt76x2_adjust_high_lna_gain() 20 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_LNA_HIGH_GAIN, gain); in mt76x2_adjust_high_lna_gain() 26 s8 gain; in mt76x2_adjust_agc_gain() local 28 gain = FIELD_GET(MT_BBP_AGC_GAIN, mt76_rr(dev, MT_BBP(AGC, reg))); in mt76x2_adjust_agc_gain() 29 gain += offset; in mt76x2_adjust_agc_gain() 30 mt76_rmw_field(dev, MT_BBP(AGC, reg), MT_BBP_AGC_GAIN, gain); 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() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/iio/light/ |
| H A D | us5182d.txt | 14 - upisemi,upper-dark-gain: 8-bit dark gain compensation factor(4 int and 4 17 - upisemi,lower-dark-gain: 8-bit dark gain compensation factor(4 int and 4 33 There will be no dark-gain compensation by default when ALS > thresh 34 (0 * dark-gain), and a 1.35 compensation factor when ALS < thresh. 43 upisemi,upper-dark-gain = /bits/ 8 <0x00>; 44 upisemi,lower-dark-gain = /bits/ 8 <0x16>;
|
| H A D | upisemi,us5182.yaml | 33 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>;
|
| /freebsd/sys/tools/sound/ |
| H A D | feeder_eq_mkfilter.awk | 88 function feedeq_A(gain, A) 91 A = pow(10, gain / 40.0); 93 A = sqrt(pow(10, gain / 20.0)); 127 function feedeq_gen_biquad_coeffs(coeffs, rate, gain, \ 131 A = feedeq_A(1.0 * gain); 157 coeffs["treble", gain, 0] = feedeq_fx_floor(a0); 158 coeffs["treble", gain, 1] = feedeq_fx_floor(a1); 159 coeffs["treble", gain, 2] = feedeq_fx_floor(a2); 160 coeffs["treble", gain, 3] = feedeq_fx_floor(b0); 161 coeffs["treble", gain, 4] = feedeq_fx_floor(b1); [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/iio/dac/ |
| H A D | adi,ad3552r.yaml | 99 adi,gain-offset: 100 description: Gain offset used in the above formula 105 adi,gain-scaling-p: 106 description: GainP = 1 / ( 2 ^ adi,gain-scaling-p) 110 adi,gain-scaling-n: 111 description: GainN = 1 / ( 2 ^ adi,gain-scaling-n) 119 - adi,gain-offset 120 - adi,gain-scaling-p 121 - adi,gain-scaling-n 240 adi,gain-offset = <5>; [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/hwmon/ |
| H A D | ti,ina2xx.yaml | 47 ti,shunt-gain: 49 Programmable gain divisor for the shunt voltage accuracy and range. This 51 gain value is used configure the gain and to convert the shunt voltage, 56 the gain value maps directly with the PG bits of the config register. 58 For devices that have ADCRANGE configuration (e.g. INA238) a shunt-gain 59 value of 1 maps to ADCRANGE=1 where no gain divisor is applied to the 63 For SQ52206,the shunt-gain value 1 mapps to ADCRANGE=10/11, the value 2
|
| H A D | ti,tmp513.yaml | 38 rshunt <= pga-gain * 40 * 1000 * 1000. 42 ti,pga-gain: 44 The gain value for the PGA function. This is 8, 4, 2 or 1. 45 The PGA gain affect the shunt voltage range. 46 The range will be equal to: pga-gain * 40mV 90 ti,pga-gain = <8>;
|
| /freebsd/sys/contrib/device-tree/Bindings/iio/afe/ |
| H A D | current-sense-amplifier.txt | 15 - sense-gain-mult: Amplifier gain multiplier. The default is <1>. 16 - sense-gain-div: Amplifier gain divider. The default is <1>. 25 sense-gain-mul = <50>;
|
| H A D | current-sense-amplifier.yaml | 30 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>;
|
| /freebsd/sys/dev/ath/ath_hal/ar5212/ |
| H A D | ar5212_rfgain.c | 49 { { {3, 0,0,0, 0,0,0}, 6, "FG7"}, /* most fixed gain */ 56 { {0, 1,0,1, 1,0,1}, -16, "FG0"}, /* least fixed gain */ 61 * Initialize the gain structure to good values 69 /* initialize gain optimization values */ in ar5212InitializeGainValues() 157 * Enable the probe gain check on the next packet 165 /* Enable the gain readback probe */ in ar5212RequestRfgain() 175 * Check to see if our readback gain level sits within the linear 199 HALDEBUG(ah, HAL_DEBUG_ANY, "%s: Max gain limit.\n", in ar5212AdjustGain() 204 "%s: Adding gain: currG=%d [%s] --> ", in ar5212AdjustGain() 219 "%s: Min gain limit.\n", __func__); in ar5212AdjustGain() [all …]
|
| /freebsd/sys/dev/ath/ath_hal/ar5416/ |
| H A D | ar5416_cal_adcgain.c | 29 /* Adc Gain Cal aliases */ 36 * Collect data from HW to later perform ADC Gain Calibration 45 * Accumulate ADC Gain cal measures for active chains in ar5416AdcGainCalCollect() 66 * Use HW data to do ADC Gain Calibration 81 "Start ADC Gain Cal for Chain %d\n", i); in ar5416AdcGainCalibration() 111 "ADC Gain Cal done for Chain %d\n", i); in ar5416AdcGainCalibration()
|
| /freebsd/sys/contrib/device-tree/src/arm/nxp/imx/ |
| H A D | imx6qdl-colibri-v1.2.dtsi | 33 ti,gain = <1>; 40 ti,gain = <1>; 47 ti,gain = <1>; 54 ti,gain = <1>;
|
| H A D | imx6qdl-apalis-v1.2.dtsi | 33 ti,gain = <1>; 40 ti,gain = <1>; 47 ti,gain = <1>; 54 ti,gain = <1>;
|
| /freebsd/usr.bin/beep/ |
| H A D | beep.c | 62 static int gain = GAIN_DEF; variable 137 "[-d oss_device] [-g gain] [-r sample_rate_hz]\n" in usage() 142 "\t" "-g <gain from %d to %d, default %d>\n" in usage() 185 gain = strtol(optarg, NULL, 10); in main() 186 if (gain < GAIN_MIN || in main() 187 gain > GAIN_MAX) in main() 240 /* compute base gain */ in main() 241 a = powf(65536.0f, (float)gain / (float)GAIN_MAX) / 65536.0f; in main()
|
| /freebsd/sys/contrib/device-tree/Bindings/iio/adc/ |
| H A D | ads1015.txt | 18 - pga is the programmable gain amplifier (values are full scale) 64 - ti,gain : the programmable gain amplifier setting 71 ti,gain = <3>;
|
| H A D | ti,ads131e08.yaml | 15 built-in programmable gain amplifier (PGA), internal reference 96 ti,gain: 98 The PGA gain value for the channel. 99 If this field is left empty, PGA gain 1 is used. 158 ti,gain = <2>;
|
| H A D | adi,ad7191.yaml | 72 PGA1 and PGA2 pins for gain selection. Should be defined if adi,pga-value 81 Gain 1 (PGA1=0, PGA2=0) 82 Gain 8 (PGA1=0, PGA2=1) 83 Gain 64 (PGA1=1, PGA2=0) 84 Gain 128 (PGA1=1, PGA2=1)
|
| H A D | adi,ad7380.yaml | 146 adi,gain-milli: 148 The hardware gain applied to the ADC input (in milli units). 149 If not present, default to 1000 (no actual gain applied). 227 # adaq devices need more supplies and using channel to declare gain property 304 adi,gain-milli = /bits/ 16 <300>; 309 adi,gain-milli = /bits/ 16 <600>; 314 adi,gain-milli = /bits/ 16 <1000>;
|
| /freebsd/contrib/ntp/libntp/ |
| H A D | audio.c | 220 * only), preset the gain and set the input port. It assumes that the 359 info.play.gain = AUDIO_MAX_GAIN; in audio_init() 382 int gain, /* volume level (gain) 0-255 */ in audio_gain() argument 383 int mongain, /* input to output mix (monitor gain) 0-255 */ in audio_gain() 398 r = l = 100 * gain / 255; /* Normalize to 0-100 */ in audio_gain() 401 printf("audio_gain: gain %d/%d\n", gain, l); in audio_gain() 468 info.record.gain = gain; in audio_gain() [all...] |
| /freebsd/usr.sbin/virtual_oss/virtual_oss/ |
| H A D | ctl.c | 357 data.out_lim.gain != 0) { in vctl_ioctl() 371 data.out_lim.gain = 1000; in vctl_ioctl() 373 int gain = voss_output_compressor_gain[chan] * 1000.0; in vctl_ioctl() local 374 if (data.out_lim.gain > gain) in vctl_ioctl() 375 data.out_lim.gain = gain; in vctl_ioctl() 389 data.io_lim.param.gain != 0) { in vctl_ioctl() 408 data.io_lim.param.gain = 1000; in vctl_ioctl() 411 int gain = pvp->rx_compressor_gain[chan] * 1000.0; in vctl_ioctl() local 412 if (data.io_lim.param.gain > gain) in vctl_ioctl() 413 data.io_lim.param.gain = gain; in vctl_ioctl()
|
| /freebsd/sys/contrib/dev/rtw89/ |
| H A D | rtw8852b_common.c | 219 struct rtw89_phy_efuse_gain *gain = &rtwdev->efuse_gain; in rtw8852bx_efuse_parsing_gain_offset() local 223 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_CCK], in rtw8852bx_efuse_parsing_gain_offset() 224 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_2G_CCK]); in rtw8852bx_efuse_parsing_gain_offset() 226 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_2G_OFDM], in rtw8852bx_efuse_parsing_gain_offset() 227 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_2G_OFDM]); in rtw8852bx_efuse_parsing_gain_offset() 229 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_LOW], in rtw8852bx_efuse_parsing_gain_offset() 230 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_5G_LOW]); in rtw8852bx_efuse_parsing_gain_offset() 232 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_MID], in rtw8852bx_efuse_parsing_gain_offset() 233 &gain->offset[RF_PATH_B][RTW89_GAIN_OFFSET_5G_MID]); in rtw8852bx_efuse_parsing_gain_offset() 235 &gain->offset[RF_PATH_A][RTW89_GAIN_OFFSET_5G_HIGH], in rtw8852bx_efuse_parsing_gain_offset() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/input/ |
| H A D | cap11xx.txt | 24 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>;
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | CodeLayout.cpp | 23 // A pair of chains giving the maximum gain is merged into a new chain. The 179 /// The gain of merging two chains, that is, the Ext-TSP score of the merge in updateIfLessThan() 199 // Update the current gain if Other is preferred over this. 425 void setMergeGain(MergeGainT Gain) { CachedGain = Gain; } 429 double gain() const { return CachedGain.score(); } in outCount() 438 // Cached gain value for merging the pair of chains. in inCount() 441 // Cached gain values for merging the pair of chains. Since the gain of in inCount() 443 // here and a flag indicating which of the options results in a higher gain 404 double gain() const { return CachedGain.score(); } gain() function 809 MergeGainT Gain = MergeGainT(); getBestMergeGain() local [all...] |
| /freebsd/sys/contrib/device-tree/Bindings/regulator/ |
| H A D | max1586-regulator.txt | 6 - v3-gain: integer specifying the V3 gain as per datasheet 16 v3-gain = <1000000>;
|