Lines Matching refs:REG_WR

1051         REG_WR(sc, (hw_lock_control_reg + 4), resource_bit);  in bxe_acquire_hw_lock()
1095 REG_WR(sc, hw_lock_control_reg, resource_bit); in bxe_release_hw_lock()
1140 REG_WR(sc, MCP_REG_MCPR_NVM_SW_ARB, in bxe_acquire_nvram_lock()
1176 REG_WR(sc, MCP_REG_MCPR_NVM_SW_ARB, in bxe_release_nvram_lock()
1209 REG_WR(sc, MCP_REG_MCPR_NVM_ACCESS_ENABLE, in bxe_enable_nvram_access()
1221 REG_WR(sc, MCP_REG_MCPR_NVM_ACCESS_ENABLE, in bxe_disable_nvram_access()
1239 REG_WR(sc, MCP_REG_MCPR_NVM_COMMAND, MCPR_NVM_COMMAND_DONE); in bxe_nvram_read_dword()
1242 REG_WR(sc, MCP_REG_MCPR_NVM_ADDR, in bxe_nvram_read_dword()
1246 REG_WR(sc, MCP_REG_MCPR_NVM_COMMAND, cmd_flags); in bxe_nvram_read_dword()
1352 REG_WR(sc, MCP_REG_MCPR_NVM_COMMAND, MCPR_NVM_COMMAND_DONE); in bxe_nvram_write_dword()
1355 REG_WR(sc, MCP_REG_MCPR_NVM_WRITE, val); in bxe_nvram_write_dword()
1358 REG_WR(sc, MCP_REG_MCPR_NVM_ADDR, in bxe_nvram_write_dword()
1362 REG_WR(sc, MCP_REG_MCPR_NVM_COMMAND, cmd_flags); in bxe_nvram_write_dword()
1523 REG_WR(sc, (cmd_offset + (i * 4)), *(((uint32_t *)dmae) + i)); in bxe_post_dmae()
1526 REG_WR(sc, dmae_reg_go_c[idx], 1); in bxe_post_dmae()
1832 REG_WR(sc, reg_addr, val); in elink_cb_reg_write()
1911 REG_WR(sc, MISC_REG_SPIO, spio_reg); in bxe_set_spio()
2001 REG_WR(sc, MISC_REG_GPIO, gpio_reg); in bxe_gpio_write()
2050 REG_WR(sc, MISC_REG_GPIO, gpio_reg); in bxe_gpio_mult_write()
2105 REG_WR(sc, MISC_REG_GPIO_INT, gpio_reg); in bxe_gpio_int_write()
2148 REG_WR(sc, (MISC_REG_AEU_GENERAL_ATTN_12 + in elink_cb_notify_link_changed()
2211 REG_WR(sc, addr, U64_LO(mapping)); in __storm_memset_dma_mapping()
2212 REG_WR(sc, (addr + 4), U64_HI(mapping)); in __storm_memset_dma_mapping()
4067 REG_WR(sc, NIG_REG_LLH0_FUNC_EN + port*8, 0); in bxe_chip_cleanup()
4166 REG_WR(sc, addr, val); in bxe_disable_close_the_gate()
4171 REG_WR(sc, MISC_REG_AEU_GENERAL_MASK, val); in bxe_disable_close_the_gate()
6673 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val | BXE_GLOBAL_RESET_BIT); in bxe_set_reset_global()
6684 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val & (~BXE_GLOBAL_RESET_BIT)); in bxe_clear_reset_global()
6710 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val); in bxe_set_reset_done()
6728 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val); in bxe_set_reset_in_progress()
6795 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val); in bxe_set_pf_load()
6827 REG_WR(sc, BXE_RECOVERY_GLOB_REG, val); in bxe_clear_pf_load()
6934 REG_WR(sc, in bxe_nic_load_pmf()
6987 REG_WR(sc, GRCBASE_MCP + 0x9c, val); in bxe_acquire_alr()
7006 REG_WR(sc, GRCBASE_MCP + 0x9c, 0); in bxe_release_alr()
7068 REG_WR(sc, in bxe_link_attn()
7140 REG_WR(sc, aeu_addr, aeu_mask); in bxe_attn_int_asserted()
7157 REG_WR(sc, nig_int_mask_addr, 0); in bxe_attn_int_asserted()
7184 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_1, 0x0); in bxe_attn_int_asserted()
7188 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_2, 0x0); in bxe_attn_int_asserted()
7192 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_3, 0x0); in bxe_attn_int_asserted()
7197 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_4, 0x0); in bxe_attn_int_asserted()
7201 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_5, 0x0); in bxe_attn_int_asserted()
7205 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_6, 0x0); in bxe_attn_int_asserted()
7219 REG_WR(sc, reg_addr, asserted); in bxe_attn_int_asserted()
7242 REG_WR(sc, nig_int_mask_addr, nig_mask); in bxe_attn_int_asserted()
7689 REG_WR(sc, NIG_REG_LLH0_FUNC_EN + port*8, 0); in bxe_e1h_disable()
7697 REG_WR(sc, NIG_REG_LLH0_FUNC_EN + port*8, 1); in bxe_e1h_enable()
7865 REG_WR(sc, HC_REG_TRAILING_EDGE_0 + port*8, val); in bxe_pmf_update()
7866 REG_WR(sc, HC_REG_LEADING_EDGE_0 + port*8, val); in bxe_pmf_update()
7868 REG_WR(sc, IGU_REG_TRAILING_EDGE_LATCH, val); in bxe_pmf_update()
7869 REG_WR(sc, IGU_REG_LEADING_EDGE_LATCH, val); in bxe_pmf_update()
7987 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_12 + func*4, 0); in bxe_attn_int_deasserted3()
8030 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_10, 0); in bxe_attn_int_deasserted3()
8031 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_9, 0); in bxe_attn_int_deasserted3()
8032 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_8, 0); in bxe_attn_int_deasserted3()
8033 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_7, 0); in bxe_attn_int_deasserted3()
8042 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_11, 0); in bxe_attn_int_deasserted3()
8064 REG_WR(sc, MISC_REG_AEU_CLR_LATCH_SIGNAL, 0x7ff); in bxe_attn_int_deasserted3()
8156 REG_WR(sc, reg_offset, val); in bxe_attn_int_deasserted2()
8196 REG_WR(sc, reg_offset, val); in bxe_attn_int_deasserted1()
8225 REG_WR(sc, reg_offset, val); in bxe_attn_int_deasserted0()
8243 REG_WR(sc, reg_offset, val); in bxe_attn_int_deasserted0()
8333 REG_WR(sc, reg_addr, val); in bxe_attn_int_deasserted()
8351 REG_WR(sc, reg_addr, aeu_mask); in bxe_attn_int_deasserted()
9421 REG_WR(sc, (addr + i), fill); in bxe_fill()
9440 REG_WR(sc, in bxe_wr_fp_sb_data()
9490 REG_WR(sc, in bxe_wr_sp_sb_data()
9762 REG_WR(sc, in bxe_update_rx_prod()
9800 REG_WR(sc, in bxe_init_rx_rings()
9804 REG_WR(sc, in bxe_init_rx_rings()
9897 REG_WR(sc, reg_offset, U64_LO(section)); in bxe_init_def_sb()
9898 REG_WR(sc, (reg_offset + 4), U64_HI(section)); in bxe_init_def_sb()
9900 REG_WR(sc, IGU_REG_ATTN_MSG_ADDR_L, U64_LO(section)); in bxe_init_def_sb()
9901 REG_WR(sc, IGU_REG_ATTN_MSG_ADDR_H, U64_HI(section)); in bxe_init_def_sb()
9970 REG_WR(sc, in bxe_init_internal_common()
10036 REG_WR(sc, in bxe_func_init()
10230 REG_WR(sc, in bxe_pf_init()
10236 REG_WR(sc, in bxe_pf_init()
10320 REG_WR(sc, addr, val); in bxe_hc_int_enable()
10327 REG_WR(sc, (HC_REG_INT_MASK + port*4), 0x1FFFF); in bxe_hc_int_enable()
10333 REG_WR(sc, addr, val); in bxe_hc_int_enable()
10350 REG_WR(sc, (HC_REG_TRAILING_EDGE_0 + port*8), val); in bxe_hc_int_enable()
10351 REG_WR(sc, (HC_REG_LEADING_EDGE_0 + port*8), val); in bxe_hc_int_enable()
10391 REG_WR(sc, IGU_REG_PF_CONFIGURATION, val); in bxe_igu_int_enable()
10400 REG_WR(sc, IGU_REG_PF_CONFIGURATION, val); in bxe_igu_int_enable()
10415 REG_WR(sc, IGU_REG_TRAILING_EDGE_LATCH, val); in bxe_igu_int_enable()
10416 REG_WR(sc, IGU_REG_LEADING_EDGE_LATCH, val); in bxe_igu_int_enable()
10449 REG_WR(sc, (HC_REG_INT_MASK + port*4), 0); in bxe_hc_int_disable()
10466 REG_WR(sc, addr, val); in bxe_hc_int_disable()
10486 REG_WR(sc, IGU_REG_PF_CONFIGURATION, val); in bxe_igu_int_disable()
10722 REG_WR(sc, hw_lock_control_reg + 4, resource_bit); in bxe_trylock_hw_lock()
10772 REG_WR(sc, PXP_REG_HST_DISCARD_DOORBELLS, !!close); in bxe_set_234_gates()
10774 REG_WR(sc, PXP_REG_HST_DISCARD_INTERNAL_WRITES, !!close); in bxe_set_234_gates()
10781 REG_WR(sc, HC_REG_CONFIG_1, in bxe_set_234_gates()
10786 REG_WR(sc, HC_REG_CONFIG_0, in bxe_set_234_gates()
10793 REG_WR(sc, IGU_REG_BLOCK_CONFIGURATION, in bxe_set_234_gates()
10873 REG_WR(sc, shmem + validity_offset, 0); in bxe_reset_mcp_prep()
10936 REG_WR(sc, PXP2_REG_RD_START_INIT, 0); in bxe_pxp_prep()
10937 REG_WR(sc, PXP2_REG_RQ_RBC_DONE, 0); in bxe_pxp_prep()
11033 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_CLEAR, in bxe_process_kill_chip_reset()
11036 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_CLEAR, in bxe_process_kill_chip_reset()
11042 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_SET, in bxe_process_kill_chip_reset()
11048 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET, reset_mask1); in bxe_process_kill_chip_reset()
11104 REG_WR(sc, MISC_REG_UNPREPARED, 0); in bxe_process_kill()
11132 REG_WR(sc, PGLUE_B_REG_LATCHED_ERRORS_CLR, 0x7f); in bxe_process_kill()
11973 REG_WR(sc, NIG_REG_EGRESS_DRAIN0_MODE + sc->link_params.port*4, 0); in bxe_link_status_update()
14180 REG_WR(sc, PXP2_REG_PGL_ADDR_88_F0, 0); in bxe_get_device_info()
14181 REG_WR(sc, PXP2_REG_PGL_ADDR_8C_F0, 0); in bxe_get_device_info()
14182 REG_WR(sc, PXP2_REG_PGL_ADDR_90_F0, 0); in bxe_get_device_info()
14183 REG_WR(sc, PXP2_REG_PGL_ADDR_94_F0, 0); in bxe_get_device_info()
14185 REG_WR(sc, PXP2_REG_PGL_ADDR_88_F1, 0); in bxe_get_device_info()
14186 REG_WR(sc, PXP2_REG_PGL_ADDR_8C_F1, 0); in bxe_get_device_info()
14187 REG_WR(sc, PXP2_REG_PGL_ADDR_90_F1, 0); in bxe_get_device_info()
14188 REG_WR(sc, PXP2_REG_PGL_ADDR_94_F1, 0); in bxe_get_device_info()
14197 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ, 1); in bxe_get_device_info()
14246 REG_WR(sc, IGU_REG_BLOCK_CONFIGURATION, val); in bxe_get_device_info()
14247 REG_WR(sc, IGU_REG_RESET_MEMORIES, 0x7f); in bxe_get_device_info()
15361 REG_WR(sc, PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR, 1 << SC_FUNC(sc)); in bxe_prev_interrupted_dmae()
15566 REG_WR(sc, vals->bmac_addr, wb_data[0]); in bxe_prev_unload_close_mac()
15567 REG_WR(sc, vals->bmac_addr + 0x4, wb_data[1]); in bxe_prev_unload_close_mac()
15573 REG_WR(sc, vals->emac_addr, 0); in bxe_prev_unload_close_mac()
15580 REG_WR(sc, base_addr + XMAC_REG_PFC_CTRL_HI, val & ~(1 << 1)); in bxe_prev_unload_close_mac()
15581 REG_WR(sc, base_addr + XMAC_REG_PFC_CTRL_HI, val | (1 << 1)); in bxe_prev_unload_close_mac()
15584 REG_WR(sc, vals->xmac_addr, 0); in bxe_prev_unload_close_mac()
15594 REG_WR(sc, vals->umac_addr, 0); in bxe_prev_unload_close_mac()
15621 REG_WR(sc, BXE_PREV_UNDI_PROD_ADDR(port), tmp_reg); in bxe_prev_unload_undi_inc()
15670 REG_WR(sc, DORQ_REG_NORM_CID_OFST, 0); in bxe_prev_unload_common()
15712 REG_WR(sc, mac_vals.xmac_addr, mac_vals.xmac_val); in bxe_prev_unload_common()
15715 REG_WR(sc, mac_vals.umac_addr, mac_vals.umac_val); in bxe_prev_unload_common()
15718 REG_WR(sc, mac_vals.emac_addr, mac_vals.emac_val); in bxe_prev_unload_common()
15721 REG_WR(sc, mac_vals.bmac_addr, mac_vals.bmac_val[0]); in bxe_prev_unload_common()
15722 REG_WR(sc, mac_vals.bmac_addr + 4, mac_vals.bmac_val[1]); in bxe_prev_unload_common()
15800 REG_WR(sc, MCP_REG_MCPR_NVM_SW_ARB, in bxe_prev_unload()
15804 REG_WR(sc, hw_lock_reg, 0xffffffff); in bxe_prev_unload()
15811 REG_WR(sc, MCP_REG_MCPR_ACCESS_LOCK, 0); in bxe_prev_unload()
16657 REG_WR(sc, igu_addr_data, data); in bxe_igu_clear_sb_gen()
16665 REG_WR(sc, igu_addr_ctl, ctl); in bxe_igu_clear_sb_gen()
16707 REG_WR(sc, (GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_CLEAR), 0xd3ffff7f); in bxe_reset_common()
16714 REG_WR(sc, (GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_CLEAR), val); in bxe_reset_common()
16751 REG_WR(sc, IGU_REG_PF_CONFIGURATION, val); in bxe_pf_disable()
16752 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER, 0); in bxe_pf_disable()
16753 REG_WR(sc, CFC_REG_WEAK_ENABLE_PF, 0); in bxe_pf_disable()
16804 REG_WR(sc, pretend_reg, pretend_func_val); in bxe_pretend_func()
16860 REG_WR(sc, TSDM_REG_ENABLE_IN1, 0x0); in bxe_int_mem_test()
16861 REG_WR(sc, TCM_REG_PRS_IFEN, 0x0); in bxe_int_mem_test()
16862 REG_WR(sc, CFC_REG_DEBUG0, 0x1); in bxe_int_mem_test()
16863 REG_WR(sc, NIG_REG_PRS_REQ_IN_EN, 0x0); in bxe_int_mem_test()
16866 REG_WR(sc, PRS_REG_CFC_SEARCH_INITIAL_CREDIT, 0x0); in bxe_int_mem_test()
16908 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_CLEAR, 0x03); in bxe_int_mem_test()
16910 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET, 0x03); in bxe_int_mem_test()
16916 REG_WR(sc, TSDM_REG_ENABLE_IN1, 0x0); in bxe_int_mem_test()
16917 REG_WR(sc, TCM_REG_PRS_IFEN, 0x0); in bxe_int_mem_test()
16918 REG_WR(sc, CFC_REG_DEBUG0, 0x1); in bxe_int_mem_test()
16919 REG_WR(sc, NIG_REG_PRS_REQ_IN_EN, 0x0); in bxe_int_mem_test()
16922 REG_WR(sc, PRS_REG_CFC_SEARCH_INITIAL_CREDIT, 0x0); in bxe_int_mem_test()
16954 REG_WR(sc, PRS_REG_CFC_SEARCH_INITIAL_CREDIT, 0x1); in bxe_int_mem_test()
16977 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_CLEAR, 0x03); in bxe_int_mem_test()
16979 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET, 0x03); in bxe_int_mem_test()
16985 REG_WR(sc, PRS_REG_NIC_MODE, 1); in bxe_int_mem_test()
16989 REG_WR(sc, TSDM_REG_ENABLE_IN1, 0x7fffffff); in bxe_int_mem_test()
16990 REG_WR(sc, TCM_REG_PRS_IFEN, 0x1); in bxe_int_mem_test()
16991 REG_WR(sc, CFC_REG_DEBUG0, 0x0); in bxe_int_mem_test()
16992 REG_WR(sc, NIG_REG_PRS_REQ_IN_EN, 0x1); in bxe_int_mem_test()
17037 REG_WR(sc, MISC_REG_SPIO_INT, val); in bxe_setup_fan_failure_detection()
17042 REG_WR(sc, MISC_REG_SPIO_EVENT_EN, val); in bxe_setup_fan_failure_detection()
17050 REG_WR(sc, PXP_REG_PXP_INT_MASK_0, 0); in bxe_enable_blocks_attention()
17052 REG_WR(sc, PXP_REG_PXP_INT_MASK_1, 0x40); in bxe_enable_blocks_attention()
17054 REG_WR(sc, PXP_REG_PXP_INT_MASK_1, 0); in bxe_enable_blocks_attention()
17056 REG_WR(sc, DORQ_REG_DORQ_INT_MASK, 0); in bxe_enable_blocks_attention()
17057 REG_WR(sc, CFC_REG_CFC_INT_MASK, 0); in bxe_enable_blocks_attention()
17064 REG_WR(sc, BRB1_REG_BRB1_INT_MASK, 0xFC00); in bxe_enable_blocks_attention()
17065 REG_WR(sc, QM_REG_QM_INT_MASK, 0); in bxe_enable_blocks_attention()
17066 REG_WR(sc, TM_REG_TM_INT_MASK, 0); in bxe_enable_blocks_attention()
17067 REG_WR(sc, XSDM_REG_XSDM_INT_MASK_0, 0); in bxe_enable_blocks_attention()
17068 REG_WR(sc, XSDM_REG_XSDM_INT_MASK_1, 0); in bxe_enable_blocks_attention()
17069 REG_WR(sc, XCM_REG_XCM_INT_MASK, 0); in bxe_enable_blocks_attention()
17072 REG_WR(sc, USDM_REG_USDM_INT_MASK_0, 0); in bxe_enable_blocks_attention()
17073 REG_WR(sc, USDM_REG_USDM_INT_MASK_1, 0); in bxe_enable_blocks_attention()
17074 REG_WR(sc, UCM_REG_UCM_INT_MASK, 0); in bxe_enable_blocks_attention()
17077 REG_WR(sc, GRCBASE_UPB + PB_REG_PB_INT_MASK, 0); in bxe_enable_blocks_attention()
17078 REG_WR(sc, CSDM_REG_CSDM_INT_MASK_0, 0); in bxe_enable_blocks_attention()
17079 REG_WR(sc, CSDM_REG_CSDM_INT_MASK_1, 0); in bxe_enable_blocks_attention()
17080 REG_WR(sc, CCM_REG_CCM_INT_MASK, 0); in bxe_enable_blocks_attention()
17091 REG_WR(sc, PXP2_REG_PXP2_INT_MASK_0, val); in bxe_enable_blocks_attention()
17093 REG_WR(sc, TSDM_REG_TSDM_INT_MASK_0, 0); in bxe_enable_blocks_attention()
17094 REG_WR(sc, TSDM_REG_TSDM_INT_MASK_1, 0); in bxe_enable_blocks_attention()
17095 REG_WR(sc, TCM_REG_TCM_INT_MASK, 0); in bxe_enable_blocks_attention()
17100 REG_WR(sc, TSEM_REG_TSEM_INT_MASK_1, 0x07ff); in bxe_enable_blocks_attention()
17103 REG_WR(sc, CDU_REG_CDU_INT_MASK, 0); in bxe_enable_blocks_attention()
17104 REG_WR(sc, DMAE_REG_DMAE_INT_MASK, 0); in bxe_enable_blocks_attention()
17106 REG_WR(sc, PBF_REG_PBF_INT_MASK, 0x18); /* bit 3,4 masked */ in bxe_enable_blocks_attention()
17131 REG_WR(sc, (GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET), 0xffffffff); in bxe_init_hw_common()
17139 REG_WR(sc, (GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_SET), val); in bxe_init_hw_common()
17157 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER, 1); in bxe_init_hw_common()
17179 REG_WR(sc, PXP_REG_PXP_INT_MASK_0, 0); in bxe_init_hw_common()
17186 REG_WR(sc, PXP2_REG_RQ_QM_ENDIAN_M, 1); in bxe_init_hw_common()
17187 REG_WR(sc, PXP2_REG_RQ_TM_ENDIAN_M, 1); in bxe_init_hw_common()
17188 REG_WR(sc, PXP2_REG_RQ_SRC_ENDIAN_M, 1); in bxe_init_hw_common()
17189 REG_WR(sc, PXP2_REG_RQ_CDU_ENDIAN_M, 1); in bxe_init_hw_common()
17190 REG_WR(sc, PXP2_REG_RQ_DBG_ENDIAN_M, 1); in bxe_init_hw_common()
17192 REG_WR(sc, PXP2_REG_RQ_HC_ENDIAN_M, 0); in bxe_init_hw_common()
17195 REG_WR(sc, PXP2_REG_RD_QM_SWAP_MODE, 1); in bxe_init_hw_common()
17196 REG_WR(sc, PXP2_REG_RD_TM_SWAP_MODE, 1); in bxe_init_hw_common()
17197 REG_WR(sc, PXP2_REG_RD_SRC_SWAP_MODE, 1); in bxe_init_hw_common()
17198 REG_WR(sc, PXP2_REG_RD_CDURD_SWAP_MODE, 1); in bxe_init_hw_common()
17204 REG_WR(sc, PXP2_REG_PGL_TAGS_LIMIT, 0x1); in bxe_init_hw_common()
17322 REG_WR(sc, PXP2_REG_RQ_DRAM_ALIGN, BXE_PXP_DRAM_ALIGN); in bxe_init_hw_common()
17323 REG_WR(sc, PXP2_REG_RQ_DRAM_ALIGN_RD, BXE_PXP_DRAM_ALIGN); in bxe_init_hw_common()
17324 REG_WR(sc, PXP2_REG_RQ_DRAM_ALIGN_SEL, 1); in bxe_init_hw_common()
17327 REG_WR(sc, PXP2_REG_RQ_DISABLE_INPUTS, 0); in bxe_init_hw_common()
17328 REG_WR(sc, PXP2_REG_RD_DISABLE_INPUTS, 0); in bxe_init_hw_common()
17378 REG_WR(sc, QM_REG_SOFT_RESET, 1); in bxe_init_hw_common()
17379 REG_WR(sc, QM_REG_SOFT_RESET, 0); in bxe_init_hw_common()
17385 REG_WR(sc, DORQ_REG_DPM_CID_OFST, BXE_DB_SHIFT); in bxe_init_hw_common()
17388 REG_WR(sc, DORQ_REG_DORQ_INT_MASK, 0); in bxe_init_hw_common()
17394 REG_WR(sc, PRS_REG_A_PRSU_20, 0xf); in bxe_init_hw_common()
17397 REG_WR(sc, PRS_REG_E1HOV_MODE, sc->devinfo.mf_info.path_has_ovlan); in bxe_init_hw_common()
17406 REG_WR(sc, PRS_REG_HDRS_AFTER_BASIC, 0xE); in bxe_init_hw_common()
17407 REG_WR(sc, PRS_REG_MUST_HAVE_HDRS, 0xA); in bxe_init_hw_common()
17408 REG_WR(sc, PRS_REG_HDRS_AFTER_TAG_0, 0x6); in bxe_init_hw_common()
17409 REG_WR(sc, PRS_REG_TAG_ETHERTYPE_0, 0x8926); in bxe_init_hw_common()
17410 REG_WR(sc, PRS_REG_TAG_LEN_0, 0x4); in bxe_init_hw_common()
17416 REG_WR(sc, PRS_REG_HDRS_AFTER_BASIC, in bxe_init_hw_common()
17428 REG_WR(sc, TSEM_REG_FAST_MEMORY + VFC_REG_MEMORIES_RST, in bxe_init_hw_common()
17431 REG_WR(sc, XSEM_REG_FAST_MEMORY + VFC_REG_MEMORIES_RST, in bxe_init_hw_common()
17444 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_CLEAR, in bxe_init_hw_common()
17446 REG_WR(sc, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_1_SET, in bxe_init_hw_common()
17459 REG_WR(sc, PBF_REG_HDRS_AFTER_BASIC, 0xE); in bxe_init_hw_common()
17460 REG_WR(sc, PBF_REG_MUST_HAVE_HDRS, 0xA); in bxe_init_hw_common()
17461 REG_WR(sc, PBF_REG_HDRS_AFTER_TAG_0, 0x6); in bxe_init_hw_common()
17462 REG_WR(sc, PBF_REG_TAG_ETHERTYPE_0, 0x8926); in bxe_init_hw_common()
17463 REG_WR(sc, PBF_REG_TAG_LEN_0, 0x4); in bxe_init_hw_common()
17465 REG_WR(sc, PBF_REG_HDRS_AFTER_BASIC, in bxe_init_hw_common()
17470 REG_WR(sc, SRC_REG_SOFT_RST, 1); in bxe_init_hw_common()
17475 REG_WR(sc, SRC_REG_KEYSEARCH_0, 0x63285672); in bxe_init_hw_common()
17476 REG_WR(sc, SRC_REG_KEYSEARCH_1, 0x24b8f2cc); in bxe_init_hw_common()
17477 REG_WR(sc, SRC_REG_KEYSEARCH_2, 0x223aef9b); in bxe_init_hw_common()
17478 REG_WR(sc, SRC_REG_KEYSEARCH_3, 0x26001e3a); in bxe_init_hw_common()
17479 REG_WR(sc, SRC_REG_KEYSEARCH_4, 0x7ae91116); in bxe_init_hw_common()
17480 REG_WR(sc, SRC_REG_KEYSEARCH_5, 0x5ce5230b); in bxe_init_hw_common()
17481 REG_WR(sc, SRC_REG_KEYSEARCH_6, 0x298d8adf); in bxe_init_hw_common()
17482 REG_WR(sc, SRC_REG_KEYSEARCH_7, 0x6eb0ff09); in bxe_init_hw_common()
17483 REG_WR(sc, SRC_REG_KEYSEARCH_8, 0x1830f82f); in bxe_init_hw_common()
17484 REG_WR(sc, SRC_REG_KEYSEARCH_9, 0x01e46be7); in bxe_init_hw_common()
17486 REG_WR(sc, SRC_REG_SOFT_RST, 0); in bxe_init_hw_common()
17496 REG_WR(sc, CDU_REG_CDU_GLOBAL_PARAMS, val); in bxe_init_hw_common()
17500 REG_WR(sc, CFC_REG_INIT_REG, 0x7FF); in bxe_init_hw_common()
17502 REG_WR(sc, CFC_REG_CFC_INT_MASK, 0); in bxe_init_hw_common()
17505 REG_WR(sc, CFC_REG_DEBUG0, 0x20020000); in bxe_init_hw_common()
17509 REG_WR(sc, IGU_REG_RESET_MEMORIES, 0x36); in bxe_init_hw_common()
17516 REG_WR(sc, 0x2814, 0xffffffff); in bxe_init_hw_common()
17517 REG_WR(sc, 0x3820, 0xffffffff); in bxe_init_hw_common()
17520 REG_WR(sc, PCICFG_OFFSET + PXPCS_TL_CONTROL_5, in bxe_init_hw_common()
17523 REG_WR(sc, PCICFG_OFFSET + PXPCS_TL_FUNC345_STAT, in bxe_init_hw_common()
17527 REG_WR(sc, PCICFG_OFFSET + PXPCS_TL_FUNC678_STAT, in bxe_init_hw_common()
17538 REG_WR(sc, NIG_REG_LLH_MF_MODE, IS_MF(sc)); in bxe_init_hw_common()
17543 REG_WR(sc, NIG_REG_LLH_E1HOV_MODE, IS_MF_SD(sc)); in bxe_init_hw_common()
17566 REG_WR(sc, CFC_REG_DEBUG0, 0); in bxe_init_hw_common()
17633 REG_WR(sc, NIG_REG_MASK_INTERRUPT_PORT0 + port*4, 0); in bxe_init_hw_port()
17646 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER, 1); in bxe_init_hw_port()
17664 REG_WR(sc, TM_REG_LIN0_SCAN_TIME + port*4, 20); in bxe_init_hw_port()
17665 REG_WR(sc, TM_REG_LIN0_MAX_ACTIVE_CID + port*4, 31); in bxe_init_hw_port()
17687 REG_WR(sc, BRB1_REG_PAUSE_LOW_THRESHOLD_0 + port*4, low); in bxe_init_hw_port()
17688 REG_WR(sc, BRB1_REG_PAUSE_HIGH_THRESHOLD_0 + port*4, high); in bxe_init_hw_port()
17692 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17701 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17704 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17707 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17715 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17739 REG_WR(sc, PBF_REG_P0_PAUSE_ENABLE + port*4, 0); in bxe_init_hw_port()
17742 REG_WR(sc, PBF_REG_P0_ARB_THRSH + port*4, (9040/16)); in bxe_init_hw_port()
17744 REG_WR(sc, PBF_REG_P0_INIT_CRD + port*4, (9040/16) + 553 - 22); in bxe_init_hw_port()
17747 REG_WR(sc, PBF_REG_INIT_P0 + port*4, 1); in bxe_init_hw_port()
17749 REG_WR(sc, PBF_REG_INIT_P0 + port*4, 0); in bxe_init_hw_port()
17760 REG_WR(sc, HC_REG_LEADING_EDGE_0 + port*8, 0); in bxe_init_hw_port()
17761 REG_WR(sc, HC_REG_TRAILING_EDGE_0 + port*8, 0); in bxe_init_hw_port()
17775 REG_WR(sc, MISC_REG_AEU_MASK_ATTN_FUNC_0 + port*4, val); in bxe_init_hw_port()
17784 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17788 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17795 REG_WR(sc, SC_PORT(sc) ? in bxe_init_hw_port()
17801 REG_WR(sc, NIG_REG_XGXS_SERDES0_MODE_SEL + port*4, 1); in bxe_init_hw_port()
17806 REG_WR(sc, NIG_REG_LLH0_BRB1_DRV_MASK_MF + port*4, in bxe_init_hw_port()
17821 REG_WR(sc, (SC_PORT(sc) ? NIG_REG_LLH1_CLS_TYPE : in bxe_init_hw_port()
17824 REG_WR(sc, NIG_REG_LLFC_ENABLE_0 + port*4, 0); in bxe_init_hw_port()
17825 REG_WR(sc, NIG_REG_LLFC_OUT_EN_0 + port*4, 0); in bxe_init_hw_port()
17826 REG_WR(sc, NIG_REG_PAUSE_ENABLE_0 + port*4, 1); in bxe_init_hw_port()
17836 REG_WR(sc, reg_addr, val); in bxe_init_hw_port()
17972 REG_WR(sc, XSDM_REG_OPERATION_GEN, op_gen_command); in bxe_send_final_clnup()
17983 REG_WR(sc, comp_addr, 0); in bxe_send_final_clnup()
18160 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ, 1); in bxe_pf_flr_clnup()
18195 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER, 1); in bxe_pf_flr_clnup()
18230 REG_WR(sc, addr, val); in bxe_init_hw_func()
18248 REG_WR(sc, PRS_REG_NIC_MODE, 1); in bxe_init_hw_func()
18274 REG_WR(sc, PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER, 1); in bxe_init_hw_func()
18276 REG_WR(sc, IGU_REG_PF_CONFIGURATION, pf_conf); in bxe_init_hw_func()
18284 REG_WR(sc, PGLUE_B_REG_WAS_ERROR_PF_7_0_CLR, func); in bxe_init_hw_func()
18301 REG_WR(sc, QM_REG_PF_EN, 1); in bxe_init_hw_func()
18304 REG_WR(sc, TSEM_REG_VFPF_ERR_NUM, BXE_MAX_NUM_OF_VFS + func); in bxe_init_hw_func()
18305 REG_WR(sc, USEM_REG_VFPF_ERR_NUM, BXE_MAX_NUM_OF_VFS + func); in bxe_init_hw_func()
18306 REG_WR(sc, CSEM_REG_VFPF_ERR_NUM, BXE_MAX_NUM_OF_VFS + func); in bxe_init_hw_func()
18307 REG_WR(sc, XSEM_REG_VFPF_ERR_NUM, BXE_MAX_NUM_OF_VFS + func); in bxe_init_hw_func()
18326 REG_WR(sc, PBF_REG_DISABLE_PF, 0); in bxe_init_hw_func()
18333 REG_WR(sc, CFC_REG_WEAK_ENABLE_PF, 1); in bxe_init_hw_func()
18336 REG_WR(sc, NIG_REG_LLH0_FUNC_EN + port*8, 1); in bxe_init_hw_func()
18337 REG_WR(sc, NIG_REG_LLH0_FUNC_VLAN_ID + port*8, OVLAN(sc)); in bxe_init_hw_func()
18345 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_12 + func*4, 0); in bxe_init_hw_func()
18347 REG_WR(sc, HC_REG_LEADING_EDGE_0 + port*8, 0); in bxe_init_hw_func()
18348 REG_WR(sc, HC_REG_TRAILING_EDGE_0 + port*8, 0); in bxe_init_hw_func()
18355 REG_WR(sc, MISC_REG_AEU_GENERAL_ATTN_12 + func*4, 0); in bxe_init_hw_func()
18358 REG_WR(sc, IGU_REG_LEADING_EDGE_LATCH, 0); in bxe_init_hw_func()
18359 REG_WR(sc, IGU_REG_TRAILING_EDGE_LATCH, 0); in bxe_init_hw_func()
18396 REG_WR(sc, addr, 0); in bxe_init_hw_func()
18425 REG_WR(sc, addr, 0); in bxe_init_hw_func()
18449 REG_WR(sc, IGU_REG_SB_INT_BEFORE_MASK_LSB, 0); in bxe_init_hw_func()
18450 REG_WR(sc, IGU_REG_SB_INT_BEFORE_MASK_MSB, 0); in bxe_init_hw_func()
18451 REG_WR(sc, IGU_REG_SB_MASK_LSB, 0); in bxe_init_hw_func()
18452 REG_WR(sc, IGU_REG_SB_MASK_MSB, 0); in bxe_init_hw_func()
18453 REG_WR(sc, IGU_REG_PBA_STATUS_LSB, 0); in bxe_init_hw_func()
18454 REG_WR(sc, IGU_REG_PBA_STATUS_MSB, 0); in bxe_init_hw_func()
18459 REG_WR(sc, 0x2114, 0xffffffff); in bxe_init_hw_func()
18460 REG_WR(sc, 0x2120, 0xffffffff); in bxe_init_hw_func()
18529 REG_WR(sc, NIG_REG_MASK_INTERRUPT_PORT0 + port*4, 0); in bxe_reset_port()
18532 REG_WR(sc, NIG_REG_LLH0_BRB1_DRV_MASK + port*4, 0x0); in bxe_reset_port()
18534 REG_WR(sc, (port ? NIG_REG_LLH1_BRB1_NOT_MCP : in bxe_reset_port()
18538 REG_WR(sc, MISC_REG_AEU_MASK_ATTN_FUNC_0 + port*4, 0); in bxe_reset_port()
18609 REG_WR(sc, BAR_XSTRORM_INTMEM + XSTORM_SPQ_DATA_OFFSET(func), 0); in bxe_reset_func()
18614 REG_WR(sc, HC_REG_LEADING_EDGE_0 + port*8, 0); in bxe_reset_func()
18615 REG_WR(sc, HC_REG_TRAILING_EDGE_0 + port*8, 0); in bxe_reset_func()
18617 REG_WR(sc, IGU_REG_LEADING_EDGE_LATCH, 0); in bxe_reset_func()
18618 REG_WR(sc, IGU_REG_TRAILING_EDGE_LATCH, 0); in bxe_reset_func()
18623 REG_WR(sc, TM_REG_EN_LINEAR0_TIMER + port*4, 0); in bxe_reset_func()
18735 REG_WR(sc, addr + (i * 4), data[i]); in ecore_storm_memset_struct()
18937 REG_WR(sc, write_addr[j], page_addr[i]); in bxe_read_pages_regs()
19499 REG_WR(sc, reg_rdw_p->reg_id, reg_rdw_p->reg_val); in bxe_eioctl()