Lines Matching refs:rt2x00_set_field32

94 		rt2x00_set_field32(&reg, BBP_CSR_CFG_VALUE, value);  in rt2800_bbp_write()
95 rt2x00_set_field32(&reg, BBP_CSR_CFG_REGNUM, word); in rt2800_bbp_write()
96 rt2x00_set_field32(&reg, BBP_CSR_CFG_BUSY, 1); in rt2800_bbp_write()
97 rt2x00_set_field32(&reg, BBP_CSR_CFG_READ_CONTROL, 0); in rt2800_bbp_write()
98 rt2x00_set_field32(&reg, BBP_CSR_CFG_BBP_RW_MODE, 1); in rt2800_bbp_write()
123 rt2x00_set_field32(&reg, BBP_CSR_CFG_REGNUM, word); in rt2800_bbp_read()
124 rt2x00_set_field32(&reg, BBP_CSR_CFG_BUSY, 1); in rt2800_bbp_read()
125 rt2x00_set_field32(&reg, BBP_CSR_CFG_READ_CONTROL, 1); in rt2800_bbp_read()
126 rt2x00_set_field32(&reg, BBP_CSR_CFG_BBP_RW_MODE, 1); in rt2800_bbp_read()
155 rt2x00_set_field32(&reg, RF_CSR_CFG_DATA_MT7620, value); in rt2800_rfcsr_write()
156 rt2x00_set_field32(&reg, RF_CSR_CFG_REGNUM_MT7620, in rt2800_rfcsr_write()
158 rt2x00_set_field32(&reg, RF_CSR_CFG_WRITE_MT7620, 1); in rt2800_rfcsr_write()
159 rt2x00_set_field32(&reg, RF_CSR_CFG_BUSY_MT7620, 1); in rt2800_rfcsr_write()
168 rt2x00_set_field32(&reg, RF_CSR_CFG_DATA, value); in rt2800_rfcsr_write()
169 rt2x00_set_field32(&reg, RF_CSR_CFG_REGNUM, word); in rt2800_rfcsr_write()
170 rt2x00_set_field32(&reg, RF_CSR_CFG_WRITE, 1); in rt2800_rfcsr_write()
171 rt2x00_set_field32(&reg, RF_CSR_CFG_BUSY, 1); in rt2800_rfcsr_write()
221 rt2x00_set_field32(&reg, RF_CSR_CFG_REGNUM_MT7620, in rt2800_rfcsr_read()
223 rt2x00_set_field32(&reg, RF_CSR_CFG_WRITE_MT7620, 0); in rt2800_rfcsr_read()
224 rt2x00_set_field32(&reg, RF_CSR_CFG_BUSY_MT7620, 1); in rt2800_rfcsr_read()
237 rt2x00_set_field32(&reg, RF_CSR_CFG_REGNUM, word); in rt2800_rfcsr_read()
238 rt2x00_set_field32(&reg, RF_CSR_CFG_WRITE, 0); in rt2800_rfcsr_read()
239 rt2x00_set_field32(&reg, RF_CSR_CFG_BUSY, 1); in rt2800_rfcsr_read()
274 rt2x00_set_field32(&reg, RF_CSR_CFG0_REG_VALUE_BW, value); in rt2800_rf_write()
275 rt2x00_set_field32(&reg, RF_CSR_CFG0_STANDBYMODE, 0); in rt2800_rf_write()
276 rt2x00_set_field32(&reg, RF_CSR_CFG0_SEL, 0); in rt2800_rf_write()
277 rt2x00_set_field32(&reg, RF_CSR_CFG0_BUSY, 1); in rt2800_rf_write()
441 rt2x00_set_field32(&reg, WLAN_GPIO_OUT_OE_BIT_ALL, 0xff); in rt2800_enable_wlan_rt3290()
442 rt2x00_set_field32(&reg, FRC_WL_ANT_SET, 1); in rt2800_enable_wlan_rt3290()
443 rt2x00_set_field32(&reg, WLAN_CLK_EN, 0); in rt2800_enable_wlan_rt3290()
444 rt2x00_set_field32(&reg, WLAN_EN, 1); in rt2800_enable_wlan_rt3290()
479 rt2x00_set_field32(&reg, PCIE_APP0_CLK_REQ, 0); in rt2800_enable_wlan_rt3290()
480 rt2x00_set_field32(&reg, WLAN_CLK_EN, 1); in rt2800_enable_wlan_rt3290()
481 rt2x00_set_field32(&reg, WLAN_RESET, 1); in rt2800_enable_wlan_rt3290()
484 rt2x00_set_field32(&reg, WLAN_RESET, 0); in rt2800_enable_wlan_rt3290()
512 rt2x00_set_field32(&reg, H2M_MAILBOX_CSR_OWNER, 1); in rt2800_mcu_request()
513 rt2x00_set_field32(&reg, H2M_MAILBOX_CSR_CMD_TOKEN, token); in rt2800_mcu_request()
514 rt2x00_set_field32(&reg, H2M_MAILBOX_CSR_ARG0, arg0); in rt2800_mcu_request()
515 rt2x00_set_field32(&reg, H2M_MAILBOX_CSR_ARG1, arg1); in rt2800_mcu_request()
519 rt2x00_set_field32(&reg, HOST_CMD_CSR_HOST_COMMAND, command); in rt2800_mcu_request()
572 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_ENABLE_TX_DMA, 0); in rt2800_disable_wpdma()
573 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_TX_DMA_BUSY, 0); in rt2800_disable_wpdma()
574 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_ENABLE_RX_DMA, 0); in rt2800_disable_wpdma()
575 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_RX_DMA_BUSY, 0); in rt2800_disable_wpdma()
576 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_TX_WRITEBACK_DONE, 1); in rt2800_disable_wpdma()
723 rt2x00_set_field32(&reg, AUX_CTRL_FORCE_PCIE_CLK, 1); in rt2800_load_firmware()
724 rt2x00_set_field32(&reg, AUX_CTRL_WAKE_PCIE_EN, 1); in rt2800_load_firmware()
784 rt2x00_set_field32(&word, TXWI_W0_FRAG, in rt2800_write_tx_data()
786 rt2x00_set_field32(&word, TXWI_W0_MIMO_PS, in rt2800_write_tx_data()
788 rt2x00_set_field32(&word, TXWI_W0_CF_ACK, 0); in rt2800_write_tx_data()
789 rt2x00_set_field32(&word, TXWI_W0_TS, in rt2800_write_tx_data()
791 rt2x00_set_field32(&word, TXWI_W0_AMPDU, in rt2800_write_tx_data()
793 rt2x00_set_field32(&word, TXWI_W0_MPDU_DENSITY, in rt2800_write_tx_data()
795 rt2x00_set_field32(&word, TXWI_W0_TX_OP, txdesc->u.ht.txop); in rt2800_write_tx_data()
796 rt2x00_set_field32(&word, TXWI_W0_MCS, txdesc->u.ht.mcs); in rt2800_write_tx_data()
797 rt2x00_set_field32(&word, TXWI_W0_BW, in rt2800_write_tx_data()
799 rt2x00_set_field32(&word, TXWI_W0_SHORT_GI, in rt2800_write_tx_data()
801 rt2x00_set_field32(&word, TXWI_W0_STBC, txdesc->u.ht.stbc); in rt2800_write_tx_data()
802 rt2x00_set_field32(&word, TXWI_W0_PHYMODE, txdesc->rate_mode); in rt2800_write_tx_data()
806 rt2x00_set_field32(&word, TXWI_W1_ACK, in rt2800_write_tx_data()
808 rt2x00_set_field32(&word, TXWI_W1_NSEQ, in rt2800_write_tx_data()
810 rt2x00_set_field32(&word, TXWI_W1_BW_WIN_SIZE, txdesc->u.ht.ba_size); in rt2800_write_tx_data()
811 rt2x00_set_field32(&word, TXWI_W1_WIRELESS_CLI_ID, in rt2800_write_tx_data()
814 rt2x00_set_field32(&word, TXWI_W1_MPDU_TOTAL_BYTE_COUNT, in rt2800_write_tx_data()
816 rt2x00_set_field32(&word, TXWI_W1_PACKETID_QUEUE, entry->queue->qid); in rt2800_write_tx_data()
817 rt2x00_set_field32(&word, TXWI_W1_PACKETID_ENTRY, (entry->entry_idx % 3) + 1); in rt2800_write_tx_data()
1328 rt2x00_set_field32(&bssid_dw1, MAC_BSSID_DW1_BSS_BCN_NUM, in rt2800_update_beacons_setup()
1348 rt2x00_set_field32(&reg, BCN_TIME_CFG_BEACON_GEN, 0); in rt2800_write_beacon()
1438 rt2x00_set_field32(&reg, BCN_TIME_CFG_BEACON_GEN, 0); in rt2800_clear_beacon()
1540 rt2x00_set_field32(&reg, LED_CFG_LED_POLAR, polarity); in rt2800_brightness_set()
1544 rt2x00_set_field32(&reg, LED_CFG_G_LED_MODE, in rt2800_brightness_set()
1547 rt2x00_set_field32(&reg, LED_CFG_Y_LED_MODE, in rt2800_brightness_set()
1550 rt2x00_set_field32(&reg, LED_CFG_R_LED_MODE, in rt2800_brightness_set()
1627 rt2x00_set_field32(&reg, MAC_WCID_ATTRIBUTE_BSS_IDX, (bssidx & 0x7)); in rt2800_config_wcid_attr_bssidx()
1628 rt2x00_set_field32(&reg, MAC_WCID_ATTRIBUTE_BSS_IDX_EXT, in rt2800_config_wcid_attr_bssidx()
1645 rt2x00_set_field32(&reg, MAC_WCID_ATTRIBUTE_KEYTAB, in rt2800_config_wcid_attr_cipher()
1652 rt2x00_set_field32(&reg, MAC_WCID_ATTRIBUTE_CIPHER, in rt2800_config_wcid_attr_cipher()
1654 rt2x00_set_field32(&reg, MAC_WCID_ATTRIBUTE_CIPHER_EXT, in rt2800_config_wcid_attr_cipher()
1656 rt2x00_set_field32(&reg, MAC_WCID_ATTRIBUTE_RX_WIUDF, crypto->cipher); in rt2800_config_wcid_attr_cipher()
1661 rt2x00_set_field32(&reg, MAC_WCID_ATTRIBUTE_KEYTAB, 0); in rt2800_config_wcid_attr_cipher()
1662 rt2x00_set_field32(&reg, MAC_WCID_ATTRIBUTE_CIPHER, 0); in rt2800_config_wcid_attr_cipher()
1663 rt2x00_set_field32(&reg, MAC_WCID_ATTRIBUTE_CIPHER_EXT, 0); in rt2800_config_wcid_attr_cipher()
1664 rt2x00_set_field32(&reg, MAC_WCID_ATTRIBUTE_RX_WIUDF, 0); in rt2800_config_wcid_attr_cipher()
1720 rt2x00_set_field32(&reg, field, in rt2800_config_shared_key()
1786 rt2x00_set_field32(&reg, MAX_LEN_CFG_MAX_PSDU, max_psdu); in rt2800_set_max_psdu_len()
1900 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_CRC_ERROR, in rt2800_config_filter()
1902 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_PHY_ERROR, in rt2800_config_filter()
1904 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_NOT_TO_ME, in rt2800_config_filter()
1906 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_NOT_MY_BSSD, 0); in rt2800_config_filter()
1907 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_VER_ERROR, 1); in rt2800_config_filter()
1908 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_MULTICAST, in rt2800_config_filter()
1910 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_BROADCAST, 0); in rt2800_config_filter()
1911 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_DUPLICATE, 1); in rt2800_config_filter()
1912 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_CF_END_ACK, in rt2800_config_filter()
1914 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_CF_END, in rt2800_config_filter()
1916 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_ACK, in rt2800_config_filter()
1918 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_CTS, in rt2800_config_filter()
1920 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_RTS, in rt2800_config_filter()
1922 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_PSPOLL, in rt2800_config_filter()
1924 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_BA, 0); in rt2800_config_filter()
1925 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_BAR, in rt2800_config_filter()
1927 rt2x00_set_field32(&reg, RX_FILTER_CFG_DROP_CNTL, in rt2800_config_filter()
1944 rt2x00_set_field32(&reg, BCN_TIME_CFG_TSF_SYNC, conf->sync); in rt2800_config_intf()
1952 rt2x00_set_field32(&reg, TBTT_SYNC_CFG_BCN_CWMIN, 0); in rt2800_config_intf()
1953 rt2x00_set_field32(&reg, TBTT_SYNC_CFG_BCN_AIFSN, 1); in rt2800_config_intf()
1954 rt2x00_set_field32(&reg, TBTT_SYNC_CFG_BCN_EXP_WIN, 32); in rt2800_config_intf()
1955 rt2x00_set_field32(&reg, TBTT_SYNC_CFG_TBTT_ADJUST, 0); in rt2800_config_intf()
1959 rt2x00_set_field32(&reg, TBTT_SYNC_CFG_BCN_CWMIN, 4); in rt2800_config_intf()
1960 rt2x00_set_field32(&reg, TBTT_SYNC_CFG_BCN_AIFSN, 2); in rt2800_config_intf()
1961 rt2x00_set_field32(&reg, TBTT_SYNC_CFG_BCN_EXP_WIN, 32); in rt2800_config_intf()
1962 rt2x00_set_field32(&reg, TBTT_SYNC_CFG_TBTT_ADJUST, 16); in rt2800_config_intf()
1980 rt2x00_set_field32(&reg, MAC_ADDR_DW1_UNICAST_TO_ME_MASK, 0xff); in rt2800_config_intf()
1991 rt2x00_set_field32(&reg, MAC_BSSID_DW1_BSS_ID_MASK, 3); in rt2800_config_intf()
1992 rt2x00_set_field32(&reg, MAC_BSSID_DW1_BSS_BCN_NUM, 0); in rt2800_config_intf()
2078 rt2x00_set_field32(&reg, MM20_PROT_CFG_PROTECT_RATE, mm20_rate); in rt2800_config_ht_opmode()
2079 rt2x00_set_field32(&reg, MM20_PROT_CFG_PROTECT_CTRL, mm20_mode); in rt2800_config_ht_opmode()
2083 rt2x00_set_field32(&reg, MM40_PROT_CFG_PROTECT_RATE, mm40_rate); in rt2800_config_ht_opmode()
2084 rt2x00_set_field32(&reg, MM40_PROT_CFG_PROTECT_CTRL, mm40_mode); in rt2800_config_ht_opmode()
2088 rt2x00_set_field32(&reg, GF20_PROT_CFG_PROTECT_RATE, gf20_rate); in rt2800_config_ht_opmode()
2089 rt2x00_set_field32(&reg, GF20_PROT_CFG_PROTECT_CTRL, gf20_mode); in rt2800_config_ht_opmode()
2093 rt2x00_set_field32(&reg, GF40_PROT_CFG_PROTECT_RATE, gf40_rate); in rt2800_config_ht_opmode()
2094 rt2x00_set_field32(&reg, GF40_PROT_CFG_PROTECT_CTRL, gf40_mode); in rt2800_config_ht_opmode()
2105 rt2x00_set_field32(&reg, AUTO_RSP_CFG_AR_PREAMBLE, in rt2800_config_erp()
2112 rt2x00_set_field32(&reg, OFDM_PROT_CFG_PROTECT_CTRL, in rt2800_config_erp()
2125 rt2x00_set_field32(&reg, BKOFF_SLOT_CFG_SLOT_TIME, in rt2800_config_erp()
2130 rt2x00_set_field32(&reg, XIFS_TIME_CFG_EIFS, erp->eifs); in rt2800_config_erp()
2136 rt2x00_set_field32(&reg, BCN_TIME_CFG_BEACON_INTERVAL, in rt2800_config_erp()
2154 rt2x00_set_field32(&reg, GPIO_SWITCH_0, 1); in rt2800_config_3572bt_ant()
2155 rt2x00_set_field32(&reg, GPIO_SWITCH_1, 1); in rt2800_config_3572bt_ant()
2157 rt2x00_set_field32(&reg, GPIO_SWITCH_0, 0); in rt2800_config_3572bt_ant()
2158 rt2x00_set_field32(&reg, GPIO_SWITCH_1, 0); in rt2800_config_3572bt_ant()
2170 rt2x00_set_field32(&reg, LED_CFG_G_LED_MODE, led_g_mode); in rt2800_config_3572bt_ant()
2171 rt2x00_set_field32(&reg, LED_CFG_R_LED_MODE, led_r_mode); in rt2800_config_3572bt_ant()
2189 rt2x00_set_field32(&reg, E2PROM_CSR_DATA_CLOCK, eesk_pin); in rt2800_set_ant_diversity()
2196 rt2x00_set_field32(&reg, GPIO_CTRL_DIR3, 0); in rt2800_set_ant_diversity()
2197 rt2x00_set_field32(&reg, GPIO_CTRL_VAL3, gpio_bit3); in rt2800_set_ant_diversity()
2366 rt2x00_set_field32(&rf->rf4, RF4_FREQ_OFFSET, rt2x00dev->freq_offset); in rt2800_config_channel_rf2xxx()
2369 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_TX1, 1); in rt2800_config_channel_rf2xxx()
2372 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_RX1, 1); in rt2800_config_channel_rf2xxx()
2373 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_RX2, 1); in rt2800_config_channel_rf2xxx()
2375 rt2x00_set_field32(&rf->rf2, RF2_ANTENNA_RX2, 1); in rt2800_config_channel_rf2xxx()
2384 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER_A_7DBM_BOOST, in rt2800_config_channel_rf2xxx()
2390 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER_A, info->default_power1); in rt2800_config_channel_rf2xxx()
2392 rt2x00_set_field32(&rf->rf4, RF4_TXPOWER_A_7DBM_BOOST, in rt2800_config_channel_rf2xxx()
2398 rt2x00_set_field32(&rf->rf4, RF4_TXPOWER_A, info->default_power2); in rt2800_config_channel_rf2xxx()
2400 rt2x00_set_field32(&rf->rf3, RF3_TXPOWER_G, info->default_power1); in rt2800_config_channel_rf2xxx()
2401 rt2x00_set_field32(&rf->rf4, RF4_TXPOWER_G, info->default_power2); in rt2800_config_channel_rf2xxx()
2404 rt2x00_set_field32(&rf->rf4, RF4_HT40, conf_is_ht40(conf)); in rt2800_config_channel_rf2xxx()
2664 rt2x00_set_field32(&reg, GPIO_CTRL_DIR7, 0); in rt2800_config_channel_rf3052()
2666 rt2x00_set_field32(&reg, GPIO_CTRL_VAL7, 1); in rt2800_config_channel_rf3052()
2668 rt2x00_set_field32(&reg, GPIO_CTRL_VAL7, 0); in rt2800_config_channel_rf3052()
3378 rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL, in rt2800_config_channel_rf55xx()
3817 rt2x00_set_field32(&reg, TX_ALC_CFG_0_CH_INIT_0, power_level); in rt2800_config_alc()
3818 rt2x00_set_field32(&reg, TX_ALC_CFG_0_CH_INIT_1, power_level); in rt2800_config_alc()
3819 rt2x00_set_field32(&reg, TX_ALC_CFG_0_LIMIT_0, max_power); in rt2800_config_alc()
3820 rt2x00_set_field32(&reg, TX_ALC_CFG_0_LIMIT_1, max_power); in rt2800_config_alc()
3827 rt2x00_set_field32(&reg, TX_ALC_CFG_0_CH_INIT_0, target_power); in rt2800_config_alc()
3828 rt2x00_set_field32(&reg, TX_ALC_CFG_0_CH_INIT_1, target_power); in rt2800_config_alc()
3833 rt2x00_set_field32(&reg, TX_ALC_CFG_1_TX_TEMP_COMP, 0); in rt2800_config_alc()
4210 rt2x00_set_field32(&reg, TX_BAND_CFG_HT40_MINUS, conf_is_ht40_minus(conf)); in rt2800_config_channel()
4211 rt2x00_set_field32(&reg, TX_BAND_CFG_A, rf->channel > 14); in rt2800_config_channel()
4212 rt2x00_set_field32(&reg, TX_BAND_CFG_BG, rf->channel <= 14); in rt2800_config_channel()
4220 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_RFRX_EN, 1); in rt2800_config_channel()
4228 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_A2_EN, in rt2800_config_channel()
4230 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_G2_EN, in rt2800_config_channel()
4235 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_A1_EN, in rt2800_config_channel()
4237 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_G1_EN, in rt2800_config_channel()
4242 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_A0_EN, in rt2800_config_channel()
4245 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_G0_EN, 1); in rt2800_config_channel()
4247 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_G0_EN, in rt2800_config_channel()
4255 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_A2_EN, 1); in rt2800_config_channel()
4256 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_G2_EN, 1); in rt2800_config_channel()
4260 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_A1_EN, 1); in rt2800_config_channel()
4261 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_G1_EN, 1); in rt2800_config_channel()
4265 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_A0_EN, 1); in rt2800_config_channel()
4266 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_LNA_PE_G0_EN, 1); in rt2800_config_channel()
4270 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_RFTR_EN, 1); in rt2800_config_channel()
4271 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_TRSW_EN, 1); in rt2800_config_channel()
4294 rt2x00_set_field32(&reg, GPIO_CTRL_DIR8, 0); in rt2800_config_channel()
4296 rt2x00_set_field32(&reg, GPIO_CTRL_VAL8, 1); in rt2800_config_channel()
4298 rt2x00_set_field32(&reg, GPIO_CTRL_VAL8, 0); in rt2800_config_channel()
4306 rt2x00_set_field32(&reg, GPIO_CTRL_DIR4, 0); in rt2800_config_channel()
4307 rt2x00_set_field32(&reg, GPIO_CTRL_DIR7, 0); in rt2800_config_channel()
4309 rt2x00_set_field32(&reg, GPIO_CTRL_VAL4, 1); in rt2800_config_channel()
4310 rt2x00_set_field32(&reg, GPIO_CTRL_VAL7, 1); in rt2800_config_channel()
4313 rt2x00_set_field32(&reg, GPIO_CTRL_DIR4, 0); in rt2800_config_channel()
4314 rt2x00_set_field32(&reg, GPIO_CTRL_VAL4, 1); in rt2800_config_channel()
4699 rt2x00_set_field32(&regs[TX_PWR_CFG_0_IDX], in rt2800_config_txpower_rt3593()
4701 rt2x00_set_field32(&regs[TX_PWR_CFG_0_IDX], in rt2800_config_txpower_rt3593()
4703 rt2x00_set_field32(&regs[TX_PWR_CFG_0_EXT_IDX], in rt2800_config_txpower_rt3593()
4710 rt2x00_set_field32(&regs[TX_PWR_CFG_0_IDX], in rt2800_config_txpower_rt3593()
4712 rt2x00_set_field32(&regs[TX_PWR_CFG_0_IDX], in rt2800_config_txpower_rt3593()
4714 rt2x00_set_field32(&regs[TX_PWR_CFG_0_EXT_IDX], in rt2800_config_txpower_rt3593()
4721 rt2x00_set_field32(&regs[TX_PWR_CFG_0_IDX], in rt2800_config_txpower_rt3593()
4723 rt2x00_set_field32(&regs[TX_PWR_CFG_0_IDX], in rt2800_config_txpower_rt3593()
4725 rt2x00_set_field32(&regs[TX_PWR_CFG_0_EXT_IDX], in rt2800_config_txpower_rt3593()
4732 rt2x00_set_field32(&regs[TX_PWR_CFG_0_IDX], in rt2800_config_txpower_rt3593()
4734 rt2x00_set_field32(&regs[TX_PWR_CFG_0_IDX], in rt2800_config_txpower_rt3593()
4736 rt2x00_set_field32(&regs[TX_PWR_CFG_0_EXT_IDX], in rt2800_config_txpower_rt3593()
4747 rt2x00_set_field32(&regs[TX_PWR_CFG_1_IDX], in rt2800_config_txpower_rt3593()
4749 rt2x00_set_field32(&regs[TX_PWR_CFG_1_IDX], in rt2800_config_txpower_rt3593()
4751 rt2x00_set_field32(&regs[TX_PWR_CFG_1_EXT_IDX], in rt2800_config_txpower_rt3593()
4758 rt2x00_set_field32(&regs[TX_PWR_CFG_1_IDX], in rt2800_config_txpower_rt3593()
4760 rt2x00_set_field32(&regs[TX_PWR_CFG_1_IDX], in rt2800_config_txpower_rt3593()
4762 rt2x00_set_field32(&regs[TX_PWR_CFG_1_EXT_IDX], in rt2800_config_txpower_rt3593()
4769 rt2x00_set_field32(&regs[TX_PWR_CFG_7_IDX], in rt2800_config_txpower_rt3593()
4771 rt2x00_set_field32(&regs[TX_PWR_CFG_7_IDX], in rt2800_config_txpower_rt3593()
4773 rt2x00_set_field32(&regs[TX_PWR_CFG_7_IDX], in rt2800_config_txpower_rt3593()
4784 rt2x00_set_field32(&regs[TX_PWR_CFG_1_IDX], in rt2800_config_txpower_rt3593()
4786 rt2x00_set_field32(&regs[TX_PWR_CFG_1_IDX], in rt2800_config_txpower_rt3593()
4788 rt2x00_set_field32(&regs[TX_PWR_CFG_1_EXT_IDX], in rt2800_config_txpower_rt3593()
4795 rt2x00_set_field32(&regs[TX_PWR_CFG_1_IDX], in rt2800_config_txpower_rt3593()
4797 rt2x00_set_field32(&regs[TX_PWR_CFG_1_IDX], in rt2800_config_txpower_rt3593()
4799 rt2x00_set_field32(&regs[TX_PWR_CFG_1_EXT_IDX], in rt2800_config_txpower_rt3593()
4806 rt2x00_set_field32(&regs[TX_PWR_CFG_2_IDX], in rt2800_config_txpower_rt3593()
4808 rt2x00_set_field32(&regs[TX_PWR_CFG_2_IDX], in rt2800_config_txpower_rt3593()
4810 rt2x00_set_field32(&regs[TX_PWR_CFG_2_EXT_IDX], in rt2800_config_txpower_rt3593()
4817 rt2x00_set_field32(&regs[TX_PWR_CFG_2_IDX], in rt2800_config_txpower_rt3593()
4819 rt2x00_set_field32(&regs[TX_PWR_CFG_2_IDX], in rt2800_config_txpower_rt3593()
4821 rt2x00_set_field32(&regs[TX_PWR_CFG_2_EXT_IDX], in rt2800_config_txpower_rt3593()
4832 rt2x00_set_field32(&regs[TX_PWR_CFG_7_IDX], in rt2800_config_txpower_rt3593()
4834 rt2x00_set_field32(&regs[TX_PWR_CFG_7_IDX], in rt2800_config_txpower_rt3593()
4836 rt2x00_set_field32(&regs[TX_PWR_CFG_7_IDX], in rt2800_config_txpower_rt3593()
4843 rt2x00_set_field32(&regs[TX_PWR_CFG_2_IDX], in rt2800_config_txpower_rt3593()
4845 rt2x00_set_field32(&regs[TX_PWR_CFG_2_IDX], in rt2800_config_txpower_rt3593()
4847 rt2x00_set_field32(&regs[TX_PWR_CFG_2_EXT_IDX], in rt2800_config_txpower_rt3593()
4854 rt2x00_set_field32(&regs[TX_PWR_CFG_2_IDX], in rt2800_config_txpower_rt3593()
4856 rt2x00_set_field32(&regs[TX_PWR_CFG_2_IDX], in rt2800_config_txpower_rt3593()
4858 rt2x00_set_field32(&regs[TX_PWR_CFG_2_EXT_IDX], in rt2800_config_txpower_rt3593()
4865 rt2x00_set_field32(&regs[TX_PWR_CFG_3_IDX], in rt2800_config_txpower_rt3593()
4867 rt2x00_set_field32(&regs[TX_PWR_CFG_3_IDX], in rt2800_config_txpower_rt3593()
4869 rt2x00_set_field32(&regs[TX_PWR_CFG_3_EXT_IDX], in rt2800_config_txpower_rt3593()
4880 rt2x00_set_field32(&regs[TX_PWR_CFG_3_IDX], in rt2800_config_txpower_rt3593()
4882 rt2x00_set_field32(&regs[TX_PWR_CFG_3_IDX], in rt2800_config_txpower_rt3593()
4884 rt2x00_set_field32(&regs[TX_PWR_CFG_3_EXT_IDX], in rt2800_config_txpower_rt3593()
4891 rt2x00_set_field32(&regs[TX_PWR_CFG_8_IDX], in rt2800_config_txpower_rt3593()
4893 rt2x00_set_field32(&regs[TX_PWR_CFG_8_IDX], in rt2800_config_txpower_rt3593()
4895 rt2x00_set_field32(&regs[TX_PWR_CFG_8_IDX], in rt2800_config_txpower_rt3593()
4902 rt2x00_set_field32(&regs[TX_PWR_CFG_5_IDX], in rt2800_config_txpower_rt3593()
4904 rt2x00_set_field32(&regs[TX_PWR_CFG_5_IDX], in rt2800_config_txpower_rt3593()
4906 rt2x00_set_field32(&regs[TX_PWR_CFG_5_IDX], in rt2800_config_txpower_rt3593()
4913 rt2x00_set_field32(&regs[TX_PWR_CFG_5_IDX], in rt2800_config_txpower_rt3593()
4915 rt2x00_set_field32(&regs[TX_PWR_CFG_5_IDX], in rt2800_config_txpower_rt3593()
4917 rt2x00_set_field32(&regs[TX_PWR_CFG_5_IDX], in rt2800_config_txpower_rt3593()
4928 rt2x00_set_field32(&regs[TX_PWR_CFG_6_IDX], in rt2800_config_txpower_rt3593()
4930 rt2x00_set_field32(&regs[TX_PWR_CFG_6_IDX], in rt2800_config_txpower_rt3593()
4932 rt2x00_set_field32(&regs[TX_PWR_CFG_6_IDX], in rt2800_config_txpower_rt3593()
4939 rt2x00_set_field32(&regs[TX_PWR_CFG_6_IDX], in rt2800_config_txpower_rt3593()
4941 rt2x00_set_field32(&regs[TX_PWR_CFG_6_IDX], in rt2800_config_txpower_rt3593()
4943 rt2x00_set_field32(&regs[TX_PWR_CFG_6_IDX], in rt2800_config_txpower_rt3593()
4950 rt2x00_set_field32(&regs[TX_PWR_CFG_8_IDX], in rt2800_config_txpower_rt3593()
4952 rt2x00_set_field32(&regs[TX_PWR_CFG_8_IDX], in rt2800_config_txpower_rt3593()
4954 rt2x00_set_field32(&regs[TX_PWR_CFG_8_IDX], in rt2800_config_txpower_rt3593()
4965 rt2x00_set_field32(&regs[TX_PWR_CFG_3_IDX], in rt2800_config_txpower_rt3593()
4967 rt2x00_set_field32(&regs[TX_PWR_CFG_3_IDX], in rt2800_config_txpower_rt3593()
4969 rt2x00_set_field32(&regs[TX_PWR_CFG_3_EXT_IDX], in rt2800_config_txpower_rt3593()
4976 rt2x00_set_field32(&regs[TX_PWR_CFG_3_IDX], in rt2800_config_txpower_rt3593()
4978 rt2x00_set_field32(&regs[TX_PWR_CFG_3_IDX], in rt2800_config_txpower_rt3593()
4980 rt2x00_set_field32(&regs[TX_PWR_CFG_3_EXT_IDX], in rt2800_config_txpower_rt3593()
4987 rt2x00_set_field32(&regs[TX_PWR_CFG_4_IDX], TX_PWR_CFG_RATE0, txpower); in rt2800_config_txpower_rt3593()
4988 rt2x00_set_field32(&regs[TX_PWR_CFG_4_IDX], TX_PWR_CFG_RATE1, txpower); in rt2800_config_txpower_rt3593()
4989 rt2x00_set_field32(&regs[TX_PWR_CFG_4_EXT_IDX], TX_PWR_CFG_RATE0, in rt2800_config_txpower_rt3593()
4996 rt2x00_set_field32(&regs[TX_PWR_CFG_4_IDX], TX_PWR_CFG_RATE2, txpower); in rt2800_config_txpower_rt3593()
4997 rt2x00_set_field32(&regs[TX_PWR_CFG_4_IDX], TX_PWR_CFG_RATE3, txpower); in rt2800_config_txpower_rt3593()
4998 rt2x00_set_field32(&regs[TX_PWR_CFG_4_EXT_IDX], TX_PWR_CFG_RATE2, in rt2800_config_txpower_rt3593()
5009 rt2x00_set_field32(&regs[TX_PWR_CFG_9_IDX], in rt2800_config_txpower_rt3593()
5011 rt2x00_set_field32(&regs[TX_PWR_CFG_9_IDX], in rt2800_config_txpower_rt3593()
5013 rt2x00_set_field32(&regs[TX_PWR_CFG_9_IDX], in rt2800_config_txpower_rt3593()
5147 rt2x00_set_field32(&pwreg, TX_PWR_CFG_7B_54MBS, t); in rt2800_config_txpower_rt6352()
5152 rt2x00_set_field32(&pwreg, TX_PWR_CFG_7B_MCS7, t); in rt2800_config_txpower_rt6352()
5159 rt2x00_set_field32(&pwreg, TX_PWR_CFG_8B_MCS15, t); in rt2800_config_txpower_rt6352()
5166 rt2x00_set_field32(&pwreg, TX_PWR_CFG_9B_STBC_MCS7, t); in rt2800_config_txpower_rt6352()
5274 rt2x00_set_field32(&reg, TX_PWR_CFG_RATE0, txpower); in rt2800_config_txpower_rt28xx()
5285 rt2x00_set_field32(&reg, TX_PWR_CFG_RATE1, txpower); in rt2800_config_txpower_rt28xx()
5296 rt2x00_set_field32(&reg, TX_PWR_CFG_RATE2, txpower); in rt2800_config_txpower_rt28xx()
5307 rt2x00_set_field32(&reg, TX_PWR_CFG_RATE3, txpower); in rt2800_config_txpower_rt28xx()
5324 rt2x00_set_field32(&reg, TX_PWR_CFG_RATE4, txpower); in rt2800_config_txpower_rt28xx()
5335 rt2x00_set_field32(&reg, TX_PWR_CFG_RATE5, txpower); in rt2800_config_txpower_rt28xx()
5346 rt2x00_set_field32(&reg, TX_PWR_CFG_RATE6, txpower); in rt2800_config_txpower_rt28xx()
5357 rt2x00_set_field32(&reg, TX_PWR_CFG_RATE7, txpower); in rt2800_config_txpower_rt28xx()
5453 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_G2_EN, 1); in rt2800_vco_calibration()
5456 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_G1_EN, 1); in rt2800_vco_calibration()
5460 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_G0_EN, 1); in rt2800_vco_calibration()
5466 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_A2_EN, 1); in rt2800_vco_calibration()
5469 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_A1_EN, 1); in rt2800_vco_calibration()
5473 rt2x00_set_field32(&tx_pin, TX_PIN_CFG_PA_PE_A0_EN, 1); in rt2800_vco_calibration()
5524 rt2x00_set_field32(&reg, TX_RTY_CFG_SHORT_RTY_LIMIT, in rt2800_config_retry_limit()
5526 rt2x00_set_field32(&reg, TX_RTY_CFG_LONG_RTY_LIMIT, in rt2800_config_retry_limit()
5543 rt2x00_set_field32(&reg, AUTOWAKEUP_CFG_AUTO_LEAD_TIME, 5); in rt2800_config_ps()
5544 rt2x00_set_field32(&reg, AUTOWAKEUP_CFG_TBCN_BEFORE_WAKE, in rt2800_config_ps()
5546 rt2x00_set_field32(&reg, AUTOWAKEUP_CFG_AUTOWAKE, 1); in rt2800_config_ps()
5552 rt2x00_set_field32(&reg, AUTOWAKEUP_CFG_AUTO_LEAD_TIME, 0); in rt2800_config_ps()
5553 rt2x00_set_field32(&reg, AUTOWAKEUP_CFG_TBCN_BEFORE_WAKE, 0); in rt2800_config_ps()
5554 rt2x00_set_field32(&reg, AUTOWAKEUP_CFG_AUTOWAKE, 0); in rt2800_config_ps()
5737 rt2x00_set_field32(&reg, BCN_TIME_CFG_BEACON_INTERVAL, 1600); in rt2800_init_registers()
5738 rt2x00_set_field32(&reg, BCN_TIME_CFG_TSF_TICKING, 0); in rt2800_init_registers()
5739 rt2x00_set_field32(&reg, BCN_TIME_CFG_TSF_SYNC, 0); in rt2800_init_registers()
5740 rt2x00_set_field32(&reg, BCN_TIME_CFG_TBTT_ENABLE, 0); in rt2800_init_registers()
5741 rt2x00_set_field32(&reg, BCN_TIME_CFG_BEACON_GEN, 0); in rt2800_init_registers()
5742 rt2x00_set_field32(&reg, BCN_TIME_CFG_TX_TIME_COMPENSATE, 0); in rt2800_init_registers()
5748 rt2x00_set_field32(&reg, BKOFF_SLOT_CFG_SLOT_TIME, 9); in rt2800_init_registers()
5749 rt2x00_set_field32(&reg, BKOFF_SLOT_CFG_CC_DELAY_TIME, 2); in rt2800_init_registers()
5755 rt2x00_set_field32(&reg, PCIE_APP0_CLK_REQ, 1); in rt2800_init_registers()
5761 rt2x00_set_field32(&reg, LDO0_EN, 1); in rt2800_init_registers()
5762 rt2x00_set_field32(&reg, LDO_BGSEL, 3); in rt2800_init_registers()
5767 rt2x00_set_field32(&reg, OSC_ROSC_EN, 1); in rt2800_init_registers()
5768 rt2x00_set_field32(&reg, OSC_CAL_REQ, 1); in rt2800_init_registers()
5769 rt2x00_set_field32(&reg, OSC_REF_CYCLE, 0x27); in rt2800_init_registers()
5773 rt2x00_set_field32(&reg, COEX_CFG_ANT, 0x5e); in rt2800_init_registers()
5777 rt2x00_set_field32(&reg, BT_COEX_CFG1, 0x00); in rt2800_init_registers()
5778 rt2x00_set_field32(&reg, BT_COEX_CFG0, 0x17); in rt2800_init_registers()
5779 rt2x00_set_field32(&reg, WL_COEX_CFG1, 0x93); in rt2800_init_registers()
5780 rt2x00_set_field32(&reg, WL_COEX_CFG0, 0x7f); in rt2800_init_registers()
5784 rt2x00_set_field32(&reg, PLL_CONTROL, 1); in rt2800_init_registers()
5882 rt2x00_set_field32(&reg, TX_ALC_CFG_1_ROS_BUSY_EN, 0); in rt2800_init_registers()
5890 rt2x00_set_field32(&reg, TX_LINK_CFG_REMOTE_MFB_LIFETIME, 32); in rt2800_init_registers()
5891 rt2x00_set_field32(&reg, TX_LINK_CFG_MFB_ENABLE, 0); in rt2800_init_registers()
5892 rt2x00_set_field32(&reg, TX_LINK_CFG_REMOTE_UMFS_ENABLE, 0); in rt2800_init_registers()
5893 rt2x00_set_field32(&reg, TX_LINK_CFG_TX_MRQ_EN, 0); in rt2800_init_registers()
5894 rt2x00_set_field32(&reg, TX_LINK_CFG_TX_RDG_EN, 0); in rt2800_init_registers()
5895 rt2x00_set_field32(&reg, TX_LINK_CFG_TX_CF_ACK_EN, 1); in rt2800_init_registers()
5896 rt2x00_set_field32(&reg, TX_LINK_CFG_REMOTE_MFB, 0); in rt2800_init_registers()
5897 rt2x00_set_field32(&reg, TX_LINK_CFG_REMOTE_MFS, 0); in rt2800_init_registers()
5901 rt2x00_set_field32(&reg, TX_TIMEOUT_CFG_MPDU_LIFETIME, 9); in rt2800_init_registers()
5902 rt2x00_set_field32(&reg, TX_TIMEOUT_CFG_RX_ACK_TIMEOUT, 32); in rt2800_init_registers()
5903 rt2x00_set_field32(&reg, TX_TIMEOUT_CFG_TX_OP_TIMEOUT, 10); in rt2800_init_registers()
5907 rt2x00_set_field32(&reg, MAX_LEN_CFG_MAX_MPDU, AGGREGATION_SIZE); in rt2800_init_registers()
5917 rt2x00_set_field32(&reg, MAX_LEN_CFG_MAX_PSDU, drv_data->max_psdu); in rt2800_init_registers()
5918 rt2x00_set_field32(&reg, MAX_LEN_CFG_MIN_PSDU, 10); in rt2800_init_registers()
5919 rt2x00_set_field32(&reg, MAX_LEN_CFG_MIN_MPDU, 10); in rt2800_init_registers()
5923 rt2x00_set_field32(&reg, LED_CFG_ON_PERIOD, 70); in rt2800_init_registers()
5924 rt2x00_set_field32(&reg, LED_CFG_OFF_PERIOD, 30); in rt2800_init_registers()
5925 rt2x00_set_field32(&reg, LED_CFG_SLOW_BLINK_PERIOD, 3); in rt2800_init_registers()
5926 rt2x00_set_field32(&reg, LED_CFG_R_LED_MODE, 3); in rt2800_init_registers()
5927 rt2x00_set_field32(&reg, LED_CFG_G_LED_MODE, 3); in rt2800_init_registers()
5928 rt2x00_set_field32(&reg, LED_CFG_Y_LED_MODE, 3); in rt2800_init_registers()
5929 rt2x00_set_field32(&reg, LED_CFG_LED_POLAR, 1); in rt2800_init_registers()
5935 rt2x00_set_field32(&reg, TX_RTY_CFG_SHORT_RTY_LIMIT, 2); in rt2800_init_registers()
5936 rt2x00_set_field32(&reg, TX_RTY_CFG_LONG_RTY_LIMIT, 2); in rt2800_init_registers()
5937 rt2x00_set_field32(&reg, TX_RTY_CFG_LONG_RTY_THRE, 2000); in rt2800_init_registers()
5938 rt2x00_set_field32(&reg, TX_RTY_CFG_NON_AGG_RTY_MODE, 0); in rt2800_init_registers()
5939 rt2x00_set_field32(&reg, TX_RTY_CFG_AGG_RTY_MODE, 0); in rt2800_init_registers()
5940 rt2x00_set_field32(&reg, TX_RTY_CFG_TX_AUTO_FB_ENABLE, 1); in rt2800_init_registers()
5944 rt2x00_set_field32(&reg, AUTO_RSP_CFG_AUTORESPONDER, 1); in rt2800_init_registers()
5945 rt2x00_set_field32(&reg, AUTO_RSP_CFG_BAC_ACK_POLICY, 1); in rt2800_init_registers()
5946 rt2x00_set_field32(&reg, AUTO_RSP_CFG_CTS_40_MMODE, 1); in rt2800_init_registers()
5947 rt2x00_set_field32(&reg, AUTO_RSP_CFG_CTS_40_MREF, 0); in rt2800_init_registers()
5948 rt2x00_set_field32(&reg, AUTO_RSP_CFG_AR_PREAMBLE, 0); in rt2800_init_registers()
5949 rt2x00_set_field32(&reg, AUTO_RSP_CFG_DUAL_CTS_EN, 0); in rt2800_init_registers()
5950 rt2x00_set_field32(&reg, AUTO_RSP_CFG_ACK_CTS_PSM_BIT, 0); in rt2800_init_registers()
5954 rt2x00_set_field32(&reg, CCK_PROT_CFG_PROTECT_RATE, 3); in rt2800_init_registers()
5955 rt2x00_set_field32(&reg, CCK_PROT_CFG_PROTECT_CTRL, 0); in rt2800_init_registers()
5956 rt2x00_set_field32(&reg, CCK_PROT_CFG_PROTECT_NAV_SHORT, 1); in rt2800_init_registers()
5957 rt2x00_set_field32(&reg, CCK_PROT_CFG_TX_OP_ALLOW_CCK, 1); in rt2800_init_registers()
5958 rt2x00_set_field32(&reg, CCK_PROT_CFG_TX_OP_ALLOW_OFDM, 1); in rt2800_init_registers()
5959 rt2x00_set_field32(&reg, CCK_PROT_CFG_TX_OP_ALLOW_MM20, 1); in rt2800_init_registers()
5960 rt2x00_set_field32(&reg, CCK_PROT_CFG_TX_OP_ALLOW_MM40, 0); in rt2800_init_registers()
5961 rt2x00_set_field32(&reg, CCK_PROT_CFG_TX_OP_ALLOW_GF20, 1); in rt2800_init_registers()
5962 rt2x00_set_field32(&reg, CCK_PROT_CFG_TX_OP_ALLOW_GF40, 0); in rt2800_init_registers()
5963 rt2x00_set_field32(&reg, CCK_PROT_CFG_RTS_TH_EN, 1); in rt2800_init_registers()
5967 rt2x00_set_field32(&reg, OFDM_PROT_CFG_PROTECT_RATE, 3); in rt2800_init_registers()
5968 rt2x00_set_field32(&reg, OFDM_PROT_CFG_PROTECT_CTRL, 0); in rt2800_init_registers()
5969 rt2x00_set_field32(&reg, OFDM_PROT_CFG_PROTECT_NAV_SHORT, 1); in rt2800_init_registers()
5970 rt2x00_set_field32(&reg, OFDM_PROT_CFG_TX_OP_ALLOW_CCK, 1); in rt2800_init_registers()
5971 rt2x00_set_field32(&reg, OFDM_PROT_CFG_TX_OP_ALLOW_OFDM, 1); in rt2800_init_registers()
5972 rt2x00_set_field32(&reg, OFDM_PROT_CFG_TX_OP_ALLOW_MM20, 1); in rt2800_init_registers()
5973 rt2x00_set_field32(&reg, OFDM_PROT_CFG_TX_OP_ALLOW_MM40, 0); in rt2800_init_registers()
5974 rt2x00_set_field32(&reg, OFDM_PROT_CFG_TX_OP_ALLOW_GF20, 1); in rt2800_init_registers()
5975 rt2x00_set_field32(&reg, OFDM_PROT_CFG_TX_OP_ALLOW_GF40, 0); in rt2800_init_registers()
5976 rt2x00_set_field32(&reg, OFDM_PROT_CFG_RTS_TH_EN, 1); in rt2800_init_registers()
5980 rt2x00_set_field32(&reg, MM20_PROT_CFG_PROTECT_RATE, 0x4004); in rt2800_init_registers()
5981 rt2x00_set_field32(&reg, MM20_PROT_CFG_PROTECT_CTRL, 1); in rt2800_init_registers()
5982 rt2x00_set_field32(&reg, MM20_PROT_CFG_PROTECT_NAV_SHORT, 1); in rt2800_init_registers()
5983 rt2x00_set_field32(&reg, MM20_PROT_CFG_TX_OP_ALLOW_CCK, 0); in rt2800_init_registers()
5984 rt2x00_set_field32(&reg, MM20_PROT_CFG_TX_OP_ALLOW_OFDM, 1); in rt2800_init_registers()
5985 rt2x00_set_field32(&reg, MM20_PROT_CFG_TX_OP_ALLOW_MM20, 1); in rt2800_init_registers()
5986 rt2x00_set_field32(&reg, MM20_PROT_CFG_TX_OP_ALLOW_MM40, 0); in rt2800_init_registers()
5987 rt2x00_set_field32(&reg, MM20_PROT_CFG_TX_OP_ALLOW_GF20, 1); in rt2800_init_registers()
5988 rt2x00_set_field32(&reg, MM20_PROT_CFG_TX_OP_ALLOW_GF40, 0); in rt2800_init_registers()
5989 rt2x00_set_field32(&reg, MM20_PROT_CFG_RTS_TH_EN, 0); in rt2800_init_registers()
5993 rt2x00_set_field32(&reg, MM40_PROT_CFG_PROTECT_RATE, 0x4084); in rt2800_init_registers()
5994 rt2x00_set_field32(&reg, MM40_PROT_CFG_PROTECT_CTRL, 1); in rt2800_init_registers()
5995 rt2x00_set_field32(&reg, MM40_PROT_CFG_PROTECT_NAV_SHORT, 1); in rt2800_init_registers()
5996 rt2x00_set_field32(&reg, MM40_PROT_CFG_TX_OP_ALLOW_CCK, 0); in rt2800_init_registers()
5997 rt2x00_set_field32(&reg, MM40_PROT_CFG_TX_OP_ALLOW_OFDM, 1); in rt2800_init_registers()
5998 rt2x00_set_field32(&reg, MM40_PROT_CFG_TX_OP_ALLOW_MM20, 1); in rt2800_init_registers()
5999 rt2x00_set_field32(&reg, MM40_PROT_CFG_TX_OP_ALLOW_MM40, 1); in rt2800_init_registers()
6000 rt2x00_set_field32(&reg, MM40_PROT_CFG_TX_OP_ALLOW_GF20, 1); in rt2800_init_registers()
6001 rt2x00_set_field32(&reg, MM40_PROT_CFG_TX_OP_ALLOW_GF40, 1); in rt2800_init_registers()
6002 rt2x00_set_field32(&reg, MM40_PROT_CFG_RTS_TH_EN, 0); in rt2800_init_registers()
6006 rt2x00_set_field32(&reg, GF20_PROT_CFG_PROTECT_RATE, 0x4004); in rt2800_init_registers()
6007 rt2x00_set_field32(&reg, GF20_PROT_CFG_PROTECT_CTRL, 1); in rt2800_init_registers()
6008 rt2x00_set_field32(&reg, GF20_PROT_CFG_PROTECT_NAV_SHORT, 1); in rt2800_init_registers()
6009 rt2x00_set_field32(&reg, GF20_PROT_CFG_TX_OP_ALLOW_CCK, 0); in rt2800_init_registers()
6010 rt2x00_set_field32(&reg, GF20_PROT_CFG_TX_OP_ALLOW_OFDM, 1); in rt2800_init_registers()
6011 rt2x00_set_field32(&reg, GF20_PROT_CFG_TX_OP_ALLOW_MM20, 1); in rt2800_init_registers()
6012 rt2x00_set_field32(&reg, GF20_PROT_CFG_TX_OP_ALLOW_MM40, 0); in rt2800_init_registers()
6013 rt2x00_set_field32(&reg, GF20_PROT_CFG_TX_OP_ALLOW_GF20, 1); in rt2800_init_registers()
6014 rt2x00_set_field32(&reg, GF20_PROT_CFG_TX_OP_ALLOW_GF40, 0); in rt2800_init_registers()
6015 rt2x00_set_field32(&reg, GF20_PROT_CFG_RTS_TH_EN, 0); in rt2800_init_registers()
6019 rt2x00_set_field32(&reg, GF40_PROT_CFG_PROTECT_RATE, 0x4084); in rt2800_init_registers()
6020 rt2x00_set_field32(&reg, GF40_PROT_CFG_PROTECT_CTRL, 1); in rt2800_init_registers()
6021 rt2x00_set_field32(&reg, GF40_PROT_CFG_PROTECT_NAV_SHORT, 1); in rt2800_init_registers()
6022 rt2x00_set_field32(&reg, GF40_PROT_CFG_TX_OP_ALLOW_CCK, 0); in rt2800_init_registers()
6023 rt2x00_set_field32(&reg, GF40_PROT_CFG_TX_OP_ALLOW_OFDM, 1); in rt2800_init_registers()
6024 rt2x00_set_field32(&reg, GF40_PROT_CFG_TX_OP_ALLOW_MM20, 1); in rt2800_init_registers()
6025 rt2x00_set_field32(&reg, GF40_PROT_CFG_TX_OP_ALLOW_MM40, 1); in rt2800_init_registers()
6026 rt2x00_set_field32(&reg, GF40_PROT_CFG_TX_OP_ALLOW_GF20, 1); in rt2800_init_registers()
6027 rt2x00_set_field32(&reg, GF40_PROT_CFG_TX_OP_ALLOW_GF40, 1); in rt2800_init_registers()
6028 rt2x00_set_field32(&reg, GF40_PROT_CFG_RTS_TH_EN, 0); in rt2800_init_registers()
6035 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_ENABLE_TX_DMA, 0); in rt2800_init_registers()
6036 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_TX_DMA_BUSY, 0); in rt2800_init_registers()
6037 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_ENABLE_RX_DMA, 0); in rt2800_init_registers()
6038 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_RX_DMA_BUSY, 0); in rt2800_init_registers()
6039 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_WP_DMA_BURST_SIZE, 3); in rt2800_init_registers()
6040 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_TX_WRITEBACK_DONE, 0); in rt2800_init_registers()
6041 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_BIG_ENDIAN, 0); in rt2800_init_registers()
6042 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_RX_HDR_SCATTER, 0); in rt2800_init_registers()
6043 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_HDR_SEG_LEN, 0); in rt2800_init_registers()
6052 rt2x00_set_field32(&reg, TXOP_CTRL_CFG_TIMEOUT_TRUN_EN, 1); in rt2800_init_registers()
6053 rt2x00_set_field32(&reg, TXOP_CTRL_CFG_AC_TRUN_EN, 1); in rt2800_init_registers()
6054 rt2x00_set_field32(&reg, TXOP_CTRL_CFG_TXRATEGRP_TRUN_EN, 1); in rt2800_init_registers()
6055 rt2x00_set_field32(&reg, TXOP_CTRL_CFG_USER_MODE_TRUN_EN, 1); in rt2800_init_registers()
6056 rt2x00_set_field32(&reg, TXOP_CTRL_CFG_MIMO_PS_TRUN_EN, 1); in rt2800_init_registers()
6057 rt2x00_set_field32(&reg, TXOP_CTRL_CFG_RESERVED_TRUN_EN, 1); in rt2800_init_registers()
6058 rt2x00_set_field32(&reg, TXOP_CTRL_CFG_LSIG_TXOP_EN, 0); in rt2800_init_registers()
6059 rt2x00_set_field32(&reg, TXOP_CTRL_CFG_EXT_CCA_EN, 0); in rt2800_init_registers()
6060 rt2x00_set_field32(&reg, TXOP_CTRL_CFG_EXT_CCA_DLY, 88); in rt2800_init_registers()
6061 rt2x00_set_field32(&reg, TXOP_CTRL_CFG_EXT_CWMIN, 0); in rt2800_init_registers()
6073 rt2x00_set_field32(&reg, TX_RTS_CFG_AUTO_RTS_RETRY_LIMIT, 7); in rt2800_init_registers()
6074 rt2x00_set_field32(&reg, TX_RTS_CFG_RTS_THRES, in rt2800_init_registers()
6076 rt2x00_set_field32(&reg, TX_RTS_CFG_RTS_FBK_EN, 1); in rt2800_init_registers()
6089 rt2x00_set_field32(&reg, XIFS_TIME_CFG_CCKM_SIFS_TIME, 16); in rt2800_init_registers()
6090 rt2x00_set_field32(&reg, XIFS_TIME_CFG_OFDM_SIFS_TIME, 16); in rt2800_init_registers()
6091 rt2x00_set_field32(&reg, XIFS_TIME_CFG_OFDM_XIFS_TIME, 4); in rt2800_init_registers()
6092 rt2x00_set_field32(&reg, XIFS_TIME_CFG_EIFS, 314); in rt2800_init_registers()
6093 rt2x00_set_field32(&reg, XIFS_TIME_CFG_BB_RXEND_ENABLE, 1); in rt2800_init_registers()
6126 rt2x00_set_field32(&reg, US_CYC_CNT_CLOCK_CYCLE, 30); in rt2800_init_registers()
6130 rt2x00_set_field32(&reg, US_CYC_CNT_CLOCK_CYCLE, 125); in rt2800_init_registers()
6135 rt2x00_set_field32(&reg, HT_FBK_CFG0_HTMCS0FBK, 0); in rt2800_init_registers()
6136 rt2x00_set_field32(&reg, HT_FBK_CFG0_HTMCS1FBK, 0); in rt2800_init_registers()
6137 rt2x00_set_field32(&reg, HT_FBK_CFG0_HTMCS2FBK, 1); in rt2800_init_registers()
6138 rt2x00_set_field32(&reg, HT_FBK_CFG0_HTMCS3FBK, 2); in rt2800_init_registers()
6139 rt2x00_set_field32(&reg, HT_FBK_CFG0_HTMCS4FBK, 3); in rt2800_init_registers()
6140 rt2x00_set_field32(&reg, HT_FBK_CFG0_HTMCS5FBK, 4); in rt2800_init_registers()
6141 rt2x00_set_field32(&reg, HT_FBK_CFG0_HTMCS6FBK, 5); in rt2800_init_registers()
6142 rt2x00_set_field32(&reg, HT_FBK_CFG0_HTMCS7FBK, 6); in rt2800_init_registers()
6146 rt2x00_set_field32(&reg, HT_FBK_CFG1_HTMCS8FBK, 8); in rt2800_init_registers()
6147 rt2x00_set_field32(&reg, HT_FBK_CFG1_HTMCS9FBK, 8); in rt2800_init_registers()
6148 rt2x00_set_field32(&reg, HT_FBK_CFG1_HTMCS10FBK, 9); in rt2800_init_registers()
6149 rt2x00_set_field32(&reg, HT_FBK_CFG1_HTMCS11FBK, 10); in rt2800_init_registers()
6150 rt2x00_set_field32(&reg, HT_FBK_CFG1_HTMCS12FBK, 11); in rt2800_init_registers()
6151 rt2x00_set_field32(&reg, HT_FBK_CFG1_HTMCS13FBK, 12); in rt2800_init_registers()
6152 rt2x00_set_field32(&reg, HT_FBK_CFG1_HTMCS14FBK, 13); in rt2800_init_registers()
6153 rt2x00_set_field32(&reg, HT_FBK_CFG1_HTMCS15FBK, 14); in rt2800_init_registers()
6157 rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS0FBK, 8); in rt2800_init_registers()
6158 rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS1FBK, 8); in rt2800_init_registers()
6159 rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS2FBK, 9); in rt2800_init_registers()
6160 rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS3FBK, 10); in rt2800_init_registers()
6161 rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS4FBK, 11); in rt2800_init_registers()
6162 rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS5FBK, 12); in rt2800_init_registers()
6163 rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS6FBK, 13); in rt2800_init_registers()
6164 rt2x00_set_field32(&reg, LG_FBK_CFG0_OFDMMCS7FBK, 14); in rt2800_init_registers()
6168 rt2x00_set_field32(&reg, LG_FBK_CFG0_CCKMCS0FBK, 0); in rt2800_init_registers()
6169 rt2x00_set_field32(&reg, LG_FBK_CFG0_CCKMCS1FBK, 0); in rt2800_init_registers()
6170 rt2x00_set_field32(&reg, LG_FBK_CFG0_CCKMCS2FBK, 1); in rt2800_init_registers()
6171 rt2x00_set_field32(&reg, LG_FBK_CFG0_CCKMCS3FBK, 2); in rt2800_init_registers()
6178 rt2x00_set_field32(&reg, AMPDU_BA_WINSIZE_FORCE_WINSIZE_ENABLE, 0); in rt2800_init_registers()
6179 rt2x00_set_field32(&reg, AMPDU_BA_WINSIZE_FORCE_WINSIZE, 0); in rt2800_init_registers()
6198 rt2x00_set_field32(&reg, INT_TIMER_CFG_PRE_TBTT_TIMER, 6 << 4); in rt2800_init_registers()
6205 rt2x00_set_field32(&reg, CH_TIME_CFG_EIFS_BUSY, 1); in rt2800_init_registers()
6206 rt2x00_set_field32(&reg, CH_TIME_CFG_NAV_BUSY, 1); in rt2800_init_registers()
6207 rt2x00_set_field32(&reg, CH_TIME_CFG_RX_BUSY, 1); in rt2800_init_registers()
6208 rt2x00_set_field32(&reg, CH_TIME_CFG_TX_BUSY, 1); in rt2800_init_registers()
6209 rt2x00_set_field32(&reg, CH_TIME_CFG_TMR_EN, 1); in rt2800_init_registers()
6816 rt2x00_set_field32(&reg, GPIO_CTRL_DIR3, 0); in rt2800_init_bbp_53xx()
6817 rt2x00_set_field32(&reg, GPIO_CTRL_DIR6, 0); in rt2800_init_bbp_53xx()
6818 rt2x00_set_field32(&reg, GPIO_CTRL_VAL3, 0); in rt2800_init_bbp_53xx()
6819 rt2x00_set_field32(&reg, GPIO_CTRL_VAL6, 0); in rt2800_init_bbp_53xx()
6821 rt2x00_set_field32(&reg, GPIO_CTRL_VAL3, 1); in rt2800_init_bbp_53xx()
6823 rt2x00_set_field32(&reg, GPIO_CTRL_VAL6, 1); in rt2800_init_bbp_53xx()
7212 rt2x00_set_field32(&reg, OPT_14_CSR_BIT0, 1); in rt2800_led_open_drain_enable()
7545 rt2x00_set_field32(&reg, LDO_CFG0_BGSEL, 1); in rt2800_init_rfcsr_30xx()
7546 rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL, 3); in rt2800_init_rfcsr_30xx()
7557 rt2x00_set_field32(&reg, LDO_CFG0_BGSEL, 1); in rt2800_init_rfcsr_30xx()
7562 rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL, 3); in rt2800_init_rfcsr_30xx()
7564 rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL, 0); in rt2800_init_rfcsr_30xx()
7569 rt2x00_set_field32(&reg, GPIO_SWITCH_5, 0); in rt2800_init_rfcsr_30xx()
7784 rt2x00_set_field32(&reg, GPIO_SWITCH_5, 0); in rt2800_init_rfcsr_3390()
7840 rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL, 3); in rt2800_init_rfcsr_3572()
7841 rt2x00_set_field32(&reg, LDO_CFG0_BGSEL, 1); in rt2800_init_rfcsr_3572()
7845 rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL, 0); in rt2800_init_rfcsr_3572()
7846 rt2x00_set_field32(&reg, LDO_CFG0_BGSEL, 1); in rt2800_init_rfcsr_3572()
7909 rt2x00_set_field32(&reg, GPIO_SWITCH_4, 0); in rt2800_init_rfcsr_3593()
7910 rt2x00_set_field32(&reg, GPIO_SWITCH_7, 0); in rt2800_init_rfcsr_3593()
7960 rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL, 3); in rt2800_init_rfcsr_3593()
7961 rt2x00_set_field32(&reg, LDO_CFG0_BGSEL, 1); in rt2800_init_rfcsr_3593()
7965 rt2x00_set_field32(&reg, LDO_CFG0_LDO_CORE_VLEVEL, 0); in rt2800_init_rfcsr_3593()
9114 rt2x00_set_field32(&reg, MAC_SYS_CTRL_ENABLE_TX, 1); in rt2800_enable_radio()
9115 rt2x00_set_field32(&reg, MAC_SYS_CTRL_ENABLE_RX, 0); in rt2800_enable_radio()
9121 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_ENABLE_TX_DMA, 1); in rt2800_enable_radio()
9122 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_ENABLE_RX_DMA, 1); in rt2800_enable_radio()
9123 rt2x00_set_field32(&reg, WPDMA_GLO_CFG_TX_WRITEBACK_DONE, 1); in rt2800_enable_radio()
9127 rt2x00_set_field32(&reg, MAC_SYS_CTRL_ENABLE_TX, 1); in rt2800_enable_radio()
9128 rt2x00_set_field32(&reg, MAC_SYS_CTRL_ENABLE_RX, 1); in rt2800_enable_radio()
9160 rt2x00_set_field32(&reg, MAC_SYS_CTRL_ENABLE_TX, 0); in rt2800_disable_radio()
9161 rt2x00_set_field32(&reg, MAC_SYS_CTRL_ENABLE_RX, 0); in rt2800_disable_radio()
9206 rt2x00_set_field32(&reg, EFUSE_CTRL_ADDRESS_IN, i); in rt2800_efuse_read()
9207 rt2x00_set_field32(&reg, EFUSE_CTRL_MODE, 0); in rt2800_efuse_read()
9208 rt2x00_set_field32(&reg, EFUSE_CTRL_KICK, 1); in rt2800_efuse_read()
10284 rt2x00_set_field32(&reg, GPIO_CTRL_DIR2, 1); in rt2800_probe_hw()
10366 rt2x00_set_field32(&reg, TX_RTS_CFG_RTS_THRES, value); in rt2800_set_rts_threshold()
10370 rt2x00_set_field32(&reg, CCK_PROT_CFG_RTS_TH_EN, enabled); in rt2800_set_rts_threshold()
10374 rt2x00_set_field32(&reg, OFDM_PROT_CFG_RTS_TH_EN, enabled); in rt2800_set_rts_threshold()
10378 rt2x00_set_field32(&reg, MM20_PROT_CFG_RTS_TH_EN, enabled); in rt2800_set_rts_threshold()
10382 rt2x00_set_field32(&reg, MM40_PROT_CFG_RTS_TH_EN, enabled); in rt2800_set_rts_threshold()
10386 rt2x00_set_field32(&reg, GF20_PROT_CFG_RTS_TH_EN, enabled); in rt2800_set_rts_threshold()
10390 rt2x00_set_field32(&reg, GF40_PROT_CFG_RTS_TH_EN, enabled); in rt2800_set_rts_threshold()
10433 rt2x00_set_field32(&reg, field, queue->txop); in rt2800_conf_tx()
10441 rt2x00_set_field32(&reg, field, queue->aifs); in rt2800_conf_tx()
10445 rt2x00_set_field32(&reg, field, queue->cw_min); in rt2800_conf_tx()
10449 rt2x00_set_field32(&reg, field, queue->cw_max); in rt2800_conf_tx()
10456 rt2x00_set_field32(&reg, EDCA_AC0_CFG_TX_OP, queue->txop); in rt2800_conf_tx()
10457 rt2x00_set_field32(&reg, EDCA_AC0_CFG_AIFSN, queue->aifs); in rt2800_conf_tx()
10458 rt2x00_set_field32(&reg, EDCA_AC0_CFG_CWMIN, queue->cw_min); in rt2800_conf_tx()
10459 rt2x00_set_field32(&reg, EDCA_AC0_CFG_CWMAX, queue->cw_max); in rt2800_conf_tx()