Lines Matching refs:phy_index

2244 	uint8_t phy_index;  in elink_set_mdio_emac_per_phy()  local
2247 for (phy_index = ELINK_INT_PHY; phy_index < params->num_phys; in elink_set_mdio_emac_per_phy()
2248 phy_index++) in elink_set_mdio_emac_per_phy()
2250 params->phy[phy_index].mdio_ctrl); in elink_set_mdio_emac_per_phy()
4012 uint8_t phy_index; in elink_phy_read() local
4016 for (phy_index = 0; phy_index < params->num_phys; phy_index++) { in elink_phy_read()
4017 if (params->phy[phy_index].addr == phy_addr) { in elink_phy_read()
4019 &params->phy[phy_index], devad, in elink_phy_read()
4029 uint8_t phy_index; in elink_phy_write() local
4033 for (phy_index = 0; phy_index < params->num_phys; phy_index++) { in elink_phy_write()
4034 if (params->phy[phy_index].addr == phy_addr) { in elink_phy_write()
4036 &params->phy[phy_index], devad, in elink_phy_write()
4246 uint8_t actual_phy_idx, phy_index, link_cfg_idx; in set_phy_vars() local
4249 for (phy_index = ELINK_INT_PHY; phy_index < params->num_phys; in set_phy_vars()
4250 phy_index++) { in set_phy_vars()
4251 link_cfg_idx = ELINK_LINK_CONFIG_IDX(phy_index); in set_phy_vars()
4252 actual_phy_idx = phy_index; in set_phy_vars()
4254 if (phy_index == ELINK_EXT_PHY1) in set_phy_vars()
4256 else if (phy_index == ELINK_EXT_PHY2) in set_phy_vars()
7320 uint16_t gp_status = 0, phy_index = 0; in elink_test_link() local
7378 for (phy_index = ELINK_EXT_PHY1; phy_index < params->num_phys; in elink_test_link()
7379 phy_index++) { in elink_test_link()
7380 serdes_phy_type = ((params->phy[phy_index].media_type == in elink_test_link()
7382 (params->phy[phy_index].media_type == in elink_test_link()
7384 (params->phy[phy_index].media_type == in elink_test_link()
7386 (params->phy[phy_index].media_type == in elink_test_link()
7391 if (params->phy[phy_index].read_status) { in elink_test_link()
7393 params->phy[phy_index].read_status( in elink_test_link()
7394 &params->phy[phy_index], in elink_test_link()
7408 uint8_t phy_index, non_ext_phy; in elink_link_initialize() local
7450 for (phy_index = ELINK_EXT_PHY1; phy_index < params->num_phys; in elink_link_initialize()
7451 phy_index++) { in elink_link_initialize()
7457 if (params->phy[phy_index].supported & in elink_link_initialize()
7461 if (phy_index == ELINK_EXT_PHY2 && in elink_link_initialize()
7468 params->phy[phy_index].config_init( in elink_link_initialize()
7469 &params->phy[phy_index], in elink_link_initialize()
7683 uint8_t link_10g_plus, phy_index; in elink_link_update() local
7691 for (phy_index = ELINK_INT_PHY; phy_index < params->num_phys; in elink_link_update()
7692 phy_index++) { in elink_link_update()
7693 phy_vars[phy_index].flow_ctrl = 0; in elink_link_update()
7694 phy_vars[phy_index].link_status = 0; in elink_link_update()
7695 phy_vars[phy_index].line_speed = 0; in elink_link_update()
7696 phy_vars[phy_index].duplex = DUPLEX_FULL; in elink_link_update()
7697 phy_vars[phy_index].phy_link_up = 0; in elink_link_update()
7698 phy_vars[phy_index].link_up = 0; in elink_link_update()
7699 phy_vars[phy_index].fault_detected = 0; in elink_link_update()
7701 phy_vars[phy_index].eee_status = vars->eee_status; in elink_link_update()
7731 for (phy_index = ELINK_EXT_PHY1; phy_index < params->num_phys; in elink_link_update()
7732 phy_index++) { in elink_link_update()
7733 struct elink_phy *phy = &params->phy[phy_index]; in elink_link_update()
7738 &phy_vars[phy_index]); in elink_link_update()
7741 phy_index); in elink_link_update()
7744 phy_index); in elink_link_update()
7750 active_external_phy = phy_index; in elink_link_update()
7849 for (phy_index = ELINK_EXT_PHY1; phy_index < params->num_phys; in elink_link_update()
7850 phy_index++) { in elink_link_update()
7851 if (params->phy[phy_index].flags & in elink_link_update()
7854 phy_index == in elink_link_update()
12958 uint8_t phy_index) in elink_populate_preemphasis() argument
12967 if (phy_index == ELINK_INT_PHY || phy_index == ELINK_EXT_PHY1) { in elink_populate_preemphasis()
12996 uint8_t phy_index, uint8_t port) in elink_get_ext_phy_config() argument
12999 switch (phy_index) { in elink_get_ext_phy_config()
13011 ELINK_DEBUG_P1(sc, "Invalid phy_index %d\n", phy_index); in elink_get_ext_phy_config()
13158 uint8_t phy_index, in elink_populate_ext_phy() argument
13167 phy_index, port); in elink_populate_ext_phy()
13233 elink_populate_preemphasis(sc, shmem_base, phy, port, phy_index); in elink_populate_ext_phy()
13241 if (phy_index == ELINK_EXT_PHY1) { in elink_populate_ext_phy()
13279 phy_type, port, phy_index); in elink_populate_ext_phy()
13285 static elink_status_t elink_populate_phy(struct bxe_softc *sc, uint8_t phy_index, uint32_t shmem_ba… in elink_populate_phy() argument
13290 if (phy_index == ELINK_INT_PHY) in elink_populate_phy()
13292 status = elink_populate_ext_phy(sc, phy_index, shmem_base, shmem2_base, in elink_populate_phy()
13299 uint8_t phy_index) in elink_phy_def_cfg() argument
13304 if (phy_index == ELINK_EXT_PHY2) { in elink_phy_def_cfg()
13323 phy_index, link_config, phy->speed_cap_mask); in elink_phy_def_cfg()
13352 phy_index, phy->req_duplex); in elink_phy_def_cfg()
13409 uint8_t phy_index, actual_phy_idx; in elink_phy_probe() local
13422 for (phy_index = ELINK_INT_PHY; phy_index < ELINK_MAX_PHYS; in elink_phy_probe()
13423 phy_index++) { in elink_phy_probe()
13424 actual_phy_idx = phy_index; in elink_phy_probe()
13426 if (phy_index == ELINK_EXT_PHY1) in elink_phy_probe()
13428 else if (phy_index == ELINK_EXT_PHY2) in elink_phy_probe()
13433 phy_index, actual_phy_idx); in elink_phy_probe()
13435 if (elink_populate_phy(sc, phy_index, params->shmem_base, in elink_phy_probe()
13440 phy_index); in elink_phy_probe()
13441 for (phy_index = ELINK_INT_PHY; in elink_phy_probe()
13442 phy_index < ELINK_MAX_PHYS; in elink_phy_probe()
13443 phy_index++) in elink_phy_probe()
13477 elink_phy_def_cfg(params, phy, phy_index); in elink_phy_probe()
13788 uint8_t phy_index; in elink_init_xgxs_loopback() local
13789 for (phy_index = ELINK_EXT_PHY1; in elink_init_xgxs_loopback()
13790 phy_index < params->num_phys; phy_index++) in elink_init_xgxs_loopback()
13791 if (params->phy[phy_index].config_loopback) in elink_init_xgxs_loopback()
13792 params->phy[phy_index].config_loopback( in elink_init_xgxs_loopback()
13793 &params->phy[phy_index], in elink_init_xgxs_loopback()
14074 uint8_t phy_index, port = params->port, clear_latch_ind = 0; in elink_link_reset() local
14128 for (phy_index = ELINK_EXT_PHY1; phy_index < params->num_phys; in elink_link_reset()
14129 phy_index++) { in elink_link_reset()
14130 if (params->phy[phy_index].link_reset) { in elink_link_reset()
14132 &params->phy[phy_index]); in elink_link_reset()
14133 params->phy[phy_index].link_reset( in elink_link_reset()
14134 &params->phy[phy_index], in elink_link_reset()
14137 if (params->phy[phy_index].flags & in elink_link_reset()
14232 uint32_t shmem2_base_path[], uint8_t phy_index, in elink_8073_common_init_phy() argument
14260 if (elink_populate_phy(sc, phy_index, shmem_base, shmem2_base, in elink_8073_common_init_phy()
14358 uint32_t shmem2_base_path[], uint8_t phy_index, in elink_8726_common_init_phy() argument
14385 if (elink_populate_phy(sc, phy_index, shmem_base, shmem2_base, in elink_8726_common_init_phy()
14453 uint32_t shmem2_base_path[], uint8_t phy_index, in elink_8727_common_init_phy() argument
14501 if (elink_populate_phy(sc, phy_index, shmem_base, shmem2_base, in elink_8727_common_init_phy()
14553 uint8_t phy_index, in elink_84833_common_init_phy() argument
14566 uint32_t shmem2_base_path[], uint8_t phy_index, in elink_ext_phy_common_init() argument
14575 phy_index, chip_id); in elink_ext_phy_common_init()
14582 phy_index, chip_id); in elink_ext_phy_common_init()
14591 phy_index, chip_id); in elink_ext_phy_common_init()
14601 phy_index, chip_id); in elink_ext_phy_common_init()
14626 uint8_t phy_index = 0; in elink_common_init_phy() local
14652 for (phy_index = ELINK_EXT_PHY1; phy_index < ELINK_MAX_PHYS; in elink_common_init_phy()
14653 phy_index++) { in elink_common_init_phy()
14656 phy_index, 0); in elink_common_init_phy()
14660 phy_index, ext_phy_type, in elink_common_init_phy()
15012 uint8_t phy_index, fan_failure_det_req = 0; in elink_fan_failure_det_req() local
15014 for (phy_index = ELINK_EXT_PHY1; phy_index < ELINK_MAX_PHYS; in elink_fan_failure_det_req()
15015 phy_index++) { in elink_fan_failure_det_req()
15016 if (elink_populate_phy(sc, phy_index, shmem_base, shmem2_base, in elink_fan_failure_det_req()
15030 uint8_t phy_index; in elink_hw_reset_phy() local
15039 for (phy_index = ELINK_INT_PHY; phy_index < ELINK_MAX_PHYS; in elink_hw_reset_phy()
15040 phy_index++) { in elink_hw_reset_phy()
15041 if (params->phy[phy_index].hw_reset) { in elink_hw_reset_phy()
15042 params->phy[phy_index].hw_reset( in elink_hw_reset_phy()
15043 &params->phy[phy_index], in elink_hw_reset_phy()
15045 params->phy[phy_index] = phy_null; in elink_hw_reset_phy()
15054 uint8_t gpio_num = 0xff, gpio_port = 0xff, phy_index; in elink_init_mod_abs_int() local
15066 for (phy_index = ELINK_EXT_PHY1; phy_index < ELINK_MAX_PHYS; in elink_init_mod_abs_int()
15067 phy_index++) { in elink_init_mod_abs_int()
15068 if (elink_populate_phy(sc, phy_index, shmem_base, in elink_init_mod_abs_int()