Lines Matching refs:phy_data

281 	struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;  in efx_get_mcdi_phy_flags()
415 struct efx_mcdi_phy_data *phy_data; in efx_mcdi_phy_probe() local
421 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); in efx_mcdi_phy_probe()
422 if (phy_data == NULL) in efx_mcdi_phy_probe()
425 rc = efx_mcdi_get_phy_cfg(efx, phy_data); in efx_mcdi_phy_probe()
437 efx->phy_data = phy_data; in efx_mcdi_phy_probe()
438 efx->phy_type = phy_data->type; in efx_mcdi_phy_probe()
440 efx->mdio_bus = phy_data->channel; in efx_mcdi_phy_probe()
441 efx->mdio.prtad = phy_data->port; in efx_mcdi_phy_probe()
442 efx->mdio.mmds = phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22); in efx_mcdi_phy_probe()
444 if (phy_data->mmd_mask & (1 << MC_CMD_MMD_CLAUSE22)) in efx_mcdi_phy_probe()
446 if (phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22)) in efx_mcdi_phy_probe()
451 mcdi_to_ethtool_linkset(phy_data->media, caps, in efx_mcdi_phy_probe()
454 phy_data->forced_cap = caps; in efx_mcdi_phy_probe()
508 if (phy_data->supported_cap & (1 << MC_CMD_PHY_CAP_AN_LBN)) in efx_mcdi_phy_probe()
515 kfree(phy_data); in efx_mcdi_phy_probe()
521 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_port_reconfigure()
537 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_check_fcntl()
586 struct efx_mcdi_phy_data *phy_data = efx->phy_data; in efx_mcdi_phy_remove() local
588 efx->phy_data = NULL; in efx_mcdi_phy_remove()
589 kfree(phy_data); in efx_mcdi_phy_remove()
595 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_get_link_ksettings()
626 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_set_link_ksettings()
726 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_set_fecparam()
845 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_run_tests()
884 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_test_name()
997 struct efx_mcdi_phy_data *phy_data = efx->phy_data; in efx_mcdi_phy_module_type() local
999 if (phy_data->media != MC_CMD_MEDIA_QSFP_PLUS) in efx_mcdi_phy_module_type()
1000 return phy_data->media; in efx_mcdi_phy_module_type()
1139 struct efx_mcdi_phy_data *phy_data = efx->phy_data; in efx_mcdi_phy_get_caps() local
1141 return phy_data->supported_cap; in efx_mcdi_phy_get_caps()