Lines Matching refs:REG_WR
1044 REG_WR(sc, (hw_lock_control_reg + 4), resource_bit); in bxe_acquire_hw_lock()
1088 REG_WR(sc, hw_lock_control_reg, resource_bit); in bxe_release_hw_lock()
1133 REG_WR(sc, MCP_REG_MCPR_NVM_SW_ARB, in bxe_acquire_nvram_lock()
1169 REG_WR(sc, MCP_REG_MCPR_NVM_SW_ARB, in bxe_release_nvram_lock()
1202 REG_WR(sc, MCP_REG_MCPR_NVM_ACCESS_ENABLE, in bxe_enable_nvram_access()
1214 REG_WR(sc, MCP_REG_MCPR_NVM_ACCESS_ENABLE, in bxe_disable_nvram_access()
1232 REG_WR(sc, MCP_REG_MCPR_NVM_COMMAND, MCPR_NVM_COMMAND_DONE); in bxe_nvram_read_dword()
1235 REG_WR(sc, MCP_REG_MCPR_NVM_ADDR, in bxe_nvram_read_dword()
1239 REG_WR(sc, MCP_REG_MCPR_NVM_COMMAND, cmd_flags); in bxe_nvram_read_dword()
1345 REG_WR(sc, MCP_REG_MCPR_NVM_COMMAND, MCPR_NVM_COMMAND_DONE); in bxe_nvram_write_dword()
1348 REG_WR(sc, MCP_REG_MCPR_NVM_WRITE, val); in bxe_nvram_write_dword()
1351 REG_WR(sc, MCP_REG_MCPR_NVM_ADDR, in bxe_nvram_write_dword()
1355 REG_WR(sc, MCP_REG_MCPR_NVM_COMMAND, cmd_flags); in bxe_nvram_write_dword()
1516 REG_WR(sc, (cmd_offset + (i * 4)), *(((uint32_t *)dmae) + i)); in bxe_post_dmae()
1519 REG_WR(sc, dmae_reg_go_c[idx], 1); in bxe_post_dmae()
1825 REG_WR(sc, reg_addr, val); in elink_cb_reg_write()
1904 REG_WR(sc, MISC_REG_SPIO, spio_reg); in bxe_set_spio()
1994 REG_WR(sc, MISC_REG_GPIO, gpio_reg); in bxe_gpio_write()
2043 REG_WR(sc, MISC_REG_GPIO, gpio_reg); in bxe_gpio_mult_write()
2098 REG_WR(sc, MISC_REG_GPIO_INT, gpio_reg); in bxe_gpio_int_write()
2141 REG_WR(sc, (MISC_REG_AEU_GENERAL_ATTN_12 + in elink_cb_notify_link_changed()
2204 REG_WR(sc, addr, U64_LO(mapping)); in __storm_memset_dma_mapping()
2205 REG_WR(sc, (addr + 4), U64_HI(mapping)); in __storm_memset_dma_mapping()
4056 REG_WR(sc, NIG_REG_LLH0_FUNC_EN + port*8, 0); in bxe_chip_cleanup()
4155 REG_WR(sc, addr, val); in bxe_disable_close_the_gate()
4160 REG_WR(sc, MISC_REG_AEU_GENERAL_MASK, val); in bxe_disable_close_the_gate()
6633 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val | BXE_GLOBAL_RESET_BIT); in bxe_set_reset_global()
6644 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val & (~BXE_GLOBAL_RESET_BIT)); in bxe_clear_reset_global()
6670 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val); in bxe_set_reset_done()
6688 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val); in bxe_set_reset_in_progress()
6755 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val); in bxe_set_pf_load()
6787 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val); in bxe_clear_pf_load()
6894 REG_WR(sc, in bxe_nic_load_pmf()
6947 REG_WR(sc, GRCBASE_MCP + 0x9c, val); in bxe_acquire_alr()
6966 REG_WR(sc, GRCBASE_MCP + 0x9c, 0); in bxe_release_alr()
7028 REG_WR(sc, in bxe_link_attn()
7100 REG_WR(sc, aeu_addr, aeu_mask); in bxe_attn_int_asserted()
7117 REG_WR(sc, nig_int_mask_addr, 0); in bxe_attn_int_asserted()
7144 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_1, 0x0); in bxe_attn_int_asserted()
7148 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_2, 0x0); in bxe_attn_int_asserted()
7152 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_3, 0x0); in bxe_attn_int_asserted()
7157 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_4, 0x0); in bxe_attn_int_asserted()
7161 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_5, 0x0); in bxe_attn_int_asserted()
7165 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_6, 0x0); in bxe_attn_int_asserted()
7179 REG_WR(sc, reg_addr, asserted); in bxe_attn_int_asserted()
7202 REG_WR(sc, nig_int_mask_addr, nig_mask); in bxe_attn_int_asserted()
7649 REG_WR(sc, NIG_REG_LLH0_FUNC_EN + port*8, 0); in bxe_e1h_disable()
7657 REG_WR(sc, NIG_REG_LLH0_FUNC_EN + port*8, 1); in bxe_e1h_enable()
7825 REG_WR(sc, HC_REG_TRAILING_EDGE_0 + port*8, val); in bxe_pmf_update()
7826 REG_WR(sc, HC_REG_LEADING_EDGE_0 + port*8, val); in bxe_pmf_update()
7828 REG_WR(sc, IGU_REG_TRAILING_EDGE_LATCH, val); in bxe_pmf_update()
7829 REG_WR(sc, IGU_REG_LEADING_EDGE_LATCH, val); in bxe_pmf_update()
7947 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_12 + func*4, 0); in bxe_attn_int_deasserted3()
7990 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_10, 0); in bxe_attn_int_deasserted3()
7991 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_9, 0); in bxe_attn_int_deasserted3()
7992 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_8, 0); in bxe_attn_int_deasserted3()
7993 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_7, 0); in bxe_attn_int_deasserted3()
8002 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_11, 0); in bxe_attn_int_deasserted3()
8024 REG_WR(sc, MISC_REG_AEU_CLR_LATCH_SIGNAL, 0x7ff); in bxe_attn_int_deasserted3()
8116 REG_WR(sc, reg_offset, val); in bxe_attn_int_deasserted2()
8156 REG_WR(sc, reg_offset, val); in bxe_attn_int_deasserted1()
8185 REG_WR(sc, reg_offset, val); in bxe_attn_int_deasserted0()
8203 REG_WR(sc, reg_offset, val); in bxe_attn_int_deasserted0()
8293 REG_WR(sc, reg_addr, val); in bxe_attn_int_deasserted()
8311 REG_WR(sc, reg_addr, aeu_mask); in bxe_attn_int_deasserted()
9381 REG_WR(sc, (addr + i), fill); in bxe_fill()
9400 REG_WR(sc, in bxe_wr_fp_sb_data()
9450 REG_WR(sc, in bxe_wr_sp_sb_data()
9722 REG_WR(sc, in bxe_update_rx_prod()
9760 REG_WR(sc, in bxe_init_rx_rings()
9764 REG_WR(sc, in bxe_init_rx_rings()
9857 REG_WR(sc, reg_offset, U64_LO(section)); in bxe_init_def_sb()
9858 REG_WR(sc, (reg_offset + 4), U64_HI(section)); in bxe_init_def_sb()
9860 REG_WR(sc, IGU_REG_ATTN_MSG_ADDR_L, U64_LO(section)); in bxe_init_def_sb()
9861 REG_WR(sc, IGU_REG_ATTN_MSG_ADDR_H, U64_HI(section)); in bxe_init_def_sb()
9930 REG_WR(sc, in bxe_init_internal_common()
9996 REG_WR(sc, in bxe_func_init()
10190 REG_WR(sc, in bxe_pf_init()
10196 REG_WR(sc, in bxe_pf_init()
10280 REG_WR(sc, addr, val); in bxe_hc_int_enable()
10287 REG_WR(sc, (HC_REG_INT_MASK + port*4), 0x1FFFF); in bxe_hc_int_enable()
10293 REG_WR(sc, addr, val); in bxe_hc_int_enable()
10310 REG_WR(sc, (HC_REG_TRAILING_EDGE_0 + port*8), val); in bxe_hc_int_enable()
10311 REG_WR(sc, (HC_REG_LEADING_EDGE_0 + port*8), val); in bxe_hc_int_enable()
10351 REG_WR(sc, IGU_REG_PF_CONFIGURATION, val); in bxe_igu_int_enable()
10360 REG_WR(sc, IGU_REG_PF_CONFIGURATION, val); in bxe_igu_int_enable()
10375 REG_WR(sc, IGU_REG_TRAILING_EDGE_LATCH, val); in bxe_igu_int_enable()
10376 REG_WR(sc, IGU_REG_LEADING_EDGE_LATCH, val); in bxe_igu_int_enable()
10409 REG_WR(sc, (HC_REG_INT_MASK + port*4), 0); in bxe_hc_int_disable()
10426 REG_WR(sc, addr, val); in bxe_hc_int_disable()
10446 REG_WR(sc, IGU_REG_PF_CONFIGURATION, val); in bxe_igu_int_disable()
10682 REG_WR(sc, hw_lock_control_reg + 4, resource_bit); in bxe_trylock_hw_lock()
10732 REG_WR(sc, PXP_REG_HST_DISCARD_DOORBELLS, !!close); in bxe_set_234_gates()
10734 REG_WR(sc, PXP_REG_HST_DISCARD_INTERNAL_WRITES, !!close); in bxe_set_234_gates()
10741 REG_WR(sc, HC_REG_CONFIG_1, in bxe_set_234_gates()
10746 REG_WR(sc, HC_REG_CONFIG_0, in bxe_set_234_gates()
10753 REG_WR(sc, IGU_REG_BLOCK_CONFIGURATION, in bxe_set_234_gates()
10833 REG_WR(sc, shmem + validity_offset, 0); in bxe_reset_mcp_prep()
10896 REG_WR(sc, PXP2_REG_RD_START_INIT, 0); in bxe_pxp_prep()
10897 REG_WR(sc, PXP2_REG_RQ_RBC_DONE, 0); in bxe_pxp_prep()
10993 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_CLEAR, in bxe_process_kill_chip_reset()
10996 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_CLEAR, in bxe_process_kill_chip_reset()
11002 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_SET, in bxe_process_kill_chip_reset()
11008 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET, reset_mask1); in bxe_process_kill_chip_reset()
11064 REG_WR(sc, MISC_REG_UNPREPARED, 0); in bxe_process_kill()
11092 REG_WR(sc, PGLUE_B_REG_LATCHED_ERRORS_CLR, 0x7f); in bxe_process_kill()
11931 REG_WR(sc, NIG_REG_EGRESS_DRAIN0_MODE + sc->link_params.port*4, 0); in bxe_link_status_update()
14114 REG_WR(sc, PXP2_REG_PGL_ADDR_88_F0, 0); in bxe_get_device_info()
14115 REG_WR(sc, PXP2_REG_PGL_ADDR_8C_F0, 0); in bxe_get_device_info()
14116 REG_WR(sc, PXP2_REG_PGL_ADDR_90_F0, 0); in bxe_get_device_info()
14117 REG_WR(sc, PXP2_REG_PGL_ADDR_94_F0, 0); in bxe_get_device_info()
14119 REG_WR(sc, PXP2_REG_PGL_ADDR_88_F1, 0); in bxe_get_device_info()
14120 REG_WR(sc, PXP2_REG_PGL_ADDR_8C_F1, 0); in bxe_get_device_info()
14121 REG_WR(sc, PXP2_REG_PGL_ADDR_90_F1, 0); in bxe_get_device_info()
14122 REG_WR(sc, PXP2_REG_PGL_ADDR_94_F1, 0); in bxe_get_device_info()
14131 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ, 1); in bxe_get_device_info()
14180 REG_WR(sc, IGU_REG_BLOCK_CONFIGURATION, val); in bxe_get_device_info()
14181 REG_WR(sc, IGU_REG_RESET_MEMORIES, 0x7f); in bxe_get_device_info()
15295 REG_WR(sc, PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR, 1 << SC_FUNC(sc)); in bxe_prev_interrupted_dmae()
15500 REG_WR(sc, vals->bmac_addr, wb_data[0]); in bxe_prev_unload_close_mac()
15501 REG_WR(sc, vals->bmac_addr + 0x4, wb_data[1]); in bxe_prev_unload_close_mac()
15507 REG_WR(sc, vals->emac_addr, 0); in bxe_prev_unload_close_mac()
15514 REG_WR(sc, base_addr + XMAC_REG_PFC_CTRL_HI, val & ~(1 << 1)); in bxe_prev_unload_close_mac()
15515 REG_WR(sc, base_addr + XMAC_REG_PFC_CTRL_HI, val | (1 << 1)); in bxe_prev_unload_close_mac()
15518 REG_WR(sc, vals->xmac_addr, 0); in bxe_prev_unload_close_mac()
15528 REG_WR(sc, vals->umac_addr, 0); in bxe_prev_unload_close_mac()
15555 REG_WR(sc, BXE_PREV_UNDI_PROD_ADDR(port), tmp_reg); in bxe_prev_unload_undi_inc()
15604 REG_WR(sc, DORQ_REG_NORM_CID_OFST, 0); in bxe_prev_unload_common()
15646 REG_WR(sc, mac_vals.xmac_addr, mac_vals.xmac_val); in bxe_prev_unload_common()
15649 REG_WR(sc, mac_vals.umac_addr, mac_vals.umac_val); in bxe_prev_unload_common()
15652 REG_WR(sc, mac_vals.emac_addr, mac_vals.emac_val); in bxe_prev_unload_common()
15655 REG_WR(sc, mac_vals.bmac_addr, mac_vals.bmac_val[0]); in bxe_prev_unload_common()
15656 REG_WR(sc, mac_vals.bmac_addr + 4, mac_vals.bmac_val[1]); in bxe_prev_unload_common()
15734 REG_WR(sc, MCP_REG_MCPR_NVM_SW_ARB, in bxe_prev_unload()
15738 REG_WR(sc, hw_lock_reg, 0xffffffff); in bxe_prev_unload()
15745 REG_WR(sc, MCP_REG_MCPR_ACCESS_LOCK, 0); in bxe_prev_unload()
16561 REG_WR(sc, igu_addr_data, data); in bxe_igu_clear_sb_gen()
16569 REG_WR(sc, igu_addr_ctl, ctl); in bxe_igu_clear_sb_gen()
16611 REG_WR(sc, (GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_CLEAR), 0xd3ffff7f); in bxe_reset_common()
16618 REG_WR(sc, (GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_CLEAR), val); in bxe_reset_common()
16655 REG_WR(sc, IGU_REG_PF_CONFIGURATION, val); in bxe_pf_disable()
16656 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER, 0); in bxe_pf_disable()
16657 REG_WR(sc, CFC_REG_WEAK_ENABLE_PF, 0); in bxe_pf_disable()
16708 REG_WR(sc, pretend_reg, pretend_func_val); in bxe_pretend_func()
16764 REG_WR(sc, TSDM_REG_ENABLE_IN1, 0x0); in bxe_int_mem_test()
16765 REG_WR(sc, TCM_REG_PRS_IFEN, 0x0); in bxe_int_mem_test()
16766 REG_WR(sc, CFC_REG_DEBUG0, 0x1); in bxe_int_mem_test()
16767 REG_WR(sc, NIG_REG_PRS_REQ_IN_EN, 0x0); in bxe_int_mem_test()
16770 REG_WR(sc, PRS_REG_CFC_SEARCH_INITIAL_CREDIT, 0x0); in bxe_int_mem_test()
16812 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_CLEAR, 0x03); in bxe_int_mem_test()
16814 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET, 0x03); in bxe_int_mem_test()
16820 REG_WR(sc, TSDM_REG_ENABLE_IN1, 0x0); in bxe_int_mem_test()
16821 REG_WR(sc, TCM_REG_PRS_IFEN, 0x0); in bxe_int_mem_test()
16822 REG_WR(sc, CFC_REG_DEBUG0, 0x1); in bxe_int_mem_test()
16823 REG_WR(sc, NIG_REG_PRS_REQ_IN_EN, 0x0); in bxe_int_mem_test()
16826 REG_WR(sc, PRS_REG_CFC_SEARCH_INITIAL_CREDIT, 0x0); in bxe_int_mem_test()
16858 REG_WR(sc, PRS_REG_CFC_SEARCH_INITIAL_CREDIT, 0x1); in bxe_int_mem_test()
16881 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_CLEAR, 0x03); in bxe_int_mem_test()
16883 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET, 0x03); in bxe_int_mem_test()
16889 REG_WR(sc, PRS_REG_NIC_MODE, 1); in bxe_int_mem_test()
16893 REG_WR(sc, TSDM_REG_ENABLE_IN1, 0x7fffffff); in bxe_int_mem_test()
16894 REG_WR(sc, TCM_REG_PRS_IFEN, 0x1); in bxe_int_mem_test()
16895 REG_WR(sc, CFC_REG_DEBUG0, 0x0); in bxe_int_mem_test()
16896 REG_WR(sc, NIG_REG_PRS_REQ_IN_EN, 0x1); in bxe_int_mem_test()
16941 REG_WR(sc, MISC_REG_SPIO_INT, val); in bxe_setup_fan_failure_detection()
16946 REG_WR(sc, MISC_REG_SPIO_EVENT_EN, val); in bxe_setup_fan_failure_detection()
16954 REG_WR(sc, PXP_REG_PXP_INT_MASK_0, 0); in bxe_enable_blocks_attention()
16956 REG_WR(sc, PXP_REG_PXP_INT_MASK_1, 0x40); in bxe_enable_blocks_attention()
16958 REG_WR(sc, PXP_REG_PXP_INT_MASK_1, 0); in bxe_enable_blocks_attention()
16960 REG_WR(sc, DORQ_REG_DORQ_INT_MASK, 0); in bxe_enable_blocks_attention()
16961 REG_WR(sc, CFC_REG_CFC_INT_MASK, 0); in bxe_enable_blocks_attention()
16968 REG_WR(sc, BRB1_REG_BRB1_INT_MASK, 0xFC00); in bxe_enable_blocks_attention()
16969 REG_WR(sc, QM_REG_QM_INT_MASK, 0); in bxe_enable_blocks_attention()
16970 REG_WR(sc, TM_REG_TM_INT_MASK, 0); in bxe_enable_blocks_attention()
16971 REG_WR(sc, XSDM_REG_XSDM_INT_MASK_0, 0); in bxe_enable_blocks_attention()
16972 REG_WR(sc, XSDM_REG_XSDM_INT_MASK_1, 0); in bxe_enable_blocks_attention()
16973 REG_WR(sc, XCM_REG_XCM_INT_MASK, 0); in bxe_enable_blocks_attention()
16976 REG_WR(sc, USDM_REG_USDM_INT_MASK_0, 0); in bxe_enable_blocks_attention()
16977 REG_WR(sc, USDM_REG_USDM_INT_MASK_1, 0); in bxe_enable_blocks_attention()
16978 REG_WR(sc, UCM_REG_UCM_INT_MASK, 0); in bxe_enable_blocks_attention()
16981 REG_WR(sc, GRCBASE_UPB + PB_REG_PB_INT_MASK, 0); in bxe_enable_blocks_attention()
16982 REG_WR(sc, CSDM_REG_CSDM_INT_MASK_0, 0); in bxe_enable_blocks_attention()
16983 REG_WR(sc, CSDM_REG_CSDM_INT_MASK_1, 0); in bxe_enable_blocks_attention()
16984 REG_WR(sc, CCM_REG_CCM_INT_MASK, 0); in bxe_enable_blocks_attention()
16995 REG_WR(sc, PXP2_REG_PXP2_INT_MASK_0, val); in bxe_enable_blocks_attention()
16997 REG_WR(sc, TSDM_REG_TSDM_INT_MASK_0, 0); in bxe_enable_blocks_attention()
16998 REG_WR(sc, TSDM_REG_TSDM_INT_MASK_1, 0); in bxe_enable_blocks_attention()
16999 REG_WR(sc, TCM_REG_TCM_INT_MASK, 0); in bxe_enable_blocks_attention()
17004 REG_WR(sc, TSEM_REG_TSEM_INT_MASK_1, 0x07ff); in bxe_enable_blocks_attention()
17007 REG_WR(sc, CDU_REG_CDU_INT_MASK, 0); in bxe_enable_blocks_attention()
17008 REG_WR(sc, DMAE_REG_DMAE_INT_MASK, 0); in bxe_enable_blocks_attention()
17010 REG_WR(sc, PBF_REG_PBF_INT_MASK, 0x18); /* bit 3,4 masked */ in bxe_enable_blocks_attention()
17035 REG_WR(sc, (GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET), 0xffffffff); in bxe_init_hw_common()
17043 REG_WR(sc, (GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_SET), val); in bxe_init_hw_common()
17061 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER, 1); in bxe_init_hw_common()
17083 REG_WR(sc, PXP_REG_PXP_INT_MASK_0, 0); in bxe_init_hw_common()
17090 REG_WR(sc, PXP2_REG_RQ_QM_ENDIAN_M, 1); in bxe_init_hw_common()
17091 REG_WR(sc, PXP2_REG_RQ_TM_ENDIAN_M, 1); in bxe_init_hw_common()
17092 REG_WR(sc, PXP2_REG_RQ_SRC_ENDIAN_M, 1); in bxe_init_hw_common()
17093 REG_WR(sc, PXP2_REG_RQ_CDU_ENDIAN_M, 1); in bxe_init_hw_common()
17094 REG_WR(sc, PXP2_REG_RQ_DBG_ENDIAN_M, 1); in bxe_init_hw_common()
17096 REG_WR(sc, PXP2_REG_RQ_HC_ENDIAN_M, 0); in bxe_init_hw_common()
17099 REG_WR(sc, PXP2_REG_RD_QM_SWAP_MODE, 1); in bxe_init_hw_common()
17100 REG_WR(sc, PXP2_REG_RD_TM_SWAP_MODE, 1); in bxe_init_hw_common()
17101 REG_WR(sc, PXP2_REG_RD_SRC_SWAP_MODE, 1); in bxe_init_hw_common()
17102 REG_WR(sc, PXP2_REG_RD_CDURD_SWAP_MODE, 1); in bxe_init_hw_common()
17108 REG_WR(sc, PXP2_REG_PGL_TAGS_LIMIT, 0x1); in bxe_init_hw_common()
17226 REG_WR(sc, PXP2_REG_RQ_DRAM_ALIGN, BXE_PXP_DRAM_ALIGN); in bxe_init_hw_common()
17227 REG_WR(sc, PXP2_REG_RQ_DRAM_ALIGN_RD, BXE_PXP_DRAM_ALIGN); in bxe_init_hw_common()
17228 REG_WR(sc, PXP2_REG_RQ_DRAM_ALIGN_SEL, 1); in bxe_init_hw_common()
17231 REG_WR(sc, PXP2_REG_RQ_DISABLE_INPUTS, 0); in bxe_init_hw_common()
17232 REG_WR(sc, PXP2_REG_RD_DISABLE_INPUTS, 0); in bxe_init_hw_common()
17282 REG_WR(sc, QM_REG_SOFT_RESET, 1); in bxe_init_hw_common()
17283 REG_WR(sc, QM_REG_SOFT_RESET, 0); in bxe_init_hw_common()
17289 REG_WR(sc, DORQ_REG_DPM_CID_OFST, BXE_DB_SHIFT); in bxe_init_hw_common()
17292 REG_WR(sc, DORQ_REG_DORQ_INT_MASK, 0); in bxe_init_hw_common()
17298 REG_WR(sc, PRS_REG_A_PRSU_20, 0xf); in bxe_init_hw_common()
17301 REG_WR(sc, PRS_REG_E1HOV_MODE, sc->devinfo.mf_info.path_has_ovlan); in bxe_init_hw_common()
17310 REG_WR(sc, PRS_REG_HDRS_AFTER_BASIC, 0xE); in bxe_init_hw_common()
17311 REG_WR(sc, PRS_REG_MUST_HAVE_HDRS, 0xA); in bxe_init_hw_common()
17312 REG_WR(sc, PRS_REG_HDRS_AFTER_TAG_0, 0x6); in bxe_init_hw_common()
17313 REG_WR(sc, PRS_REG_TAG_ETHERTYPE_0, 0x8926); in bxe_init_hw_common()
17314 REG_WR(sc, PRS_REG_TAG_LEN_0, 0x4); in bxe_init_hw_common()
17320 REG_WR(sc, PRS_REG_HDRS_AFTER_BASIC, in bxe_init_hw_common()
17332 REG_WR(sc, TSEM_REG_FAST_MEMORY + VFC_REG_MEMORIES_RST, in bxe_init_hw_common()
17335 REG_WR(sc, XSEM_REG_FAST_MEMORY + VFC_REG_MEMORIES_RST, in bxe_init_hw_common()
17348 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_CLEAR, in bxe_init_hw_common()
17350 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET, in bxe_init_hw_common()
17363 REG_WR(sc, PBF_REG_HDRS_AFTER_BASIC, 0xE); in bxe_init_hw_common()
17364 REG_WR(sc, PBF_REG_MUST_HAVE_HDRS, 0xA); in bxe_init_hw_common()
17365 REG_WR(sc, PBF_REG_HDRS_AFTER_TAG_0, 0x6); in bxe_init_hw_common()
17366 REG_WR(sc, PBF_REG_TAG_ETHERTYPE_0, 0x8926); in bxe_init_hw_common()
17367 REG_WR(sc, PBF_REG_TAG_LEN_0, 0x4); in bxe_init_hw_common()
17369 REG_WR(sc, PBF_REG_HDRS_AFTER_BASIC, in bxe_init_hw_common()
17374 REG_WR(sc, SRC_REG_SOFT_RST, 1); in bxe_init_hw_common()
17379 REG_WR(sc, SRC_REG_KEYSEARCH_0, 0x63285672); in bxe_init_hw_common()
17380 REG_WR(sc, SRC_REG_KEYSEARCH_1, 0x24b8f2cc); in bxe_init_hw_common()
17381 REG_WR(sc, SRC_REG_KEYSEARCH_2, 0x223aef9b); in bxe_init_hw_common()
17382 REG_WR(sc, SRC_REG_KEYSEARCH_3, 0x26001e3a); in bxe_init_hw_common()
17383 REG_WR(sc, SRC_REG_KEYSEARCH_4, 0x7ae91116); in bxe_init_hw_common()
17384 REG_WR(sc, SRC_REG_KEYSEARCH_5, 0x5ce5230b); in bxe_init_hw_common()
17385 REG_WR(sc, SRC_REG_KEYSEARCH_6, 0x298d8adf); in bxe_init_hw_common()
17386 REG_WR(sc, SRC_REG_KEYSEARCH_7, 0x6eb0ff09); in bxe_init_hw_common()
17387 REG_WR(sc, SRC_REG_KEYSEARCH_8, 0x1830f82f); in bxe_init_hw_common()
17388 REG_WR(sc, SRC_REG_KEYSEARCH_9, 0x01e46be7); in bxe_init_hw_common()
17390 REG_WR(sc, SRC_REG_SOFT_RST, 0); in bxe_init_hw_common()
17400 REG_WR(sc, CDU_REG_CDU_GLOBAL_PARAMS, val); in bxe_init_hw_common()
17404 REG_WR(sc, CFC_REG_INIT_REG, 0x7FF); in bxe_init_hw_common()
17406 REG_WR(sc, CFC_REG_CFC_INT_MASK, 0); in bxe_init_hw_common()
17409 REG_WR(sc, CFC_REG_DEBUG0, 0x20020000); in bxe_init_hw_common()
17413 REG_WR(sc, IGU_REG_RESET_MEMORIES, 0x36); in bxe_init_hw_common()
17420 REG_WR(sc, 0x2814, 0xffffffff); in bxe_init_hw_common()
17421 REG_WR(sc, 0x3820, 0xffffffff); in bxe_init_hw_common()
17424 REG_WR(sc, PCICFG_OFFSET + PXPCS_TL_CONTROL_5, in bxe_init_hw_common()
17427 REG_WR(sc, PCICFG_OFFSET + PXPCS_TL_FUNC345_STAT, in bxe_init_hw_common()
17431 REG_WR(sc, PCICFG_OFFSET + PXPCS_TL_FUNC678_STAT, in bxe_init_hw_common()
17442 REG_WR(sc, NIG_REG_LLH_MF_MODE, IS_MF(sc)); in bxe_init_hw_common()
17447 REG_WR(sc, NIG_REG_LLH_E1HOV_MODE, IS_MF_SD(sc)); in bxe_init_hw_common()
17470 REG_WR(sc, CFC_REG_DEBUG0, 0); in bxe_init_hw_common()
17537 REG_WR(sc, NIG_REG_MASK_INTERRUPT_PORT0 + port*4, 0); in bxe_init_hw_port()
17550 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER, 1); in bxe_init_hw_port()
17568 REG_WR(sc, TM_REG_LIN0_SCAN_TIME + port*4, 20); in bxe_init_hw_port()
17569 REG_WR(sc, TM_REG_LIN0_MAX_ACTIVE_CID + port*4, 31); in bxe_init_hw_port()
17591 REG_WR(sc, BRB1_REG_PAUSE_LOW_THRESHOLD_0 + port*4, low); in bxe_init_hw_port()
17592 REG_WR(sc, BRB1_REG_PAUSE_HIGH_THRESHOLD_0 + port*4, high); in bxe_init_hw_port()
17596 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17605 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17608 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17611 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17619 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17643 REG_WR(sc, PBF_REG_P0_PAUSE_ENABLE + port*4, 0); in bxe_init_hw_port()
17646 REG_WR(sc, PBF_REG_P0_ARB_THRSH + port*4, (9040/16)); in bxe_init_hw_port()
17648 REG_WR(sc, PBF_REG_P0_INIT_CRD + port*4, (9040/16) + 553 - 22); in bxe_init_hw_port()
17651 REG_WR(sc, PBF_REG_INIT_P0 + port*4, 1); in bxe_init_hw_port()
17653 REG_WR(sc, PBF_REG_INIT_P0 + port*4, 0); in bxe_init_hw_port()
17664 REG_WR(sc, HC_REG_LEADING_EDGE_0 + port*8, 0); in bxe_init_hw_port()
17665 REG_WR(sc, HC_REG_TRAILING_EDGE_0 + port*8, 0); in bxe_init_hw_port()
17679 REG_WR(sc, MISC_REG_AEU_MASK_ATTN_FUNC_0 + port*4, val); in bxe_init_hw_port()
17688 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17692 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17699 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17705 REG_WR(sc, NIG_REG_XGXS_SERDES0_MODE_SEL + port*4, 1); in bxe_init_hw_port()
17710 REG_WR(sc, NIG_REG_LLH0_BRB1_DRV_MASK_MF + port*4, in bxe_init_hw_port()
17725 REG_WR(sc, (SC_PORT(sc) ? NIG_REG_LLH1_CLS_TYPE : in bxe_init_hw_port()
17728 REG_WR(sc, NIG_REG_LLFC_ENABLE_0 + port*4, 0); in bxe_init_hw_port()
17729 REG_WR(sc, NIG_REG_LLFC_OUT_EN_0 + port*4, 0); in bxe_init_hw_port()
17730 REG_WR(sc, NIG_REG_PAUSE_ENABLE_0 + port*4, 1); in bxe_init_hw_port()
17740 REG_WR(sc, reg_addr, val); in bxe_init_hw_port()
17876 REG_WR(sc, XSDM_REG_OPERATION_GEN, op_gen_command); in bxe_send_final_clnup()
17887 REG_WR(sc, comp_addr, 0); in bxe_send_final_clnup()
18064 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ, 1); in bxe_pf_flr_clnup()
18099 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER, 1); in bxe_pf_flr_clnup()
18134 REG_WR(sc, addr, val); in bxe_init_hw_func()
18152 REG_WR(sc, PRS_REG_NIC_MODE, 1); in bxe_init_hw_func()
18178 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER, 1); in bxe_init_hw_func()
18180 REG_WR(sc, IGU_REG_PF_CONFIGURATION, pf_conf); in bxe_init_hw_func()
18188 REG_WR(sc, PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR, func); in bxe_init_hw_func()
18205 REG_WR(sc, QM_REG_PF_EN, 1); in bxe_init_hw_func()
18208 REG_WR(sc, TSEM_REG_VFPF_ERR_NUM, BXE_MAX_NUM_OF_VFS + func); in bxe_init_hw_func()
18209 REG_WR(sc, USEM_REG_VFPF_ERR_NUM, BXE_MAX_NUM_OF_VFS + func); in bxe_init_hw_func()
18210 REG_WR(sc, CSEM_REG_VFPF_ERR_NUM, BXE_MAX_NUM_OF_VFS + func); in bxe_init_hw_func()
18211 REG_WR(sc, XSEM_REG_VFPF_ERR_NUM, BXE_MAX_NUM_OF_VFS + func); in bxe_init_hw_func()
18230 REG_WR(sc, PBF_REG_DISABLE_PF, 0); in bxe_init_hw_func()
18237 REG_WR(sc, CFC_REG_WEAK_ENABLE_PF, 1); in bxe_init_hw_func()
18240 REG_WR(sc, NIG_REG_LLH0_FUNC_EN + port*8, 1); in bxe_init_hw_func()
18241 REG_WR(sc, NIG_REG_LLH0_FUNC_VLAN_ID + port*8, OVLAN(sc)); in bxe_init_hw_func()
18249 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_12 + func*4, 0); in bxe_init_hw_func()
18251 REG_WR(sc, HC_REG_LEADING_EDGE_0 + port*8, 0); in bxe_init_hw_func()
18252 REG_WR(sc, HC_REG_TRAILING_EDGE_0 + port*8, 0); in bxe_init_hw_func()
18259 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_12 + func*4, 0); in bxe_init_hw_func()
18262 REG_WR(sc, IGU_REG_LEADING_EDGE_LATCH, 0); in bxe_init_hw_func()
18263 REG_WR(sc, IGU_REG_TRAILING_EDGE_LATCH, 0); in bxe_init_hw_func()
18300 REG_WR(sc, addr, 0); in bxe_init_hw_func()
18329 REG_WR(sc, addr, 0); in bxe_init_hw_func()
18353 REG_WR(sc, IGU_REG_SB_INT_BEFORE_MASK_LSB, 0); in bxe_init_hw_func()
18354 REG_WR(sc, IGU_REG_SB_INT_BEFORE_MASK_MSB, 0); in bxe_init_hw_func()
18355 REG_WR(sc, IGU_REG_SB_MASK_LSB, 0); in bxe_init_hw_func()
18356 REG_WR(sc, IGU_REG_SB_MASK_MSB, 0); in bxe_init_hw_func()
18357 REG_WR(sc, IGU_REG_PBA_STATUS_LSB, 0); in bxe_init_hw_func()
18358 REG_WR(sc, IGU_REG_PBA_STATUS_MSB, 0); in bxe_init_hw_func()
18363 REG_WR(sc, 0x2114, 0xffffffff); in bxe_init_hw_func()
18364 REG_WR(sc, 0x2120, 0xffffffff); in bxe_init_hw_func()
18433 REG_WR(sc, NIG_REG_MASK_INTERRUPT_PORT0 + port*4, 0); in bxe_reset_port()
18436 REG_WR(sc, NIG_REG_LLH0_BRB1_DRV_MASK + port*4, 0x0); in bxe_reset_port()
18438 REG_WR(sc, (port ? NIG_REG_LLH1_BRB1_NOT_MCP : in bxe_reset_port()
18442 REG_WR(sc, MISC_REG_AEU_MASK_ATTN_FUNC_0 + port*4, 0); in bxe_reset_port()
18513 REG_WR(sc, BAR_XSTRORM_INTMEM + XSTORM_SPQ_DATA_OFFSET(func), 0); in bxe_reset_func()
18518 REG_WR(sc, HC_REG_LEADING_EDGE_0 + port*8, 0); in bxe_reset_func()
18519 REG_WR(sc, HC_REG_TRAILING_EDGE_0 + port*8, 0); in bxe_reset_func()
18521 REG_WR(sc, IGU_REG_LEADING_EDGE_LATCH, 0); in bxe_reset_func()
18522 REG_WR(sc, IGU_REG_TRAILING_EDGE_LATCH, 0); in bxe_reset_func()
18527 REG_WR(sc, TM_REG_EN_LINEAR0_TIMER + port*4, 0); in bxe_reset_func()
18639 REG_WR(sc, addr + (i * 4), data[i]); in ecore_storm_memset_struct()
18841 REG_WR(sc, write_addr[j], page_addr[i]); in bxe_read_pages_regs()
19403 REG_WR(sc, reg_rdw_p->reg_id, reg_rdw_p->reg_val); in bxe_eioctl()