Lines Matching refs:writel
131 writel(1, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
133 writel(0, ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_firmware_lock()
157 writel(usecnt, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_lock()
182 writel(usecnt, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_firmware_unlock()
191 writel(__FW_INIT_HALT_P, ioc->ioc_regs.ll_halt); in bfa_ioc_ct_notify_fail()
192 writel(__FW_INIT_HALT_P, ioc->ioc_regs.alt_ll_halt); in bfa_ioc_ct_notify_fail()
419 writel(r32, rb + FNC_PERS_REG); in bfa_ioc_ct_isr_mode_set()
429 writel(1, ioc->ioc_regs.lpu_read_stat); in bfa_ioc_ct2_lpu_read_stat()
452 writel(r32 & __MSIX_VT_OFST_, in bfa_nw_ioc_ct2_poweron()
457 writel(__MSIX_VT_NUMVT_(HOSTFN_MSIX_DEFAULT - 1) | in bfa_nw_ioc_ct2_poweron()
460 writel(HOSTFN_MSIX_DEFAULT * bfa_ioc_pcifn(ioc), in bfa_nw_ioc_ct2_poweron()
469 writel(0, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_ownership_reset()
496 writel(0, ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_start()
497 writel(1, ioc->ioc_regs.ioc_usage_reg); in bfa_ioc_ct_sync_start()
498 writel(BFI_IOC_UNINIT, ioc->ioc_regs.ioc_fwstate); in bfa_ioc_ct_sync_start()
499 writel(BFI_IOC_UNINIT, ioc->ioc_regs.alt_ioc_fwstate); in bfa_ioc_ct_sync_start()
512 writel((r32 | sync_pos), ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_join()
522 writel((r32 & ~sync_msk), ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_leave()
530 writel(r32 | bfa_ioc_ct_sync_pos(ioc), ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_ack()
556 writel(bfa_ioc_ct_clear_sync_ackd(r32), in bfa_ioc_ct_sync_complete()
558 writel(BFI_IOC_FAIL, ioc->ioc_regs.ioc_fwstate); in bfa_ioc_ct_sync_complete()
559 writel(BFI_IOC_FAIL, ioc->ioc_regs.alt_ioc_fwstate); in bfa_ioc_ct_sync_complete()
569 writel((r32 | sync_ackd), ioc->ioc_regs.ioc_fail_sync); in bfa_ioc_ct_sync_complete()
578 writel(fwstate, ioc->ioc_regs.ioc_fwstate); in bfa_ioc_ct_set_cur_ioc_fwstate()
591 writel(fwstate, ioc->ioc_regs.alt_ioc_fwstate); in bfa_ioc_ct_set_alt_ioc_fwstate()
616 writel(0, (rb + OP_MODE)); in bfa_ioc_ct_pll_init()
617 writel(__APP_EMS_CMLCKSEL | in bfa_ioc_ct_pll_init()
622 writel(__GLOBAL_FCOE_MODE, (rb + OP_MODE)); in bfa_ioc_ct_pll_init()
623 writel(__APP_EMS_REFCKBUFEN1, in bfa_ioc_ct_pll_init()
626 writel(BFI_IOC_UNINIT, (rb + BFA_IOC0_STATE_REG)); in bfa_ioc_ct_pll_init()
627 writel(BFI_IOC_UNINIT, (rb + BFA_IOC1_STATE_REG)); in bfa_ioc_ct_pll_init()
628 writel(0xffffffffU, (rb + HOSTFN0_INT_MSK)); in bfa_ioc_ct_pll_init()
629 writel(0xffffffffU, (rb + HOSTFN1_INT_MSK)); in bfa_ioc_ct_pll_init()
630 writel(0xffffffffU, (rb + HOSTFN0_INT_STATUS)); in bfa_ioc_ct_pll_init()
631 writel(0xffffffffU, (rb + HOSTFN1_INT_STATUS)); in bfa_ioc_ct_pll_init()
632 writel(0xffffffffU, (rb + HOSTFN0_INT_MSK)); in bfa_ioc_ct_pll_init()
633 writel(0xffffffffU, (rb + HOSTFN1_INT_MSK)); in bfa_ioc_ct_pll_init()
634 writel(pll_sclk | in bfa_ioc_ct_pll_init()
637 writel(pll_fclk | in bfa_ioc_ct_pll_init()
640 writel(pll_sclk | in bfa_ioc_ct_pll_init()
643 writel(pll_fclk | in bfa_ioc_ct_pll_init()
648 writel(0xffffffffU, (rb + HOSTFN0_INT_STATUS)); in bfa_ioc_ct_pll_init()
649 writel(0xffffffffU, (rb + HOSTFN1_INT_STATUS)); in bfa_ioc_ct_pll_init()
650 writel(pll_sclk | in bfa_ioc_ct_pll_init()
653 writel(pll_fclk | in bfa_ioc_ct_pll_init()
658 writel(__PMM_1T_RESET_P, (rb + PMM_1T_RESET_REG_P0)); in bfa_ioc_ct_pll_init()
659 writel(__PMM_1T_RESET_P, (rb + PMM_1T_RESET_REG_P1)); in bfa_ioc_ct_pll_init()
663 writel(r32, (rb + PSS_CTL_REG)); in bfa_ioc_ct_pll_init()
666 writel(0, (rb + PMM_1T_RESET_REG_P0)); in bfa_ioc_ct_pll_init()
667 writel(0, (rb + PMM_1T_RESET_REG_P1)); in bfa_ioc_ct_pll_init()
670 writel(__EDRAM_BISTR_START, (rb + MBIST_CTL_REG)); in bfa_ioc_ct_pll_init()
673 writel(0, (rb + MBIST_CTL_REG)); in bfa_ioc_ct_pll_init()
689 writel(r32, (rb + CT2_APP_PLL_SCLK_CTL_REG)); in bfa_ioc_ct2_sclk_init()
697 writel(r32, (rb + CT2_APP_PLL_SCLK_CTL_REG)); in bfa_ioc_ct2_sclk_init()
703 writel(r32 | __ETH_CLK_ENABLE_PORT0, in bfa_ioc_ct2_sclk_init()
707 writel(r32 | __ETH_CLK_ENABLE_PORT1, in bfa_ioc_ct2_sclk_init()
716 writel(r32 | 0x1061731b, rb + CT2_APP_PLL_SCLK_CTL_REG); in bfa_ioc_ct2_sclk_init()
741 writel(r32, rb + CT2_APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct2_lclk_init()
747 writel(r32, (rb + CT2_CHIP_MISC_PRG)); in bfa_ioc_ct2_lclk_init()
753 writel(r32, rb + CT2_APP_PLL_LCLK_CTL_REG); in bfa_ioc_ct2_lclk_init()
761 writel(r32, (rb + CT2_APP_PLL_LCLK_CTL_REG)); in bfa_ioc_ct2_lclk_init()
776 writel(r32, rb + PSS_CTL_REG); in bfa_ioc_ct2_mem_init()
779 writel(__EDRAM_BISTR_START, rb + CT2_MBIST_CTL_REG); in bfa_ioc_ct2_mem_init()
781 writel(0, rb + CT2_MBIST_CTL_REG); in bfa_ioc_ct2_mem_init()
796 writel(r32 & ~__APP_PLL_SCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct2_mac_reset()
803 writel(r32 & ~__APP_PLL_LCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct2_mac_reset()
807 writel(__CSI_MAC_RESET | __CSI_MAC_AHB_RESET, in bfa_ioc_ct2_mac_reset()
809 writel(__CSI_MAC_RESET | __CSI_MAC_AHB_RESET, in bfa_ioc_ct2_mac_reset()
835 writel(__HALT_NFC_CONTROLLER, rb + CT2_NFC_CSR_CLR_REG); in bfa_ioc_ct2_nfc_resume()
859 writel(__RESET_AND_START_SCLK_LCLK_PLLS, in bfa_ioc_ct2_pll_init()
880 writel(__HALT_NFC_CONTROLLER, (rb + CT2_NFC_CSR_SET_REG)); in bfa_ioc_ct2_pll_init()
894 writel(r32 & ~__APP_PLL_SCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct2_pll_init()
897 writel(r32 & ~__APP_PLL_LCLK_LOGIC_SOFT_RESET, in bfa_ioc_ct2_pll_init()
904 writel(r32 & ~1, rb + PSS_GPIO_OUT_REG); in bfa_ioc_ct2_pll_init()
906 writel(r32 | 1, rb + PSS_GPIO_OE_REG); in bfa_ioc_ct2_pll_init()
913 writel(1, rb + CT2_LPU0_HOSTFN_MBOX0_MSK); in bfa_ioc_ct2_pll_init()
914 writel(1, rb + CT2_LPU1_HOSTFN_MBOX0_MSK); in bfa_ioc_ct2_pll_init()
921 writel(1, rb + CT2_LPU0_HOSTFN_CMD_STAT); in bfa_ioc_ct2_pll_init()
926 writel(1, rb + CT2_LPU1_HOSTFN_CMD_STAT); in bfa_ioc_ct2_pll_init()
933 writel(BFI_IOC_UNINIT, rb + CT2_BFA_IOC0_STATE_REG); in bfa_ioc_ct2_pll_init()
934 writel(BFI_IOC_UNINIT, rb + CT2_BFA_IOC1_STATE_REG); in bfa_ioc_ct2_pll_init()