Lines Matching full:rb
138 void __iomem *rb; in bfa_ioc_cb_reg_init() local
141 rb = bfa_ioc_bar0(ioc); in bfa_ioc_cb_reg_init()
143 ioc->ioc_regs.hfn_mbox = rb + iocreg_fnreg[pcifn].hfn_mbox; in bfa_ioc_cb_reg_init()
144 ioc->ioc_regs.lpu_mbox = rb + iocreg_fnreg[pcifn].lpu_mbox; in bfa_ioc_cb_reg_init()
145 ioc->ioc_regs.host_page_num_fn = rb + iocreg_fnreg[pcifn].hfn_pgn; in bfa_ioc_cb_reg_init()
148 ioc->ioc_regs.heartbeat = rb + BFA_IOC0_HBEAT_REG; in bfa_ioc_cb_reg_init()
149 ioc->ioc_regs.ioc_fwstate = rb + BFA_IOC0_STATE_REG; in bfa_ioc_cb_reg_init()
150 ioc->ioc_regs.alt_ioc_fwstate = rb + BFA_IOC1_STATE_REG; in bfa_ioc_cb_reg_init()
152 ioc->ioc_regs.heartbeat = (rb + BFA_IOC1_HBEAT_REG); in bfa_ioc_cb_reg_init()
153 ioc->ioc_regs.ioc_fwstate = (rb + BFA_IOC1_STATE_REG); in bfa_ioc_cb_reg_init()
154 ioc->ioc_regs.alt_ioc_fwstate = (rb + BFA_IOC0_STATE_REG); in bfa_ioc_cb_reg_init()
160 ioc->ioc_regs.hfn_mbox_cmd = rb + iocreg_mbcmd[pcifn].hfn; in bfa_ioc_cb_reg_init()
161 ioc->ioc_regs.lpu_mbox_cmd = rb + iocreg_mbcmd[pcifn].lpu; in bfa_ioc_cb_reg_init()
166 ioc->ioc_regs.pss_ctl_reg = (rb + PSS_CTL_REG); in bfa_ioc_cb_reg_init()
167 ioc->ioc_regs.pss_err_status_reg = (rb + PSS_ERR_STATUS_REG); in bfa_ioc_cb_reg_init()
168 ioc->ioc_regs.app_pll_fast_ctl_reg = (rb + APP_PLL_LCLK_CTL_REG); in bfa_ioc_cb_reg_init()
169 ioc->ioc_regs.app_pll_slow_ctl_reg = (rb + APP_PLL_SCLK_CTL_REG); in bfa_ioc_cb_reg_init()
174 ioc->ioc_regs.ioc_sem_reg = (rb + HOST_SEM0_REG); in bfa_ioc_cb_reg_init()
175 ioc->ioc_regs.ioc_init_sem_reg = (rb + HOST_SEM2_REG); in bfa_ioc_cb_reg_init()
180 ioc->ioc_regs.smem_page_start = (rb + PSS_SMEM_PAGE_START); in bfa_ioc_cb_reg_init()
186 ioc->ioc_regs.err_set = (rb + ERR_SET_REG); in bfa_ioc_cb_reg_init()
357 bfa_ioc_cb_pll_init(void __iomem *rb, enum bfi_asic_mode fcmode) in bfa_ioc_cb_pll_init() argument
369 join_bits = readl(rb + BFA_IOC0_STATE_REG) & in bfa_ioc_cb_pll_init()
371 writel((BFI_IOC_UNINIT | join_bits), (rb + BFA_IOC0_STATE_REG)); in bfa_ioc_cb_pll_init()
372 join_bits = readl(rb + BFA_IOC1_STATE_REG) & in bfa_ioc_cb_pll_init()
374 writel((BFI_IOC_UNINIT | join_bits), (rb + BFA_IOC1_STATE_REG)); in bfa_ioc_cb_pll_init()
375 writel(0xffffffffU, (rb + HOSTFN0_INT_MSK)); in bfa_ioc_cb_pll_init()
376 writel(0xffffffffU, (rb + HOSTFN1_INT_MSK)); in bfa_ioc_cb_pll_init()
377 writel(0xffffffffU, (rb + HOSTFN0_INT_STATUS)); in bfa_ioc_cb_pll_init()
378 writel(0xffffffffU, (rb + HOSTFN1_INT_STATUS)); in bfa_ioc_cb_pll_init()
379 writel(0xffffffffU, (rb + HOSTFN0_INT_MSK)); in bfa_ioc_cb_pll_init()
380 writel(0xffffffffU, (rb + HOSTFN1_INT_MSK)); in bfa_ioc_cb_pll_init()
381 writel(__APP_PLL_SCLK_LOGIC_SOFT_RESET, rb + APP_PLL_SCLK_CTL_REG); in bfa_ioc_cb_pll_init()
383 rb + APP_PLL_SCLK_CTL_REG); in bfa_ioc_cb_pll_init()
384 writel(__APP_PLL_LCLK_LOGIC_SOFT_RESET, rb + APP_PLL_LCLK_CTL_REG); in bfa_ioc_cb_pll_init()
386 rb + APP_PLL_LCLK_CTL_REG); in bfa_ioc_cb_pll_init()
388 writel(__APP_PLL_SCLK_LOGIC_SOFT_RESET, rb + APP_PLL_SCLK_CTL_REG); in bfa_ioc_cb_pll_init()
389 writel(__APP_PLL_LCLK_LOGIC_SOFT_RESET, rb + APP_PLL_LCLK_CTL_REG); in bfa_ioc_cb_pll_init()
391 rb + APP_PLL_SCLK_CTL_REG); in bfa_ioc_cb_pll_init()
393 rb + APP_PLL_LCLK_CTL_REG); in bfa_ioc_cb_pll_init()
395 writel(0xffffffffU, (rb + HOSTFN0_INT_STATUS)); in bfa_ioc_cb_pll_init()
396 writel(0xffffffffU, (rb + HOSTFN1_INT_STATUS)); in bfa_ioc_cb_pll_init()
397 writel(pll_sclk, (rb + APP_PLL_SCLK_CTL_REG)); in bfa_ioc_cb_pll_init()
398 writel(pll_fclk, (rb + APP_PLL_LCLK_CTL_REG)); in bfa_ioc_cb_pll_init()