Home
last modified time | relevance | path

Searched refs:agc (Results 1 – 25 of 39) sorted by relevance

12

/linux/drivers/media/dvb-frontends/
H A Ddib7000m.c640 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 …]
H A Ddib3000mc.c164 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()
H A Ddib7000p.c748 struct dibx000_agc_config *agc = NULL; in dib7000p_set_agc_config() local
755 if (state->cfg.agc[i].band_caps & band) { in dib7000p_set_agc_config()
756 agc = &state->cfg.agc[i]; in dib7000p_set_agc_config()
760 if (agc == NULL) { in dib7000p_set_agc_config()
765 state->current_agc = agc; in dib7000p_set_agc_config()
768 dib7000p_write_word(state, 75, agc->setup); in dib7000p_set_agc_config()
769 dib7000p_write_word(state, 76, agc->inv_gain); in dib7000p_set_agc_config()
770 dib7000p_write_word(state, 77, agc->time_stabiliz); in dib7000p_set_agc_config()
771 dib7000p_write_word(state, 100, (agc->alpha_level << 12) | agc->thlock); in dib7000p_set_agc_config()
774 dib7000p_write_word(state, 101, (agc->alpha_mant << 5) | agc->alpha_exp); in dib7000p_set_agc_config()
[all …]
H A Ddib8000.c1168 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 …]
H A Dm88ds3103.h74 u8 agc; member
123 u8 agc; member
H A Dmt312.c483 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()
H A Ddib3000mc.h16 struct dibx000_agc_config *agc; member
H A Ddib7000m.h16 struct dibx000_agc_config *agc; member
H A Ddib7000p.h14 struct dibx000_agc_config *agc; member
H A Ddib8000.h14 struct dibx000_agc_config *agc; member
H A Dm88ds3103.c967 ret = regmap_write(dev->regmap, 0x33, dev->cfg->agc); in m88ds3103_set_frontend()
1686 pdata.agc = cfg->agc; in m88ds3103_attach()
1794 dev->config.agc = pdata->agc; in m88ds3103_probe()
/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/
H A Dmax2820.c73 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()
H A Dgrf5101.c68 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()
H A Drtl8180.h56 u8 agc; member
H A Dsa2400.c88 static u8 sa2400_rf_calc_rssi(u8 agc, u8 sq) in sa2400_rf_calc_rssi() argument
/linux/drivers/media/tuners/
H A Dtda18218.c120 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/drivers/net/wireless/ath/ath9k/
H A Dar9003_rtt.c123 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/Documentation/ABI/testing/
H A Dsysfs-bus-iio-isl295016 This sensor has an automatic gain control (agc) loop
14 The agc gain read when measuring crosstalk shall be
/linux/drivers/net/wireless/realtek/rtl818x/rtl8187/
H A Drtl8187.h48 u8 agc; member
58 u8 agc; member
/linux/include/sound/
H A Dwm9090.h22 u16 agc[3]; member
/linux/drivers/media/usb/dvb-usb/
H A Ddib0700_devices.c73 { .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/drivers/net/wireless/intel/iwlwifi/dvm/
H A Drx.c743 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/sound/soc/codecs/
H A Dwm9090.c444 for (i = 0; i < ARRAY_SIZE(wm9090->pdata.agc); i++) in wm9090_add_controls()
446 wm9090->pdata.agc[i]); in wm9090_add_controls()
/linux/sound/pci/ice1712/
H A Dse.c270 static void se200pci_WM8776_set_agc(struct snd_ice1712 *ice, unsigned int agc) in se200pci_WM8776_set_agc() argument
273 switch (agc) { in se200pci_WM8776_set_agc()
/linux/drivers/net/ethernet/atheros/alx/
H A Dhw.c780 u16 phy_val, len, agc; in alx_post_phy_link() local
793 agc = ALX_GET_FIELD(phy_val, ALX_AGC_2_VGA); in alx_post_phy_link()
797 (len == 0 && agc > ALX_AGC_LONG1G_LIMT))) || in alx_post_phy_link()
800 (len == 0 && agc > ALX_AGC_LONG100M_LIMT)))) { in alx_post_phy_link()

12