Lines Matching refs:link_params
7016 elink_link_update(&sc->link_params, &sc->link_vars); in bxe_link_attn()
8190 elink_hw_reset_phy(&sc->link_params); in bxe_attn_int_deasserted0()
8196 elink_handle_module_detect_int(&sc->link_params); in bxe_attn_int_deasserted0()
10860 sc->link_params.shmem_base = in bxe_init_shmem()
11636 return (bxe_set_mac_one(sc, sc->link_params.mac_addr, in bxe_set_eth_mac()
11646 if (sc->link_params.num_phys <= 1) { in bxe_get_cur_phy_idx()
11654 (sc->link_params.phy[ELINK_EXT_PHY2].supported & in bxe_get_cur_phy_idx()
11658 switch (elink_phy_selection(&sc->link_params)) { in bxe_get_cur_phy_idx()
11685 if (sc->link_params.multi_phy_config & PORT_HW_CFG_PHY_SWAPPED_ENABLED) { in bxe_get_link_cfg_idx()
11704 sc->link_params.req_fc_auto_adv = ELINK_FLOW_CTRL_TX; in bxe_set_requested_fc()
11706 sc->link_params.req_fc_auto_adv = ELINK_FLOW_CTRL_BOTH; in bxe_set_requested_fc()
11889 elink_link_status_update(&sc->link_params, &sc->link_vars); in bxe_link_status_update()
11905 sc->link_params.sc = sc; in bxe_link_status_update()
11906 sc->link_params.port = SC_PORT(sc); in bxe_link_status_update()
11907 sc->link_params.req_duplex[0] = DUPLEX_FULL; in bxe_link_status_update()
11908 sc->link_params.req_flow_ctrl[0] = ELINK_FLOW_CTRL_NONE; in bxe_link_status_update()
11909 sc->link_params.req_line_speed[0] = SPEED_10000; in bxe_link_status_update()
11910 sc->link_params.speed_cap_mask[0] = 0x7f0000; in bxe_link_status_update()
11911 sc->link_params.switch_cfg = ELINK_SWITCH_CFG_10G; in bxe_link_status_update()
11931 REG_WR(sc, NIG_REG_EGRESS_DRAIN0_MODE + sc->link_params.port*4, 0); in bxe_link_status_update()
11955 uint16_t req_line_speed = sc->link_params.req_line_speed[cfg_idx]; in bxe_initial_phy_init()
11956 struct elink_params *lp = &sc->link_params; in bxe_initial_phy_init()
11985 sc->link_params.feature_config_flags |= feat; in bxe_initial_phy_init()
12007 rc = elink_phy_init(&sc->link_params, &sc->link_vars); in bxe_initial_phy_init()
12022 sc->link_params.req_line_speed[cfg_idx] = req_line_speed; in bxe_initial_phy_init()
12303 elink_period_func(&sc->link_params, &sc->link_vars); in bxe_periodic_callout_func()
12787 sc->link_params.feature_config_flags &= in bxe_nic_load()
13059 ether_ifattach(ifp, sc->link_params.mac_addr); in bxe_init_ifnet()
13677 sc->link_params.sc = sc; in bxe_get_shmem_info()
13678 sc->link_params.port = port; in bxe_get_shmem_info()
13686 sc->link_params.hw_led_mode = in bxe_get_shmem_info()
13695 sc->link_params.speed_cap_mask[0] = in bxe_get_shmem_info()
13697 sc->link_params.speed_cap_mask[1] = in bxe_get_shmem_info()
13701 sc->link_params.lane_config = in bxe_get_shmem_info()
13707 sc->link_params.switch_cfg = (val & PORT_FEATURE_CONNECTED_SWITCH_MASK); in bxe_get_shmem_info()
13714 sc->link_params.feature_config_flags |= in bxe_get_shmem_info()
13717 sc->link_params.feature_config_flags &= in bxe_get_shmem_info()
13722 sc->link_params.multi_phy_config = in bxe_get_shmem_info()
13745 sc->link_params.mac_addr[0] = (uint8_t)(mac_hi >> 8); in bxe_get_shmem_info()
13746 sc->link_params.mac_addr[1] = (uint8_t)(mac_hi); in bxe_get_shmem_info()
13747 sc->link_params.mac_addr[2] = (uint8_t)(mac_lo >> 24); in bxe_get_shmem_info()
13748 sc->link_params.mac_addr[3] = (uint8_t)(mac_lo >> 16); in bxe_get_shmem_info()
13749 sc->link_params.mac_addr[4] = (uint8_t)(mac_lo >> 8); in bxe_get_shmem_info()
13750 sc->link_params.mac_addr[5] = (uint8_t)(mac_lo); in bxe_get_shmem_info()
13753 sc->link_params.mac_addr[0], sc->link_params.mac_addr[1], in bxe_get_shmem_info()
13754 sc->link_params.mac_addr[2], sc->link_params.mac_addr[3], in bxe_get_shmem_info()
13755 sc->link_params.mac_addr[4], sc->link_params.mac_addr[5]); in bxe_get_shmem_info()
13875 switch (sc->link_params.phy[phy_idx].media_type) { in bxe_media_detect()
13899 if (sc->link_params.speed_cap_mask[0] & in bxe_media_detect()
14009 sc->link_params.chip_id = in bxe_get_device_info()
14072 sc->link_params.shmem_base = in bxe_get_device_info()
14232 elink_phy_probe(&sc->link_params); in bxe_get_device_info()
14249 switch (sc->link_params.num_phys) { in bxe_link_settings_supported()
14251 sc->port.supported[0] = sc->link_params.phy[ELINK_INT_PHY].supported; in bxe_link_settings_supported()
14255 sc->port.supported[0] = sc->link_params.phy[ELINK_EXT_PHY1].supported; in bxe_link_settings_supported()
14259 if (sc->link_params.multi_phy_config & in bxe_link_settings_supported()
14262 sc->link_params.phy[ELINK_EXT_PHY1].supported; in bxe_link_settings_supported()
14264 sc->link_params.phy[ELINK_EXT_PHY2].supported; in bxe_link_settings_supported()
14267 sc->link_params.phy[ELINK_EXT_PHY1].supported; in bxe_link_settings_supported()
14269 sc->link_params.phy[ELINK_EXT_PHY2].supported; in bxe_link_settings_supported()
14307 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14312 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14317 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14322 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14327 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14332 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14337 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14342 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14364 switch (sc->link_params.num_phys) { in bxe_link_settings_requested()
14375 sc->link_params.req_duplex[idx] = DUPLEX_FULL; in bxe_link_settings_requested()
14381 sc->link_params.req_line_speed[idx] = ELINK_SPEED_AUTO_NEG; in bxe_link_settings_requested()
14383 if (sc->link_params.phy[ELINK_EXT_PHY1].type == in bxe_link_settings_requested()
14390 sc->link_params.req_line_speed[idx] = ELINK_SPEED_10000; in bxe_link_settings_requested()
14399 sc->link_params.req_line_speed[idx] = ELINK_SPEED_10; in bxe_link_settings_requested()
14405 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14412 sc->link_params.req_line_speed[idx] = ELINK_SPEED_10; in bxe_link_settings_requested()
14413 sc->link_params.req_duplex[idx] = DUPLEX_HALF; in bxe_link_settings_requested()
14417 sc->link_params.req_duplex[idx]); in bxe_link_settings_requested()
14421 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14428 sc->link_params.req_line_speed[idx] = ELINK_SPEED_100; in bxe_link_settings_requested()
14434 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14441 sc->link_params.req_line_speed[idx] = ELINK_SPEED_100; in bxe_link_settings_requested()
14442 sc->link_params.req_duplex[idx] = DUPLEX_HALF; in bxe_link_settings_requested()
14448 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14455 sc->link_params.req_line_speed[idx] = ELINK_SPEED_1000; in bxe_link_settings_requested()
14461 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14468 sc->link_params.req_line_speed[idx] = ELINK_SPEED_2500; in bxe_link_settings_requested()
14474 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14481 sc->link_params.req_line_speed[idx] = ELINK_SPEED_10000; in bxe_link_settings_requested()
14487 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14493 sc->link_params.req_line_speed[idx] = ELINK_SPEED_20000; in bxe_link_settings_requested()
14499 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14500 sc->link_params.req_line_speed[idx] = ELINK_SPEED_AUTO_NEG; in bxe_link_settings_requested()
14505 sc->link_params.req_flow_ctrl[idx] = in bxe_link_settings_requested()
14508 if (sc->link_params.req_flow_ctrl[idx] == ELINK_FLOW_CTRL_AUTO) { in bxe_link_settings_requested()
14510 sc->link_params.req_flow_ctrl[idx] = ELINK_FLOW_CTRL_NONE; in bxe_link_settings_requested()
14518 sc->link_params.req_line_speed[idx], in bxe_link_settings_requested()
14519 sc->link_params.req_duplex[idx], in bxe_link_settings_requested()
14520 sc->link_params.req_flow_ctrl[idx], in bxe_link_settings_requested()
14524 sc->link_params.req_line_speed[idx], in bxe_link_settings_requested()
14525 sc->link_params.req_duplex[idx], in bxe_link_settings_requested()
14541 sc->link_params.lane_config, in bxe_get_phy_info()
14542 sc->link_params.speed_cap_mask[0], in bxe_get_phy_info()
14546 bxe_link_settings_supported(sc, sc->link_params.switch_cfg); in bxe_get_phy_info()
14550 sc->link_params.feature_config_flags |= in bxe_get_phy_info()
14553 sc->link_params.feature_config_flags &= in bxe_get_phy_info()
14556 sc->link_params.feature_config_flags |= in bxe_get_phy_info()
14566 sc->link_params.eee_mode = (ELINK_EEE_MODE_ADV_LPI | in bxe_get_phy_info()
14570 sc->link_params.eee_mode = 0; in bxe_get_phy_info()
15592 elink_set_rx_filter(&sc->link_params, 0); in bxe_prev_unload_common()
15935 elink_link_reset(&sc->link_params, &sc->link_vars, 1); in bxe_force_link_reset()
15969 sc->link_params.req_flow_ctrl[cfg_idx] = ELINK_FLOW_CTRL_AUTO; in bxe_sysctl_pauseparam()
15971 sc->link_params.req_flow_ctrl[cfg_idx] |= ELINK_FLOW_CTRL_RX; in bxe_sysctl_pauseparam()
15974 sc->link_params.req_flow_ctrl[cfg_idx] |= ELINK_FLOW_CTRL_TX; in bxe_sysctl_pauseparam()
15975 if(sc->link_params.req_flow_ctrl[cfg_idx] == ELINK_FLOW_CTRL_AUTO) in bxe_sysctl_pauseparam()
15976 sc->link_params.req_flow_ctrl[cfg_idx] = ELINK_FLOW_CTRL_NONE; in bxe_sysctl_pauseparam()
15979 if (sc->link_params.req_line_speed[cfg_idx] == ELINK_SPEED_AUTO_NEG) { in bxe_sysctl_pauseparam()
15980 sc->link_params.req_flow_ctrl[cfg_idx] = in bxe_sysctl_pauseparam()
15983 sc->link_params.req_fc_auto_adv = 0; in bxe_sysctl_pauseparam()
15985 sc->link_params.req_fc_auto_adv |= ELINK_FLOW_CTRL_RX; in bxe_sysctl_pauseparam()
15988 sc->link_params.req_fc_auto_adv |= ELINK_FLOW_CTRL_TX; in bxe_sysctl_pauseparam()
15989 if (!sc->link_params.req_fc_auto_adv) in bxe_sysctl_pauseparam()
15990 sc->link_params.req_fc_auto_adv |= ELINK_FLOW_CTRL_NONE; in bxe_sysctl_pauseparam()
16000 rc = elink_phy_init(&sc->link_params, &sc->link_vars); in bxe_sysctl_pauseparam()
18404 elink_phy_probe(&sc->link_params); in bxe_init_hw_func()
18414 elink_lfa_reset(&sc->link_params, &sc->link_vars); in bxe_link_reset()
19244 if(sc->link_params.phy[bxe_get_cur_phy_idx(sc)].media_type == in bxe_get_settings()
19276 if(sc->link_params.req_line_speed[cfg_idx] == ELINK_SPEED_AUTO_NEG) in bxe_get_settings()