/openbmc/qemu/hw/gpio/ |
H A D | aspeed_gpio.c | 580 AspeedGPIOClass *agc = ASPEED_GPIO_GET_CLASS(s); in aspeed_gpio_read() local 595 if (idx >= agc->reg_table_count) { in aspeed_gpio_read() 601 reg = &agc->reg_table[idx]; in aspeed_gpio_read() 602 if (reg->set_idx >= agc->nr_gpio_sets) { in aspeed_gpio_read() 666 AspeedGPIOClass *agc = ASPEED_GPIO_GET_CLASS(s); in aspeed_gpio_write_index_mode() local 679 props = &agc->props[set_idx]; in aspeed_gpio_write_index_mode() 810 AspeedGPIOClass *agc = ASPEED_GPIO_GET_CLASS(s); in aspeed_gpio_write() local 833 if (idx >= agc->reg_table_count) { in aspeed_gpio_write() 839 reg = &agc->reg_table[idx]; in aspeed_gpio_write() 840 if (reg->set_idx >= agc->nr_gpio_sets) { in aspeed_gpio_write() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A 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 …]
|
H A 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()
|
H A 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 …]
|
H A 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 …]
|
H A D | m88ds3103.h | 74 u8 agc; member 123 u8 agc; member
|
H A 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()
|
H A 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()
|
H A D | dib3000mc.h | 16 struct dibx000_agc_config *agc; member
|
H A D | dib7000m.h | 16 struct dibx000_agc_config *agc; member
|
H A D | dib7000p.h | 14 struct dibx000_agc_config *agc; member
|
H A D | dib8000.h | 14 struct dibx000_agc_config *agc; member
|
/openbmc/linux/drivers/net/wireless/realtek/rtl818x/rtl8180/ |
H A 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()
|
H A 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()
|
H A D | rtl8180.h | 56 u8 agc; member
|
H A D | sa2400.c | 88 static u8 sa2400_rf_calc_rssi(u8 agc, u8 sq) in sa2400_rf_calc_rssi() argument
|
/openbmc/linux/drivers/media/tuners/ |
H A 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()
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A 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()
|
/openbmc/qemu/hw/intc/ |
H A D | arm_gicv3.c | 441 ARMGICv3Class *agc = ARM_GICV3_GET_CLASS(s); in arm_gic_realize() local 444 agc->parent_realize(dev, &local_err); in arm_gic_realize() 459 ARMGICv3Class *agc = ARM_GICV3_CLASS(klass); in arm_gicv3_class_init() local 462 device_class_set_parent_realize(dc, arm_gic_realize, &agc->parent_realize); in arm_gicv3_class_init()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A 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
|
/openbmc/linux/include/sound/ |
H A D | wm9090.h | 22 u16 agc[3]; member
|
/openbmc/linux/drivers/net/wireless/realtek/rtl818x/rtl8187/ |
H A D | rtl8187.h | 48 u8 agc; member 58 u8 agc; member
|
/openbmc/linux/drivers/media/usb/dvb-usb/ |
H A 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 …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A 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()
|
/openbmc/linux/sound/soc/codecs/ |
H A 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()
|