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()
6206 struct bnx2x *bp; in bnx2x_get_ext_phy_fw_version()
6247 struct bnx2x *bp = params->bp; in bnx2x_set_xgxs_loopback()
6307 struct bnx2x *bp = params->bp; in bnx2x_set_led()
6450 struct bnx2x *bp = params->bp; in bnx2x_test_link()
6532 struct bnx2x *bp = params->bp; in bnx2x_link_initialize()
6617 struct bnx2x *bp = params->bp; in bnx2x_common_ext_link_reset()
6636 struct bnx2x *bp = params->bp; in bnx2x_update_link_down()
6684 struct bnx2x *bp = params->bp; in bnx2x_update_link_up()
6773 struct bnx2x *bp = params->bp; in bnx2x_chng_link_count()
6803 struct bnx2x *bp = params->bp; in bnx2x_link_update()
7061 void bnx2x_ext_phy_hw_reset(struct bnx2x *bp, u8 port) in bnx2x_ext_phy_hw_reset()
7070 static void bnx2x_save_spirom_version(struct bnx2x *bp, u8 port, in bnx2x_save_spirom_version()
7080 static void bnx2x_save_bcm_spirom_ver(struct bnx2x *bp, in bnx2x_save_bcm_spirom_ver()
7094 static void bnx2x_ext_phy_10G_an_resolve(struct bnx2x *bp, in bnx2x_ext_phy_10G_an_resolve()
7118 struct bnx2x *bp = params->bp; in bnx2x_8073_resolve_fc()
7147 static int bnx2x_8073_8727_external_rom_boot(struct bnx2x *bp, in bnx2x_8073_8727_external_rom_boot()
7228 static int bnx2x_8073_is_snr_needed(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_8073_is_snr_needed()
7254 static int bnx2x_8073_xaui_wa(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_8073_xaui_wa()
7310 static void bnx2x_807x_force_10G(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_807x_force_10G()
7328 struct bnx2x *bp = params->bp; in bnx2x_8073_set_pause_cl37()
7362 struct bnx2x *bp = params->bp; in bnx2x_8073_specific_func()
7378 struct bnx2x *bp = params->bp; in bnx2x_8073_config_init()
7525 struct bnx2x *bp = params->bp; in bnx2x_8073_read_status()
7669 struct bnx2x *bp = params->bp; in bnx2x_8073_link_reset()
7689 struct bnx2x *bp = params->bp; in bnx2x_8705_config_init()
7717 struct bnx2x *bp = params->bp; in bnx2x_8705_read_status()
7751 struct bnx2x *bp = params->bp; in bnx2x_set_disable_pmd_transmit()
7774 struct bnx2x *bp = params->bp; in bnx2x_get_gpio_port()
7790 struct bnx2x *bp = params->bp; in bnx2x_sfp_e1e2_set_transmitter()
7845 struct bnx2x *bp = params->bp; in bnx2x_sfp_set_transmitter()
7858 struct bnx2x *bp = params->bp; in bnx2x_8726_read_sfp_module_eeprom()
7924 struct bnx2x *bp = params->bp; in bnx2x_warpcore_power_module()
7951 struct bnx2x *bp = params->bp; in bnx2x_warpcore_read_sfp_module_eeprom()
7987 struct bnx2x *bp = params->bp; in bnx2x_8727_read_sfp_module_eeprom()
8082 struct bnx2x *bp = params->bp; in bnx2x_read_sfp_module_eeprom()
8123 struct bnx2x *bp = params->bp; in bnx2x_get_edc_mode()
8264 struct bnx2x *bp = params->bp; in bnx2x_verify_sfp_module()
8341 struct bnx2x *bp = params->bp; in bnx2x_wait_for_sfp_module_initialized()
8369 static void bnx2x_8727_power_module(struct bnx2x *bp, in bnx2x_8727_power_module()
8401 static int bnx2x_8726_set_limiting_mode(struct bnx2x *bp, in bnx2x_8726_set_limiting_mode()
8450 static int bnx2x_8727_set_limiting_mode(struct bnx2x *bp, in bnx2x_8727_set_limiting_mode()
8488 struct bnx2x *bp = params->bp; in bnx2x_8727_specific_func()
8533 struct bnx2x *bp = params->bp; in bnx2x_set_e1e2_module_fault_led()
8567 struct bnx2x *bp = params->bp; in bnx2x_set_e3_module_fault_led()
8581 struct bnx2x *bp = params->bp; in bnx2x_set_sfp_module_fault_led()
8595 struct bnx2x *bp = params->bp; in bnx2x_warpcore_hw_reset()
8610 struct bnx2x *bp = params->bp; in bnx2x_power_sfp_module()
8631 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_limiting_mode()
8686 struct bnx2x *bp = params->bp; in bnx2x_sfp_module_detection()
8740 struct bnx2x *bp = params->bp; in bnx2x_handle_module_detect_int()
8810 static void bnx2x_sfp_mask_fault(struct bnx2x *bp, in bnx2x_sfp_mask_fault()
8839 struct bnx2x *bp = params->bp; in bnx2x_8706_8726_read_status()
8901 struct bnx2x *bp = params->bp; in bnx2x_8706_config_init()
9012 struct bnx2x *bp = params->bp; in bnx2x_8726_config_loopback()
9020 struct bnx2x *bp = params->bp; in bnx2x_8726_external_rom_boot()
9059 struct bnx2x *bp = params->bp; in bnx2x_8726_read_status()
9080 struct bnx2x *bp = params->bp; in bnx2x_8726_config_init()
9161 struct bnx2x *bp = params->bp; in bnx2x_8726_link_reset()
9176 struct bnx2x *bp = params->bp; in bnx2x_8727_set_link_led()
9226 struct bnx2x *bp = params->bp; in bnx2x_8727_hw_reset()
9237 struct bnx2x *bp = params->bp; in bnx2x_8727_config_speed()
9297 struct bnx2x *bp = params->bp; in bnx2x_8727_config_init()
9378 struct bnx2x *bp = params->bp; in bnx2x_8727_handle_mod_abs()
9465 struct bnx2x *bp = params->bp; in bnx2x_8727_read_status()
9622 struct bnx2x *bp = params->bp; in bnx2x_8727_link_reset()
9645 struct bnx2x *bp, in bnx2x_save_848xx_spirom_version()
9713 static void bnx2x_848xx_set_led(struct bnx2x *bp, in bnx2x_848xx_set_led()
9782 struct bnx2x *bp = params->bp; in bnx2x_848xx_specific_func()
9805 struct bnx2x *bp = params->bp; in bnx2x_848xx_cmn_config_init()
9951 struct bnx2x *bp = params->bp; in bnx2x_8481_config_init()
9974 struct bnx2x *bp = params->bp; in bnx2x_84858_cmd_hdlr()
10050 struct bnx2x *bp = params->bp; in bnx2x_84833_cmd_hdlr()
10128 struct bnx2x *bp = params->bp; in bnx2x_848xx_cmd_hdlr()
10150 struct bnx2x *bp = params->bp; in bnx2x_848xx_pair_swap_cfg()
10173 static u8 bnx2x_84833_get_reset_gpios(struct bnx2x *bp, in bnx2x_84833_get_reset_gpios()
10214 struct bnx2x *bp = params->bp; in bnx2x_84833_hw_reset_phy()
10247 struct bnx2x *bp = params->bp; in bnx2x_8483x_disable_eee()
10268 struct bnx2x *bp = params->bp; in bnx2x_8483x_enable_eee()
10286 struct bnx2x *bp = params->bp; in bnx2x_848x3_config_init()
10486 struct bnx2x *bp = params->bp; in bnx2x_848xx_read_status()
10649 struct bnx2x *bp = params->bp; in bnx2x_848x3_link_reset()
10676 struct bnx2x *bp = params->bp; in bnx2x_848xx_set_link_led()
11011 struct bnx2x *bp = params->bp; in bnx2x_54618se_specific_func()
11040 struct bnx2x *bp = params->bp; in bnx2x_54618se_config_init()
11244 struct bnx2x *bp = params->bp; in bnx2x_5461x_set_link_led()
11280 struct bnx2x *bp = params->bp; in bnx2x_54618se_link_reset()
11306 struct bnx2x *bp = params->bp; in bnx2x_54618se_read_status()
11412 struct bnx2x *bp = params->bp; in bnx2x_54618se_config_loopback()
11455 struct bnx2x *bp = params->bp; in bnx2x_7101_config_loopback()
11466 struct bnx2x *bp = params->bp; in bnx2x_7101_config_init()
11504 struct bnx2x *bp = params->bp; in bnx2x_7101_read_status()
11553 void bnx2x_sfx7101_sp_sw_reset(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_sfx7101_sp_sw_reset()
11592 struct bnx2x *bp = params->bp; in bnx2x_7101_set_link_led()
12146 static void bnx2x_populate_preemphasis(struct bnx2x *bp, u32 shmem_base, in bnx2x_populate_preemphasis()
12183 static u32 bnx2x_get_ext_phy_config(struct bnx2x *bp, u32 shmem_base, in bnx2x_get_ext_phy_config()
12205 static int bnx2x_populate_int_phy(struct bnx2x *bp, u32 shmem_base, u8 port, in bnx2x_populate_int_phy()
12342 static int bnx2x_populate_ext_phy(struct bnx2x *bp, in bnx2x_populate_ext_phy()
12470 static int bnx2x_populate_phy(struct bnx2x *bp, u8 phy_index, u32 shmem_base, in bnx2x_populate_phy()
12485 struct bnx2x *bp = params->bp; in bnx2x_phy_def_cfg()
12592 struct bnx2x *bp = params->bp; in bnx2x_phy_probe()
12665 struct bnx2x *bp = params->bp; in bnx2x_init_bmac_loopback()
12685 struct bnx2x *bp = params->bp; in bnx2x_init_emac_loopback()
12704 struct bnx2x *bp = params->bp; in bnx2x_init_xmac_loopback()
12730 struct bnx2x *bp = params->bp; in bnx2x_init_umac_loopback()
12745 struct bnx2x *bp = params->bp; in bnx2x_init_xgxs_loopback()
12796 struct bnx2x *bp = params->bp; in bnx2x_set_rx_filter()
12817 struct bnx2x *bp = params->bp; in bnx2x_avoid_link_flap()
12892 struct bnx2x *bp = params->bp; in bnx2x_cannot_avoid_link_flap()
12950 struct bnx2x *bp = params->bp; in bnx2x_phy_init()
13039 struct bnx2x *bp = params->bp; in bnx2x_link_reset()
13130 struct bnx2x *bp = params->bp; in bnx2x_lfa_reset()
13182 static int bnx2x_8073_common_init_phy(struct bnx2x *bp, in bnx2x_8073_common_init_phy()
13308 static int bnx2x_8726_common_init_phy(struct bnx2x *bp, in bnx2x_8726_common_init_phy()
13357 static void bnx2x_get_ext_phy_reset_gpio(struct bnx2x *bp, u32 shmem_base, in bnx2x_get_ext_phy_reset_gpio()
13403 static int bnx2x_8727_common_init_phy(struct bnx2x *bp, in bnx2x_8727_common_init_phy()
13502 static int bnx2x_84833_common_init_phy(struct bnx2x *bp, in bnx2x_84833_common_init_phy()
13518 static int bnx2x_ext_phy_common_init(struct bnx2x *bp, u32 shmem_base_path[], in bnx2x_ext_phy_common_init()
13573 int bnx2x_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[], in bnx2x_common_init_phy()
13617 struct bnx2x *bp = params->bp; in bnx2x_check_over_curr()
13654 struct bnx2x *bp = params->bp; in bnx2x_analyze_link_error()
13733 struct bnx2x *bp = params->bp; in bnx2x_check_half_open_conn()
13788 struct bnx2x *bp = params->bp; in bnx2x_sfp_tx_fault_detection()
13831 struct bnx2x *bp = params->bp; in bnx2x_kr2_recovery()
13841 struct bnx2x *bp = params->bp; in bnx2x_check_kr2_wa()
13913 struct bnx2x *bp = params->bp; in bnx2x_period_func()
13955 u8 bnx2x_fan_failure_det_req(struct bnx2x *bp, in bnx2x_fan_failure_det_req()
13979 struct bnx2x *bp = params->bp; in bnx2x_hw_reset_phy()
13998 void bnx2x_init_mod_abs_int(struct bnx2x *bp, struct link_vars *vars, in bnx2x_init_mod_abs_int()