Lines Matching refs:val8
757 u8 val8; in rtl8188fu_init_phy_bb() local
768 val8 = RF_ENABLE | RF_RSTB | RF_SDMRSTB; in rtl8188fu_init_phy_bb()
769 rtl8xxxu_write8(priv, REG_RF_CTRL, val8); in rtl8188fu_init_phy_bb()
775 val8 = SYS_FUNC_BB_GLB_RSTN | SYS_FUNC_BBRSTB | SYS_FUNC_USBA | SYS_FUNC_USBD; in rtl8188fu_init_phy_bb()
776 rtl8xxxu_write8(priv, REG_SYS_FUNC, val8); in rtl8188fu_init_phy_bb()
1324 u16 val8; in rtl8188f_disabled_to_emu() local
1327 val8 = rtl8xxxu_read8(priv, REG_APS_FSMCO + 1); in rtl8188f_disabled_to_emu()
1328 val8 &= ~((APS_FSMCO_PCIE | APS_FSMCO_HW_SUSPEND) >> 8); in rtl8188f_disabled_to_emu()
1329 rtl8xxxu_write8(priv, REG_APS_FSMCO + 1, val8); in rtl8188f_disabled_to_emu()
1332 val8 = rtl8xxxu_read8(priv, 0xc4); in rtl8188f_disabled_to_emu()
1333 val8 &= ~BIT(4); in rtl8188f_disabled_to_emu()
1334 rtl8xxxu_write8(priv, 0xc4, val8); in rtl8188f_disabled_to_emu()
1339 u8 val8; in rtl8188f_emu_to_active() local
1344 val8 = rtl8xxxu_read8(priv, REG_APS_FSMCO + 1); in rtl8188f_emu_to_active()
1345 val8 &= ~(APS_FSMCO_SW_LPS >> 8); in rtl8188f_emu_to_active()
1346 rtl8xxxu_write8(priv, REG_APS_FSMCO + 1, val8); in rtl8188f_emu_to_active()
1363 val8 = rtl8xxxu_read8(priv, REG_APS_FSMCO + 1); in rtl8188f_emu_to_active()
1364 val8 &= ~(APS_FSMCO_HW_POWERDOWN >> 8); in rtl8188f_emu_to_active()
1365 rtl8xxxu_write8(priv, REG_APS_FSMCO + 1, val8); in rtl8188f_emu_to_active()
1368 val8 = rtl8xxxu_read8(priv, REG_APS_FSMCO + 1); in rtl8188f_emu_to_active()
1369 val8 &= ~(APS_FSMCO_HW_SUSPEND >> 8); in rtl8188f_emu_to_active()
1370 rtl8xxxu_write8(priv, REG_APS_FSMCO + 1, val8); in rtl8188f_emu_to_active()
1373 val8 = rtl8xxxu_read8(priv, REG_APS_FSMCO + 1); in rtl8188f_emu_to_active()
1374 val8 |= APS_FSMCO_MAC_ENABLE >> 8; in rtl8188f_emu_to_active()
1375 rtl8xxxu_write8(priv, REG_APS_FSMCO + 1, val8); in rtl8188f_emu_to_active()
1392 val8 = rtl8xxxu_write8(priv, 0x27, 0x35); in rtl8188f_emu_to_active()
1399 u8 val8; in rtl8188fu_active_to_emu() local
1407 val8 = rtl8xxxu_read8(priv, 0x4e); in rtl8188fu_active_to_emu()
1408 val8 &= ~BIT(7); in rtl8188fu_active_to_emu()
1409 rtl8xxxu_write8(priv, 0x4e, val8); in rtl8188fu_active_to_emu()
1415 val8 = rtl8xxxu_read8(priv, REG_APS_FSMCO + 1); in rtl8188fu_active_to_emu()
1416 val8 |= APS_FSMCO_MAC_OFF >> 8; in rtl8188fu_active_to_emu()
1417 rtl8xxxu_write8(priv, REG_APS_FSMCO + 1, val8); in rtl8188fu_active_to_emu()
1439 u8 val8; in rtl8188fu_emu_to_disabled() local
1442 val8 = rtl8xxxu_read8(priv, REG_APS_FSMCO + 1); in rtl8188fu_emu_to_disabled()
1443 val8 &= ~((APS_FSMCO_PCIE | APS_FSMCO_HW_SUSPEND) >> 8); in rtl8188fu_emu_to_disabled()
1444 val8 |= APS_FSMCO_HW_SUSPEND >> 8; in rtl8188fu_emu_to_disabled()
1445 rtl8xxxu_write8(priv, REG_APS_FSMCO + 1, val8); in rtl8188fu_emu_to_disabled()
1448 val8 = rtl8xxxu_read8(priv, 0xc4); in rtl8188fu_emu_to_disabled()
1449 val8 |= BIT(4); in rtl8188fu_emu_to_disabled()
1450 rtl8xxxu_write8(priv, 0xc4, val8); in rtl8188fu_emu_to_disabled()
1458 u8 val8; in rtl8188fu_active_to_lps() local
1464 val8 = rtl8xxxu_read8(priv, REG_FTIMR + 1); in rtl8188fu_active_to_lps()
1465 val8 |= IMR0_CPWM >> 8; in rtl8188fu_active_to_lps()
1466 rtl8xxxu_write8(priv, REG_FTIMR + 1, val8); in rtl8188fu_active_to_lps()
1492 val8 = rtl8xxxu_read8(priv, REG_SYS_FUNC); in rtl8188fu_active_to_lps()
1493 val8 &= ~SYS_FUNC_BBRSTB; in rtl8188fu_active_to_lps()
1494 rtl8xxxu_write8(priv, REG_SYS_FUNC, val8); in rtl8188fu_active_to_lps()
1499 val8 = rtl8xxxu_read8(priv, REG_SYS_FUNC); in rtl8188fu_active_to_lps()
1500 val8 &= ~SYS_FUNC_BB_GLB_RSTN; in rtl8188fu_active_to_lps()
1501 rtl8xxxu_write8(priv, REG_SYS_FUNC, val8); in rtl8188fu_active_to_lps()
1510 val8 = rtl8xxxu_read8(priv, REG_DUAL_TSF_RST); in rtl8188fu_active_to_lps()
1511 val8 |= DUAL_TSF_TX_OK; in rtl8188fu_active_to_lps()
1512 rtl8xxxu_write8(priv, REG_DUAL_TSF_RST, val8); in rtl8188fu_active_to_lps()
1545 u8 val8; in rtl8188fu_power_off() local
1558 val8 = rtl8xxxu_read8(priv, REG_TX_REPORT_CTRL); in rtl8188fu_power_off()
1559 val8 &= ~TX_REPORT_CTRL_TIMER_ENABLE; in rtl8188fu_power_off()
1560 rtl8xxxu_write8(priv, REG_TX_REPORT_CTRL, val8); in rtl8188fu_power_off()
1589 u8 pg_pwrtrim = 0xff, val8; in rtl8188f_enable_rf() local
1605 val8 = abs(bb_gain); in rtl8188f_enable_rf()
1607 val8 |= BIT(5); in rtl8188f_enable_rf()
1611 val32 |= val8 << 14; in rtl8188f_enable_rf()