• Home
  • Raw
  • Download

Lines Matching refs:link_params

1809 	u32 ext_phy_type = XGXS_EXT_PHY_TYPE(bp->link_params.ext_phy_config);  in bnx2x_acquire_phy_lock()
1820 u32 ext_phy_type = XGXS_EXT_PHY_TYPE(bp->link_params.ext_phy_config); in bnx2x_release_phy_lock()
1991 bp->link_params.req_fc_auto_adv = BNX2X_FLOW_CTRL_BOTH; in bnx2x_initial_phy_init()
1993 bp->link_params.req_fc_auto_adv = BNX2X_FLOW_CTRL_TX; in bnx2x_initial_phy_init()
1995 bp->link_params.req_fc_auto_adv = BNX2X_FLOW_CTRL_BOTH; in bnx2x_initial_phy_init()
1998 rc = bnx2x_phy_init(&bp->link_params, &bp->link_vars); in bnx2x_initial_phy_init()
2017 bnx2x_phy_init(&bp->link_params, &bp->link_vars); in bnx2x_link_set()
2029 bnx2x_link_reset(&bp->link_params, &bp->link_vars); in bnx2x__link_reset()
2040 rc = bnx2x_test_link(&bp->link_params, &bp->link_vars); in bnx2x_link_test()
2265 bnx2x_link_update(&bp->link_params, &bp->link_vars); in bnx2x_link_attn()
2324 bnx2x_link_status_update(&bp->link_params, &bp->link_vars); in bnx2x__link_status_update()
2606 bp->link_params.ext_phy_config &= in bnx2x_attn_int_deasserted0()
2608 bp->link_params.ext_phy_config |= in bnx2x_attn_int_deasserted0()
2613 bp->link_params.ext_phy_config); in bnx2x_attn_int_deasserted0()
7027 bp->link_params.chip_id = bp->common.chip_id; in bnx2x_get_common_hwinfo()
7037 bp->link_params.shmem_base = bp->common.shmem_base; in bnx2x_get_common_hwinfo()
7059 bp->link_params.hw_led_mode = ((bp->common.hw_config & in bnx2x_get_common_hwinfo()
7103 SERDES_EXT_PHY_TYPE(bp->link_params.ext_phy_config); in bnx2x_link_settings_supported()
7141 bp->link_params.ext_phy_config); in bnx2x_link_settings_supported()
7154 XGXS_EXT_PHY_TYPE(bp->link_params.ext_phy_config); in bnx2x_link_settings_supported()
7233 bp->link_params.ext_phy_config); in bnx2x_link_settings_supported()
7239 bp->link_params.ext_phy_config); in bnx2x_link_settings_supported()
7254 bp->link_params.phy_addr = bp->port.phy_addr; in bnx2x_link_settings_supported()
7257 if (!(bp->link_params.speed_cap_mask & in bnx2x_link_settings_supported()
7261 if (!(bp->link_params.speed_cap_mask & in bnx2x_link_settings_supported()
7265 if (!(bp->link_params.speed_cap_mask & in bnx2x_link_settings_supported()
7269 if (!(bp->link_params.speed_cap_mask & in bnx2x_link_settings_supported()
7273 if (!(bp->link_params.speed_cap_mask & in bnx2x_link_settings_supported()
7278 if (!(bp->link_params.speed_cap_mask & in bnx2x_link_settings_supported()
7282 if (!(bp->link_params.speed_cap_mask & in bnx2x_link_settings_supported()
7291 bp->link_params.req_duplex = DUPLEX_FULL; in bnx2x_link_settings_requested()
7296 bp->link_params.req_line_speed = SPEED_AUTO_NEG; in bnx2x_link_settings_requested()
7300 XGXS_EXT_PHY_TYPE(bp->link_params.ext_phy_config); in bnx2x_link_settings_requested()
7307 bp->link_params.req_line_speed = SPEED_10000; in bnx2x_link_settings_requested()
7323 bp->link_params.req_line_speed = SPEED_10; in bnx2x_link_settings_requested()
7331 bp->link_params.speed_cap_mask); in bnx2x_link_settings_requested()
7338 bp->link_params.req_line_speed = SPEED_10; in bnx2x_link_settings_requested()
7339 bp->link_params.req_duplex = DUPLEX_HALF; in bnx2x_link_settings_requested()
7347 bp->link_params.speed_cap_mask); in bnx2x_link_settings_requested()
7354 bp->link_params.req_line_speed = SPEED_100; in bnx2x_link_settings_requested()
7362 bp->link_params.speed_cap_mask); in bnx2x_link_settings_requested()
7369 bp->link_params.req_line_speed = SPEED_100; in bnx2x_link_settings_requested()
7370 bp->link_params.req_duplex = DUPLEX_HALF; in bnx2x_link_settings_requested()
7378 bp->link_params.speed_cap_mask); in bnx2x_link_settings_requested()
7385 bp->link_params.req_line_speed = SPEED_1000; in bnx2x_link_settings_requested()
7393 bp->link_params.speed_cap_mask); in bnx2x_link_settings_requested()
7400 bp->link_params.req_line_speed = SPEED_2500; in bnx2x_link_settings_requested()
7408 bp->link_params.speed_cap_mask); in bnx2x_link_settings_requested()
7417 bp->link_params.req_line_speed = SPEED_10000; in bnx2x_link_settings_requested()
7425 bp->link_params.speed_cap_mask); in bnx2x_link_settings_requested()
7434 bp->link_params.req_line_speed = SPEED_AUTO_NEG; in bnx2x_link_settings_requested()
7439 bp->link_params.req_flow_ctrl = (bp->port.link_config & in bnx2x_link_settings_requested()
7441 if ((bp->link_params.req_flow_ctrl == BNX2X_FLOW_CTRL_AUTO) && in bnx2x_link_settings_requested()
7443 bp->link_params.req_flow_ctrl = BNX2X_FLOW_CTRL_NONE; in bnx2x_link_settings_requested()
7447 bp->link_params.req_line_speed, in bnx2x_link_settings_requested()
7448 bp->link_params.req_duplex, in bnx2x_link_settings_requested()
7449 bp->link_params.req_flow_ctrl, bp->port.advertising); in bnx2x_link_settings_requested()
7457 bp->link_params.bp = bp; in bnx2x_get_port_hwinfo()
7458 bp->link_params.port = port; in bnx2x_get_port_hwinfo()
7460 bp->link_params.serdes_config = in bnx2x_get_port_hwinfo()
7462 bp->link_params.lane_config = in bnx2x_get_port_hwinfo()
7464 bp->link_params.ext_phy_config = in bnx2x_get_port_hwinfo()
7467 bp->link_params.speed_cap_mask = in bnx2x_get_port_hwinfo()
7477 bp->link_params.serdes_config, in bnx2x_get_port_hwinfo()
7478 bp->link_params.lane_config, in bnx2x_get_port_hwinfo()
7479 bp->link_params.ext_phy_config, in bnx2x_get_port_hwinfo()
7480 bp->link_params.speed_cap_mask, bp->port.link_config); in bnx2x_get_port_hwinfo()
7482 bp->link_params.switch_cfg = (bp->port.link_config & in bnx2x_get_port_hwinfo()
7484 bnx2x_link_settings_supported(bp, bp->link_params.switch_cfg); in bnx2x_get_port_hwinfo()
7496 memcpy(bp->link_params.mac_addr, bp->dev->dev_addr, ETH_ALEN); in bnx2x_get_port_hwinfo()
7552 memcpy(bp->link_params.mac_addr, bp->dev->dev_addr, in bnx2x_get_hwinfo()
7644 cmd->speed = bp->link_params.req_line_speed; in bnx2x_get_settings()
7645 cmd->duplex = bp->link_params.req_duplex; in bnx2x_get_settings()
7656 if (bp->link_params.switch_cfg == SWITCH_CFG_10G) { in bnx2x_get_settings()
7658 XGXS_EXT_PHY_TYPE(bp->link_params.ext_phy_config); in bnx2x_get_settings()
7675 bp->link_params.ext_phy_config); in bnx2x_get_settings()
7680 bp->link_params.ext_phy_config); in bnx2x_get_settings()
7689 if (bp->link_params.req_line_speed == SPEED_AUTO_NEG) in bnx2x_get_settings()
7733 bp->link_params.req_line_speed = SPEED_AUTO_NEG; in bnx2x_set_settings()
7734 bp->link_params.req_duplex = DUPLEX_FULL; in bnx2x_set_settings()
7841 bp->link_params.req_line_speed = cmd->speed; in bnx2x_set_settings()
7842 bp->link_params.req_duplex = cmd->duplex; in bnx2x_set_settings()
7848 bp->link_params.req_line_speed, bp->link_params.req_duplex, in bnx2x_set_settings()
7873 bnx2x_get_ext_phy_fw_version(&bp->link_params, in bnx2x_get_drvinfo()
8342 bp->link_params.ext_phy_config, in bnx2x_set_eeprom()
8347 rc |= bnx2x_link_reset(&bp->link_params, in bnx2x_set_eeprom()
8349 rc |= bnx2x_phy_init(&bp->link_params, in bnx2x_set_eeprom()
8438 epause->autoneg = (bp->link_params.req_flow_ctrl == BNX2X_FLOW_CTRL_AUTO) && in bnx2x_get_pauseparam()
8439 (bp->link_params.req_line_speed == SPEED_AUTO_NEG); in bnx2x_get_pauseparam()
8463 bp->link_params.req_flow_ctrl = BNX2X_FLOW_CTRL_AUTO; in bnx2x_set_pauseparam()
8466 bp->link_params.req_flow_ctrl |= BNX2X_FLOW_CTRL_RX; in bnx2x_set_pauseparam()
8469 bp->link_params.req_flow_ctrl |= BNX2X_FLOW_CTRL_TX; in bnx2x_set_pauseparam()
8471 if (bp->link_params.req_flow_ctrl == BNX2X_FLOW_CTRL_AUTO) in bnx2x_set_pauseparam()
8472 bp->link_params.req_flow_ctrl = BNX2X_FLOW_CTRL_NONE; in bnx2x_set_pauseparam()
8480 if (bp->link_params.req_line_speed == SPEED_AUTO_NEG) in bnx2x_set_pauseparam()
8481 bp->link_params.req_flow_ctrl = BNX2X_FLOW_CTRL_AUTO; in bnx2x_set_pauseparam()
8485 "req_flow_ctrl 0x%x\n", bp->link_params.req_flow_ctrl); in bnx2x_set_pauseparam()
8760 bp->link_params.loopback_mode = LOOPBACK_BMAC; in bnx2x_run_loopback()
8761 bnx2x_phy_init(&bp->link_params, &bp->link_vars); in bnx2x_run_loopback()
8765 bp->link_params.loopback_mode = LOOPBACK_XGXS_10; in bnx2x_run_loopback()
8766 bnx2x_phy_init(&bp->link_params, &bp->link_vars); in bnx2x_run_loopback()
8769 while (cnt-- && bnx2x_test_link(&bp->link_params, in bnx2x_run_loopback()
8864 bp->link_params.loopback_mode = LOOPBACK_NONE; in bnx2x_run_loopback()
9229 bp->link_params.hw_led_mode, in bnx2x_phys_id()
9230 bp->link_params.chip_id); in bnx2x_phys_id()
9233 bp->link_params.hw_led_mode, in bnx2x_phys_id()
9234 bp->link_params.chip_id); in bnx2x_phys_id()
9244 bp->link_params.hw_led_mode, in bnx2x_phys_id()
9245 bp->link_params.chip_id); in bnx2x_phys_id()
10516 bp->link_params.shmem_base = bp->common.shmem_base; in bnx2x_eeh_recover()