Lines Matching refs:bnx2x

220 static u32 bnx2x_bits_en(struct bnx2x *bp, u32 reg, u32 bits)  in bnx2x_bits_en()
229 static u32 bnx2x_bits_dis(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_dis()
251 struct bnx2x *bp = params->bp; in bnx2x_check_lfa()
368 static void bnx2x_get_epio(struct bnx2x *bp, u32 epio_pin, u32 *en) in bnx2x_get_epio()
385 static void bnx2x_set_epio(struct bnx2x *bp, u32 epio_pin, u32 en) in bnx2x_set_epio()
410 static void bnx2x_set_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 val) in bnx2x_set_cfg_pin()
423 static u32 bnx2x_get_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 *val) in bnx2x_get_cfg_pin()
443 struct bnx2x *bp = params->bp; in bnx2x_ets_e2e3a0_disabled()
534 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_set_credit_upper_bound_nig()
572 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_nig_disabled()
656 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_set_credit_upper_bound_pbf()
688 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_pbf_disabled()
747 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_disabled()
770 struct bnx2x *bp = params->bp; in bnx2x_ets_disabled()
795 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_cli_map()
824 static int bnx2x_ets_e3b0_set_cos_bw(struct bnx2x *bp, in bnx2x_ets_e3b0_set_cos_bw()
897 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_get_total_bw()
957 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_sp_pri_to_cos_set()
1038 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_sp_set_pri_cli_reg()
1132 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_config()
1233 struct bnx2x *bp = params->bp; in bnx2x_ets_bw_limit_common()
1278 struct bnx2x *bp = params->bp; in bnx2x_ets_bw_limit()
1309 struct bnx2x *bp = params->bp; in bnx2x_ets_strict()
1353 struct bnx2x *bp = params->bp; in bnx2x_update_pfc_xmac()
1413 static void bnx2x_set_mdio_clk(struct bnx2x *bp, u32 chip_id, in bnx2x_set_mdio_clk()
1443 static void bnx2x_set_mdio_emac_per_phy(struct bnx2x *bp, in bnx2x_set_mdio_emac_per_phy()
1454 static u8 bnx2x_is_4_port_mode(struct bnx2x *bp) in bnx2x_is_4_port_mode()
1471 struct bnx2x *bp = params->bp; in bnx2x_emac_init()
1516 struct bnx2x *bp = params->bp; in bnx2x_set_xumac_nig()
1530 struct bnx2x *bp = params->bp; in bnx2x_set_umac_rxtx()
1550 struct bnx2x *bp = params->bp; in bnx2x_umac_enable()
1646 struct bnx2x *bp = params->bp; in bnx2x_xmac_init()
1709 struct bnx2x *bp = params->bp; in bnx2x_set_xmac_rxtx()
1738 struct bnx2x *bp = params->bp; in bnx2x_xmac_enable()
1807 struct bnx2x *bp = params->bp; in bnx2x_emac_enable()
1941 struct bnx2x *bp = params->bp; in bnx2x_update_pfc_bmac1()
1974 struct bnx2x *bp = params->bp; in bnx2x_update_pfc_bmac2()
2056 static int bnx2x_pfc_nig_rx_priority_mask(struct bnx2x *bp, in bnx2x_pfc_nig_rx_priority_mask()
2101 struct bnx2x *bp = params->bp; in bnx2x_update_mng()
2110 struct bnx2x *bp = params->bp; in bnx2x_update_link_attr()
2125 struct bnx2x *bp = params->bp; in bnx2x_update_pfc_nig()
2223 struct bnx2x *bp = params->bp; in bnx2x_update_pfc()
2272 struct bnx2x *bp = params->bp; in bnx2x_bmac1_enable()
2336 struct bnx2x *bp = params->bp; in bnx2x_bmac2_enable()
2403 struct bnx2x *bp = params->bp; in bnx2x_bmac_enable()
2442 static void bnx2x_set_bmac_rx(struct bnx2x *bp, u32 chip_id, u8 port, u8 en) in bnx2x_set_bmac_rx()
2471 struct bnx2x *bp = params->bp; in bnx2x_pbf_update()
2553 static u32 bnx2x_get_emac_base(struct bnx2x *bp, in bnx2x_get_emac_base()
2588 static int bnx2x_cl22_write(struct bnx2x *bp, in bnx2x_cl22_write()
2623 static int bnx2x_cl22_read(struct bnx2x *bp, in bnx2x_cl22_read()
2665 static int bnx2x_cl45_read(struct bnx2x *bp, struct bnx2x_phy *phy, in bnx2x_cl45_read()
2740 static int bnx2x_cl45_write(struct bnx2x *bp, struct bnx2x_phy *phy, in bnx2x_cl45_write()
2818 struct bnx2x *bp = params->bp; in bnx2x_eee_has_cap()
2870 struct bnx2x *bp = params->bp; in bnx2x_eee_calc_timer()
2903 struct bnx2x *bp = params->bp; in bnx2x_eee_set_timers()
2955 struct bnx2x *bp = params->bp; in bnx2x_eee_disable()
2971 struct bnx2x *bp = params->bp; in bnx2x_eee_advertise()
2996 struct bnx2x *bp = params->bp; in bnx2x_update_mng_eee()
3008 struct bnx2x *bp = params->bp; in bnx2x_eee_an_resolve()
3059 struct bnx2x *bp = params->bp; in bnx2x_bsc_module_sel()
3081 struct bnx2x *bp, in bnx2x_bsc_read()
3171 static void bnx2x_cl45_read_or_write(struct bnx2x *bp, struct bnx2x_phy *phy, in bnx2x_cl45_read_or_write()
3179 static void bnx2x_cl45_read_and_write(struct bnx2x *bp, in bnx2x_cl45_read_and_write()
3225 struct bnx2x *bp = params->bp; in bnx2x_get_warpcore_lane()
3280 struct bnx2x *bp = params->bp; in bnx2x_set_aer_mmd()
3312 static void bnx2x_set_serdes_access(struct bnx2x *bp, u8 port) in bnx2x_set_serdes_access()
3326 static void bnx2x_serdes_deassert(struct bnx2x *bp, u8 port) in bnx2x_serdes_deassert()
3349 struct bnx2x *bp = params->bp; in bnx2x_xgxs_specific_func()
3362 struct bnx2x *bp = params->bp; in bnx2x_xgxs_deassert()
3381 struct bnx2x *bp = params->bp; in bnx2x_calc_ieee_aneg_adv()
3422 struct bnx2x *bp = params->bp; in set_phy_vars()
3465 struct bnx2x *bp = params->bp; in bnx2x_ext_phy_set_pause()
3492 struct bnx2x *bp = params->bp; in bnx2x_pause_resolve()
3541 struct bnx2x *bp = params->bp; in bnx2x_ext_phy_update_adv_fc()
3632 struct bnx2x *bp = params->bp; in bnx2x_warpcore_enable_AN_KR2()
3671 struct bnx2x *bp = params->bp; in bnx2x_disable_kr2()
3705 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_lpi_passthrough()
3718 struct bnx2x *bp = params->bp; in bnx2x_warpcore_restart_AN_KR()
3734 struct bnx2x *bp = params->bp; in bnx2x_warpcore_enable_AN_KR()
3885 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_10G_KR()
3953 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_10G_XFI()
4089 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_20G_force_KR2()
4138 static void bnx2x_warpcore_set_20G_DXGXS(struct bnx2x *bp, in bnx2x_warpcore_set_20G_DXGXS()
4197 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_sgmii_speed()
4274 static void bnx2x_warpcore_reset_lane(struct bnx2x *bp, in bnx2x_warpcore_reset_lane()
4296 struct bnx2x *bp = params->bp; in bnx2x_warpcore_clear_regs()
4328 static int bnx2x_get_mod_abs_int_cfg(struct bnx2x *bp, in bnx2x_get_mod_abs_int_cfg()
4370 struct bnx2x *bp = params->bp; in bnx2x_is_sfp_module_plugged()
4389 struct bnx2x *bp = params->bp; in bnx2x_warpcore_get_sigdet()
4403 struct bnx2x *bp = params->bp; in bnx2x_warpcore_config_runtime()
4456 struct bnx2x *bp = params->bp; in bnx2x_warpcore_config_sfi()
4473 struct bnx2x *bp = params->bp; in bnx2x_sfp_e3_set_transmitter()
4494 struct bnx2x *bp = params->bp; in bnx2x_warpcore_config_init()
4601 struct bnx2x *bp = params->bp; in bnx2x_warpcore_link_reset()
4656 struct bnx2x *bp = params->bp; in bnx2x_set_warpcore_loopback()
4701 struct bnx2x *bp = params->bp; in bnx2x_sync_link()
4807 struct bnx2x *bp = params->bp; in bnx2x_link_status_update()
4874 struct bnx2x *bp = params->bp; in bnx2x_set_master_ln()
4896 struct bnx2x *bp = params->bp; in bnx2x_reset_unicore()
4939 struct bnx2x *bp = params->bp; in bnx2x_set_swap_lanes()
4981 struct bnx2x *bp = params->bp; in bnx2x_set_parallel_detection()
5036 struct bnx2x *bp = params->bp; in bnx2x_set_autoneg()
5139 struct bnx2x *bp = params->bp; in bnx2x_program_serdes()
5187 struct bnx2x *bp = params->bp; in bnx2x_set_brcm_cl37_advertisement()
5208 struct bnx2x *bp = params->bp; in bnx2x_set_ieee_aneg_advertisement()
5229 struct bnx2x *bp = params->bp; in bnx2x_restart_autoneg()
5269 struct bnx2x *bp = params->bp; in bnx2x_initialize_sgmii_process()
5340 struct bnx2x *bp = params->bp; in bnx2x_direct_parallel_detect_used()
5379 struct bnx2x *bp = params->bp; in bnx2x_update_adv_fc()
5423 struct bnx2x *bp = params->bp; in bnx2x_flow_ctrl_resolve()
5449 struct bnx2x *bp = params->bp; in bnx2x_check_fallback_to_cl37()
5534 struct bnx2x *bp = params->bp; in bnx2x_get_link_speed_duplex()
5622 struct bnx2x *bp = params->bp; in bnx2x_link_settings_status()
5696 struct bnx2x *bp = params->bp; in bnx2x_warpcore_read_status()
5819 struct bnx2x *bp = params->bp; in bnx2x_set_gmii_tx_driver()
5859 struct bnx2x *bp = params->bp; in bnx2x_emac_program()
5908 struct bnx2x *bp = params->bp; in bnx2x_set_preemphasis()
5931 struct bnx2x *bp = params->bp; in bnx2x_xgxs_config_init()
6015 static u16 bnx2x_wait_reset_complete(struct bnx2x *bp, in bnx2x_wait_reset_complete()
6046 struct bnx2x *bp = params->bp; in bnx2x_link_int_enable()
6090 static void bnx2x_rearm_latch_signal(struct bnx2x *bp, u8 port, in bnx2x_rearm_latch_signal()
6127 struct bnx2x *bp = params->bp; in bnx2x_link_int_ack()
6204 struct bnx2x *bp; in bnx2x_get_ext_phy_fw_version()
6245 struct bnx2x *bp = params->bp; in bnx2x_set_xgxs_loopback()
6305 struct bnx2x *bp = params->bp; in bnx2x_set_led()
6448 struct bnx2x *bp = params->bp; in bnx2x_test_link()
6530 struct bnx2x *bp = params->bp; in bnx2x_link_initialize()
6615 struct bnx2x *bp = params->bp; in bnx2x_common_ext_link_reset()
6634 struct bnx2x *bp = params->bp; in bnx2x_update_link_down()
6682 struct bnx2x *bp = params->bp; in bnx2x_update_link_up()
6771 struct bnx2x *bp = params->bp; in bnx2x_chng_link_count()
6801 struct bnx2x *bp = params->bp; in bnx2x_link_update()
7059 void bnx2x_ext_phy_hw_reset(struct bnx2x *bp, u8 port) in bnx2x_ext_phy_hw_reset()
7068 static void bnx2x_save_spirom_version(struct bnx2x *bp, u8 port, in bnx2x_save_spirom_version()
7078 static void bnx2x_save_bcm_spirom_ver(struct bnx2x *bp, in bnx2x_save_bcm_spirom_ver()
7092 static void bnx2x_ext_phy_10G_an_resolve(struct bnx2x *bp, in bnx2x_ext_phy_10G_an_resolve()
7116 struct bnx2x *bp = params->bp; in bnx2x_8073_resolve_fc()
7145 static int bnx2x_8073_8727_external_rom_boot(struct bnx2x *bp, in bnx2x_8073_8727_external_rom_boot()
7226 static int bnx2x_8073_is_snr_needed(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_8073_is_snr_needed()
7252 static int bnx2x_8073_xaui_wa(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_8073_xaui_wa()
7308 static void bnx2x_807x_force_10G(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_807x_force_10G()
7326 struct bnx2x *bp = params->bp; in bnx2x_8073_set_pause_cl37()
7360 struct bnx2x *bp = params->bp; in bnx2x_8073_specific_func()
7376 struct bnx2x *bp = params->bp; in bnx2x_8073_config_init()
7523 struct bnx2x *bp = params->bp; in bnx2x_8073_read_status()
7667 struct bnx2x *bp = params->bp; in bnx2x_8073_link_reset()
7687 struct bnx2x *bp = params->bp; in bnx2x_8705_config_init()
7715 struct bnx2x *bp = params->bp; in bnx2x_8705_read_status()
7749 struct bnx2x *bp = params->bp; in bnx2x_set_disable_pmd_transmit()
7772 struct bnx2x *bp = params->bp; in bnx2x_get_gpio_port()
7788 struct bnx2x *bp = params->bp; in bnx2x_sfp_e1e2_set_transmitter()
7843 struct bnx2x *bp = params->bp; in bnx2x_sfp_set_transmitter()
7856 struct bnx2x *bp = params->bp; in bnx2x_8726_read_sfp_module_eeprom()
7922 struct bnx2x *bp = params->bp; in bnx2x_warpcore_power_module()
7949 struct bnx2x *bp = params->bp; in bnx2x_warpcore_read_sfp_module_eeprom()
7985 struct bnx2x *bp = params->bp; in bnx2x_8727_read_sfp_module_eeprom()
8080 struct bnx2x *bp = params->bp; in bnx2x_read_sfp_module_eeprom()
8121 struct bnx2x *bp = params->bp; in bnx2x_get_edc_mode()
8262 struct bnx2x *bp = params->bp; in bnx2x_verify_sfp_module()
8339 struct bnx2x *bp = params->bp; in bnx2x_wait_for_sfp_module_initialized()
8367 static void bnx2x_8727_power_module(struct bnx2x *bp, in bnx2x_8727_power_module()
8399 static int bnx2x_8726_set_limiting_mode(struct bnx2x *bp, in bnx2x_8726_set_limiting_mode()
8448 static int bnx2x_8727_set_limiting_mode(struct bnx2x *bp, in bnx2x_8727_set_limiting_mode()
8486 struct bnx2x *bp = params->bp; in bnx2x_8727_specific_func()
8531 struct bnx2x *bp = params->bp; in bnx2x_set_e1e2_module_fault_led()
8565 struct bnx2x *bp = params->bp; in bnx2x_set_e3_module_fault_led()
8579 struct bnx2x *bp = params->bp; in bnx2x_set_sfp_module_fault_led()
8593 struct bnx2x *bp = params->bp; in bnx2x_warpcore_hw_reset()
8608 struct bnx2x *bp = params->bp; in bnx2x_power_sfp_module()
8629 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_limiting_mode()
8684 struct bnx2x *bp = params->bp; in bnx2x_sfp_module_detection()
8738 struct bnx2x *bp = params->bp; in bnx2x_handle_module_detect_int()
8808 static void bnx2x_sfp_mask_fault(struct bnx2x *bp, in bnx2x_sfp_mask_fault()
8837 struct bnx2x *bp = params->bp; in bnx2x_8706_8726_read_status()
8899 struct bnx2x *bp = params->bp; in bnx2x_8706_config_init()
9010 struct bnx2x *bp = params->bp; in bnx2x_8726_config_loopback()
9018 struct bnx2x *bp = params->bp; in bnx2x_8726_external_rom_boot()
9057 struct bnx2x *bp = params->bp; in bnx2x_8726_read_status()
9078 struct bnx2x *bp = params->bp; in bnx2x_8726_config_init()
9159 struct bnx2x *bp = params->bp; in bnx2x_8726_link_reset()
9174 struct bnx2x *bp = params->bp; in bnx2x_8727_set_link_led()
9224 struct bnx2x *bp = params->bp; in bnx2x_8727_hw_reset()
9235 struct bnx2x *bp = params->bp; in bnx2x_8727_config_speed()
9295 struct bnx2x *bp = params->bp; in bnx2x_8727_config_init()
9376 struct bnx2x *bp = params->bp; in bnx2x_8727_handle_mod_abs()
9463 struct bnx2x *bp = params->bp; in bnx2x_8727_read_status()
9620 struct bnx2x *bp = params->bp; in bnx2x_8727_link_reset()
9643 struct bnx2x *bp, in bnx2x_save_848xx_spirom_version()
9711 static void bnx2x_848xx_set_led(struct bnx2x *bp, in bnx2x_848xx_set_led()
9780 struct bnx2x *bp = params->bp; in bnx2x_848xx_specific_func()
9803 struct bnx2x *bp = params->bp; in bnx2x_848xx_cmn_config_init()
9949 struct bnx2x *bp = params->bp; in bnx2x_8481_config_init()
9972 struct bnx2x *bp = params->bp; in bnx2x_84858_cmd_hdlr()
10048 struct bnx2x *bp = params->bp; in bnx2x_84833_cmd_hdlr()
10126 struct bnx2x *bp = params->bp; in bnx2x_848xx_cmd_hdlr()
10148 struct bnx2x *bp = params->bp; in bnx2x_848xx_pair_swap_cfg()
10171 static u8 bnx2x_84833_get_reset_gpios(struct bnx2x *bp, in bnx2x_84833_get_reset_gpios()
10212 struct bnx2x *bp = params->bp; in bnx2x_84833_hw_reset_phy()
10245 struct bnx2x *bp = params->bp; in bnx2x_8483x_disable_eee()
10266 struct bnx2x *bp = params->bp; in bnx2x_8483x_enable_eee()
10284 struct bnx2x *bp = params->bp; in bnx2x_848x3_config_init()
10484 struct bnx2x *bp = params->bp; in bnx2x_848xx_read_status()
10647 struct bnx2x *bp = params->bp; in bnx2x_848x3_link_reset()
10674 struct bnx2x *bp = params->bp; in bnx2x_848xx_set_link_led()
11009 struct bnx2x *bp = params->bp; in bnx2x_54618se_specific_func()
11038 struct bnx2x *bp = params->bp; in bnx2x_54618se_config_init()
11242 struct bnx2x *bp = params->bp; in bnx2x_5461x_set_link_led()
11278 struct bnx2x *bp = params->bp; in bnx2x_54618se_link_reset()
11304 struct bnx2x *bp = params->bp; in bnx2x_54618se_read_status()
11410 struct bnx2x *bp = params->bp; in bnx2x_54618se_config_loopback()
11453 struct bnx2x *bp = params->bp; in bnx2x_7101_config_loopback()
11464 struct bnx2x *bp = params->bp; in bnx2x_7101_config_init()
11502 struct bnx2x *bp = params->bp; in bnx2x_7101_read_status()
11551 void bnx2x_sfx7101_sp_sw_reset(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_sfx7101_sp_sw_reset()
11590 struct bnx2x *bp = params->bp; in bnx2x_7101_set_link_led()
12144 static void bnx2x_populate_preemphasis(struct bnx2x *bp, u32 shmem_base, in bnx2x_populate_preemphasis()
12181 static u32 bnx2x_get_ext_phy_config(struct bnx2x *bp, u32 shmem_base, in bnx2x_get_ext_phy_config()
12203 static int bnx2x_populate_int_phy(struct bnx2x *bp, u32 shmem_base, u8 port, in bnx2x_populate_int_phy()
12340 static int bnx2x_populate_ext_phy(struct bnx2x *bp, in bnx2x_populate_ext_phy()
12468 static int bnx2x_populate_phy(struct bnx2x *bp, u8 phy_index, u32 shmem_base, in bnx2x_populate_phy()
12483 struct bnx2x *bp = params->bp; in bnx2x_phy_def_cfg()
12590 struct bnx2x *bp = params->bp; in bnx2x_phy_probe()
12663 struct bnx2x *bp = params->bp; in bnx2x_init_bmac_loopback()
12683 struct bnx2x *bp = params->bp; in bnx2x_init_emac_loopback()
12702 struct bnx2x *bp = params->bp; in bnx2x_init_xmac_loopback()
12728 struct bnx2x *bp = params->bp; in bnx2x_init_umac_loopback()
12743 struct bnx2x *bp = params->bp; in bnx2x_init_xgxs_loopback()
12794 struct bnx2x *bp = params->bp; in bnx2x_set_rx_filter()
12815 struct bnx2x *bp = params->bp; in bnx2x_avoid_link_flap()
12890 struct bnx2x *bp = params->bp; in bnx2x_cannot_avoid_link_flap()
12948 struct bnx2x *bp = params->bp; in bnx2x_phy_init()
13037 struct bnx2x *bp = params->bp; in bnx2x_link_reset()
13128 struct bnx2x *bp = params->bp; in bnx2x_lfa_reset()
13180 static int bnx2x_8073_common_init_phy(struct bnx2x *bp, in bnx2x_8073_common_init_phy()
13306 static int bnx2x_8726_common_init_phy(struct bnx2x *bp, in bnx2x_8726_common_init_phy()
13355 static void bnx2x_get_ext_phy_reset_gpio(struct bnx2x *bp, u32 shmem_base, in bnx2x_get_ext_phy_reset_gpio()
13401 static int bnx2x_8727_common_init_phy(struct bnx2x *bp, in bnx2x_8727_common_init_phy()
13500 static int bnx2x_84833_common_init_phy(struct bnx2x *bp, in bnx2x_84833_common_init_phy()
13516 static int bnx2x_ext_phy_common_init(struct bnx2x *bp, u32 shmem_base_path[], in bnx2x_ext_phy_common_init()
13571 int bnx2x_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[], in bnx2x_common_init_phy()
13615 struct bnx2x *bp = params->bp; in bnx2x_check_over_curr()
13652 struct bnx2x *bp = params->bp; in bnx2x_analyze_link_error()
13731 struct bnx2x *bp = params->bp; in bnx2x_check_half_open_conn()
13786 struct bnx2x *bp = params->bp; in bnx2x_sfp_tx_fault_detection()
13829 struct bnx2x *bp = params->bp; in bnx2x_kr2_recovery()
13839 struct bnx2x *bp = params->bp; in bnx2x_check_kr2_wa()
13911 struct bnx2x *bp = params->bp; in bnx2x_period_func()
13953 u8 bnx2x_fan_failure_det_req(struct bnx2x *bp, in bnx2x_fan_failure_det_req()
13977 struct bnx2x *bp = params->bp; in bnx2x_hw_reset_phy()
13996 void bnx2x_init_mod_abs_int(struct bnx2x *bp, struct link_vars *vars, in bnx2x_init_mod_abs_int()