Home
last modified time | relevance | path

Searched refs:link_vars (Results 1 – 8 of 8) sorted by relevance

/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_link.h126 struct link_vars;
131 struct link_vars *vars);
133 struct link_vars *vars);
335 struct link_vars { struct
378 int bnx2x_phy_init(struct link_params *params, struct link_vars *vars); argument
383 int bnx2x_link_reset(struct link_params *params, struct link_vars *vars,
385 int bnx2x_lfa_reset(struct link_params *params, struct link_vars *vars);
387 int bnx2x_link_update(struct link_params *params, struct link_vars *vars);
402 struct link_vars *output);
412 struct link_vars *vars, u8 mode, u32 speed);
[all …]
Dbnx2x_link.c216 struct link_vars *vars, u8 notify);
498 static u32 bnx2x_ets_get_min_w_val_nig(const struct link_vars *vars) in bnx2x_ets_get_min_w_val_nig()
570 const struct link_vars *vars) in bnx2x_ets_e3b0_nig_disabled()
745 const struct link_vars *vars) in bnx2x_ets_e3b0_disabled()
768 struct link_vars *vars) in bnx2x_ets_disabled()
1129 const struct link_vars *vars, in bnx2x_ets_e3b0_config()
1350 struct link_vars *vars, in bnx2x_update_pfc_xmac()
1468 struct link_vars *vars) in bnx2x_emac_init()
1546 struct link_vars *vars, u8 lb) in bnx2x_umac_enable()
1735 struct link_vars *vars, u8 lb) in bnx2x_xmac_enable()
[all …]
Dbnx2x_ethtool.c283 if ((bp->state == BNX2X_STATE_OPEN) && bp->link_vars.link_up && in bnx2x_get_link_ksettings()
285 cmd->base.duplex = bp->link_vars.duplex; in bnx2x_get_link_ksettings()
290 cmd->base.speed = bp->link_vars.line_speed; in bnx2x_get_link_ksettings()
306 if (bp->link_vars.link_status & LINK_STATUS_AUTO_NEGOTIATE_COMPLETE) { in bnx2x_get_link_ksettings()
307 u32 status = bp->link_vars.link_status; in bnx2x_get_link_ksettings()
402 u32 line_speed = bp->link_vars.line_speed; in bnx2x_set_link_ksettings()
1228 return bp->link_vars.link_up; in bnx2x_get_link()
1834 &bp->link_vars, 0); in bnx2x_set_eeprom()
1847 &bp->link_vars, 1); in bnx2x_set_eeprom()
1850 &bp->link_vars); in bnx2x_set_eeprom()
[all …]
Dbnx2x_main.c2311 switch (bp->link_vars.ieee_fc & in bnx2x_calc_fc_adv()
2343 if (!CHIP_IS_E1(bp) && bp->dropless_fc && bp->link_vars.link_up) { in bnx2x_init_dropless_fc()
2344 if (bp->link_vars.flow_ctrl & BNX2X_FLOW_CTRL_TX) in bnx2x_init_dropless_fc()
2389 rc = bnx2x_phy_init(&bp->link_params, &bp->link_vars); in bnx2x_initial_phy_init()
2397 if (bp->link_vars.link_up) { in bnx2x_initial_phy_init()
2413 bnx2x_phy_init(&bp->link_params, &bp->link_vars); in bnx2x_link_set()
2427 bnx2x_lfa_reset(&bp->link_params, &bp->link_vars); in bnx2x__link_reset()
2436 bnx2x_link_reset(&bp->link_params, &bp->link_vars, 1); in bnx2x_force_link_reset()
2446 rc = bnx2x_test_link(&bp->link_params, &bp->link_vars, in bnx2x_link_test()
2515 vn_max_rate = (bp->link_vars.line_speed * maxCfg) / 100; in bnx2x_calc_vn_max()
[all …]
Dbnx2x_dcb.c112 bnx2x_update_pfc(&bp->link_params, &bp->link_vars, &pfc_params); in bnx2x_pfc_set()
122 bnx2x_update_pfc(&bp->link_params, &bp->link_vars, &nig_params); in bnx2x_pfc_clear()
598 if (bnx2x_ets_e3b0_config(&bp->link_params, &bp->link_vars, in bnx2x_dcbx_update_ets_config()
601 bnx2x_ets_disabled(&bp->link_params, &bp->link_vars); in bnx2x_dcbx_update_ets_config()
611 bnx2x_ets_disabled(&bp->link_params, &bp->link_vars); in bnx2x_dcbx_update_ets_params()
Dbnx2x_stats.c277 if (!bp->link_vars.link_up || !bp->port.pmf) { in bnx2x_port_stats_init()
321 if (bp->link_vars.mac_type == MAC_TYPE_EMAC) { in bnx2x_port_stats_init()
371 switch (bp->link_vars.mac_type) { in bnx2x_port_stats_init()
815 switch (bp->link_vars.mac_type) { in bnx2x_hw_stats_update()
Dbnx2x_cmn.c1173 u16 line_speed = bp->link_vars.line_speed; in bnx2x_get_mf_speed()
1212 if (!bp->link_vars.link_up || (bp->flags & MF_FUNC_DIS)) in bnx2x_fill_report_data()
1221 if (bp->link_vars.duplex == DUPLEX_FULL) in bnx2x_fill_report_data()
1226 if (bp->link_vars.flow_ctrl & BNX2X_FLOW_CTRL_RX) in bnx2x_fill_report_data()
1231 if (bp->link_vars.flow_ctrl & BNX2X_FLOW_CTRL_TX) in bnx2x_fill_report_data()
1269 bp->link_vars.link_up = 0; in __bnx2x_link_report()
4810 if (bp->link_vars.link_up) { in bnx2x_get_cur_phy_idx()
4813 if ((bp->link_vars.link_status & LINK_STATUS_SERDES_LINK) && in bnx2x_get_cur_phy_idx()
Dbnx2x.h1534 struct link_vars link_vars; member