Home
last modified time | relevance | path

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

12

/drivers/media/dvb-frontends/
Ddib7000m.c636 u16 agc,split_offset; in dib7000m_agc_soft_split() local
642 agc = dib7000m_read_word(state, 390); in dib7000m_agc_soft_split()
644 if (agc > state->current_agc->split.min_thres) in dib7000m_agc_soft_split()
646 else if (agc < state->current_agc->split.max_thres) in dib7000m_agc_soft_split()
650 (agc - state->current_agc->split.min_thres) / in dib7000m_agc_soft_split()
677 struct dibx000_agc_config *agc = NULL; in dib7000m_set_agc_config() local
684 if (state->cfg.agc[i].band_caps & band) { in dib7000m_set_agc_config()
685 agc = &state->cfg.agc[i]; in dib7000m_set_agc_config()
689 if (agc == NULL) { in dib7000m_set_agc_config()
694 state->current_agc = agc; in dib7000m_set_agc_config()
[all …]
Ddib3000mc.c133 u16 reg_51, reg_52 = state->cfg->agc->setup & 0xfefb; in dib3000mc_setup_pwm_state()
295 struct dibx000_agc_config *agc = state->cfg->agc; in dib3000mc_init() local
357 dib3000mc_write_word(state, 42, agc->agc1_max); in dib3000mc_init()
358 dib3000mc_write_word(state, 43, agc->agc1_min); in dib3000mc_init()
359 dib3000mc_write_word(state, 44, agc->agc2_max); in dib3000mc_init()
360 dib3000mc_write_word(state, 45, agc->agc2_min); in dib3000mc_init()
361 dib3000mc_write_word(state, 46, (agc->agc1_pt1 << 8) | agc->agc1_pt2); in dib3000mc_init()
362 dib3000mc_write_word(state, 47, (agc->agc1_slope1 << 8) | agc->agc1_slope2); in dib3000mc_init()
363 dib3000mc_write_word(state, 48, (agc->agc2_pt1 << 8) | agc->agc2_pt2); in dib3000mc_init()
364 dib3000mc_write_word(state, 49, (agc->agc2_slope1 << 8) | agc->agc2_slope2); in dib3000mc_init()
Ddib7000p.c749 struct dibx000_agc_config *agc = NULL; in dib7000p_set_agc_config() local
756 if (state->cfg.agc[i].band_caps & band) { in dib7000p_set_agc_config()
757 agc = &state->cfg.agc[i]; in dib7000p_set_agc_config()
761 if (agc == NULL) { in dib7000p_set_agc_config()
766 state->current_agc = agc; in dib7000p_set_agc_config()
769 dib7000p_write_word(state, 75, agc->setup); in dib7000p_set_agc_config()
770 dib7000p_write_word(state, 76, agc->inv_gain); in dib7000p_set_agc_config()
771 dib7000p_write_word(state, 77, agc->time_stabiliz); in dib7000p_set_agc_config()
772 dib7000p_write_word(state, 100, (agc->alpha_level << 12) | agc->thlock); in dib7000p_set_agc_config()
775 dib7000p_write_word(state, 101, (agc->alpha_mant << 5) | agc->alpha_exp); in dib7000p_set_agc_config()
[all …]
Ddib8000.c1164 struct dibx000_agc_config *agc = NULL; in dib8000_set_agc_config() local
1173 if (state->cfg.agc[i].band_caps & band) { in dib8000_set_agc_config()
1174 agc = &state->cfg.agc[i]; in dib8000_set_agc_config()
1178 if (agc == NULL) { in dib8000_set_agc_config()
1183 state->current_agc = agc; in dib8000_set_agc_config()
1186 dib8000_write_word(state, 76, agc->setup); in dib8000_set_agc_config()
1187 dib8000_write_word(state, 77, agc->inv_gain); in dib8000_set_agc_config()
1188 dib8000_write_word(state, 78, agc->time_stabiliz); in dib8000_set_agc_config()
1189 dib8000_write_word(state, 101, (agc->alpha_level << 12) | agc->thlock); in dib8000_set_agc_config()
1192 dib8000_write_word(state, 102, (agc->alpha_mant << 5) | agc->alpha_exp); in dib8000_set_agc_config()
[all …]
Dm88ds3103.h59 u8 agc; member
154 u8 agc; member
Dmt312.c501 u16 agc; in mt312_read_signal_strength() local
508 agc = (buf[0] << 6) | (buf[1] >> 2); in mt312_read_signal_strength()
511 *signal_strength = agc; in mt312_read_signal_strength()
513 dprintk("agc=%08x err_db=%hd\n", agc, err_db); in mt312_read_signal_strength()
Ddib3000mc.h21 struct dibx000_agc_config *agc; member
Ddib7000m.h17 struct dibx000_agc_config *agc; member
Ddib7000p.h15 struct dibx000_agc_config *agc; member
Dm88ds3103.c598 ret = regmap_write(dev->regmap, 0x33, dev->cfg->agc); in m88ds3103_set_frontend()
1296 pdata.agc = cfg->agc; in m88ds3103_attach()
1404 dev->config.agc = pdata->agc; in m88ds3103_probe()
Ddib8000.h13 struct dibx000_agc_config *agc; member
/drivers/net/wireless/realtek/rtl818x/rtl8180/
Dmax2820.c76 static u8 max2820_rf_calc_rssi(u8 agc, u8 sq) in max2820_rf_calc_rssi() argument
80 odd = !!(agc & 1); in max2820_rf_calc_rssi()
82 agc >>= 1; in max2820_rf_calc_rssi()
84 agc += 76; in max2820_rf_calc_rssi()
86 agc += 66; in max2820_rf_calc_rssi()
89 return 65 * agc / 100; in max2820_rf_calc_rssi()
Dgrf5101.c71 static u8 grf5101_rf_calc_rssi(u8 agc, u8 sq) in grf5101_rf_calc_rssi() argument
73 if (agc > 60) in grf5101_rf_calc_rssi()
77 return 65 * agc / 60; in grf5101_rf_calc_rssi()
Ddev.c216 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()
Drtl8180.h55 u8 agc; member
Dsa2400.c91 static u8 sa2400_rf_calc_rssi(u8 agc, u8 sq) in sa2400_rf_calc_rssi() argument
/drivers/staging/vt6656/
Dbaseband.c384 u8 *agc; in vnt_vt3184_init() local
404 agc = vnt_vt3184_agc; in vnt_vt3184_init()
416 agc = vnt_vt3184_agc; in vnt_vt3184_init()
431 agc = vnt_vt3184_agc; in vnt_vt3184_init()
446 agc = vnt_vt3184_agc; in vnt_vt3184_init()
466 memcpy(array, agc, length_agc); in vnt_vt3184_init()
/drivers/media/tuners/
Dtda18218.c133 u8 agc[][2] = { in tda18218_set_params() local
203 for (i = 0; i < ARRAY_SIZE(agc); i++) { in tda18218_set_params()
204 ret = tda18218_wr_reg(priv, agc[i][0], agc[i][1]); in tda18218_set_params()
/drivers/net/wireless/ath/ath9k/
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()
/drivers/media/usb/dvb-usb/
Ddib0700_devices.c74 { .agc = &bristol_dib3000p_mt2060_agc_config,
79 { .agc = &bristol_dib3000p_mt2060_agc_config,
246 .agc = stk7700d_7000p_mt2266_agc_config,
258 .agc = stk7700d_7000p_mt2266_agc_config,
412 .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 …]
Dm920x.c502 u8 agc[] = { AGC_TARGET, 0x1c, 0x20 }; in m920x_mt352_demod_init() local
517 if ((ret = mt352_write(fe, agc, ARRAY_SIZE(agc))) != 0) in m920x_mt352_demod_init()
/drivers/net/wireless/realtek/rtl818x/rtl8187/
Drtl8187.h51 u8 agc; member
61 u8 agc; member
/drivers/media/i2c/
Dsaa7115.c81 struct v4l2_ctrl *agc; member
823 if (state->agc->val) in saa711x_g_volatile_ctrl()
855 if (state->agc->val) in saa711x_s_ctrl()
1848 state->agc = v4l2_ctrl_new_std(hdl, &saa711x_ctrl_ops, in saa711x_probe()
1859 v4l2_ctrl_auto_cluster(2, &state->agc, 0, true); in saa711x_probe()
/drivers/net/wireless/iwlwifi/dvm/
Drx.c838 u8 agc; in iwlagn_calc_rssi() local
841 agc = (val & IWLAGN_OFDM_AGC_MSK) >> IWLAGN_OFDM_AGC_BIT_POS; in iwlagn_calc_rssi()
862 rssi_a, rssi_b, rssi_c, max_rssi, agc); in iwlagn_calc_rssi()
866 return max_rssi - agc - IWLAGN_RSSI_OFFSET; in iwlagn_calc_rssi()
/drivers/net/ethernet/atheros/alx/
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