Lines Matching refs:ioc_regs
114 writel(~0U, ioc->ioc_regs.err_set); in bfa_ioc_cb_notify_fail()
115 readl(ioc->ioc_regs.err_set); in bfa_ioc_cb_notify_fail()
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()
181 ioc->ioc_regs.smem_pg0 = BFI_IOC_SMEM_PG0_CB; in bfa_ioc_cb_reg_init()
186 ioc->ioc_regs.err_set = (rb + ERR_SET_REG); in bfa_ioc_cb_reg_init()
218 u32 ioc_fwstate = readl(ioc->ioc_regs.ioc_fwstate); in bfa_ioc_cb_sync_start()
227 writel(BFI_IOC_UNINIT, ioc->ioc_regs.ioc_fwstate); in bfa_ioc_cb_sync_start()
228 writel(BFI_IOC_UNINIT, ioc->ioc_regs.alt_ioc_fwstate); in bfa_ioc_cb_sync_start()
247 readl(ioc->ioc_regs.ioc_sem_reg); in bfa_ioc_cb_ownership_reset()
248 writel(1, ioc->ioc_regs.ioc_sem_reg); in bfa_ioc_cb_ownership_reset()
257 u32 r32 = readl(ioc->ioc_regs.ioc_fwstate); in bfa_ioc_cb_sync_join()
260 writel((r32 | join_pos), ioc->ioc_regs.ioc_fwstate); in bfa_ioc_cb_sync_join()
266 u32 r32 = readl(ioc->ioc_regs.ioc_fwstate); in bfa_ioc_cb_sync_leave()
269 writel((r32 & ~join_pos), ioc->ioc_regs.ioc_fwstate); in bfa_ioc_cb_sync_leave()
276 u32 r32 = readl(ioc->ioc_regs.ioc_fwstate); in bfa_ioc_cb_set_cur_ioc_fwstate()
279 ioc->ioc_regs.ioc_fwstate); in bfa_ioc_cb_set_cur_ioc_fwstate()
285 return (enum bfi_ioc_state)(readl(ioc->ioc_regs.ioc_fwstate) & in bfa_ioc_cb_get_cur_ioc_fwstate()
293 u32 r32 = readl(ioc->ioc_regs.alt_ioc_fwstate); in bfa_ioc_cb_set_alt_ioc_fwstate()
296 ioc->ioc_regs.alt_ioc_fwstate); in bfa_ioc_cb_set_alt_ioc_fwstate()
302 return (enum bfi_ioc_state)(readl(ioc->ioc_regs.alt_ioc_fwstate) & in bfa_ioc_cb_get_alt_ioc_fwstate()