Lines Matching refs:fw_ctrl
557 u8 fw_ctrl; in check_fw_checksum() local
559 fw_ctrl = rtw_read8(rtwdev, REG_MCUFW_CTRL); in check_fw_checksum()
563 fw_ctrl |= BIT_IMEM_DW_OK; in check_fw_checksum()
564 fw_ctrl &= ~BIT_IMEM_CHKSUM_OK; in check_fw_checksum()
565 rtw_write8(rtwdev, REG_MCUFW_CTRL, fw_ctrl); in check_fw_checksum()
567 fw_ctrl |= BIT_DMEM_DW_OK; in check_fw_checksum()
568 fw_ctrl &= ~BIT_DMEM_CHKSUM_OK; in check_fw_checksum()
569 rtw_write8(rtwdev, REG_MCUFW_CTRL, fw_ctrl); in check_fw_checksum()
578 fw_ctrl |= (BIT_IMEM_DW_OK | BIT_IMEM_CHKSUM_OK); in check_fw_checksum()
579 rtw_write8(rtwdev, REG_MCUFW_CTRL, fw_ctrl); in check_fw_checksum()
581 fw_ctrl |= (BIT_DMEM_DW_OK | BIT_DMEM_CHKSUM_OK); in check_fw_checksum()
582 rtw_write8(rtwdev, REG_MCUFW_CTRL, fw_ctrl); in check_fw_checksum()
706 u16 fw_ctrl; in download_firmware_end_flow() local
711 fw_ctrl = rtw_read16(rtwdev, REG_MCUFW_CTRL); in download_firmware_end_flow()
712 if ((fw_ctrl & BIT_CHECK_SUM_OK) != BIT_CHECK_SUM_OK) in download_firmware_end_flow()
715 fw_ctrl = (fw_ctrl | BIT_FW_DW_RDY) & ~BIT_MCUFWDL_EN; in download_firmware_end_flow()
716 rtw_write16(rtwdev, REG_MCUFW_CTRL, fw_ctrl); in download_firmware_end_flow()