Lines Matching refs:link_params
196 switch (bp->link_params.phy[phy_idx].media_type) { in bnx2x_get_port_type()
269 media_type = bp->link_params.phy[bnx2x_get_cur_phy_idx(bp)].media_type; in bnx2x_get_settings()
293 if (bp->link_params.req_line_speed[cfg_idx] == SPEED_AUTO_NEG) in bnx2x_get_settings()
414 old_multi_phy_config = bp->link_params.multi_phy_config; in bnx2x_set_settings()
424 bp->link_params.multi_phy_config &= in bnx2x_set_settings()
426 if (bp->link_params.multi_phy_config & in bnx2x_set_settings()
428 bp->link_params.multi_phy_config |= in bnx2x_set_settings()
431 bp->link_params.multi_phy_config |= in bnx2x_set_settings()
443 bp->link_params.multi_phy_config &= in bnx2x_set_settings()
445 if (bp->link_params.multi_phy_config & in bnx2x_set_settings()
447 bp->link_params.multi_phy_config |= in bnx2x_set_settings()
450 bp->link_params.multi_phy_config |= in bnx2x_set_settings()
459 new_multi_phy_config = bp->link_params.multi_phy_config; in bnx2x_set_settings()
463 bp->link_params.multi_phy_config = old_multi_phy_config; in bnx2x_set_settings()
468 if (bp->link_params.phy[EXT_PHY1].type == in bnx2x_set_settings()
484 bp->link_params.req_line_speed[cfg_idx] = SPEED_AUTO_NEG; in bnx2x_set_settings()
485 bp->link_params.req_duplex[cfg_idx] = cmd->duplex; in bnx2x_set_settings()
490 bp->link_params.speed_cap_mask[cfg_idx] = 0; in bnx2x_set_settings()
492 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
496 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
500 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
504 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
508 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
513 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
519 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
523 bp->link_params.speed_cap_mask[cfg_idx] |= in bnx2x_set_settings()
627 (bp->link_params.phy[phy_idx].media_type != in bnx2x_set_settings()
648 bp->link_params.req_line_speed[cfg_idx] = speed; in bnx2x_set_settings()
649 bp->link_params.req_duplex[cfg_idx] = cmd->duplex; in bnx2x_set_settings()
655 bp->link_params.req_line_speed[cfg_idx], in bnx2x_set_settings()
656 bp->link_params.req_duplex[cfg_idx], in bnx2x_set_settings()
660 bp->link_params.multi_phy_config = new_multi_phy_config; in bnx2x_set_settings()
1482 rc = bnx2x_read_sfp_module_eeprom(&bp->link_params.phy[phy_idx], in bnx2x_get_module_eeprom()
1483 &bp->link_params, in bnx2x_get_module_eeprom()
1507 rc = bnx2x_read_sfp_module_eeprom(&bp->link_params.phy[phy_idx], in bnx2x_get_module_eeprom()
1508 &bp->link_params, in bnx2x_get_module_eeprom()
1536 rc = bnx2x_read_sfp_module_eeprom(&bp->link_params.phy[phy_idx], in bnx2x_get_module_info()
1537 &bp->link_params, in bnx2x_get_module_info()
1549 rc = bnx2x_read_sfp_module_eeprom(&bp->link_params.phy[phy_idx], in bnx2x_get_module_info()
1550 &bp->link_params, in bnx2x_get_module_info()
1787 rc |= bnx2x_link_reset(&bp->link_params, in bnx2x_set_eeprom()
1800 rc |= bnx2x_link_reset(&bp->link_params, in bnx2x_set_eeprom()
1803 rc |= bnx2x_phy_init(&bp->link_params, in bnx2x_set_eeprom()
1820 &bp->link_params.phy[EXT_PHY1]); in bnx2x_set_eeprom()
1925 epause->autoneg = (bp->link_params.req_flow_ctrl[cfg_idx] == in bnx2x_get_pauseparam()
1929 cfg_reg = bp->link_params.req_flow_ctrl[cfg_idx]; in bnx2x_get_pauseparam()
1931 cfg_reg = bp->link_params.req_fc_auto_adv; in bnx2x_get_pauseparam()
1955 bp->link_params.req_flow_ctrl[cfg_idx] = BNX2X_FLOW_CTRL_AUTO; in bnx2x_set_pauseparam()
1958 bp->link_params.req_flow_ctrl[cfg_idx] |= BNX2X_FLOW_CTRL_RX; in bnx2x_set_pauseparam()
1961 bp->link_params.req_flow_ctrl[cfg_idx] |= BNX2X_FLOW_CTRL_TX; in bnx2x_set_pauseparam()
1963 if (bp->link_params.req_flow_ctrl[cfg_idx] == BNX2X_FLOW_CTRL_AUTO) in bnx2x_set_pauseparam()
1964 bp->link_params.req_flow_ctrl[cfg_idx] = BNX2X_FLOW_CTRL_NONE; in bnx2x_set_pauseparam()
1972 if (bp->link_params.req_line_speed[cfg_idx] == SPEED_AUTO_NEG) { in bnx2x_set_pauseparam()
1973 bp->link_params.req_flow_ctrl[cfg_idx] = in bnx2x_set_pauseparam()
1976 bp->link_params.req_fc_auto_adv = 0; in bnx2x_set_pauseparam()
1978 bp->link_params.req_fc_auto_adv |= BNX2X_FLOW_CTRL_RX; in bnx2x_set_pauseparam()
1981 bp->link_params.req_fc_auto_adv |= BNX2X_FLOW_CTRL_TX; in bnx2x_set_pauseparam()
1983 if (!bp->link_params.req_fc_auto_adv) in bnx2x_set_pauseparam()
1984 bp->link_params.req_fc_auto_adv |= BNX2X_FLOW_CTRL_NONE; in bnx2x_set_pauseparam()
1988 "req_flow_ctrl 0x%x\n", bp->link_params.req_flow_ctrl[cfg_idx]); in bnx2x_set_pauseparam()
2127 bp->link_params.eee_mode |= EEE_MODE_ADV_LPI; in bnx2x_set_eee()
2129 bp->link_params.eee_mode &= ~EEE_MODE_ADV_LPI; in bnx2x_set_eee()
2132 bp->link_params.eee_mode |= EEE_MODE_ENABLE_LPI; in bnx2x_set_eee()
2134 bp->link_params.eee_mode &= ~EEE_MODE_ENABLE_LPI; in bnx2x_set_eee()
2136 bp->link_params.eee_mode &= ~EEE_MODE_TIMER_MASK; in bnx2x_set_eee()
2137 bp->link_params.eee_mode |= (edata->tx_lpi_timer & in bnx2x_set_eee()
2458 if (bp->link_params.loopback_mode != LOOPBACK_XGXS) { in bnx2x_run_loopback()
2470 bp->link_params.loopback_mode = LOOPBACK_XMAC; in bnx2x_run_loopback()
2472 bp->link_params.loopback_mode = LOOPBACK_UMAC; in bnx2x_run_loopback()
2474 bp->link_params.loopback_mode = LOOPBACK_BMAC; in bnx2x_run_loopback()
2476 bnx2x_phy_init(&bp->link_params, &bp->link_vars); in bnx2x_run_loopback()
2479 if (bp->link_params.loopback_mode != LOOPBACK_EXT) { in bnx2x_run_loopback()
2631 bp->link_params.loopback_mode = LOOPBACK_NONE; in bnx2x_run_loopback()
3247 bnx2x_set_led(&bp->link_params, &bp->link_vars, in bnx2x_set_phys_id()
3254 bnx2x_set_led(&bp->link_params, &bp->link_vars, in bnx2x_set_phys_id()
3261 bnx2x_set_led(&bp->link_params, &bp->link_vars, in bnx2x_set_phys_id()