Lines Matching refs:phy_data

278 	struct efx_mcdi_phy_data *phy_cfg = efx->phy_data;  in efx_get_mcdi_phy_flags()
413 struct efx_mcdi_phy_data *phy_data; in efx_mcdi_phy_probe() local
419 phy_data = kzalloc(sizeof(*phy_data), GFP_KERNEL); in efx_mcdi_phy_probe()
420 if (phy_data == NULL) in efx_mcdi_phy_probe()
423 rc = efx_mcdi_get_phy_cfg(efx, phy_data); in efx_mcdi_phy_probe()
435 efx->phy_data = phy_data; in efx_mcdi_phy_probe()
436 efx->phy_type = phy_data->type; in efx_mcdi_phy_probe()
438 efx->mdio_bus = phy_data->channel; in efx_mcdi_phy_probe()
439 efx->mdio.prtad = phy_data->port; in efx_mcdi_phy_probe()
440 efx->mdio.mmds = phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22); in efx_mcdi_phy_probe()
442 if (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()
449 mcdi_to_ethtool_linkset(phy_data->media, caps, in efx_mcdi_phy_probe()
452 phy_data->forced_cap = caps; in efx_mcdi_phy_probe()
506 if (phy_data->supported_cap & (1 << MC_CMD_PHY_CAP_AN_LBN)) in efx_mcdi_phy_probe()
513 kfree(phy_data); in efx_mcdi_phy_probe()
519 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_port_reconfigure()
535 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_check_fcntl()
584 struct efx_mcdi_phy_data *phy_data = efx->phy_data; in efx_mcdi_phy_remove() local
586 efx->phy_data = NULL; in efx_mcdi_phy_remove()
587 kfree(phy_data); in efx_mcdi_phy_remove()
593 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_get_link_ksettings()
624 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_set_link_ksettings()
724 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_set_fecparam()
843 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_run_tests()
882 struct efx_mcdi_phy_data *phy_cfg = efx->phy_data; in efx_mcdi_phy_test_name()
995 struct efx_mcdi_phy_data *phy_data = efx->phy_data; in efx_mcdi_phy_module_type() local
997 if (phy_data->media != MC_CMD_MEDIA_QSFP_PLUS) in efx_mcdi_phy_module_type()
998 return phy_data->media; in efx_mcdi_phy_module_type()
1137 struct efx_mcdi_phy_data *phy_data = efx->phy_data; in efx_mcdi_phy_get_caps() local
1139 return phy_data->supported_cap; in efx_mcdi_phy_get_caps()