Lines Matching refs:r32

372 	u32	r32;  in bfa_ioc_ct_map_port()  local
377 r32 = readl(rb + FNC_PERS_REG); in bfa_ioc_ct_map_port()
378 r32 >>= FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc)); in bfa_ioc_ct_map_port()
379 ioc->port_id = (r32 & __F0_PORT_MAP_MK) >> __F0_PORT_MAP_SH; in bfa_ioc_ct_map_port()
387 u32 r32; in bfa_ioc_ct2_map_port() local
389 r32 = readl(rb + CT2_HOSTFN_PERSONALITY0); in bfa_ioc_ct2_map_port()
390 ioc->port_id = ((r32 & __FC_LL_PORT_MAP__MK) >> __FC_LL_PORT_MAP__SH); in bfa_ioc_ct2_map_port()
398 u32 r32, mode; in bfa_ioc_ct_isr_mode_set() local
400 r32 = readl(rb + FNC_PERS_REG); in bfa_ioc_ct_isr_mode_set()
402 mode = (r32 >> FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc))) & in bfa_ioc_ct_isr_mode_set()
416 r32 &= ~(__F0_INTX_STATUS << FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc))); in bfa_ioc_ct_isr_mode_set()
417 r32 |= (mode << FNC_PERS_FN_SHIFT(bfa_ioc_pcifn(ioc))); in bfa_ioc_ct_isr_mode_set()
419 writel(r32, rb + FNC_PERS_REG); in bfa_ioc_ct_isr_mode_set()
425 u32 r32; in bfa_ioc_ct2_lpu_read_stat() local
427 r32 = readl(ioc->ioc_regs.lpu_read_stat); in bfa_ioc_ct2_lpu_read_stat()
428 if (r32) { in bfa_ioc_ct2_lpu_read_stat()
448 u32 r32; in bfa_nw_ioc_ct2_poweron() local
450 r32 = readl(rb + HOSTFN_MSIX_VT_OFST_NUMVT); in bfa_nw_ioc_ct2_poweron()
451 if (r32 & __MSIX_VT_NUMVT__MK) { in bfa_nw_ioc_ct2_poweron()
452 writel(r32 & __MSIX_VT_OFST_, in bfa_nw_ioc_ct2_poweron()
485 u32 r32 = readl(ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_start() local
486 u32 sync_reqd = bfa_ioc_ct_get_sync_reqd(r32); in bfa_ioc_ct_sync_start()
509 u32 r32 = readl(ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_join() local
512 writel((r32 | sync_pos), ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_join()
518 u32 r32 = readl(ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_leave() local
522 writel((r32 & ~sync_msk), ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_leave()
528 u32 r32 = readl(ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_ack() local
530 writel(r32 | bfa_ioc_ct_sync_pos(ioc), ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_ack()
536 u32 r32 = readl(ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_complete() local
537 u32 sync_reqd = bfa_ioc_ct_get_sync_reqd(r32); in bfa_ioc_ct_sync_complete()
538 u32 sync_ackd = bfa_ioc_ct_get_sync_ackd(r32); in bfa_ioc_ct_sync_complete()
556 writel(bfa_ioc_ct_clear_sync_ackd(r32), in bfa_ioc_ct_sync_complete()
569 writel((r32 | sync_ackd), ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_complete()
603 u32 pll_sclk, pll_fclk, r32; in bfa_ioc_ct_pll_init() local
661 r32 = readl(rb + PSS_CTL_REG); in bfa_ioc_ct_pll_init()
662 r32 &= ~__PSS_LMEM_RESET; in bfa_ioc_ct_pll_init()
663 writel(r32, (rb + PSS_CTL_REG)); in bfa_ioc_ct_pll_init()
672 r32 = readl(rb + MBIST_STAT_REG); in bfa_ioc_ct_pll_init()
680 u32 r32; in bfa_ioc_ct2_sclk_init() local
685 r32 = readl(rb + CT2_APP_PLL_SCLK_CTL_REG); in bfa_ioc_ct2_sclk_init()
686 r32 &= ~(__APP_PLL_SCLK_ENABLE | __APP_PLL_SCLK_LRESETN); in bfa_ioc_ct2_sclk_init()
687 r32 |= (__APP_PLL_SCLK_ENARST | __APP_PLL_SCLK_BYPASS | in bfa_ioc_ct2_sclk_init()
689 writel(r32, (rb + CT2_APP_PLL_SCLK_CTL_REG)); in bfa_ioc_ct2_sclk_init()
695 r32 = readl(rb + CT2_APP_PLL_SCLK_CTL_REG); in bfa_ioc_ct2_sclk_init()
696 r32 &= ~(__APP_PLL_SCLK_REFCLK_SEL | __APP_PLL_SCLK_CLK_DIV2); in bfa_ioc_ct2_sclk_init()
697 writel(r32, (rb + CT2_APP_PLL_SCLK_CTL_REG)); in bfa_ioc_ct2_sclk_init()
702 r32 = readl(rb + CT2_CHIP_MISC_PRG); in bfa_ioc_ct2_sclk_init()
703 writel(r32 | __ETH_CLK_ENABLE_PORT0, in bfa_ioc_ct2_sclk_init()
706 r32 = readl(rb + CT2_PCIE_MISC_REG); in bfa_ioc_ct2_sclk_init()
707 writel(r32 | __ETH_CLK_ENABLE_PORT1, in bfa_ioc_ct2_sclk_init()
713 r32 = readl(rb + CT2_APP_PLL_SCLK_CTL_REG); in bfa_ioc_ct2_sclk_init()
714 r32 &= (__P_SCLK_PLL_LOCK | __APP_PLL_SCLK_REFCLK_SEL | in bfa_ioc_ct2_sclk_init()
716 writel(r32 | 0x1061731b, rb + CT2_APP_PLL_SCLK_CTL_REG); in bfa_ioc_ct2_sclk_init()
732 u32 r32; in bfa_ioc_ct2_lclk_init() local
737 r32 = readl(rb + CT2_APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct2_lclk_init()
738 r32 &= ~(__APP_PLL_LCLK_ENABLE | __APP_PLL_LCLK_LRESETN); in bfa_ioc_ct2_lclk_init()
739 r32 |= (__APP_PLL_LCLK_ENARST | __APP_PLL_LCLK_BYPASS | in bfa_ioc_ct2_lclk_init()
741 writel(r32, rb + CT2_APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct2_lclk_init()
746 r32 = readl(rb + CT2_CHIP_MISC_PRG); in bfa_ioc_ct2_lclk_init()
747 writel(r32, (rb + CT2_CHIP_MISC_PRG)); in bfa_ioc_ct2_lclk_init()
752 r32 = readl(rb + CT2_APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct2_lclk_init()
753 writel(r32, rb + CT2_APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct2_lclk_init()
758 r32 = readl(rb + CT2_APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct2_lclk_init()
759 r32 &= (__P_LCLK_PLL_LOCK | __APP_LPUCLK_HALFSPEED); in bfa_ioc_ct2_lclk_init()
760 r32 |= 0x20c1731b; in bfa_ioc_ct2_lclk_init()
761 writel(r32, (rb + CT2_APP_PLL_LCLK_CTL_REG)); in bfa_ioc_ct2_lclk_init()
772 u32 r32; in bfa_ioc_ct2_mem_init() local
774 r32 = readl(rb + PSS_CTL_REG); in bfa_ioc_ct2_mem_init()
775 r32 &= ~__PSS_LMEM_RESET; in bfa_ioc_ct2_mem_init()
776 writel(r32, rb + PSS_CTL_REG); in bfa_ioc_ct2_mem_init()
787 volatile u32 r32; in bfa_ioc_ct2_mac_reset() local
795 r32 = readl(rb + CT2_APP_PLL_SCLK_CTL_REG); in bfa_ioc_ct2_mac_reset()
796 writel(r32 & ~__APP_PLL_SCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct2_mac_reset()
802 r32 = readl(rb + CT2_APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct2_mac_reset()
803 writel(r32 & ~__APP_PLL_LCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct2_mac_reset()
820 volatile u32 r32; in bfa_ioc_ct2_nfc_halted() local
822 r32 = readl(rb + CT2_NFC_CSR_SET_REG); in bfa_ioc_ct2_nfc_halted()
823 if (r32 & __NFC_CONTROLLER_HALTED) in bfa_ioc_ct2_nfc_halted()
832 volatile u32 r32; in bfa_ioc_ct2_nfc_resume() local
837 r32 = readl(rb + CT2_NFC_CSR_SET_REG); in bfa_ioc_ct2_nfc_resume()
838 if (!(r32 & __NFC_CONTROLLER_HALTED)) in bfa_ioc_ct2_nfc_resume()
848 volatile u32 wgn, r32; in bfa_ioc_ct2_pll_init() local
863 r32 = readl(rb + CT2_APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct2_pll_init()
864 if (r32 & __RESET_AND_START_SCLK_LCLK_PLLS) in bfa_ioc_ct2_pll_init()
867 BUG_ON(!(r32 & __RESET_AND_START_SCLK_LCLK_PLLS)); in bfa_ioc_ct2_pll_init()
870 r32 = readl(rb + CT2_APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct2_pll_init()
871 if (!(r32 & __RESET_AND_START_SCLK_LCLK_PLLS)) in bfa_ioc_ct2_pll_init()
874 BUG_ON(r32 & __RESET_AND_START_SCLK_LCLK_PLLS); in bfa_ioc_ct2_pll_init()
877 r32 = readl(rb + CT2_CSI_FW_CTL_REG); in bfa_ioc_ct2_pll_init()
878 BUG_ON(r32 & __RESET_AND_START_SCLK_LCLK_PLLS); in bfa_ioc_ct2_pll_init()
882 r32 = readl(rb + CT2_NFC_CSR_SET_REG); in bfa_ioc_ct2_pll_init()
883 if (r32 & __NFC_CONTROLLER_HALTED) in bfa_ioc_ct2_pll_init()
893 r32 = readl(rb + CT2_APP_PLL_SCLK_CTL_REG); in bfa_ioc_ct2_pll_init()
894 writel(r32 & ~__APP_PLL_SCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct2_pll_init()
896 r32 = readl(rb + CT2_APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct2_pll_init()
897 writel(r32 & ~__APP_PLL_LCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct2_pll_init()
903 r32 = readl(rb + PSS_GPIO_OUT_REG); in bfa_ioc_ct2_pll_init()
904 writel(r32 & ~1, rb + PSS_GPIO_OUT_REG); in bfa_ioc_ct2_pll_init()
905 r32 = readl(rb + PSS_GPIO_OE_REG); in bfa_ioc_ct2_pll_init()
906 writel(r32 | 1, rb + PSS_GPIO_OE_REG); in bfa_ioc_ct2_pll_init()
917 r32 = readl(rb + HOST_SEM5_REG); in bfa_ioc_ct2_pll_init()
918 if (r32 & 0x1) { in bfa_ioc_ct2_pll_init()
919 r32 = readl(rb + CT2_LPU0_HOSTFN_CMD_STAT); in bfa_ioc_ct2_pll_init()
920 if (r32 == 1) { in bfa_ioc_ct2_pll_init()
924 r32 = readl(rb + CT2_LPU1_HOSTFN_CMD_STAT); in bfa_ioc_ct2_pll_init()
925 if (r32 == 1) { in bfa_ioc_ct2_pll_init()