Lines Matching refs:link_params

7056     elink_link_update(&sc->link_params, &sc->link_vars);  in bxe_link_attn()
8230 elink_hw_reset_phy(&sc->link_params); in bxe_attn_int_deasserted0()
8236 elink_handle_module_detect_int(&sc->link_params); in bxe_attn_int_deasserted0()
10900 sc->link_params.shmem_base = in bxe_init_shmem()
11678 return (bxe_set_mac_one(sc, sc->link_params.mac_addr, in bxe_set_eth_mac()
11688 if (sc->link_params.num_phys <= 1) { in bxe_get_cur_phy_idx()
11696 (sc->link_params.phy[ELINK_EXT_PHY2].supported & in bxe_get_cur_phy_idx()
11700 switch (elink_phy_selection(&sc->link_params)) { in bxe_get_cur_phy_idx()
11727 if (sc->link_params.multi_phy_config & PORT_HW_CFG_PHY_SWAPPED_ENABLED) { in bxe_get_link_cfg_idx()
11746 sc->link_params.req_fc_auto_adv = ELINK_FLOW_CTRL_TX; in bxe_set_requested_fc()
11748 sc->link_params.req_fc_auto_adv = ELINK_FLOW_CTRL_BOTH; in bxe_set_requested_fc()
11931 elink_link_status_update(&sc->link_params, &sc->link_vars); in bxe_link_status_update()
11947 sc->link_params.sc = sc; in bxe_link_status_update()
11948 sc->link_params.port = SC_PORT(sc); in bxe_link_status_update()
11949 sc->link_params.req_duplex[0] = DUPLEX_FULL; in bxe_link_status_update()
11950 sc->link_params.req_flow_ctrl[0] = ELINK_FLOW_CTRL_NONE; in bxe_link_status_update()
11951 sc->link_params.req_line_speed[0] = SPEED_10000; in bxe_link_status_update()
11952 sc->link_params.speed_cap_mask[0] = 0x7f0000; in bxe_link_status_update()
11953 sc->link_params.switch_cfg = ELINK_SWITCH_CFG_10G; in bxe_link_status_update()
11973 REG_WR(sc, NIG_REG_EGRESS_DRAIN0_MODE + sc->link_params.port*4, 0); in bxe_link_status_update()
11997 uint16_t req_line_speed = sc->link_params.req_line_speed[cfg_idx]; in bxe_initial_phy_init()
11998 struct elink_params *lp = &sc->link_params; in bxe_initial_phy_init()
12027 sc->link_params.feature_config_flags |= feat; in bxe_initial_phy_init()
12049 rc = elink_phy_init(&sc->link_params, &sc->link_vars); in bxe_initial_phy_init()
12064 sc->link_params.req_line_speed[cfg_idx] = req_line_speed; in bxe_initial_phy_init()
12356 elink_period_func(&sc->link_params, &sc->link_vars); in bxe_periodic_callout_func()
12840 sc->link_params.feature_config_flags &= in bxe_nic_load()
13125 ether_ifattach(ifp, sc->link_params.mac_addr); in bxe_init_ifnet()
13743 sc->link_params.sc = sc; in bxe_get_shmem_info()
13744 sc->link_params.port = port; in bxe_get_shmem_info()
13752 sc->link_params.hw_led_mode = in bxe_get_shmem_info()
13761 sc->link_params.speed_cap_mask[0] = in bxe_get_shmem_info()
13763 sc->link_params.speed_cap_mask[1] = in bxe_get_shmem_info()
13767 sc->link_params.lane_config = in bxe_get_shmem_info()
13773 sc->link_params.switch_cfg = (val & PORT_FEATURE_CONNECTED_SWITCH_MASK); in bxe_get_shmem_info()
13780 sc->link_params.feature_config_flags |= in bxe_get_shmem_info()
13783 sc->link_params.feature_config_flags &= in bxe_get_shmem_info()
13788 sc->link_params.multi_phy_config = in bxe_get_shmem_info()
13811 sc->link_params.mac_addr[0] = (uint8_t)(mac_hi >> 8); in bxe_get_shmem_info()
13812 sc->link_params.mac_addr[1] = (uint8_t)(mac_hi); in bxe_get_shmem_info()
13813 sc->link_params.mac_addr[2] = (uint8_t)(mac_lo >> 24); in bxe_get_shmem_info()
13814 sc->link_params.mac_addr[3] = (uint8_t)(mac_lo >> 16); in bxe_get_shmem_info()
13815 sc->link_params.mac_addr[4] = (uint8_t)(mac_lo >> 8); in bxe_get_shmem_info()
13816 sc->link_params.mac_addr[5] = (uint8_t)(mac_lo); in bxe_get_shmem_info()
13819 sc->link_params.mac_addr[0], sc->link_params.mac_addr[1], in bxe_get_shmem_info()
13820 sc->link_params.mac_addr[2], sc->link_params.mac_addr[3], in bxe_get_shmem_info()
13821 sc->link_params.mac_addr[4], sc->link_params.mac_addr[5]); in bxe_get_shmem_info()
13941 switch (sc->link_params.phy[phy_idx].media_type) { in bxe_media_detect()
13965 if (sc->link_params.speed_cap_mask[0] & in bxe_media_detect()
14075 sc->link_params.chip_id = in bxe_get_device_info()
14138 sc->link_params.shmem_base = in bxe_get_device_info()
14298 elink_phy_probe(&sc->link_params); in bxe_get_device_info()
14315 switch (sc->link_params.num_phys) { in bxe_link_settings_supported()
14317 sc->port.supported[0] = sc->link_params.phy[ELINK_INT_PHY].supported; in bxe_link_settings_supported()
14321 sc->port.supported[0] = sc->link_params.phy[ELINK_EXT_PHY1].supported; in bxe_link_settings_supported()
14325 if (sc->link_params.multi_phy_config & in bxe_link_settings_supported()
14328 sc->link_params.phy[ELINK_EXT_PHY1].supported; in bxe_link_settings_supported()
14330 sc->link_params.phy[ELINK_EXT_PHY2].supported; in bxe_link_settings_supported()
14333 sc->link_params.phy[ELINK_EXT_PHY1].supported; in bxe_link_settings_supported()
14335 sc->link_params.phy[ELINK_EXT_PHY2].supported; in bxe_link_settings_supported()
14373 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14378 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14383 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14388 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14393 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14398 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14403 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14408 if (!(sc->link_params.speed_cap_mask[idx] & in bxe_link_settings_supported()
14430 switch (sc->link_params.num_phys) { in bxe_link_settings_requested()
14441 sc->link_params.req_duplex[idx] = DUPLEX_FULL; in bxe_link_settings_requested()
14447 sc->link_params.req_line_speed[idx] = ELINK_SPEED_AUTO_NEG; in bxe_link_settings_requested()
14449 if (sc->link_params.phy[ELINK_EXT_PHY1].type == in bxe_link_settings_requested()
14456 sc->link_params.req_line_speed[idx] = ELINK_SPEED_10000; in bxe_link_settings_requested()
14465 sc->link_params.req_line_speed[idx] = ELINK_SPEED_10; in bxe_link_settings_requested()
14471 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14478 sc->link_params.req_line_speed[idx] = ELINK_SPEED_10; in bxe_link_settings_requested()
14479 sc->link_params.req_duplex[idx] = DUPLEX_HALF; in bxe_link_settings_requested()
14483 sc->link_params.req_duplex[idx]); in bxe_link_settings_requested()
14487 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14494 sc->link_params.req_line_speed[idx] = ELINK_SPEED_100; in bxe_link_settings_requested()
14500 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14507 sc->link_params.req_line_speed[idx] = ELINK_SPEED_100; in bxe_link_settings_requested()
14508 sc->link_params.req_duplex[idx] = DUPLEX_HALF; in bxe_link_settings_requested()
14514 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14521 sc->link_params.req_line_speed[idx] = ELINK_SPEED_1000; in bxe_link_settings_requested()
14527 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14534 sc->link_params.req_line_speed[idx] = ELINK_SPEED_2500; in bxe_link_settings_requested()
14540 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14547 sc->link_params.req_line_speed[idx] = ELINK_SPEED_10000; in bxe_link_settings_requested()
14553 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14559 sc->link_params.req_line_speed[idx] = ELINK_SPEED_20000; in bxe_link_settings_requested()
14565 link_config, sc->link_params.speed_cap_mask[idx]); in bxe_link_settings_requested()
14566 sc->link_params.req_line_speed[idx] = ELINK_SPEED_AUTO_NEG; in bxe_link_settings_requested()
14571 sc->link_params.req_flow_ctrl[idx] = in bxe_link_settings_requested()
14574 if (sc->link_params.req_flow_ctrl[idx] == ELINK_FLOW_CTRL_AUTO) { in bxe_link_settings_requested()
14576 sc->link_params.req_flow_ctrl[idx] = ELINK_FLOW_CTRL_NONE; in bxe_link_settings_requested()
14584 sc->link_params.req_line_speed[idx], in bxe_link_settings_requested()
14585 sc->link_params.req_duplex[idx], in bxe_link_settings_requested()
14586 sc->link_params.req_flow_ctrl[idx], in bxe_link_settings_requested()
14590 sc->link_params.req_line_speed[idx], in bxe_link_settings_requested()
14591 sc->link_params.req_duplex[idx], in bxe_link_settings_requested()
14607 sc->link_params.lane_config, in bxe_get_phy_info()
14608 sc->link_params.speed_cap_mask[0], in bxe_get_phy_info()
14612 bxe_link_settings_supported(sc, sc->link_params.switch_cfg); in bxe_get_phy_info()
14616 sc->link_params.feature_config_flags |= in bxe_get_phy_info()
14619 sc->link_params.feature_config_flags &= in bxe_get_phy_info()
14622 sc->link_params.feature_config_flags |= in bxe_get_phy_info()
14632 sc->link_params.eee_mode = (ELINK_EEE_MODE_ADV_LPI | in bxe_get_phy_info()
14636 sc->link_params.eee_mode = 0; in bxe_get_phy_info()
15658 elink_set_rx_filter(&sc->link_params, 0); in bxe_prev_unload_common()
16001 elink_link_reset(&sc->link_params, &sc->link_vars, 1); in bxe_force_link_reset()
16035 sc->link_params.req_flow_ctrl[cfg_idx] = ELINK_FLOW_CTRL_AUTO; in bxe_sysctl_pauseparam()
16037 sc->link_params.req_flow_ctrl[cfg_idx] |= ELINK_FLOW_CTRL_RX; in bxe_sysctl_pauseparam()
16040 sc->link_params.req_flow_ctrl[cfg_idx] |= ELINK_FLOW_CTRL_TX; in bxe_sysctl_pauseparam()
16041 if(sc->link_params.req_flow_ctrl[cfg_idx] == ELINK_FLOW_CTRL_AUTO) in bxe_sysctl_pauseparam()
16042 sc->link_params.req_flow_ctrl[cfg_idx] = ELINK_FLOW_CTRL_NONE; in bxe_sysctl_pauseparam()
16045 if (sc->link_params.req_line_speed[cfg_idx] == ELINK_SPEED_AUTO_NEG) { in bxe_sysctl_pauseparam()
16046 sc->link_params.req_flow_ctrl[cfg_idx] = in bxe_sysctl_pauseparam()
16049 sc->link_params.req_fc_auto_adv = 0; in bxe_sysctl_pauseparam()
16051 sc->link_params.req_fc_auto_adv |= ELINK_FLOW_CTRL_RX; in bxe_sysctl_pauseparam()
16054 sc->link_params.req_fc_auto_adv |= ELINK_FLOW_CTRL_TX; in bxe_sysctl_pauseparam()
16055 if (!sc->link_params.req_fc_auto_adv) in bxe_sysctl_pauseparam()
16056 sc->link_params.req_fc_auto_adv |= ELINK_FLOW_CTRL_NONE; in bxe_sysctl_pauseparam()
16066 rc = elink_phy_init(&sc->link_params, &sc->link_vars); in bxe_sysctl_pauseparam()
18500 elink_phy_probe(&sc->link_params); in bxe_init_hw_func()
18510 elink_lfa_reset(&sc->link_params, &sc->link_vars); in bxe_link_reset()
19340 if(sc->link_params.phy[bxe_get_cur_phy_idx(sc)].media_type == in bxe_get_settings()
19372 if(sc->link_params.req_line_speed[cfg_idx] == ELINK_SPEED_AUTO_NEG) in bxe_get_settings()