/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192c/usb/ |
H A D | r92cu_init.c | 67 rtwn_write_1(sc, R92C_RF_CTRL, in r92cu_init_bb() 69 rtwn_write_1(sc, R92C_SYS_FUNC_EN, in r92cu_init_bb() 73 rtwn_write_1(sc, R92C_LDOHCI12_CTRL, 0x0f); in r92cu_init_bb() 74 rtwn_write_1(sc, 0x15, 0xe9); in r92cu_init_bb() 75 rtwn_write_1(sc, R92C_AFE_XTAL_CTRL + 1, 0x80); in r92cu_init_bb() 103 RTWN_CHK(rtwn_write_1(sc, R92C_RSV_CTRL, 0)); in r92cu_power_on() 106 RTWN_CHK(rtwn_write_1(sc, R92C_SPS0_CTRL, 0x2b)); in r92cu_power_on() 113 RTWN_CHK(rtwn_write_1(sc, R92C_LDOV12D_CTRL, in r92cu_power_on() 171 RTWN_CHK(rtwn_write_1(sc, 0xfe10, 0x19)); in r92cu_power_on() 195 error = rtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); in r92cu_power_off() [all …]
|
H A D | r92cu_led.c | 60 rtwn_write_1(sc, R92C_LEDCFG0, reg); in r92cu_set_led()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8188e/usb/ |
H A D | r88eu_init.c | 63 rtwn_write_1(sc, R92C_RF_CTRL, in r88eu_init_bb() 65 rtwn_write_1(sc, R92C_SYS_FUNC_EN, in r88eu_init_bb() 148 rtwn_write_1(sc, R92C_CR, 0); in r88eu_power_off() 152 rtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); in r88eu_power_off() 173 rtwn_write_1(sc, R92C_CR, in r88eu_power_off() 191 rtwn_write_1(sc, R92C_MCUFWDL, 0); in r88eu_power_off() 198 rtwn_write_1(sc, R92C_RF_CTRL, 0); in r88eu_power_off() 229 rtwn_write_1(sc, R92C_APS_FSMCO + 3, 0); in r88eu_power_off() 239 rtwn_write_1(sc, R92C_RSV_CTRL + 1, reg & ~0x08); in r88eu_power_off() 240 rtwn_write_1(sc, R92C_RSV_CTRL + 1, reg | 0x08); in r88eu_power_off() [all …]
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192c/pci/ |
H A D | r92ce_init.c | 92 rtwn_write_1(sc, R92C_RF_CTRL, in r92ce_init_bb() 95 rtwn_write_1(sc, R92C_SYS_FUNC_EN, in r92ce_init_bb() 100 rtwn_write_1(sc, R92C_AFE_XTAL_CTRL + 1, 0x80); in r92ce_init_bb() 127 rtwn_write_1(sc, R92C_RSV_CTRL, 0); in r92ce_power_on() 138 rtwn_write_1(sc, R92C_SPS0_CTRL, 0x2b); in r92ce_power_on() 141 rtwn_write_1(sc, R92C_AFE_XTAL_CTRL, 0x0f); in r92ce_power_on() 179 rtwn_write_1(sc, R92C_PCIE_CTRL_REG + 3, 0x77); in r92ce_power_on() 181 rtwn_write_1(sc, R92C_PCIE_CTRL_REG + 3, 0x22); in r92ce_power_on() 246 rtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); in r92ce_power_off() 249 rtwn_write_1(sc, R92C_RF_CTRL, 0); in r92ce_power_off() [all …]
|
H A D | r92ce_calib.c | 190 rtwn_write_1(sc, R92C_TXPAUSE, in r92ce_iq_calib_run() 192 rtwn_write_1(sc, R92C_BCN_CTRL(0), in r92ce_iq_calib_run() 194 rtwn_write_1(sc, R92C_BCN_CTRL(1), in r92ce_iq_calib_run() 196 rtwn_write_1(sc, R92C_GPIO_MUXCFG, in r92ce_iq_calib_run() 274 rtwn_write_1(sc, R92C_TXPAUSE, vals->txpause); in r92ce_iq_calib_run() 275 rtwn_write_1(sc, R92C_BCN_CTRL(0), vals->bcn_ctrl[0]); in r92ce_iq_calib_run() 276 rtwn_write_1(sc, R92C_BCN_CTRL(1), vals->bcn_ctrl[1]); in r92ce_iq_calib_run()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8812a/usb/ |
H A D | r12au_init.c | 136 rtwn_write_1(sc, 0xf050, 0x01); in r12au_init_ampdu() 141 rtwn_write_1(sc, R92C_RXDMA_STATUS + 1, 0xf5); in r12au_init_ampdu() 144 rtwn_write_1(sc, R12A_AMPDU_MAX_TIME, rs->ampdu_max_time); in r12au_init_ampdu() 148 rtwn_write_1(sc, R92C_USTIME_TSF, 0x50); in r12au_init_ampdu() 149 rtwn_write_1(sc, R92C_USTIME_EDCA, 0x50); in r12au_init_ampdu() 158 rtwn_write_1(sc, R92C_RX_PKT_LIMIT, 0x18); in r12au_init_ampdu() 160 rtwn_write_1(sc, R92C_PIFS, 0); in r12au_init_ampdu() 179 rtwn_write_1(sc, R12A_EARLY_MODE_CONTROL + 3, 0x01); in r12au_post_init() 182 rtwn_write_1(sc, R12A_SDIO_CTRL, 0); in r12au_post_init() 183 rtwn_write_1(sc, R92C_ACLK_MON, 0); in r12au_post_init() [all …]
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8188e/pci/ |
H A D | r88ee_init.c | 63 rtwn_write_1(sc, R92C_RF_CTRL, in r88ee_init_bb() 65 rtwn_write_1(sc, R92C_SYS_FUNC_EN, R92C_SYS_FUNC_EN_PPLL | in r88ee_init_bb() 90 rtwn_write_1(sc, R92C_RSV_CTRL, 0); in r88ee_power_on() 167 rtwn_write_1(sc, R92C_PCIE_CTRL_REG + 1, 0xFF); in r88ee_power_off() 171 rtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); in r88ee_power_off() 192 rtwn_write_1(sc, R92C_CR, in r88ee_power_off() 210 rtwn_write_1(sc, R92C_MCUFWDL, 0); in r88ee_power_off() 217 rtwn_write_1(sc, R92C_RF_CTRL, 0); in r88ee_power_off() 245 rtwn_write_1(sc, R92C_RSV_CTRL + 1, reg & ~0x08); in r88ee_power_off() 246 rtwn_write_1(sc, R92C_RSV_CTRL + 1, reg | 0x08); in r88ee_power_off() [all …]
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8812a/ |
H A D | r12a_init.c | 125 rtwn_write_1(sc, R92C_USTIME_TSF, 0x50); in r12a_init_edca() 126 rtwn_write_1(sc, R92C_USTIME_EDCA, 0x50); in r12a_init_edca() 141 rtwn_write_1(sc, R92C_RF_CTRL, in r12a_init_bb() 145 rtwn_write_1(sc, R12A_RF_B_CTRL, in r12a_init_bb() 232 rtwn_write_1(sc, R92C_RF_CTRL, in r12a_rf_init_workaround() 234 rtwn_write_1(sc, R92C_RF_CTRL, in r12a_rf_init_workaround() 237 rtwn_write_1(sc, R12A_RF_B_CTRL, in r12a_rf_init_workaround() 239 rtwn_write_1(sc, R12A_RF_B_CTRL, in r12a_rf_init_workaround() 266 RTWN_CHK(rtwn_write_1(sc, R92C_GPIO_IOSEL, 0)); in r12a_power_on() 269 RTWN_CHK(rtwn_write_1(sc, R92C_MAC_PINMUX_CFG, 0)); in r12a_power_on() [all …]
|
H A D | r12a_calib.c | 80 rtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); in r12a_lc_calib() 105 rtwn_write_1(sc, R92C_TXPAUSE, 0); in r12a_lc_calib() 193 rtwn_write_1(sc, R92C_TXPAUSE, in r12a_iq_config_mac() 199 rtwn_write_1(sc, R12A_OFDMCCK_EN, 0); in r12a_iq_config_mac() 203 rtwn_write_1(sc, R12A_CCK_RX_PATH + 3, 0x0f); in r12a_iq_config_mac()
|
H A D | r12a_chan.c | 414 rtwn_write_1(sc, R12A_DATA_SEC, ext_chan); in r12a_set_chan() 445 rtwn_write_1(sc, R12A_DATA_SEC, R12A_DATA_SEC_NO_EXT); in r12a_set_chan() 508 rtwn_write_1(sc, R12A_RFE_PINMUX(0) + 2, 0x77); in r12a_set_band_2ghz() 523 rtwn_write_1(sc, R12A_CCK_CHECK, 0); in r12a_set_band_2ghz() 532 rtwn_write_1(sc, R12A_CCK_CHECK, R12A_CCK_CHECK_5GHZ); in r12a_set_band_5ghz() 584 rtwn_write_1(sc, R12A_RFE_PINMUX(0) + 2, 0x33); in r12a_set_band_5ghz()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8821a/ |
H A D | r21a_init.c | 187 error = rtwn_write_1(sc, R92C_CR, 0); in r21a_power_off() 193 rtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); in r21a_power_off() 217 rtwn_write_1(sc, R92C_CR, in r21a_power_off() 235 rtwn_write_1(sc, R92C_MCUFWDL, 0); in r21a_power_off() 239 rtwn_write_1(sc, R92C_RF_CTRL, 0); in r21a_power_off() 338 RTWN_CHK(rtwn_write_1(sc, R88E_TXPKTBUF_BCNQ1_BDNY, in r21a_init_bcnq1_boundary() 340 RTWN_CHK(rtwn_write_1(sc, R21A_DWBCN1_CTRL + 1, in r21a_init_bcnq1_boundary() 352 rtwn_write_1(sc, R92C_FWHW_TXQ_CTRL, in r21a_init_ampdu_fwhw()
|
H A D | r21a_chan.c | 105 rtwn_write_1(sc, R12A_CCK_CHECK, 0); in r21a_set_band_2ghz() 124 rtwn_write_1(sc, R12A_CCK_CHECK, R12A_CCK_CHECK_5GHZ); in r21a_set_band_5ghz()
|
H A D | r21a_led.c | 60 rtwn_write_1(sc, R92C_LEDCFG2, in r21a_set_led()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192e/ |
H A D | r92e_init.c | 107 rtwn_write_1(sc, R92C_RF_CTRL, in r92e_init_bb() 230 RTWN_CHK(rtwn_write_1(sc, R92C_LDO_SWR_CTRL, 0xc3)); in r92e_power_on() 234 RTWN_CHK(rtwn_write_1(sc, R92C_LDO_SWR_CTRL, 0x83)); in r92e_power_on() 293 error = rtwn_write_1(sc, R92C_CR, 0); in r92e_power_off() 299 rtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); in r92e_power_off() 323 rtwn_write_1(sc, R92C_CR, in r92e_power_off() 333 rtwn_write_1(sc, R92C_MCUFWDL, 0); in r92e_power_off() 348 rtwn_write_1(sc, R92C_RF_CTRL, 0); in r92e_power_off()
|
H A D | r92e_chan.c | 167 rtwn_write_1(sc, R12A_DATA_SEC, in r92e_set_bw40() 196 rtwn_write_1(sc, R12A_DATA_SEC, R12A_DATA_SEC_NO_EXT); in r92e_set_bw20()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192c/ |
H A D | r92c_calib.c | 204 rtwn_write_1(sc, R92C_TXPAUSE, in r92c_iq_calib_run() 206 rtwn_write_1(sc, R92C_BCN_CTRL(0), in r92c_iq_calib_run() 208 rtwn_write_1(sc, R92C_BCN_CTRL(1), in r92c_iq_calib_run() 210 rtwn_write_1(sc, R92C_GPIO_MUXCFG, in r92c_iq_calib_run() 290 rtwn_write_1(sc, R92C_TXPAUSE, vals->txpause); in r92c_iq_calib_run() 291 rtwn_write_1(sc, R92C_BCN_CTRL(0), vals->bcn_ctrl[0]); in r92c_iq_calib_run() 292 rtwn_write_1(sc, R92C_BCN_CTRL(1), vals->bcn_ctrl[1]); in r92c_iq_calib_run() 417 rtwn_write_1(sc, R92C_OFDM1_LSTF + 3, txmode & ~0x70); in r92c_lc_calib() 428 rtwn_write_1(sc, R92C_TXPAUSE, R92C_TX_QUEUE_ALL); in r92c_lc_calib() 439 rtwn_write_1(sc, R92C_OFDM1_LSTF + 3, txmode); in r92c_lc_calib() [all …]
|
H A D | r92c_fw.c | 126 rtwn_write_1(sc, R92C_HMETFR + 3, 0x20); in r92c_fw_reset() 156 rtwn_write_1(sc, R92C_MCUFWDL + 1, 0); in r92c_fw_download_enable() 249 rtwn_write_1(sc, R92C_INIDATA_RATE_SEL(macid), maxrate); in r92c_init_ra() 476 rtwn_write_1(sc, R92C_C2H_EVT_CLEAR, R92C_C2H_EVT_HOST_CLOSE); in r92c_handle_c2h_task()
|
H A D | r92c_init.c | 118 return (rtwn_write_1(sc, R92C_PBP, SM(R92C_PBP_PSRX, R92C_PBP_128) | in r92c_set_page_size() 306 rtwn_write_1(sc, R92C_AGGR_BREAK_TIME, 0x16); in r92c_init_ampdu()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192e/usb/ |
H A D | r92eu_init.c | 80 rtwn_write_1(sc, R92C_ACLK_MON, 0); in r92eu_post_init() 82 rtwn_write_1(sc, R92C_USB_HRPWM, 0); in r92eu_post_init()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/ |
H A D | if_rtwn.c | 950 rtwn_write_1(sc, R92C_DUAL_TSF_RST, R92C_DUAL_TSF_RESET(uvp->id)); in rtwn_tsf_sync_enable() 1081 rtwn_write_1(sc, R92C_TXPAUSE, 0); in rtwn_newstate() 1104 rtwn_write_1(sc, R92C_DUAL_TSF_RST, in rtwn_newstate() 1269 rtwn_write_1(sc, R92C_TXPAUSE, 0); in rtwn_run() 1312 rtwn_write_1(sc, R92C_SIFS_CCK + 1, 10); in rtwn_run() 1313 rtwn_write_1(sc, R92C_SIFS_OFDM + 1, 10); in rtwn_run() 1314 rtwn_write_1(sc, R92C_SPEC_SIFS + 1, 10); in rtwn_run() 1315 rtwn_write_1(sc, R92C_MAC_SPEC_SIFS + 1, 10); in rtwn_run() 1316 rtwn_write_1(sc, R92C_R2T_SIFS + 1, 10); in rtwn_run() 1317 rtwn_write_1(sc, R92C_T2T_SIFS + 1, 10); in rtwn_run() [all …]
|
H A D | if_rtwn_efuse.c | 58 error = rtwn_write_1(sc, R92C_EFUSE_ACCESS, R92C_EFUSE_ACCESS_ON); in rtwn_efuse_switch_power() 235 rtwn_write_1(sc, R92C_EFUSE_ACCESS, R92C_EFUSE_ACCESS_OFF); in rtwn_efuse_read_prepare()
|
H A D | if_rtwn_fw.c | 152 rtwn_write_1(sc, R92C_MCUFWDL, 0); in rtwn_load_firmware()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8188e/ |
H A D | r88e_calib.c | 216 rtwn_write_1(sc, R92C_TXPAUSE, in r88e_iq_calib_run() 218 rtwn_write_1(sc, R92C_BCN_CTRL(0), in r88e_iq_calib_run() 220 rtwn_write_1(sc, R92C_BCN_CTRL(1), in r88e_iq_calib_run() 222 rtwn_write_1(sc, R92C_GPIO_MUXCFG, in r88e_iq_calib_run() 280 rtwn_write_1(sc, R92C_TXPAUSE, vals->txpause); in r88e_iq_calib_run() 281 rtwn_write_1(sc, R92C_BCN_CTRL(0), vals->bcn_ctrl[0]); in r88e_iq_calib_run() 282 rtwn_write_1(sc, R92C_BCN_CTRL(1), vals->bcn_ctrl[1]); in r88e_iq_calib_run()
|
H A D | r88e_fw.c | 129 rtwn_write_1(sc, R92C_MCUFWDL + 1, 0); in r88e_fw_download_enable()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8821a/usb/ |
H A D | r21au_init.c | 67 rtwn_write_1(sc, R21A_DWBCN1_CTRL, uc->tx_agg_desc_num << 1); in r21au_init_tx_agg()
|