Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/media/dvb-frontends/
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 …]
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()
Ddib7000p.c753 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 …]
Dm88ds3103.h74 u8 agc; member
123 u8 agc; member
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 …]
Dmn88443x.c289 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()
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()
Ddib3000mc.h16 struct dibx000_agc_config *agc; member
Ddib7000m.h16 struct dibx000_agc_config *agc; member
Ddib7000p.h14 struct dibx000_agc_config *agc; member
Ddib8000.h14 struct dibx000_agc_config *agc; member
/linux-6.6.21/drivers/net/wireless/realtek/rtl818x/rtl8180/
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()
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()
Drtl8180.h56 u8 agc; member
Dsa2400.c88 static u8 sa2400_rf_calc_rssi(u8 agc, u8 sq) in sa2400_rf_calc_rssi() argument
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()
/linux-6.6.21/drivers/media/tuners/
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-6.6.21/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()
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-bus-iio-isl295016 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/
Dwm9090.h22 u16 agc[3]; member
/linux-6.6.21/drivers/net/wireless/realtek/rtl818x/rtl8187/
Drtl8187.h48 u8 agc; member
58 u8 agc; member
/linux-6.6.21/drivers/media/usb/dvb-usb/
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-6.6.21/sound/soc/codecs/
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-6.6.21/drivers/net/wireless/intel/iwlwifi/dvm/
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-6.6.21/drivers/media/i2c/
Dsaa7115.c77 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()

12