Searched refs:plca_cfg (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/net/ethtool/ |
H A D | plca.c | 15 struct phy_plca_cfg plca_cfg; member 80 memset(&data->plca_cfg, 0xff, in plca_get_cfg_prepare_data() 81 sizeof_field(struct plca_reply_data, plca_cfg)); in plca_get_cfg_prepare_data() 83 ret = ops->get_plca_cfg(dev->phydev, &data->plca_cfg); in plca_get_cfg_prepare_data() 107 const struct phy_plca_cfg *plca = &data->plca_cfg; in plca_get_cfg_fill_reply() 147 struct phy_plca_cfg plca_cfg; in ethnl_set_plca() local 159 memset(&plca_cfg, 0xff, sizeof(plca_cfg)); in ethnl_set_plca() 160 plca_update_sint(&plca_cfg.enabled, tb, ETHTOOL_A_PLCA_ENABLED, &mod); in ethnl_set_plca() 161 plca_update_sint(&plca_cfg.node_id, tb, ETHTOOL_A_PLCA_NODE_ID, &mod); in ethnl_set_plca() 162 plca_update_sint(&plca_cfg.node_cnt, tb, ETHTOOL_A_PLCA_NODE_CNT, &mod); in ethnl_set_plca() [all …]
|
/openbmc/linux/drivers/net/phy/ |
H A D | phy-c45.c | 1197 struct phy_plca_cfg *plca_cfg) in genphy_c45_plca_get_cfg() argument 1208 plca_cfg->version = ret & ~MDIO_OATC14_PLCA_IDM; in genphy_c45_plca_get_cfg() 1214 plca_cfg->enabled = !!(ret & MDIO_OATC14_PLCA_EN); in genphy_c45_plca_get_cfg() 1220 plca_cfg->node_cnt = (ret & MDIO_OATC14_PLCA_NCNT) >> 8; in genphy_c45_plca_get_cfg() 1221 plca_cfg->node_id = (ret & MDIO_OATC14_PLCA_ID); in genphy_c45_plca_get_cfg() 1227 plca_cfg->to_tmr = ret & MDIO_OATC14_PLCA_TOT; in genphy_c45_plca_get_cfg() 1233 plca_cfg->burst_cnt = (ret & MDIO_OATC14_PLCA_MAXBC) >> 8; in genphy_c45_plca_get_cfg() 1234 plca_cfg->burst_tmr = (ret & MDIO_OATC14_PLCA_BTMR); in genphy_c45_plca_get_cfg() 1251 const struct phy_plca_cfg *plca_cfg) in genphy_c45_plca_set_cfg() argument 1257 if (plca_cfg->version >= 0) in genphy_c45_plca_set_cfg() [all …]
|
H A D | phy.c | 602 struct phy_plca_cfg *plca_cfg) in phy_ethtool_get_plca_cfg() argument 617 ret = phydev->drv->get_plca_cfg(phydev, plca_cfg); in phy_ethtool_get_plca_cfg() 635 const struct phy_plca_cfg *plca_cfg, in plca_check_valid() argument 645 } else if (plca_cfg->node_id >= 255) { in plca_check_valid() 663 const struct phy_plca_cfg *plca_cfg, in phy_ethtool_set_plca_cfg() argument 692 if (curr_plca_cfg->enabled < 0 && plca_cfg->enabled >= 0) { in phy_ethtool_set_plca_cfg() 699 if (curr_plca_cfg->node_id < 0 && plca_cfg->node_id >= 0) { in phy_ethtool_set_plca_cfg() 706 if (curr_plca_cfg->node_cnt < 0 && plca_cfg->node_cnt >= 0) { in phy_ethtool_set_plca_cfg() 713 if (curr_plca_cfg->to_tmr < 0 && plca_cfg->to_tmr >= 0) { in phy_ethtool_set_plca_cfg() 720 if (curr_plca_cfg->burst_cnt < 0 && plca_cfg->burst_cnt >= 0) { in phy_ethtool_set_plca_cfg() [all …]
|
/openbmc/linux/include/linux/ |
H A D | phy.h | 1084 struct phy_plca_cfg *plca_cfg); 1087 const struct phy_plca_cfg *plca_cfg); 1874 struct phy_plca_cfg *plca_cfg); 1876 const struct phy_plca_cfg *plca_cfg); 1985 struct phy_plca_cfg *plca_cfg); 1987 const struct phy_plca_cfg *plca_cfg,
|
H A D | ethtool.h | 963 struct phy_plca_cfg *plca_cfg); 965 const struct phy_plca_cfg *plca_cfg,
|