Lines Matching refs:writel
66 writel(1, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
68 writel(1, ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
69 writel(0, ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_firmware_lock()
88 writel(1, ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
97 writel(usecnt, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
99 writel(1, ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_lock()
117 writel(usecnt, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_unlock()
121 writel(1, ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_firmware_unlock()
131 writel(__FW_INIT_HALT_P, ioc->ioc_regs.ll_halt); in bfa_ioc_ct_notify_fail()
132 writel(__FW_INIT_HALT_P, ioc->ioc_regs.alt_ll_halt); in bfa_ioc_ct_notify_fail()
137 writel(~0U, ioc->ioc_regs.err_set); in bfa_ioc_ct_notify_fail()
364 writel(r32, rb + FNC_PERS_REG); in bfa_ioc_ct_isr_mode_set()
374 writel(1, ioc->ioc_regs.lpu_read_stat); in bfa_ioc_ct2_lpu_read_stat()
389 writel(0, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_ownership_reset()
391 writel(1, ioc->ioc_regs.ioc_usage_sem_reg); in bfa_ioc_ct_ownership_reset()
393 writel(0, ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_ownership_reset()
400 writel(1, ioc->ioc_regs.ioc_sem_reg); in bfa_ioc_ct_ownership_reset()
417 writel(0, ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_start()
418 writel(1, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_sync_start()
419 writel(BFI_IOC_UNINIT, ioc->ioc_regs.ioc_fwstate); in bfa_ioc_ct_sync_start()
420 writel(BFI_IOC_UNINIT, ioc->ioc_regs.alt_ioc_fwstate); in bfa_ioc_ct_sync_start()
436 writel((r32 | sync_pos), ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_join()
446 writel((r32 & ~sync_msk), ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_leave()
454 writel((r32 | bfa_ioc_ct_sync_pos(ioc)), in bfa_ioc_ct_sync_ack()
481 writel(bfa_ioc_ct_clear_sync_ackd(r32), in bfa_ioc_ct_sync_complete()
483 writel(BFI_IOC_FAIL, ioc->ioc_regs.ioc_fwstate); in bfa_ioc_ct_sync_complete()
484 writel(BFI_IOC_FAIL, ioc->ioc_regs.alt_ioc_fwstate); in bfa_ioc_ct_sync_complete()
494 writel((r32 | sync_ackd), ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_complete()
569 writel(r32 & __MSIX_VT_OFST_, in bfa_ioc_ct2_poweron()
574 writel(__MSIX_VT_NUMVT_(HOSTFN_MSIX_DEFAULT - 1) | in bfa_ioc_ct2_poweron()
577 writel(HOSTFN_MSIX_DEFAULT * bfa_ioc_pcifn(ioc), in bfa_ioc_ct2_poweron()
597 writel(0, (rb + OP_MODE)); in bfa_ioc_ct_pll_init()
598 writel(__APP_EMS_CMLCKSEL | __APP_EMS_REFCKBUFEN2 | in bfa_ioc_ct_pll_init()
601 writel(__GLOBAL_FCOE_MODE, (rb + OP_MODE)); in bfa_ioc_ct_pll_init()
602 writel(__APP_EMS_REFCKBUFEN1, (rb + ETH_MAC_SER_REG)); in bfa_ioc_ct_pll_init()
604 writel(BFI_IOC_UNINIT, (rb + BFA_IOC0_STATE_REG)); in bfa_ioc_ct_pll_init()
605 writel(BFI_IOC_UNINIT, (rb + BFA_IOC1_STATE_REG)); in bfa_ioc_ct_pll_init()
606 writel(0xffffffffU, (rb + HOSTFN0_INT_MSK)); in bfa_ioc_ct_pll_init()
607 writel(0xffffffffU, (rb + HOSTFN1_INT_MSK)); in bfa_ioc_ct_pll_init()
608 writel(0xffffffffU, (rb + HOSTFN0_INT_STATUS)); in bfa_ioc_ct_pll_init()
609 writel(0xffffffffU, (rb + HOSTFN1_INT_STATUS)); in bfa_ioc_ct_pll_init()
610 writel(0xffffffffU, (rb + HOSTFN0_INT_MSK)); in bfa_ioc_ct_pll_init()
611 writel(0xffffffffU, (rb + HOSTFN1_INT_MSK)); in bfa_ioc_ct_pll_init()
612 writel(pll_sclk | __APP_PLL_SCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct_pll_init()
614 writel(pll_fclk | __APP_PLL_LCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct_pll_init()
616 writel(pll_sclk | __APP_PLL_SCLK_LOGIC_SOFT_RESET | in bfa_ioc_ct_pll_init()
618 writel(pll_fclk | __APP_PLL_LCLK_LOGIC_SOFT_RESET | in bfa_ioc_ct_pll_init()
622 writel(0xffffffffU, (rb + HOSTFN0_INT_STATUS)); in bfa_ioc_ct_pll_init()
623 writel(0xffffffffU, (rb + HOSTFN1_INT_STATUS)); in bfa_ioc_ct_pll_init()
624 writel(pll_sclk | __APP_PLL_SCLK_ENABLE, rb + APP_PLL_SCLK_CTL_REG); in bfa_ioc_ct_pll_init()
625 writel(pll_fclk | __APP_PLL_LCLK_ENABLE, rb + APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct_pll_init()
628 writel(__PMM_1T_RESET_P, (rb + PMM_1T_RESET_REG_P0)); in bfa_ioc_ct_pll_init()
629 writel(__PMM_1T_RESET_P, (rb + PMM_1T_RESET_REG_P1)); in bfa_ioc_ct_pll_init()
633 writel(r32, (rb + PSS_CTL_REG)); in bfa_ioc_ct_pll_init()
636 writel(0, (rb + PMM_1T_RESET_REG_P0)); in bfa_ioc_ct_pll_init()
637 writel(0, (rb + PMM_1T_RESET_REG_P1)); in bfa_ioc_ct_pll_init()
640 writel(__EDRAM_BISTR_START, (rb + MBIST_CTL_REG)); in bfa_ioc_ct_pll_init()
643 writel(0, (rb + MBIST_CTL_REG)); in bfa_ioc_ct_pll_init()
659 writel(r32, (rb + CT2_APP_PLL_SCLK_CTL_REG)); in bfa_ioc_ct2_sclk_init()
667 writel(r32, (rb + CT2_APP_PLL_SCLK_CTL_REG)); in bfa_ioc_ct2_sclk_init()
673 writel(r32 | __ETH_CLK_ENABLE_PORT0, (rb + CT2_CHIP_MISC_PRG)); in bfa_ioc_ct2_sclk_init()
676 writel(r32 | __ETH_CLK_ENABLE_PORT1, (rb + CT2_PCIE_MISC_REG)); in bfa_ioc_ct2_sclk_init()
684 writel(r32 | 0x1061731b, (rb + CT2_APP_PLL_SCLK_CTL_REG)); in bfa_ioc_ct2_sclk_init()
704 writel(r32, (rb + CT2_APP_PLL_LCLK_CTL_REG)); in bfa_ioc_ct2_lclk_init()
710 writel(r32, (rb + CT2_CHIP_MISC_PRG)); in bfa_ioc_ct2_lclk_init()
716 writel(r32, (rb + CT2_APP_PLL_LCLK_CTL_REG)); in bfa_ioc_ct2_lclk_init()
724 writel(r32, (rb + CT2_APP_PLL_LCLK_CTL_REG)); in bfa_ioc_ct2_lclk_init()
739 writel(r32, (rb + PSS_CTL_REG)); in bfa_ioc_ct2_mem_init()
742 writel(__EDRAM_BISTR_START, (rb + CT2_MBIST_CTL_REG)); in bfa_ioc_ct2_mem_init()
744 writel(0, (rb + CT2_MBIST_CTL_REG)); in bfa_ioc_ct2_mem_init()
751 writel((__CSI_MAC_RESET | __CSI_MAC_AHB_RESET), in bfa_ioc_ct2_mac_reset()
753 writel((__CSI_MAC_RESET | __CSI_MAC_AHB_RESET), in bfa_ioc_ct2_mac_reset()
763 writel(r32 & ~1, (rb + PSS_GPIO_OUT_REG)); in bfa_ioc_ct2_enable_flash()
765 writel(r32 | 1, (rb + PSS_GPIO_OE_REG)); in bfa_ioc_ct2_enable_flash()
791 writel(__HALT_NFC_CONTROLLER, rb + CT2_NFC_CSR_SET_REG); in bfa_ioc_ct2_nfc_halt()
806 writel(__HALT_NFC_CONTROLLER, rb + CT2_NFC_CSR_CLR_REG); in bfa_ioc_ct2_nfc_resume()
828 writel(r32 & ~__APP_PLL_SCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct2_clk_reset()
832 writel(r32 & ~__APP_PLL_LCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct2_clk_reset()
844 writel(r32, (rb + PSS_CTL_REG)); in bfa_ioc_ct2_nfc_clk_reset()
846 writel(__RESET_AND_START_SCLK_LCLK_PLLS, rb + CT2_CSI_FW_CTL_SET_REG); in bfa_ioc_ct2_nfc_clk_reset()
933 writel((r32 & 0xfbffffff), (rb + CT2_CHIP_MISC_PRG)); in bfa_ioc_ct2_pll_init()
940 writel(1, (rb + CT2_LPU0_HOSTFN_MBOX0_MSK)); in bfa_ioc_ct2_pll_init()
941 writel(1, (rb + CT2_LPU1_HOSTFN_MBOX0_MSK)); in bfa_ioc_ct2_pll_init()
948 writel(1, (rb + CT2_LPU0_HOSTFN_CMD_STAT)); in bfa_ioc_ct2_pll_init()
953 writel(1, (rb + CT2_LPU1_HOSTFN_CMD_STAT)); in bfa_ioc_ct2_pll_init()
960 writel(BFI_IOC_UNINIT, (rb + CT2_BFA_IOC0_STATE_REG)); in bfa_ioc_ct2_pll_init()
961 writel(BFI_IOC_UNINIT, (rb + CT2_BFA_IOC1_STATE_REG)); in bfa_ioc_ct2_pll_init()
970 writel(fwstate, ioc->ioc_regs.ioc_fwstate); in bfa_ioc_ct_set_cur_ioc_fwstate()
983 writel(fwstate, ioc->ioc_regs.alt_ioc_fwstate); in bfa_ioc_ct_set_alt_ioc_fwstate()