Lines Matching refs:REG_MCUFW_CTRL
284 if (rtw_read16(rtwdev, REG_MCUFW_CTRL) == 0xC078) { in rtw_mac_power_switch()
343 tmp = rtw_read32(rtwdev, REG_MCUFW_CTRL); in __rtw_mac_init_system_cfg()
345 rtw_write32(rtwdev, REG_MCUFW_CTRL, tmp & (~BIT_BOOT_FSPI_EN)); in __rtw_mac_init_system_cfg()
614 fw_ctrl = rtw_read8(rtwdev, REG_MCUFW_CTRL); in check_fw_checksum()
620 rtw_write8(rtwdev, REG_MCUFW_CTRL, fw_ctrl); in check_fw_checksum()
624 rtw_write8(rtwdev, REG_MCUFW_CTRL, fw_ctrl); in check_fw_checksum()
634 rtw_write8(rtwdev, REG_MCUFW_CTRL, fw_ctrl); in check_fw_checksum()
637 rtw_write8(rtwdev, REG_MCUFW_CTRL, fw_ctrl); in check_fw_checksum()
714 val = (u16)(rtw_read16(rtwdev, REG_MCUFW_CTRL) & 0x3800); in start_download_firmware()
716 rtw_write16(rtwdev, REG_MCUFW_CTRL, val); in start_download_firmware()
749 if (!check_hw_ready(rtwdev, REG_MCUFW_CTRL, FW_READY_MASK, FW_READY)) { in download_firmware_validate()
766 fw_ctrl = rtw_read16(rtwdev, REG_MCUFW_CTRL); in download_firmware_end_flow()
771 rtw_write16(rtwdev, REG_MCUFW_CTRL, fw_ctrl); in download_firmware_end_flow()
825 rtw_write8_clr(rtwdev, REG_MCUFW_CTRL, BIT_MCUFWDL_EN); in __rtw_download_firmware()
839 rtw_write8_set(rtwdev, REG_MCUFW_CTRL, BIT_MCUFWDL_EN); in en_download_firmware_legacy()
842 if (rtw_read8(rtwdev, REG_MCUFW_CTRL) & BIT_MCUFWDL_EN) in en_download_firmware_legacy()
844 rtw_write8_set(rtwdev, REG_MCUFW_CTRL, BIT_MCUFWDL_EN); in en_download_firmware_legacy()
849 rtw_write32_clr(rtwdev, REG_MCUFW_CTRL, BIT_ROM_DLEN); in en_download_firmware_legacy()
851 rtw_write8_clr(rtwdev, REG_MCUFW_CTRL, BIT_MCUFWDL_EN); in en_download_firmware_legacy()
869 val32 = rtw_read32(rtwdev, REG_MCUFW_CTRL); in write_firmware_page()
872 rtw_write32(rtwdev, REG_MCUFW_CTRL, val32); in write_firmware_page()
900 rtw_write8_set(rtwdev, REG_MCUFW_CTRL, BIT_FWDL_CHK_RPT); in download_firmware_legacy()
909 if (!check_hw_ready(rtwdev, REG_MCUFW_CTRL, BIT_FWDL_CHK_RPT, 1)) { in download_firmware_legacy()
922 val32 = rtw_read32(rtwdev, REG_MCUFW_CTRL); in download_firmware_validate_legacy()
925 rtw_write32(rtwdev, REG_MCUFW_CTRL, val32); in download_firmware_validate_legacy()
931 val32 = rtw_read32(rtwdev, REG_MCUFW_CTRL); in download_firmware_validate_legacy()
948 rtw_read8_mask(rtwdev, REG_MCUFW_CTRL, BIT_RAM_DL_SEL)) { in __rtw_download_firmware_legacy()
949 rtw_write8(rtwdev, REG_MCUFW_CTRL, 0x00); in __rtw_download_firmware_legacy()