Lines Matching refs:val32

135 	u32 val32, sys_cfg, vendor;  in rtl8723au_identify_chip()  local
154 val32 = rtl8xxxu_read32(priv, REG_MULTI_FUNC_CTRL); in rtl8723au_identify_chip()
155 if (val32 & MULTI_WIFI_FUNC_EN) in rtl8723au_identify_chip()
157 if (val32 & MULTI_BT_FUNC_EN) in rtl8723au_identify_chip()
159 if (val32 & MULTI_GPS_FUNC_EN) in rtl8723au_identify_chip()
166 val32 = rtl8xxxu_read32(priv, REG_GPIO_OUTSTS); in rtl8723au_identify_chip()
167 priv->rom_rev = u32_get_bits(val32, GPIO_RF_RL_ID); in rtl8723au_identify_chip()
270 u32 val32; in rtl8723a_emu_to_active() local
297 val32 = rtl8xxxu_read32(priv, REG_APS_FSMCO); in rtl8723a_emu_to_active()
298 if (val32 & BIT(17)) in rtl8723a_emu_to_active()
327 val32 = rtl8xxxu_read32(priv, REG_APS_FSMCO); in rtl8723a_emu_to_active()
328 val32 |= APS_FSMCO_MAC_ENABLE; in rtl8723a_emu_to_active()
329 rtl8xxxu_write32(priv, REG_APS_FSMCO, val32); in rtl8723a_emu_to_active()
332 val32 = rtl8xxxu_read32(priv, REG_APS_FSMCO); in rtl8723a_emu_to_active()
333 if ((val32 & APS_FSMCO_MAC_ENABLE) == 0) { in rtl8723a_emu_to_active()
363 u32 val32; in rtl8723au_power_on() local
397 val32 = rtl8xxxu_read32(priv, REG_EFUSE_CTRL); in rtl8723au_power_on()
398 val32 &= ~(BIT(28) | BIT(29) | BIT(30)); in rtl8723au_power_on()
399 val32 |= (0x06 << 28); in rtl8723au_power_on()
400 rtl8xxxu_write32(priv, REG_EFUSE_CTRL, val32); in rtl8723au_power_on()
411 u32 val32; in rtl8723a_set_crystal_cap() local
416 val32 = rtl8xxxu_read32(priv, REG_MAC_PHY_CTRL); in rtl8723a_set_crystal_cap()
422 FIELD_GET(XTAL1, val32), in rtl8723a_set_crystal_cap()
423 FIELD_GET(XTAL0, val32), in rtl8723a_set_crystal_cap()
426 val32 &= ~(XTAL1 | XTAL0); in rtl8723a_set_crystal_cap()
427 val32 |= FIELD_PREP(XTAL1, crystal_cap) | in rtl8723a_set_crystal_cap()
429 rtl8xxxu_write32(priv, REG_MAC_PHY_CTRL, val32); in rtl8723a_set_crystal_cap()