/drivers/net/wireless/realtek/rtlwifi/rtl8723com/ |
D | fw_common.c | 123 u32 value32; in rtl8723_fw_free_to_go() local 126 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in rtl8723_fw_free_to_go() 128 (!(value32 & FWDL_CHKSUM_RPT))); in rtl8723_fw_free_to_go() 132 value32); in rtl8723_fw_free_to_go() 135 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL) | MCUFWDL_RDY; in rtl8723_fw_free_to_go() 136 value32 &= ~WINTINI_RDY; in rtl8723_fw_free_to_go() 137 rtl_write_dword(rtlpriv, REG_MCUFWDL, value32); in rtl8723_fw_free_to_go() 144 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in rtl8723_fw_free_to_go() 145 if (value32 & WINTINI_RDY) { in rtl8723_fw_free_to_go() 148 value32); in rtl8723_fw_free_to_go() [all …]
|
/drivers/staging/rtl8188eu/hal/ |
D | fw.c | 110 u32 value32; in _rtl88e_fw_free_to_go() local 113 value32 = usb_read32(adapt, REG_MCUFWDL); in _rtl88e_fw_free_to_go() 114 if (value32 & FWDL_CHKSUM_RPT) in _rtl88e_fw_free_to_go() 121 value32 = usb_read32(adapt, REG_MCUFWDL); in _rtl88e_fw_free_to_go() 122 value32 |= MCUFWDL_RDY; in _rtl88e_fw_free_to_go() 123 value32 &= ~WINTINI_RDY; in _rtl88e_fw_free_to_go() 124 usb_write32(adapt, REG_MCUFWDL, value32); in _rtl88e_fw_free_to_go() 130 value32 = usb_read32(adapt, REG_MCUFWDL); in _rtl88e_fw_free_to_go() 131 if (value32 & WINTINI_RDY) { in _rtl88e_fw_free_to_go()
|
D | odm_rtl8188e.c | 14 u32 value32; in dm_rx_hw_antena_div_init() local 24 value32 = phy_query_bb_reg(adapter, ODM_REG_ANTSEL_PIN_11N, bMaskDWord); in dm_rx_hw_antena_div_init() 26 value32 | (BIT(23) | BIT(25))); in dm_rx_hw_antena_div_init() 45 u32 value32; in dm_trx_hw_antenna_div_init() local 56 value32 = phy_query_bb_reg(adapter, ODM_REG_ANTSEL_PIN_11N, bMaskDWord); in dm_trx_hw_antenna_div_init() 58 value32 | (BIT(23) | BIT(25))); in dm_trx_hw_antenna_div_init() 89 u32 value32, i; in dm_fast_training_init() local 105 value32 = phy_query_bb_reg(adapter, 0x4c, bMaskDWord); in dm_fast_training_init() 107 value32 | (BIT(23) | BIT(25))); in dm_fast_training_init() 108 value32 = phy_query_bb_reg(adapter, 0x7B4, bMaskDWord); in dm_fast_training_init() [all …]
|
D | usb_halinit.c | 151 u32 value32; in _InitQueueReservedPage() local 171 value32 = _HPQ(numHQ) | _LPQ(numLQ) | _PUBQ(numPubQ) | LD_RQPN; in _InitQueueReservedPage() 172 usb_write32(Adapter, REG_RQPN, value32); in _InitQueueReservedPage() 316 u32 value32; in _InitNetworkType() local 318 value32 = usb_read32(Adapter, REG_CR); in _InitNetworkType() 320 value32 = (value32 & ~MASK_NETTYPE) | _NETTYPE(NT_LINK_AP); in _InitNetworkType() 322 usb_write32(Adapter, REG_CR, value32); in _InitNetworkType() 360 u32 value32; in _InitAdaptiveCtrl() local 363 value32 = usb_read32(Adapter, REG_RRSR); in _InitAdaptiveCtrl() 364 value32 &= ~RATE_BITMAP_ALL; in _InitAdaptiveCtrl() [all …]
|
D | rtl8188e_hal_init.c | 118 u32 value32; in rtw_hal_read_chip_version() local 122 value32 = usb_read32(padapter, REG_SYS_CFG); in rtw_hal_read_chip_version() 123 ChipVersion.ChipType = ((value32 & RTL_ID) ? TEST_CHIP : NORMAL_CHIP); in rtw_hal_read_chip_version() 124 ChipVersion.VendorType = ((value32 & VENDOR_ID) ? CHIP_VENDOR_UMC : CHIP_VENDOR_TSMC); in rtw_hal_read_chip_version() 125 …ChipVersion.CUTVersion = (value32 & CHIP_VER_RTL_MASK) >> CHIP_VER_RTL_SHIFT; /* IC version (CUT)… in rtw_hal_read_chip_version()
|
/drivers/net/wireless/realtek/rtw88/ |
D | mac.c | 15 u32 value32; in rtw_set_channel_mac() local 28 value32 = rtw_read32(rtwdev, REG_WMAC_TRXPTCL_CTL); in rtw_set_channel_mac() 29 value32 &= ~BIT_RFMOD; in rtw_set_channel_mac() 32 value32 |= BIT_RFMOD_80M; in rtw_set_channel_mac() 35 value32 |= BIT_RFMOD_40M; in rtw_set_channel_mac() 41 rtw_write32(rtwdev, REG_WMAC_TRXPTCL_CTL, value32); in rtw_set_channel_mac() 46 value32 = rtw_read32(rtwdev, REG_AFE_CTRL1) & ~(BIT_MAC_CLK_SEL); in rtw_set_channel_mac() 47 value32 |= (MAC_CLK_HW_DEF_80M << BIT_SHIFT_MAC_CLK_SEL); in rtw_set_channel_mac() 48 rtw_write32(rtwdev, REG_AFE_CTRL1, value32); in rtw_set_channel_mac() 63 u32 value32; in rtw_mac_pre_system_cfg() local [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
D | fw_common.c | 20 u32 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl92c_enable_fw_download() local 23 value32 |= MCUFWDL_EN; in _rtl92c_enable_fw_download() 25 value32 &= ~MCUFWDL_EN; in _rtl92c_enable_fw_download() 26 rtl_write_dword(rtlpriv, REG_MCUFWDL, value32); in _rtl92c_enable_fw_download() 94 u32 value32; in _rtl92c_fw_free_to_go() local 97 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl92c_fw_free_to_go() 99 (!(value32 & FWDL_CHKSUM_RPT))); in _rtl92c_fw_free_to_go() 103 value32); in _rtl92c_fw_free_to_go() 106 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl92c_fw_free_to_go() 107 value32 |= MCUFWDL_RDY; in _rtl92c_fw_free_to_go() [all …]
|
D | dm_common.c | 706 long ele_a, ele_d, temp_cck, val_x, value32; in rtl92c_dm_txpower_tracking_callback_thermalmeter() local 975 value32 = (ele_d << 22) | in rtl92c_dm_txpower_tracking_callback_thermalmeter() 979 MASKDWORD, value32); in rtl92c_dm_txpower_tracking_callback_thermalmeter() 981 value32 = (ele_c & 0x000003C0) >> 6; in rtl92c_dm_txpower_tracking_callback_thermalmeter() 983 value32); in rtl92c_dm_txpower_tracking_callback_thermalmeter() 985 value32 = ((val_x * ele_d) >> 7) & 0x01; in rtl92c_dm_txpower_tracking_callback_thermalmeter() 987 BIT(31), value32); in rtl92c_dm_txpower_tracking_callback_thermalmeter() 989 value32 = ((val_y * ele_d) >> 7) & 0x01; in rtl92c_dm_txpower_tracking_callback_thermalmeter() 991 BIT(29), value32); in rtl92c_dm_txpower_tracking_callback_thermalmeter() 1073 value32 = (ele_d << 22) | in rtl92c_dm_txpower_tracking_callback_thermalmeter() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | dm.c | 150 long ele_a = 0, ele_d, ele_c = 0, value32; in rtl88e_set_iqk_matrix() local 165 value32 = (ele_d << 22)|((ele_c & 0x3F)<<16) | ele_a; in rtl88e_set_iqk_matrix() 167 MASKDWORD, value32); in rtl88e_set_iqk_matrix() 168 value32 = (ele_c & 0x000003C0) >> 6; in rtl88e_set_iqk_matrix() 170 value32); in rtl88e_set_iqk_matrix() 171 value32 = ((iqk_result_x * ele_d) >> 7) & 0x01; in rtl88e_set_iqk_matrix() 173 value32); in rtl88e_set_iqk_matrix() 176 value32 = (ele_d << 22)|((ele_c & 0x3F)<<16) | ele_a; in rtl88e_set_iqk_matrix() 178 value32); in rtl88e_set_iqk_matrix() 179 value32 = (ele_c & 0x000003C0) >> 6; in rtl88e_set_iqk_matrix() [all …]
|
D | fw.c | 71 u32 value32; in _rtl88e_fw_free_to_go() local 74 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl88e_fw_free_to_go() 76 (!(value32 & FWDL_CHKSUM_RPT))); in _rtl88e_fw_free_to_go() 80 value32); in _rtl88e_fw_free_to_go() 83 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl88e_fw_free_to_go() 84 value32 |= MCUFWDL_RDY; in _rtl88e_fw_free_to_go() 85 value32 &= ~WINTINI_RDY; in _rtl88e_fw_free_to_go() 86 rtl_write_dword(rtlpriv, REG_MCUFWDL, value32); in _rtl88e_fw_free_to_go() 92 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl88e_fw_free_to_go() 93 if (value32 & WINTINI_RDY) in _rtl88e_fw_free_to_go() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | mac.c | 34 u32 value32; in rtl92c_read_chip_version() local 36 value32 = rtl_read_dword(rtlpriv, REG_SYS_CFG); in rtl92c_read_chip_version() 37 if (value32 & TRP_VAUX_EN) { in rtl92c_read_chip_version() 38 chip_version = (value32 & TYPE_ID) ? VERSION_TEST_CHIP_92C : in rtl92c_read_chip_version() 43 chip_version |= ((value32 & TYPE_ID) ? CHIP_92C : 0); in rtl92c_read_chip_version() 44 chip_version |= ((value32 & VENDOR_ID) ? CHIP_VENDOR_UMC : 0); in rtl92c_read_chip_version() 46 chip_version |= ((value32 & CHIP_VER_RTL_MASK) ? in rtl92c_read_chip_version() 49 value32 = rtl_read_dword(rtlpriv, REG_HPON_FSM); in rtl92c_read_chip_version() 50 chip_version |= ((CHIP_BONDING_IDENTIFIER(value32) == in rtl92c_read_chip_version() 421 u32 value32; in rtl92c_init_adaptive_ctrl() local [all …]
|
D | hw.c | 504 u32 value32; in _rtl92cu_init_queue_reserved_page() local 551 value32 = _HPQ(numhq) | _LPQ(numlq) | _PUBQ(numpubq) | LD_RQPN; in _rtl92cu_init_queue_reserved_page() 552 rtl_write_dword(rtlpriv, REG_RQPN, value32); in _rtl92cu_init_queue_reserved_page() 762 u32 value32; in _rtl92cu_init_wmac_setting() local 765 value32 = (RCR_APM | RCR_AM | RCR_ADF | RCR_AB | RCR_APPFCS | in _rtl92cu_init_wmac_setting() 768 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RCR, (u8 *)(&value32)); in _rtl92cu_init_wmac_setting() 1122 u32 value32; in _disablegpio() local 1126 value32 = rtl_read_dword(rtlpriv, REG_GPIO_PIN_CTRL) & 0xFFFF00FF; in _disablegpio() 1127 value8 = (u8)(value32&0x000000FF); in _disablegpio() 1128 value32 |= ((value8<<8) | 0x00FF0000); in _disablegpio() [all …]
|
/drivers/staging/rtl8723bs/hal/ |
D | sdio_halinit.c | 50 u32 value32; in HostWakeUpGpioClear() local 52 value32 = rtw_read32(Adapter, REG_GPIO_PIN_CTRL_2); in HostWakeUpGpioClear() 55 value32 |= BIT(12);/* 4+8 */ in HostWakeUpGpioClear() 57 value32 |= BIT(20);/* 4+16 */ in HostWakeUpGpioClear() 59 rtw_write32(Adapter, REG_GPIO_PIN_CTRL_2, value32); in HostWakeUpGpioClear() 107 u32 value32; in _InitPowerOn_8723BS() local 183 value32 = rtw_read32(padapter, REG_LEDCFG0); in _InitPowerOn_8723BS() 184 value32 |= BIT(23); /* DPDT_SEL_EN, 1 for SW control */ in _InitPowerOn_8723BS() 185 rtw_write32(padapter, REG_LEDCFG0, value32); in _InitPowerOn_8723BS() 228 u32 value32; in _InitQueueReservedPage() local [all …]
|
D | rtl8723b_hal_init.c | 227 u32 value32; in polling_fwdl_chksum() local 234 value32 = rtw_read32(adapter, REG_MCUFWDL); in polling_fwdl_chksum() 235 if (value32 & FWDL_ChkSum_rpt || adapter->bSurpriseRemoved || adapter->bDriverStopped) in polling_fwdl_chksum() 240 if (!(value32 & FWDL_ChkSum_rpt)) { in polling_fwdl_chksum() 259 value32 in polling_fwdl_chksum() 270 u32 value32; in _FWFreeToGo() local 274 value32 = rtw_read32(adapter, REG_MCUFWDL); in _FWFreeToGo() 275 value32 |= MCUFWDL_RDY; in _FWFreeToGo() 276 value32 &= ~WINTINI_RDY; in _FWFreeToGo() 277 rtw_write32(adapter, REG_MCUFWDL, value32); in _FWFreeToGo() [all …]
|
D | odm_DIG.c | 42 u32 value32 = 0; in odm_GetNHMCounterStatistics() local 44 value32 = PHY_QueryBBReg(pDM_Odm->Adapter, ODM_REG_NHM_CNT_11N, bMaskDWord); in odm_GetNHMCounterStatistics() 46 pDM_Odm->NHM_cnt_0 = (u8)(value32 & bMaskByte0); in odm_GetNHMCounterStatistics() 137 u32 value32 = 0; in odm_SearchPwdBLowerBound() local 159 value32 = PHY_QueryBBReg(pDM_Odm->Adapter, ODM_REG_RPT_11N, bMaskDWord); in odm_SearchPwdBLowerBound() 161 if (value32 & BIT30) in odm_SearchPwdBLowerBound() 163 else if (value32 & BIT29) in odm_SearchPwdBLowerBound()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | fw.c | 68 u32 value32; in _rtl92ee_fw_free_to_go() local 71 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl92ee_fw_free_to_go() 73 (!(value32 & FWDL_CHKSUM_RPT))); in _rtl92ee_fw_free_to_go() 77 value32); in _rtl92ee_fw_free_to_go() 80 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl92ee_fw_free_to_go() 81 value32 |= MCUFWDL_RDY; in _rtl92ee_fw_free_to_go() 82 value32 &= ~WINTINI_RDY; in _rtl92ee_fw_free_to_go() 83 rtl_write_dword(rtlpriv, REG_MCUFWDL, value32); in _rtl92ee_fw_free_to_go() 89 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl92ee_fw_free_to_go() 90 if (value32 & WINTINI_RDY) in _rtl92ee_fw_free_to_go() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | fw.c | 70 u32 value32; in _rtl8821ae_fw_free_to_go() local 73 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl8821ae_fw_free_to_go() 75 (!(value32 & FWDL_CHKSUM_RPT))); in _rtl8821ae_fw_free_to_go() 80 value32); in _rtl8821ae_fw_free_to_go() 83 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl8821ae_fw_free_to_go() 84 value32 |= MCUFWDL_RDY; in _rtl8821ae_fw_free_to_go() 85 value32 &= ~WINTINI_RDY; in _rtl8821ae_fw_free_to_go() 86 rtl_write_dword(rtlpriv, REG_MCUFWDL, value32); in _rtl8821ae_fw_free_to_go() 92 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl8821ae_fw_free_to_go() 93 if (value32 & WINTINI_RDY) in _rtl8821ae_fw_free_to_go() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | dm.c | 780 long ele_a = 0, ele_d, temp_cck, val_x, value32; in rtl92d_dm_txpower_tracking_callback_thermalmeter() local 1031 value32 = (ele_d << 22) | ((ele_c & 0x3F) << 16) | ele_a; in rtl92d_dm_txpower_tracking_callback_thermalmeter() 1033 MASKDWORD, value32); in rtl92d_dm_txpower_tracking_callback_thermalmeter() 1035 value32 = (ele_c & 0x000003C0) >> 6; in rtl92d_dm_txpower_tracking_callback_thermalmeter() 1037 value32); in rtl92d_dm_txpower_tracking_callback_thermalmeter() 1039 value32 = ((val_x * ele_d) >> 7) & 0x01; in rtl92d_dm_txpower_tracking_callback_thermalmeter() 1041 value32); in rtl92d_dm_txpower_tracking_callback_thermalmeter() 1117 value32 = (ele_d << 22) | ((ele_c & 0x3F) << 16) | ele_a; in rtl92d_dm_txpower_tracking_callback_thermalmeter() 1120 MASKDWORD, value32); in rtl92d_dm_txpower_tracking_callback_thermalmeter() 1121 value32 = (ele_c & 0x000003C0) >> 6; in rtl92d_dm_txpower_tracking_callback_thermalmeter() [all …]
|
D | fw.c | 73 u32 value32; in _rtl92d_fw_free_to_go() local 76 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl92d_fw_free_to_go() 78 (!(value32 & FWDL_CHKSUM_RPT))); in _rtl92d_fw_free_to_go() 81 value32); in _rtl92d_fw_free_to_go() 84 value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); in _rtl92d_fw_free_to_go() 85 value32 |= MCUFWDL_RDY; in _rtl92d_fw_free_to_go() 86 rtl_write_dword(rtlpriv, REG_MCUFWDL, value32); in _rtl92d_fw_free_to_go()
|
/drivers/acpi/acpica/ |
D | exregion.c | 309 u32 value32; in acpi_ex_system_io_space_handler() local 323 &value32, bit_width); in acpi_ex_system_io_space_handler() 324 *value = value32; in acpi_ex_system_io_space_handler()
|
D | hwgpe.c | 46 u32 value32; in acpi_hw_gpe_read() local 59 &value32, ACPI_GPE_REGISTER_WIDTH); in acpi_hw_gpe_read() 63 *value = (u64)value32; in acpi_hw_gpe_read()
|
D | hwregs.c | 202 u32 value32; in acpi_hw_read() local 249 &value32, in acpi_hw_read() 251 value64 = (u64)value32; in acpi_hw_read()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | hw.c | 1035 u32 value32; in _rtl8723e_read_chip_version() local 1037 value32 = rtl_read_dword(rtlpriv, REG_SYS_CFG); in _rtl8723e_read_chip_version() 1038 if (value32 & TRP_VAUX_EN) { in _rtl8723e_read_chip_version() 1040 ((value32 & VENDOR_ID) ? CHIP_VENDOR_UMC : 0)); in _rtl8723e_read_chip_version() 1043 ((value32 & BT_FUNC) ? CHIP_8723 : 0)); in _rtl8723e_read_chip_version() 1049 ((value32 & VENDOR_ID) ? CHIP_VENDOR_UMC : 0)); in _rtl8723e_read_chip_version() 1052 ((value32 & BT_FUNC) ? CHIP_8723 : 0)); in _rtl8723e_read_chip_version() 1055 ((value32 & CHIP_VER_RTL_MASK)));/* IC version (CUT) */ in _rtl8723e_read_chip_version() 1057 value32 = rtl_read_dword(rtlpriv, REG_GPIO_OUTSTS); in _rtl8723e_read_chip_version() 1060 ((value32 & RF_RL_ID)>>20)); in _rtl8723e_read_chip_version() [all …]
|
/drivers/media/usb/as102/ |
D | as10x_cmd_cfg.c | 63 *pvalue = le32_to_cpu((__force __le32)prsp->body.context.rsp.reg_val.u.value32); in as10x_cmd_get_context() 95 pcmd->body.context.req.reg_val.u.value32 = (__force u32)cpu_to_le32(value); in as10x_cmd_set_context()
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | hw.c | 667 u32 value32; in _rtl92ce_init_mac() local 669 value32 = rtl_read_dword(rtlpriv, REG_APS_FSMCO); in _rtl92ce_init_mac() 670 value32 |= (SOP_ABG | SOP_AMB | XOP_BTCK); in _rtl92ce_init_mac() 671 rtl_write_dword(rtlpriv, REG_APS_FSMCO, value32); in _rtl92ce_init_mac() 1044 u32 value32; in _rtl92ce_read_chip_version() local 1047 value32 = rtl_read_dword(rtlpriv, REG_SYS_CFG); in _rtl92ce_read_chip_version() 1048 if (value32 & TRP_VAUX_EN) { in _rtl92ce_read_chip_version() 1049 version = (value32 & TYPE_ID) ? VERSION_A_CHIP_92C : in _rtl92ce_read_chip_version() 1053 ((value32 & TYPE_ID) ? CHIP_92C_BITMASK : 0) | in _rtl92ce_read_chip_version() 1054 ((value32 & VENDOR_ID) ? CHIP_VENDOR_UMC : 0)); in _rtl92ce_read_chip_version() [all …]
|