Lines Matching refs:bnx2x

226 static u32 bnx2x_bits_en(struct bnx2x *bp, u32 reg, u32 bits)  in bnx2x_bits_en()
235 static u32 bnx2x_bits_dis(struct bnx2x *bp, u32 reg, u32 bits) in bnx2x_bits_dis()
257 struct bnx2x *bp = params->bp; in bnx2x_check_lfa()
374 static void bnx2x_get_epio(struct bnx2x *bp, u32 epio_pin, u32 *en) in bnx2x_get_epio()
391 static void bnx2x_set_epio(struct bnx2x *bp, u32 epio_pin, u32 en) in bnx2x_set_epio()
416 static void bnx2x_set_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 val) in bnx2x_set_cfg_pin()
429 static u32 bnx2x_get_cfg_pin(struct bnx2x *bp, u32 pin_cfg, u32 *val) in bnx2x_get_cfg_pin()
449 struct bnx2x *bp = params->bp; in bnx2x_ets_e2e3a0_disabled()
540 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_set_credit_upper_bound_nig()
578 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_nig_disabled()
662 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_set_credit_upper_bound_pbf()
694 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_pbf_disabled()
753 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_disabled()
776 struct bnx2x *bp = params->bp; in bnx2x_ets_disabled()
801 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_cli_map()
830 static int bnx2x_ets_e3b0_set_cos_bw(struct bnx2x *bp, in bnx2x_ets_e3b0_set_cos_bw()
907 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_get_total_bw()
967 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_sp_pri_to_cos_set()
1048 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_sp_set_pri_cli_reg()
1142 struct bnx2x *bp = params->bp; in bnx2x_ets_e3b0_config()
1243 struct bnx2x *bp = params->bp; in bnx2x_ets_bw_limit_common()
1288 struct bnx2x *bp = params->bp; in bnx2x_ets_bw_limit()
1319 struct bnx2x *bp = params->bp; in bnx2x_ets_strict()
1363 struct bnx2x *bp = params->bp; in bnx2x_update_pfc_xmac()
1423 static void bnx2x_set_mdio_clk(struct bnx2x *bp, u32 chip_id, in bnx2x_set_mdio_clk()
1453 static void bnx2x_set_mdio_emac_per_phy(struct bnx2x *bp, in bnx2x_set_mdio_emac_per_phy()
1464 static u8 bnx2x_is_4_port_mode(struct bnx2x *bp) in bnx2x_is_4_port_mode()
1481 struct bnx2x *bp = params->bp; in bnx2x_emac_init()
1526 struct bnx2x *bp = params->bp; in bnx2x_set_xumac_nig()
1540 struct bnx2x *bp = params->bp; in bnx2x_set_umac_rxtx()
1560 struct bnx2x *bp = params->bp; in bnx2x_umac_enable()
1656 struct bnx2x *bp = params->bp; in bnx2x_xmac_init()
1719 struct bnx2x *bp = params->bp; in bnx2x_set_xmac_rxtx()
1748 struct bnx2x *bp = params->bp; in bnx2x_xmac_enable()
1817 struct bnx2x *bp = params->bp; in bnx2x_emac_enable()
1951 struct bnx2x *bp = params->bp; in bnx2x_update_pfc_bmac1()
1984 struct bnx2x *bp = params->bp; in bnx2x_update_pfc_bmac2()
2066 static int bnx2x_pfc_nig_rx_priority_mask(struct bnx2x *bp, in bnx2x_pfc_nig_rx_priority_mask()
2111 struct bnx2x *bp = params->bp; in bnx2x_update_mng()
2120 struct bnx2x *bp = params->bp; in bnx2x_update_link_attr()
2135 struct bnx2x *bp = params->bp; in bnx2x_update_pfc_nig()
2233 struct bnx2x *bp = params->bp; in bnx2x_update_pfc()
2282 struct bnx2x *bp = params->bp; in bnx2x_bmac1_enable()
2346 struct bnx2x *bp = params->bp; in bnx2x_bmac2_enable()
2413 struct bnx2x *bp = params->bp; in bnx2x_bmac_enable()
2452 static void bnx2x_set_bmac_rx(struct bnx2x *bp, u32 chip_id, u8 port, u8 en) in bnx2x_set_bmac_rx()
2481 struct bnx2x *bp = params->bp; in bnx2x_pbf_update()
2563 static u32 bnx2x_get_emac_base(struct bnx2x *bp, in bnx2x_get_emac_base()
2598 static int bnx2x_cl22_write(struct bnx2x *bp, in bnx2x_cl22_write()
2633 static int bnx2x_cl22_read(struct bnx2x *bp, in bnx2x_cl22_read()
2675 static int bnx2x_cl45_read(struct bnx2x *bp, struct bnx2x_phy *phy, in bnx2x_cl45_read()
2750 static int bnx2x_cl45_write(struct bnx2x *bp, struct bnx2x_phy *phy, in bnx2x_cl45_write()
2828 struct bnx2x *bp = params->bp; in bnx2x_eee_has_cap()
2880 struct bnx2x *bp = params->bp; in bnx2x_eee_calc_timer()
2913 struct bnx2x *bp = params->bp; in bnx2x_eee_set_timers()
2965 struct bnx2x *bp = params->bp; in bnx2x_eee_disable()
2981 struct bnx2x *bp = params->bp; in bnx2x_eee_advertise()
3006 struct bnx2x *bp = params->bp; in bnx2x_update_mng_eee()
3018 struct bnx2x *bp = params->bp; in bnx2x_eee_an_resolve()
3069 struct bnx2x *bp = params->bp; in bnx2x_bsc_module_sel()
3091 struct bnx2x *bp, in bnx2x_bsc_read()
3177 static void bnx2x_cl45_read_or_write(struct bnx2x *bp, struct bnx2x_phy *phy, in bnx2x_cl45_read_or_write()
3185 static void bnx2x_cl45_read_and_write(struct bnx2x *bp, in bnx2x_cl45_read_and_write()
3231 struct bnx2x *bp = params->bp; in bnx2x_get_warpcore_lane()
3286 struct bnx2x *bp = params->bp; in bnx2x_set_aer_mmd()
3318 static void bnx2x_set_serdes_access(struct bnx2x *bp, u8 port) in bnx2x_set_serdes_access()
3332 static void bnx2x_serdes_deassert(struct bnx2x *bp, u8 port) in bnx2x_serdes_deassert()
3355 struct bnx2x *bp = params->bp; in bnx2x_xgxs_specific_func()
3368 struct bnx2x *bp = params->bp; in bnx2x_xgxs_deassert()
3387 struct bnx2x *bp = params->bp; in bnx2x_calc_ieee_aneg_adv()
3428 struct bnx2x *bp = params->bp; in set_phy_vars()
3471 struct bnx2x *bp = params->bp; in bnx2x_ext_phy_set_pause()
3498 struct bnx2x *bp = params->bp; in bnx2x_pause_resolve()
3547 struct bnx2x *bp = params->bp; in bnx2x_ext_phy_update_adv_fc()
3638 struct bnx2x *bp = params->bp; in bnx2x_warpcore_enable_AN_KR2()
3677 struct bnx2x *bp = params->bp; in bnx2x_disable_kr2()
3711 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_lpi_passthrough()
3724 struct bnx2x *bp = params->bp; in bnx2x_warpcore_restart_AN_KR()
3740 struct bnx2x *bp = params->bp; in bnx2x_warpcore_enable_AN_KR()
3891 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_10G_KR()
3959 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_10G_XFI()
4095 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_20G_force_KR2()
4144 static void bnx2x_warpcore_set_20G_DXGXS(struct bnx2x *bp, in bnx2x_warpcore_set_20G_DXGXS()
4203 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_sgmii_speed()
4280 static void bnx2x_warpcore_reset_lane(struct bnx2x *bp, in bnx2x_warpcore_reset_lane()
4302 struct bnx2x *bp = params->bp; in bnx2x_warpcore_clear_regs()
4334 static int bnx2x_get_mod_abs_int_cfg(struct bnx2x *bp, in bnx2x_get_mod_abs_int_cfg()
4376 struct bnx2x *bp = params->bp; in bnx2x_is_sfp_module_plugged()
4395 struct bnx2x *bp = params->bp; in bnx2x_warpcore_get_sigdet()
4409 struct bnx2x *bp = params->bp; in bnx2x_warpcore_config_runtime()
4462 struct bnx2x *bp = params->bp; in bnx2x_warpcore_config_sfi()
4479 struct bnx2x *bp = params->bp; in bnx2x_sfp_e3_set_transmitter()
4500 struct bnx2x *bp = params->bp; in bnx2x_warpcore_config_init()
4607 struct bnx2x *bp = params->bp; in bnx2x_warpcore_link_reset()
4662 struct bnx2x *bp = params->bp; in bnx2x_set_warpcore_loopback()
4707 struct bnx2x *bp = params->bp; in bnx2x_sync_link()
4813 struct bnx2x *bp = params->bp; in bnx2x_link_status_update()
4880 struct bnx2x *bp = params->bp; in bnx2x_set_master_ln()
4902 struct bnx2x *bp = params->bp; in bnx2x_reset_unicore()
4945 struct bnx2x *bp = params->bp; in bnx2x_set_swap_lanes()
4987 struct bnx2x *bp = params->bp; in bnx2x_set_parallel_detection()
5042 struct bnx2x *bp = params->bp; in bnx2x_set_autoneg()
5145 struct bnx2x *bp = params->bp; in bnx2x_program_serdes()
5193 struct bnx2x *bp = params->bp; in bnx2x_set_brcm_cl37_advertisement()
5214 struct bnx2x *bp = params->bp; in bnx2x_set_ieee_aneg_advertisement()
5235 struct bnx2x *bp = params->bp; in bnx2x_restart_autoneg()
5275 struct bnx2x *bp = params->bp; in bnx2x_initialize_sgmii_process()
5346 struct bnx2x *bp = params->bp; in bnx2x_direct_parallel_detect_used()
5385 struct bnx2x *bp = params->bp; in bnx2x_update_adv_fc()
5429 struct bnx2x *bp = params->bp; in bnx2x_flow_ctrl_resolve()
5455 struct bnx2x *bp = params->bp; in bnx2x_check_fallback_to_cl37()
5540 struct bnx2x *bp = params->bp; in bnx2x_get_link_speed_duplex()
5628 struct bnx2x *bp = params->bp; in bnx2x_link_settings_status()
5702 struct bnx2x *bp = params->bp; in bnx2x_warpcore_read_status()
5825 struct bnx2x *bp = params->bp; in bnx2x_set_gmii_tx_driver()
5865 struct bnx2x *bp = params->bp; in bnx2x_emac_program()
5914 struct bnx2x *bp = params->bp; in bnx2x_set_preemphasis()
5937 struct bnx2x *bp = params->bp; in bnx2x_xgxs_config_init()
6021 static u16 bnx2x_wait_reset_complete(struct bnx2x *bp, in bnx2x_wait_reset_complete()
6052 struct bnx2x *bp = params->bp; in bnx2x_link_int_enable()
6096 static void bnx2x_rearm_latch_signal(struct bnx2x *bp, u8 port, in bnx2x_rearm_latch_signal()
6133 struct bnx2x *bp = params->bp; in bnx2x_link_int_ack()
6219 struct bnx2x *bp; in bnx2x_get_ext_phy_fw_version()
6260 struct bnx2x *bp = params->bp; in bnx2x_set_xgxs_loopback()
6320 struct bnx2x *bp = params->bp; in bnx2x_set_led()
6462 struct bnx2x *bp = params->bp; in bnx2x_test_link()
6544 struct bnx2x *bp = params->bp; in bnx2x_link_initialize()
6629 struct bnx2x *bp = params->bp; in bnx2x_common_ext_link_reset()
6648 struct bnx2x *bp = params->bp; in bnx2x_update_link_down()
6696 struct bnx2x *bp = params->bp; in bnx2x_update_link_up()
6785 struct bnx2x *bp = params->bp; in bnx2x_chng_link_count()
6815 struct bnx2x *bp = params->bp; in bnx2x_link_update()
7072 void bnx2x_ext_phy_hw_reset(struct bnx2x *bp, u8 port) in bnx2x_ext_phy_hw_reset()
7081 static void bnx2x_save_spirom_version(struct bnx2x *bp, u8 port, in bnx2x_save_spirom_version()
7091 static void bnx2x_save_bcm_spirom_ver(struct bnx2x *bp, in bnx2x_save_bcm_spirom_ver()
7105 static void bnx2x_ext_phy_10G_an_resolve(struct bnx2x *bp, in bnx2x_ext_phy_10G_an_resolve()
7129 struct bnx2x *bp = params->bp; in bnx2x_8073_resolve_fc()
7158 static int bnx2x_8073_8727_external_rom_boot(struct bnx2x *bp, in bnx2x_8073_8727_external_rom_boot()
7239 static int bnx2x_8073_is_snr_needed(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_8073_is_snr_needed()
7265 static int bnx2x_8073_xaui_wa(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_8073_xaui_wa()
7321 static void bnx2x_807x_force_10G(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_807x_force_10G()
7339 struct bnx2x *bp = params->bp; in bnx2x_8073_set_pause_cl37()
7373 struct bnx2x *bp = params->bp; in bnx2x_8073_specific_func()
7389 struct bnx2x *bp = params->bp; in bnx2x_8073_config_init()
7537 struct bnx2x *bp = params->bp; in bnx2x_8073_read_status()
7681 struct bnx2x *bp = params->bp; in bnx2x_8073_link_reset()
7701 struct bnx2x *bp = params->bp; in bnx2x_8705_config_init()
7730 struct bnx2x *bp = params->bp; in bnx2x_8705_read_status()
7764 struct bnx2x *bp = params->bp; in bnx2x_set_disable_pmd_transmit()
7787 struct bnx2x *bp = params->bp; in bnx2x_get_gpio_port()
7803 struct bnx2x *bp = params->bp; in bnx2x_sfp_e1e2_set_transmitter()
7858 struct bnx2x *bp = params->bp; in bnx2x_sfp_set_transmitter()
7871 struct bnx2x *bp = params->bp; in bnx2x_8726_read_sfp_module_eeprom()
7937 struct bnx2x *bp = params->bp; in bnx2x_warpcore_power_module()
7964 struct bnx2x *bp = params->bp; in bnx2x_warpcore_read_sfp_module_eeprom()
8000 struct bnx2x *bp = params->bp; in bnx2x_8727_read_sfp_module_eeprom()
8095 struct bnx2x *bp = params->bp; in bnx2x_read_sfp_module_eeprom()
8136 struct bnx2x *bp = params->bp; in bnx2x_get_edc_mode()
8277 struct bnx2x *bp = params->bp; in bnx2x_verify_sfp_module()
8354 struct bnx2x *bp = params->bp; in bnx2x_wait_for_sfp_module_initialized()
8382 static void bnx2x_8727_power_module(struct bnx2x *bp, in bnx2x_8727_power_module()
8414 static int bnx2x_8726_set_limiting_mode(struct bnx2x *bp, in bnx2x_8726_set_limiting_mode()
8463 static int bnx2x_8727_set_limiting_mode(struct bnx2x *bp, in bnx2x_8727_set_limiting_mode()
8501 struct bnx2x *bp = params->bp; in bnx2x_8727_specific_func()
8546 struct bnx2x *bp = params->bp; in bnx2x_set_e1e2_module_fault_led()
8580 struct bnx2x *bp = params->bp; in bnx2x_set_e3_module_fault_led()
8594 struct bnx2x *bp = params->bp; in bnx2x_set_sfp_module_fault_led()
8608 struct bnx2x *bp = params->bp; in bnx2x_warpcore_hw_reset()
8623 struct bnx2x *bp = params->bp; in bnx2x_power_sfp_module()
8644 struct bnx2x *bp = params->bp; in bnx2x_warpcore_set_limiting_mode()
8699 struct bnx2x *bp = params->bp; in bnx2x_sfp_module_detection()
8753 struct bnx2x *bp = params->bp; in bnx2x_handle_module_detect_int()
8823 static void bnx2x_sfp_mask_fault(struct bnx2x *bp, in bnx2x_sfp_mask_fault()
8852 struct bnx2x *bp = params->bp; in bnx2x_8706_8726_read_status()
8914 struct bnx2x *bp = params->bp; in bnx2x_8706_config_init()
9027 struct bnx2x *bp = params->bp; in bnx2x_8726_config_loopback()
9035 struct bnx2x *bp = params->bp; in bnx2x_8726_external_rom_boot()
9074 struct bnx2x *bp = params->bp; in bnx2x_8726_read_status()
9095 struct bnx2x *bp = params->bp; in bnx2x_8726_config_init()
9179 struct bnx2x *bp = params->bp; in bnx2x_8726_link_reset()
9194 struct bnx2x *bp = params->bp; in bnx2x_8727_set_link_led()
9244 struct bnx2x *bp = params->bp; in bnx2x_8727_hw_reset()
9255 struct bnx2x *bp = params->bp; in bnx2x_8727_config_speed()
9315 struct bnx2x *bp = params->bp; in bnx2x_8727_config_init()
9398 struct bnx2x *bp = params->bp; in bnx2x_8727_handle_mod_abs()
9485 struct bnx2x *bp = params->bp; in bnx2x_8727_read_status()
9642 struct bnx2x *bp = params->bp; in bnx2x_8727_link_reset()
9665 struct bnx2x *bp, in bnx2x_save_848xx_spirom_version()
9732 static void bnx2x_848xx_set_led(struct bnx2x *bp, in bnx2x_848xx_set_led()
9775 struct bnx2x *bp = params->bp; in bnx2x_848xx_specific_func()
9798 struct bnx2x *bp = params->bp; in bnx2x_848xx_cmn_config_init()
9944 struct bnx2x *bp = params->bp; in bnx2x_8481_config_init()
9967 struct bnx2x *bp = params->bp; in bnx2x_84858_cmd_hdlr()
10043 struct bnx2x *bp = params->bp; in bnx2x_84833_cmd_hdlr()
10098 struct bnx2x *bp = params->bp; in bnx2x_848xx_cmd_hdlr()
10120 struct bnx2x *bp = params->bp; in bnx2x_848xx_pair_swap_cfg()
10143 static u8 bnx2x_84833_get_reset_gpios(struct bnx2x *bp, in bnx2x_84833_get_reset_gpios()
10184 struct bnx2x *bp = params->bp; in bnx2x_84833_hw_reset_phy()
10219 struct bnx2x *bp = params->bp; in bnx2x_8483x_disable_eee()
10240 struct bnx2x *bp = params->bp; in bnx2x_8483x_enable_eee()
10258 struct bnx2x *bp = params->bp; in bnx2x_848x3_config_init()
10433 struct bnx2x *bp = params->bp; in bnx2x_848xx_read_status()
10588 struct bnx2x *bp = params->bp; in bnx2x_848x3_link_reset()
10615 struct bnx2x *bp = params->bp; in bnx2x_848xx_set_link_led()
10892 struct bnx2x *bp = params->bp; in bnx2x_54618se_specific_func()
10921 struct bnx2x *bp = params->bp; in bnx2x_54618se_config_init()
11127 struct bnx2x *bp = params->bp; in bnx2x_5461x_set_link_led()
11163 struct bnx2x *bp = params->bp; in bnx2x_54618se_link_reset()
11189 struct bnx2x *bp = params->bp; in bnx2x_54618se_read_status()
11295 struct bnx2x *bp = params->bp; in bnx2x_54618se_config_loopback()
11338 struct bnx2x *bp = params->bp; in bnx2x_7101_config_loopback()
11349 struct bnx2x *bp = params->bp; in bnx2x_7101_config_init()
11388 struct bnx2x *bp = params->bp; in bnx2x_7101_read_status()
11437 void bnx2x_sfx7101_sp_sw_reset(struct bnx2x *bp, struct bnx2x_phy *phy) in bnx2x_sfx7101_sp_sw_reset()
11476 struct bnx2x *bp = params->bp; in bnx2x_7101_set_link_led()
12030 static void bnx2x_populate_preemphasis(struct bnx2x *bp, u32 shmem_base, in bnx2x_populate_preemphasis()
12067 static u32 bnx2x_get_ext_phy_config(struct bnx2x *bp, u32 shmem_base, in bnx2x_get_ext_phy_config()
12089 static int bnx2x_populate_int_phy(struct bnx2x *bp, u32 shmem_base, u8 port, in bnx2x_populate_int_phy()
12226 static int bnx2x_populate_ext_phy(struct bnx2x *bp, in bnx2x_populate_ext_phy()
12354 static int bnx2x_populate_phy(struct bnx2x *bp, u8 phy_index, u32 shmem_base, in bnx2x_populate_phy()
12370 struct bnx2x *bp = params->bp; in bnx2x_phy_def_cfg()
12475 struct bnx2x *bp = params->bp; in bnx2x_phy_probe()
12548 struct bnx2x *bp = params->bp; in bnx2x_init_bmac_loopback()
12568 struct bnx2x *bp = params->bp; in bnx2x_init_emac_loopback()
12587 struct bnx2x *bp = params->bp; in bnx2x_init_xmac_loopback()
12613 struct bnx2x *bp = params->bp; in bnx2x_init_umac_loopback()
12628 struct bnx2x *bp = params->bp; in bnx2x_init_xgxs_loopback()
12679 struct bnx2x *bp = params->bp; in bnx2x_set_rx_filter()
12700 struct bnx2x *bp = params->bp; in bnx2x_avoid_link_flap()
12775 struct bnx2x *bp = params->bp; in bnx2x_cannot_avoid_link_flap()
12833 struct bnx2x *bp = params->bp; in bnx2x_phy_init()
12922 struct bnx2x *bp = params->bp; in bnx2x_link_reset()
13013 struct bnx2x *bp = params->bp; in bnx2x_lfa_reset()
13065 static int bnx2x_8073_common_init_phy(struct bnx2x *bp, in bnx2x_8073_common_init_phy()
13191 static int bnx2x_8726_common_init_phy(struct bnx2x *bp, in bnx2x_8726_common_init_phy()
13240 static void bnx2x_get_ext_phy_reset_gpio(struct bnx2x *bp, u32 shmem_base, in bnx2x_get_ext_phy_reset_gpio()
13286 static int bnx2x_8727_common_init_phy(struct bnx2x *bp, in bnx2x_8727_common_init_phy()
13385 static int bnx2x_84833_common_init_phy(struct bnx2x *bp, in bnx2x_84833_common_init_phy()
13401 static int bnx2x_ext_phy_common_init(struct bnx2x *bp, u32 shmem_base_path[], in bnx2x_ext_phy_common_init()
13456 int bnx2x_common_init_phy(struct bnx2x *bp, u32 shmem_base_path[], in bnx2x_common_init_phy()
13500 struct bnx2x *bp = params->bp; in bnx2x_check_over_curr()
13537 struct bnx2x *bp = params->bp; in bnx2x_analyze_link_error()
13616 struct bnx2x *bp = params->bp; in bnx2x_check_half_open_conn()
13671 struct bnx2x *bp = params->bp; in bnx2x_sfp_tx_fault_detection()
13714 struct bnx2x *bp = params->bp; in bnx2x_kr2_recovery()
13724 struct bnx2x *bp = params->bp; in bnx2x_check_kr2_wa()
13796 struct bnx2x *bp = params->bp; in bnx2x_period_func()
13836 u8 bnx2x_fan_failure_det_req(struct bnx2x *bp, in bnx2x_fan_failure_det_req()
13860 struct bnx2x *bp = params->bp; in bnx2x_hw_reset_phy()
13879 void bnx2x_init_mod_abs_int(struct bnx2x *bp, struct link_vars *vars, in bnx2x_init_mod_abs_int()