Lines Matching refs:tmpu1b
535 u8 tmpu1b; in _rtl92se_macconfig_before_fwdownload() local
541 tmpu1b = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl92se_macconfig_before_fwdownload()
542 tmpu1b &= 0xFE; in _rtl92se_macconfig_before_fwdownload()
543 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmpu1b); in _rtl92se_macconfig_before_fwdownload()
545 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmpu1b | BIT(0)); in _rtl92se_macconfig_before_fwdownload()
549 tmpu1b = rtl_read_byte(rtlpriv, (SYS_CLKR + 1)); in _rtl92se_macconfig_before_fwdownload()
550 if (tmpu1b & BIT(7)) { in _rtl92se_macconfig_before_fwdownload()
551 tmpu1b &= ~(BIT(6) | BIT(7)); in _rtl92se_macconfig_before_fwdownload()
554 if (!_rtl92se_halset_sysclk(hw, tmpu1b)) in _rtl92se_macconfig_before_fwdownload()
567 tmpu1b = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl92se_macconfig_before_fwdownload()
568 tmpu1b &= 0x73; in _rtl92se_macconfig_before_fwdownload()
569 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmpu1b); in _rtl92se_macconfig_before_fwdownload()
577 tmpu1b = rtl_read_byte(rtlpriv, 0x562); in _rtl92se_macconfig_before_fwdownload()
578 tmpu1b |= 0x08; in _rtl92se_macconfig_before_fwdownload()
579 rtl_write_byte(rtlpriv, 0x562, tmpu1b); in _rtl92se_macconfig_before_fwdownload()
580 tmpu1b &= ~(BIT(3)); in _rtl92se_macconfig_before_fwdownload()
581 rtl_write_byte(rtlpriv, 0x562, tmpu1b); in _rtl92se_macconfig_before_fwdownload()
584 tmpu1b = rtl_read_byte(rtlpriv, AFE_XTAL_CTRL); in _rtl92se_macconfig_before_fwdownload()
585 rtl_write_byte(rtlpriv, AFE_XTAL_CTRL, (tmpu1b | 0x01)); in _rtl92se_macconfig_before_fwdownload()
588 tmpu1b = rtl_read_byte(rtlpriv, AFE_XTAL_CTRL + 1); in _rtl92se_macconfig_before_fwdownload()
589 rtl_write_byte(rtlpriv, AFE_XTAL_CTRL + 1, (tmpu1b & 0xfb)); in _rtl92se_macconfig_before_fwdownload()
592 tmpu1b = rtl_read_byte(rtlpriv, AFE_MISC); in _rtl92se_macconfig_before_fwdownload()
593 rtl_write_byte(rtlpriv, AFE_MISC, (tmpu1b | BIT(0))); in _rtl92se_macconfig_before_fwdownload()
597 tmpu1b = rtl_read_byte(rtlpriv, AFE_MISC); in _rtl92se_macconfig_before_fwdownload()
598 rtl_write_byte(rtlpriv, AFE_MISC, (tmpu1b | 0x02)); in _rtl92se_macconfig_before_fwdownload()
602 tmpu1b = rtl_read_byte(rtlpriv, LDOA15_CTRL); in _rtl92se_macconfig_before_fwdownload()
603 rtl_write_byte(rtlpriv, LDOA15_CTRL, (tmpu1b | BIT(0))); in _rtl92se_macconfig_before_fwdownload()
618 tmpu1b = rtl_read_byte(rtlpriv, AFE_PLL_CTRL); in _rtl92se_macconfig_before_fwdownload()
619 rtl_write_byte(rtlpriv, AFE_PLL_CTRL, (tmpu1b | BIT(0) | BIT(4))); in _rtl92se_macconfig_before_fwdownload()
623 rtl_write_byte(rtlpriv, AFE_PLL_CTRL, (tmpu1b | BIT(0) | in _rtl92se_macconfig_before_fwdownload()
626 rtl_write_byte(rtlpriv, AFE_PLL_CTRL, (tmpu1b | BIT(0) | BIT(4))); in _rtl92se_macconfig_before_fwdownload()
630 tmpu1b = rtl_read_byte(rtlpriv, AFE_PLL_CTRL + 1); in _rtl92se_macconfig_before_fwdownload()
631 rtl_write_byte(rtlpriv, AFE_PLL_CTRL + 1, (tmpu1b | BIT(0))); in _rtl92se_macconfig_before_fwdownload()
645 tmpu1b = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl92se_macconfig_before_fwdownload()
646 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmpu1b & ~(BIT(7))); in _rtl92se_macconfig_before_fwdownload()
655 tmpu1b = rtl_read_byte(rtlpriv, (SYS_CLKR + 1)); in _rtl92se_macconfig_before_fwdownload()
656 tmpu1b = ((tmpu1b | BIT(7)) & (~BIT(6))); in _rtl92se_macconfig_before_fwdownload()
657 if (!_rtl92se_halset_sysclk(hw, tmpu1b)) in _rtl92se_macconfig_before_fwdownload()
714 tmpu1b = rtl_read_byte(rtlpriv, TCR); in _rtl92se_macconfig_before_fwdownload()
715 if ((tmpu1b & TXDMA_INIT_VALUE) == TXDMA_INIT_VALUE) in _rtl92se_macconfig_before_fwdownload()
723 tmpu1b); in _rtl92se_macconfig_before_fwdownload()
724 tmpu1b = rtl_read_byte(rtlpriv, CMDR); in _rtl92se_macconfig_before_fwdownload()
725 rtl_write_byte(rtlpriv, CMDR, tmpu1b & (~TXDMA_EN)); in _rtl92se_macconfig_before_fwdownload()
728 rtl_write_byte(rtlpriv, CMDR, tmpu1b | TXDMA_EN); in _rtl92se_macconfig_before_fwdownload()
1390 u8 tmpu1b; in _rtl92se_power_domain_init() local
1394 tmpu1b = rtl_read_byte(rtlpriv, (SYS_CLKR + 1)); in _rtl92se_power_domain_init()
1395 if (tmpu1b & BIT(7)) { in _rtl92se_power_domain_init()
1396 tmpu1b &= ~(BIT(6) | BIT(7)); in _rtl92se_power_domain_init()
1397 if (!_rtl92s_set_sysclk(hw, tmpu1b)) { in _rtl92se_power_domain_init()
1407 tmpu1b = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl92se_power_domain_init()
1412 tmpu1b &= 0xFB; in _rtl92se_power_domain_init()
1414 tmpu1b &= 0x73; in _rtl92se_power_domain_init()
1416 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmpu1b); in _rtl92se_power_domain_init()
1424 tmpu1b = rtl_read_byte(rtlpriv, 0x562); in _rtl92se_power_domain_init()
1425 tmpu1b |= 0x08; in _rtl92se_power_domain_init()
1426 rtl_write_byte(rtlpriv, 0x562, tmpu1b); in _rtl92se_power_domain_init()
1427 tmpu1b &= ~(BIT(3)); in _rtl92se_power_domain_init()
1428 rtl_write_byte(rtlpriv, 0x562, tmpu1b); in _rtl92se_power_domain_init()
1431 tmpu1b = rtl_read_byte(rtlpriv, AFE_XTAL_CTRL); in _rtl92se_power_domain_init()
1432 rtl_write_byte(rtlpriv, AFE_XTAL_CTRL, (tmpu1b | 0x01)); in _rtl92se_power_domain_init()
1435 tmpu1b = rtl_read_byte(rtlpriv, AFE_XTAL_CTRL + 1); in _rtl92se_power_domain_init()
1436 rtl_write_byte(rtlpriv, AFE_XTAL_CTRL + 1, (tmpu1b & 0xfb)); in _rtl92se_power_domain_init()
1439 tmpu1b = rtl_read_byte(rtlpriv, AFE_MISC); in _rtl92se_power_domain_init()
1440 rtl_write_byte(rtlpriv, AFE_MISC, (tmpu1b | BIT(0))); in _rtl92se_power_domain_init()
1444 tmpu1b = rtl_read_byte(rtlpriv, AFE_MISC); in _rtl92se_power_domain_init()
1445 rtl_write_byte(rtlpriv, AFE_MISC, (tmpu1b | 0x02)); in _rtl92se_power_domain_init()
1449 tmpu1b = rtl_read_byte(rtlpriv, LDOA15_CTRL); in _rtl92se_power_domain_init()
1450 rtl_write_byte(rtlpriv, LDOA15_CTRL, (tmpu1b | BIT(0))); in _rtl92se_power_domain_init()
1464 tmpu1b = rtl_read_byte(rtlpriv, AFE_PLL_CTRL); in _rtl92se_power_domain_init()
1465 rtl_write_byte(rtlpriv, AFE_PLL_CTRL, (tmpu1b | BIT(0) | BIT(4))); in _rtl92se_power_domain_init()
1467 tmpu1b = rtl_read_byte(rtlpriv, AFE_PLL_CTRL + 1); in _rtl92se_power_domain_init()
1468 rtl_write_byte(rtlpriv, AFE_PLL_CTRL + 1, (tmpu1b | BIT(0))); in _rtl92se_power_domain_init()
1488 tmpu1b = rtl_read_byte(rtlpriv, (SYS_CLKR + 1)); in _rtl92se_power_domain_init()
1489 tmpu1b = ((tmpu1b | BIT(7)) & (~BIT(6))); in _rtl92se_power_domain_init()
1490 if (!_rtl92s_set_sysclk(hw, tmpu1b)) { in _rtl92se_power_domain_init()