Home
last modified time | relevance | path

Searched refs:rtlpriv (Results 1 – 25 of 32) sorted by relevance

12

/linux-2.6.39/drivers/net/wireless/rtlwifi/
Dcam.c33 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_reset_sec_info() local
35 rtlpriv->sec.use_defaultkey = false; in rtl_cam_reset_sec_info()
36 rtlpriv->sec.pairwise_enc_algorithm = NO_ENCRYPTION; in rtl_cam_reset_sec_info()
37 rtlpriv->sec.group_enc_algorithm = NO_ENCRYPTION; in rtl_cam_reset_sec_info()
38 memset(rtlpriv->sec.key_buf, 0, KEY_BUF_SIZE * MAX_KEY_LEN); in rtl_cam_reset_sec_info()
39 memset(rtlpriv->sec.key_len, 0, KEY_BUF_SIZE); in rtl_cam_reset_sec_info()
40 rtlpriv->sec.pairwise_key = NULL; in rtl_cam_reset_sec_info()
46 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_program_entry() local
52 RT_TRACE(rtlpriv, COMP_SEC, DBG_DMESG, in rtl_cam_program_entry()
66 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry()
[all …]
Dcore.c39 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_op_start() local
44 if (!test_bit(RTL_STATUS_INTERFACE_START, &rtlpriv->status)) in rtl_op_start()
46 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_start()
47 err = rtlpriv->intf_ops->adapter_start(hw); in rtl_op_start()
52 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_start()
58 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_op_stop() local
71 mutex_lock(&rtlpriv->locks.conf_mutex); in rtl_op_stop()
80 rtlpriv->intf_ops->adapter_stop(hw); in rtl_op_stop()
82 mutex_unlock(&rtlpriv->locks.conf_mutex); in rtl_op_stop()
87 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_op_tx() local
[all …]
Defuse.c89 struct rtl_priv *rtlpriv = rtl_priv(hw); in efuse_initialize() local
93 bytetemp = rtl_read_byte(rtlpriv, rtlpriv->cfg->maps[SYS_FUNC_EN] + 1); in efuse_initialize()
95 rtl_write_byte(rtlpriv, rtlpriv->cfg->maps[SYS_FUNC_EN] + 1, temp); in efuse_initialize()
97 bytetemp = rtl_read_byte(rtlpriv, rtlpriv->cfg->maps[SYS_ISO_CTRL] + 1); in efuse_initialize()
99 rtl_write_byte(rtlpriv, rtlpriv->cfg->maps[SYS_ISO_CTRL] + 1, temp); in efuse_initialize()
101 bytetemp = rtl_read_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_TEST] + 3); in efuse_initialize()
103 rtl_write_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_TEST] + 3, temp); in efuse_initialize()
105 rtl_write_byte(rtlpriv, 0x2F8, 0x3); in efuse_initialize()
107 rtl_write_byte(rtlpriv, rtlpriv->cfg->maps[EFUSE_CTRL] + 3, 0x72); in efuse_initialize()
113 struct rtl_priv *rtlpriv = rtl_priv(hw); in efuse_read_1byte() local
[all …]
Drc.c40 static u8 _rtl_rc_get_highest_rix(struct rtl_priv *rtlpriv, in _rtl_rc_get_highest_rix() argument
43 struct rtl_mac *rtlmac = rtl_mac(rtlpriv); in _rtl_rc_get_highest_rix()
51 return rtlpriv->cfg->maps[RTL_RC_CCK_RATE1M]; in _rtl_rc_get_highest_rix()
60 if (rtl_is_special_data(rtlpriv->mac80211.hw, skb, true)) { in _rtl_rc_get_highest_rix()
61 return rtlpriv->cfg->maps[RTL_RC_CCK_RATE1M]; in _rtl_rc_get_highest_rix()
64 return rtlpriv->cfg->maps[RTL_RC_CCK_RATE11M]; in _rtl_rc_get_highest_rix()
66 return rtlpriv->cfg->maps[RTL_RC_OFDM_RATE54M]; in _rtl_rc_get_highest_rix()
70 static void _rtl_rc_rate_set_series(struct rtl_priv *rtlpriv, in _rtl_rc_rate_set_series() argument
76 struct rtl_mac *mac = rtl_mac(rtlpriv); in _rtl_rc_rate_set_series()
96 struct rtl_priv *rtlpriv = ppriv; in rtl_get_rate() local
[all …]
Dps.c36 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_ps_enable_nic() local
43 rtlpriv->intf_ops->reset_trx_ring(hw); in rtl_ps_enable_nic()
46 RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, in rtl_ps_enable_nic()
50 rtlpriv->cfg->ops->hw_init(hw); in rtl_ps_enable_nic()
55 rtlpriv->cfg->ops->enable_interrupt(hw); in rtl_ps_enable_nic()
67 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_ps_disable_nic() local
73 rtlpriv->cfg->ops->disable_interrupt(hw); in rtl_ps_disable_nic()
76 rtlpriv->cfg->ops->hw_disable(hw); in rtl_ps_disable_nic()
86 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_ps_set_rf_state() local
104 spin_lock_irqsave(&rtlpriv->locks.rf_ps_lock, flag); in rtl_ps_set_rf_state()
[all …]
Dbase.c109 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl_init_hw_ht_capab() local
110 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl_init_hw_ht_capab()
141 RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, ("1T2R or 2T2R\n")); in _rtl_init_hw_ht_capab()
150 RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, ("1T1R\n")); in _rtl_init_hw_ht_capab()
219 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl_init_deferred_work() local
222 init_timer(&rtlpriv->works.watchdog_timer); in _rtl_init_deferred_work()
223 setup_timer(&rtlpriv->works.watchdog_timer, in _rtl_init_deferred_work()
227 rtlpriv->works.hw = hw; in _rtl_init_deferred_work()
228 rtlpriv->works.rtl_wq = alloc_workqueue(rtlpriv->cfg->name, 0, 0); in _rtl_init_deferred_work()
229 INIT_DELAYED_WORK(&rtlpriv->works.watchdog_wq, in _rtl_init_deferred_work()
[all …]
Dpci.c46 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl_pci_update_default_setting() local
144 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in _rtl_pci_update_default_setting()
182 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_pci_disable_aspm() local
196 RT_TRACE(rtlpriv, COMP_POWER, DBG_TRACE, in rtl_pci_disable_aspm()
238 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_pci_enable_aspm() local
253 RT_TRACE(rtlpriv, COMP_POWER, DBG_TRACE, in rtl_pci_enable_aspm()
271 RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, in rtl_pci_enable_aspm()
348 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_pci_parse_configuration() local
360 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl_pci_parse_configuration()
435 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl_pci_io_handler_init() local
[all …]
Dusb.c134 static u8 _usb_read8_sync(struct rtl_priv *rtlpriv, u32 addr) in _usb_read8_sync() argument
136 struct device *dev = rtlpriv->io.dev; in _usb_read8_sync()
141 static u16 _usb_read16_sync(struct rtl_priv *rtlpriv, u32 addr) in _usb_read16_sync() argument
143 struct device *dev = rtlpriv->io.dev; in _usb_read16_sync()
148 static u32 _usb_read32_sync(struct rtl_priv *rtlpriv, u32 addr) in _usb_read32_sync() argument
150 struct device *dev = rtlpriv->io.dev; in _usb_read32_sync()
171 static void _usb_write8_async(struct rtl_priv *rtlpriv, u32 addr, u8 val) in _usb_write8_async() argument
173 struct device *dev = rtlpriv->io.dev; in _usb_write8_async()
178 static void _usb_write16_async(struct rtl_priv *rtlpriv, u32 addr, u16 val) in _usb_write16_async() argument
180 struct device *dev = rtlpriv->io.dev; in _usb_write16_async()
[all …]
Dregd.c351 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_regd_init() local
355 if (wiphy == NULL || &rtlpriv->regd == NULL) in rtl_regd_init()
359 rtlpriv->regd.country_code = COUNTRY_CODE_WORLD_WIDE_13; in rtl_regd_init()
361 RT_TRACE(rtlpriv, COMP_REGD, DBG_TRACE, in rtl_regd_init()
363 rtlpriv->regd.country_code)); in rtl_regd_init()
365 if (rtlpriv->regd.country_code >= COUNTRY_CODE_MAX) { in rtl_regd_init()
366 RT_TRACE(rtlpriv, COMP_REGD, DBG_DMESG, in rtl_regd_init()
370 rtlpriv->regd.country_code = COUNTRY_CODE_WORLD_WIDE_13; in rtl_regd_init()
373 country = _rtl_regd_find_country(rtlpriv->regd.country_code); in rtl_regd_init()
376 rtlpriv->regd.alpha2[0] = country->isoName[0]; in rtl_regd_init()
[all …]
Dpci.h245 static inline u8 pci_read8_sync(struct rtl_priv *rtlpriv, u32 addr) in pci_read8_sync() argument
247 return readb((u8 __iomem *) rtlpriv->io.pci_mem_start + addr); in pci_read8_sync()
250 static inline u16 pci_read16_sync(struct rtl_priv *rtlpriv, u32 addr) in pci_read16_sync() argument
252 return readw((u8 __iomem *) rtlpriv->io.pci_mem_start + addr); in pci_read16_sync()
255 static inline u32 pci_read32_sync(struct rtl_priv *rtlpriv, u32 addr) in pci_read32_sync() argument
257 return readl((u8 __iomem *) rtlpriv->io.pci_mem_start + addr); in pci_read32_sync()
260 static inline void pci_write8_async(struct rtl_priv *rtlpriv, u32 addr, u8 val) in pci_write8_async() argument
262 writeb(val, (u8 __iomem *) rtlpriv->io.pci_mem_start + addr); in pci_write8_async()
265 static inline void pci_write16_async(struct rtl_priv *rtlpriv, in pci_write16_async() argument
268 writew(val, (u8 __iomem *) rtlpriv->io.pci_mem_start + addr); in pci_write16_async()
[all …]
/linux-2.6.39/drivers/net/wireless/rtlwifi/rtl8192cu/
Dmac.c53 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_read_chip_version() local
54 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_read_chip_version()
55 struct rtl_hal *rtlhal = rtl_hal(rtlpriv); in rtl92c_read_chip_version()
59 value32 = rtl_read_dword(rtlpriv, REG_SYS_CFG); in rtl92c_read_chip_version()
74 value32 = rtl_read_dword(rtlpriv, REG_HPON_FSM); in rtl92c_read_chip_version()
78 value32 = rtl_read_dword(rtlpriv, REG_GPIO_OUTSTS); in rtl92c_read_chip_version()
86 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92c_read_chip_version()
90 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92c_read_chip_version()
94 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92c_read_chip_version()
98 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92c_read_chip_version()
[all …]
Ddm.c39 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_dm_dynamic_txpower() local
40 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92cu_dm_dynamic_txpower()
44 if (!rtlpriv->dm.dynamic_txpower_enable) in rtl92cu_dm_dynamic_txpower()
47 if (rtlpriv->dm.dm_flag & HAL_DM_HIPWR_DISABLE) { in rtl92cu_dm_dynamic_txpower()
48 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92cu_dm_dynamic_txpower()
53 (rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb == 0)) { in rtl92cu_dm_dynamic_txpower()
54 RT_TRACE(rtlpriv, COMP_POWER, DBG_TRACE, in rtl92cu_dm_dynamic_txpower()
57 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92cu_dm_dynamic_txpower()
59 rtlpriv->dm.last_dtp_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92cu_dm_dynamic_txpower()
66 rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb; in rtl92cu_dm_dynamic_txpower()
[all …]
Dhw.c48 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_phy_param_tab_init() local
49 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92cu_phy_param_tab_init()
50 struct rtl_efuse *rtlefuse = rtl_efuse(rtlpriv); in _rtl92cu_phy_param_tab_init()
124 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_read_txpower_info_from_hwpg() local
161 RTPRINT(rtlpriv, FINIT, INIT_EEPROM, in _rtl92cu_read_txpower_info_from_hwpg()
167 RTPRINT(rtlpriv, FINIT, INIT_EEPROM, in _rtl92cu_read_txpower_info_from_hwpg()
174 RTPRINT(rtlpriv, FINIT, INIT_EEPROM, in _rtl92cu_read_txpower_info_from_hwpg()
204 RTPRINT(rtlpriv, FINIT, INIT_TxPower, in _rtl92cu_read_txpower_info_from_hwpg()
241 RTPRINT(rtlpriv, FINIT, INIT_TxPower, in _rtl92cu_read_txpower_info_from_hwpg()
245 RTPRINT(rtlpriv, FINIT, INIT_TxPower, in _rtl92cu_read_txpower_info_from_hwpg()
[all …]
Dphy.c43 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_query_rf_reg() local
45 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92cu_phy_query_rf_reg()
47 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, ("regaddr(%#x), " in rtl92cu_phy_query_rf_reg()
59 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, in rtl92cu_phy_query_rf_reg()
70 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_set_rf_reg() local
71 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92cu_phy_set_rf_reg()
74 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, in rtl92cu_phy_set_rf_reg()
100 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, ("regaddr(%#x), " in rtl92cu_phy_set_rf_reg()
108 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_mac_config() local
114 rtl_write_byte(rtlpriv, 0x14, 0x71); in rtl92cu_phy_mac_config()
[all …]
Drf.c41 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_rf6052_set_bandwidth() local
42 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92cu_phy_rf6052_set_bandwidth()
58 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in rtl92cu_phy_rf6052_set_bandwidth()
67 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_phy_rf6052_set_cck_txpower() local
68 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92cu_phy_rf6052_set_cck_txpower()
69 struct rtl_hal *rtlhal = rtl_hal(rtlpriv); in rtl92cu_phy_rf6052_set_cck_txpower()
102 if (rtlpriv->dm.dynamic_txhighpower_lvl == in rtl92cu_phy_rf6052_set_cck_txpower()
106 } else if (rtlpriv->dm.dynamic_txhighpower_lvl == in rtl92cu_phy_rf6052_set_cck_txpower()
142 RTPRINT(rtlpriv, FPHY, PHY_TXPWR, in rtl92cu_phy_rf6052_set_cck_txpower()
150 RTPRINT(rtlpriv, FPHY, PHY_TXPWR, in rtl92cu_phy_rf6052_set_cck_txpower()
[all …]
Dled.c48 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_sw_led_on() local
50 RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, in rtl92cu_sw_led_on()
52 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl92cu_sw_led_on()
57 rtl_write_byte(rtlpriv, in rtl92cu_sw_led_on()
61 rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg & 0x0f) | BIT(5)); in rtl92cu_sw_led_on()
64 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in rtl92cu_sw_led_on()
73 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_sw_led_off() local
77 RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, in rtl92cu_sw_led_off()
79 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl92cu_sw_led_off()
86 rtl_write_byte(rtlpriv, REG_LEDCFG2, in rtl92cu_sw_led_off()
[all …]
/linux-2.6.39/drivers/net/wireless/rtlwifi/rtl8192ce/
Dhw.c49 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_set_bcn_ctrl_reg() local
54 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8) rtlpci->reg_bcn_ctrl_val); in _rtl92ce_set_bcn_ctrl_reg()
59 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_stop_tx_beacon() local
62 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl92ce_stop_tx_beacon()
63 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp1byte & (~BIT(6))); in _rtl92ce_stop_tx_beacon()
64 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl92ce_stop_tx_beacon()
65 tmp1byte = rtl_read_byte(rtlpriv, REG_TBTT_PROHIBIT + 2); in _rtl92ce_stop_tx_beacon()
67 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 2, tmp1byte); in _rtl92ce_stop_tx_beacon()
72 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_resume_tx_beacon() local
75 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl92ce_resume_tx_beacon()
[all …]
Ddm.c39 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_dm_dynamic_txpower() local
40 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92ce_dm_dynamic_txpower()
44 if (!rtlpriv->dm.dynamic_txpower_enable) in rtl92ce_dm_dynamic_txpower()
47 if (rtlpriv->dm.dm_flag & HAL_DM_HIPWR_DISABLE) { in rtl92ce_dm_dynamic_txpower()
48 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92ce_dm_dynamic_txpower()
53 (rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb == 0)) { in rtl92ce_dm_dynamic_txpower()
54 RT_TRACE(rtlpriv, COMP_POWER, DBG_TRACE, in rtl92ce_dm_dynamic_txpower()
57 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92ce_dm_dynamic_txpower()
59 rtlpriv->dm.last_dtp_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92ce_dm_dynamic_txpower()
66 rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb; in rtl92ce_dm_dynamic_txpower()
[all …]
Dphy.c44 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_phy_query_rf_reg() local
46 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92ce_phy_query_rf_reg()
49 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, ("regaddr(%#x), " in rtl92ce_phy_query_rf_reg()
53 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl92ce_phy_query_rf_reg()
66 spin_unlock_irqrestore(&rtlpriv->locks.rf_lock, flags); in rtl92ce_phy_query_rf_reg()
68 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, in rtl92ce_phy_query_rf_reg()
80 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_phy_set_rf_reg() local
81 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92ce_phy_set_rf_reg()
85 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, in rtl92ce_phy_set_rf_reg()
89 spin_lock_irqsave(&rtlpriv->locks.rf_lock, flags); in rtl92ce_phy_set_rf_reg()
[all …]
Dtrx.c252 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_query_rxphystatus() local
337 rtlpriv->dm.rfpath_rxenable[0] = in _rtl92ce_query_rxphystatus()
338 rtlpriv->dm.rfpath_rxenable[1] = true; in _rtl92ce_query_rxphystatus()
340 if (rtlpriv->dm.rfpath_rxenable[i]) in _rtl92ce_query_rxphystatus()
347 rtlpriv->stats.rx_snr_db[i] = in _rtl92ce_query_rxphystatus()
391 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_process_ui_rssi() local
392 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92ce_process_ui_rssi()
397 rtlpriv->stats.rssi_calculate_cnt++; in _rtl92ce_process_ui_rssi()
399 if (rtlpriv->stats.ui_rssi.total_num++ >= in _rtl92ce_process_ui_rssi()
401 rtlpriv->stats.ui_rssi.total_num = in _rtl92ce_process_ui_rssi()
[all …]
Dled.c38 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_sw_led_on() local
40 RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, in rtl92ce_sw_led_on()
43 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl92ce_sw_led_on()
49 rtl_write_byte(rtlpriv, in rtl92ce_sw_led_on()
53 rtl_write_byte(rtlpriv, REG_LEDCFG2, (ledcfg & 0x0f) | BIT(5)); in rtl92ce_sw_led_on()
56 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in rtl92ce_sw_led_on()
65 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_sw_led_off() local
69 RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, in rtl92ce_sw_led_off()
72 ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); in rtl92ce_sw_led_off()
80 rtl_write_byte(rtlpriv, REG_LEDCFG2, in rtl92ce_sw_led_off()
[all …]
Drf.c41 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_rf6052_set_bandwidth() local
42 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_phy_rf6052_set_bandwidth()
58 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in rtl92c_phy_rf6052_set_bandwidth()
67 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_phy_rf6052_set_cck_txpower() local
68 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92ce_phy_rf6052_set_cck_txpower()
125 RTPRINT(rtlpriv, FPHY, PHY_TXPWR, in rtl92ce_phy_rf6052_set_cck_txpower()
136 RTPRINT(rtlpriv, FPHY, PHY_TXPWR, in rtl92ce_phy_rf6052_set_cck_txpower()
143 RTPRINT(rtlpriv, FPHY, PHY_TXPWR, in rtl92ce_phy_rf6052_set_cck_txpower()
150 RTPRINT(rtlpriv, FPHY, PHY_TXPWR, in rtl92ce_phy_rf6052_set_cck_txpower()
159 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_get_power_base() local
[all …]
/linux-2.6.39/drivers/net/wireless/rtlwifi/rtl8192c/
Ddm_common.c171 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_dm_initial_gain_min_pwdb() local
176 if (rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb != 0) in rtl92c_dm_initial_gain_min_pwdb()
178 (rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb > in rtl92c_dm_initial_gain_min_pwdb()
179 rtlpriv->dm.undecorated_smoothed_pwdb) ? in rtl92c_dm_initial_gain_min_pwdb()
180 rtlpriv->dm.undecorated_smoothed_pwdb : in rtl92c_dm_initial_gain_min_pwdb()
181 rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb; in rtl92c_dm_initial_gain_min_pwdb()
183 rssi_val_min = rtlpriv->dm.undecorated_smoothed_pwdb; in rtl92c_dm_initial_gain_min_pwdb()
186 rssi_val_min = rtlpriv->dm.undecorated_smoothed_pwdb; in rtl92c_dm_initial_gain_min_pwdb()
189 rssi_val_min = rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb; in rtl92c_dm_initial_gain_min_pwdb()
198 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_dm_false_alarm_counter_statistics() local
[all …]
Dfw_common.c40 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_enable_fw_download() local
44 u32 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl92c_enable_fw_download()
49 rtl_write_dword(rtlpriv, REG_MCUFWDL, value32); in _rtl92c_enable_fw_download()
54 tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl92c_enable_fw_download()
55 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, in _rtl92c_enable_fw_download()
58 tmp = rtl_read_byte(rtlpriv, REG_MCUFWDL); in _rtl92c_enable_fw_download()
59 rtl_write_byte(rtlpriv, REG_MCUFWDL, tmp | 0x01); in _rtl92c_enable_fw_download()
61 tmp = rtl_read_byte(rtlpriv, REG_MCUFWDL + 2); in _rtl92c_enable_fw_download()
62 rtl_write_byte(rtlpriv, REG_MCUFWDL + 2, tmp & 0xf7); in _rtl92c_enable_fw_download()
65 tmp = rtl_read_byte(rtlpriv, REG_MCUFWDL); in _rtl92c_enable_fw_download()
[all …]
Dphy_common.c41 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_query_bb_reg() local
44 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, ("regaddr(%#x), " in rtl92c_phy_query_bb_reg()
47 originalvalue = rtl_read_dword(rtlpriv, regaddr); in rtl92c_phy_query_bb_reg()
51 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, ("BBR MASK=0x%x " in rtl92c_phy_query_bb_reg()
63 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_phy_set_bb_reg() local
66 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, ("regaddr(%#x), bitmask(%#x)," in rtl92c_phy_set_bb_reg()
71 originalvalue = rtl_read_dword(rtlpriv, regaddr); in rtl92c_phy_set_bb_reg()
76 rtl_write_dword(rtlpriv, regaddr, data); in rtl92c_phy_set_bb_reg()
78 RT_TRACE(rtlpriv, COMP_RF, DBG_TRACE, ("regaddr(%#x), bitmask(%#x)," in rtl92c_phy_set_bb_reg()
103 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92c_phy_rf_serial_read() local
[all …]

12