/linux-6.6.21/drivers/media/dvb-frontends/ |
D | dib7000m.c | 640 u16 agc,split_offset; in dib7000m_agc_soft_split() local 646 agc = dib7000m_read_word(state, 390); in dib7000m_agc_soft_split() 648 if (agc > state->current_agc->split.min_thres) in dib7000m_agc_soft_split() 650 else if (agc < state->current_agc->split.max_thres) in dib7000m_agc_soft_split() 654 (agc - state->current_agc->split.min_thres) / in dib7000m_agc_soft_split() 681 struct dibx000_agc_config *agc = NULL; in dib7000m_set_agc_config() local 688 if (state->cfg.agc[i].band_caps & band) { in dib7000m_set_agc_config() 689 agc = &state->cfg.agc[i]; in dib7000m_set_agc_config() 693 if (agc == NULL) { in dib7000m_set_agc_config() 698 state->current_agc = agc; in dib7000m_set_agc_config() [all …]
|
D | dib3000mc.c | 164 u16 reg_51, reg_52 = state->cfg->agc->setup & 0xfefb; in dib3000mc_setup_pwm_state() 326 struct dibx000_agc_config *agc = state->cfg->agc; in dib3000mc_init() local 388 dib3000mc_write_word(state, 42, agc->agc1_max); in dib3000mc_init() 389 dib3000mc_write_word(state, 43, agc->agc1_min); in dib3000mc_init() 390 dib3000mc_write_word(state, 44, agc->agc2_max); in dib3000mc_init() 391 dib3000mc_write_word(state, 45, agc->agc2_min); in dib3000mc_init() 392 dib3000mc_write_word(state, 46, (agc->agc1_pt1 << 8) | agc->agc1_pt2); in dib3000mc_init() 393 dib3000mc_write_word(state, 47, (agc->agc1_slope1 << 8) | agc->agc1_slope2); in dib3000mc_init() 394 dib3000mc_write_word(state, 48, (agc->agc2_pt1 << 8) | agc->agc2_pt2); in dib3000mc_init() 395 dib3000mc_write_word(state, 49, (agc->agc2_slope1 << 8) | agc->agc2_slope2); in dib3000mc_init()
|
D | dib7000p.c | 753 struct dibx000_agc_config *agc = NULL; in dib7000p_set_agc_config() local 760 if (state->cfg.agc[i].band_caps & band) { in dib7000p_set_agc_config() 761 agc = &state->cfg.agc[i]; in dib7000p_set_agc_config() 765 if (agc == NULL) { in dib7000p_set_agc_config() 770 state->current_agc = agc; in dib7000p_set_agc_config() 773 dib7000p_write_word(state, 75, agc->setup); in dib7000p_set_agc_config() 774 dib7000p_write_word(state, 76, agc->inv_gain); in dib7000p_set_agc_config() 775 dib7000p_write_word(state, 77, agc->time_stabiliz); in dib7000p_set_agc_config() 776 dib7000p_write_word(state, 100, (agc->alpha_level << 12) | agc->thlock); in dib7000p_set_agc_config() 779 dib7000p_write_word(state, 101, (agc->alpha_mant << 5) | agc->alpha_exp); in dib7000p_set_agc_config() [all …]
|
D | m88ds3103.h | 74 u8 agc; member 123 u8 agc; member
|
D | dib8000.c | 1168 struct dibx000_agc_config *agc = NULL; in dib8000_set_agc_config() local 1177 if (state->cfg.agc[i].band_caps & band) { in dib8000_set_agc_config() 1178 agc = &state->cfg.agc[i]; in dib8000_set_agc_config() 1182 if (agc == NULL) { in dib8000_set_agc_config() 1187 state->current_agc = agc; in dib8000_set_agc_config() 1190 dib8000_write_word(state, 76, agc->setup); in dib8000_set_agc_config() 1191 dib8000_write_word(state, 77, agc->inv_gain); in dib8000_set_agc_config() 1192 dib8000_write_word(state, 78, agc->time_stabiliz); in dib8000_set_agc_config() 1193 dib8000_write_word(state, 101, (agc->alpha_level << 12) | agc->thlock); in dib8000_set_agc_config() 1196 dib8000_write_word(state, 102, (agc->alpha_mant << 5) | agc->alpha_exp); in dib8000_set_agc_config() [all …]
|
D | mn88443x.c | 289 u32 agc; in mn88443x_s_read_status() local 292 agc = tmpu << 8; in mn88443x_s_read_status() 296 c->strength.stat[0].uvalue = agc; in mn88443x_s_read_status() 492 u32 agc; in mn88443x_t_read_status() local 496 agc = (tmpu << 8) | tmpl; in mn88443x_t_read_status() 500 c->strength.stat[0].uvalue = agc; in mn88443x_t_read_status()
|
D | mt312.c | 483 u16 agc; in mt312_read_signal_strength() local 490 agc = (buf[0] << 6) | (buf[1] >> 2); in mt312_read_signal_strength() 493 *signal_strength = agc; in mt312_read_signal_strength() 495 dprintk("agc=%08x err_db=%hd\n", agc, err_db); in mt312_read_signal_strength()
|
D | dib3000mc.h | 16 struct dibx000_agc_config *agc; member
|
D | dib7000m.h | 16 struct dibx000_agc_config *agc; member
|
D | dib7000p.h | 14 struct dibx000_agc_config *agc; member
|
D | dib8000.h | 14 struct dibx000_agc_config *agc; member
|
/linux-6.6.21/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
D | max2820.c | 73 static u8 max2820_rf_calc_rssi(u8 agc, u8 sq) in max2820_rf_calc_rssi() argument 77 odd = !!(agc & 1); in max2820_rf_calc_rssi() 79 agc >>= 1; in max2820_rf_calc_rssi() 81 agc += 76; in max2820_rf_calc_rssi() 83 agc += 66; in max2820_rf_calc_rssi() 86 return 65 * agc / 100; in max2820_rf_calc_rssi()
|
D | grf5101.c | 68 static u8 grf5101_rf_calc_rssi(u8 agc, u8 sq) in grf5101_rf_calc_rssi() argument 70 if (agc > 60) in grf5101_rf_calc_rssi() 74 return 65 * agc / 60; in grf5101_rf_calc_rssi()
|
D | rtl8180.h | 56 u8 agc; member
|
D | sa2400.c | 88 static u8 sa2400_rf_calc_rssi(u8 agc, u8 sq) in sa2400_rf_calc_rssi() argument
|
D | dev.c | 216 u8 agc, sq; in rtl8180_handle_rx() local 281 agc = (flags2 >> 17) & 0x7F; in rtl8180_handle_rx() 286 signal = -clamp_t(u8, agc, 25, 90) - 9; in rtl8180_handle_rx() 288 signal = -clamp_t(u8, agc, 30, 95); in rtl8180_handle_rx() 292 signal = priv->rf->calc_rssi(agc, sq); in rtl8180_handle_rx() 305 idx = (agc & 0x60) >> 5; in rtl8180_handle_rx() 306 bb = (agc & 0x1F) * 2; in rtl8180_handle_rx()
|
/linux-6.6.21/drivers/media/tuners/ |
D | tda18218.c | 120 u8 agc[][2] = { in tda18218_set_params() local 190 for (i = 0; i < ARRAY_SIZE(agc); i++) { in tda18218_set_params() 191 ret = tda18218_wr_reg(priv, agc[i][0], agc[i][1]); in tda18218_set_params()
|
/linux-6.6.21/drivers/net/wireless/ath/ath9k/ |
D | ar9003_rtt.c | 123 int agc, caldac; in ar9003_hw_patch_rtt() local 131 agc = REG_READ_FIELD(ah, AR_PHY_65NM_RXRF_AGC(chain), in ar9003_hw_patch_rtt() 133 if (!agc) in ar9003_hw_patch_rtt()
|
/linux-6.6.21/Documentation/ABI/testing/ |
D | sysfs-bus-iio-isl29501 | 6 This sensor has an automatic gain control (agc) loop 14 The agc gain read when measuring crosstalk shall be
|
/linux-6.6.21/include/sound/ |
D | wm9090.h | 22 u16 agc[3]; member
|
/linux-6.6.21/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
D | rtl8187.h | 48 u8 agc; member 58 u8 agc; member
|
/linux-6.6.21/drivers/media/usb/dvb-usb/ |
D | dib0700_devices.c | 73 { .agc = &bristol_dib3000p_mt2060_agc_config, 78 { .agc = &bristol_dib3000p_mt2060_agc_config, 245 .agc = stk7700d_7000p_mt2266_agc_config, 257 .agc = stk7700d_7000p_mt2266_agc_config, 411 .agc = &xc3028_agc_config, 681 .agc = &stk7700p_7000m_mt2060_agc_config, 693 .agc = &stk7700p_7000p_mt2060_agc_config, 971 .agc = &dib7070_agc_config, 1028 .agc = &dib7070_agc_config, 1198 .agc = dib807x_agc_config, [all …]
|
/linux-6.6.21/sound/soc/codecs/ |
D | wm9090.c | 444 for (i = 0; i < ARRAY_SIZE(wm9090->pdata.agc); i++) in wm9090_add_controls() 446 wm9090->pdata.agc[i]); in wm9090_add_controls()
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rx.c | 743 u8 agc; in iwlagn_calc_rssi() local 746 agc = (val & IWLAGN_OFDM_AGC_MSK) >> IWLAGN_OFDM_AGC_BIT_POS; in iwlagn_calc_rssi() 767 rssi_a, rssi_b, rssi_c, max_rssi, agc); in iwlagn_calc_rssi() 771 return max_rssi - agc - IWLAGN_RSSI_OFFSET; in iwlagn_calc_rssi()
|
/linux-6.6.21/drivers/media/i2c/ |
D | saa7115.c | 77 struct v4l2_ctrl *agc; member 819 if (state->agc->val) in saa711x_g_volatile_ctrl() 851 if (state->agc->val) in saa711x_s_ctrl() 1869 state->agc = v4l2_ctrl_new_std(hdl, &saa711x_ctrl_ops, in saa711x_probe() 1880 v4l2_ctrl_auto_cluster(2, &state->agc, 0, true); in saa711x_probe()
|