Home
last modified time | relevance | path

Searched refs:plca_cfg (Results 1 – 6 of 6) sorted by relevance

/linux/net/ethtool/
H A Dplca.c15 struct phy_plca_cfg plca_cfg; member
84 memset(&data->plca_cfg, 0xff, in plca_get_cfg_prepare_data()
85 sizeof_field(struct plca_reply_data, plca_cfg)); in plca_get_cfg_prepare_data()
87 ret = ops->get_plca_cfg(phydev, &data->plca_cfg); in plca_get_cfg_prepare_data()
111 const struct phy_plca_cfg *plca = &data->plca_cfg; in plca_get_cfg_fill_reply()
150 struct phy_plca_cfg plca_cfg; in ethnl_set_plca() local
165 memset(&plca_cfg, 0xff, sizeof(plca_cfg)); in ethnl_set_plca()
166 plca_update_sint(&plca_cfg.enabled, tb, ETHTOOL_A_PLCA_ENABLED, &mod); in ethnl_set_plca()
167 plca_update_sint(&plca_cfg.node_id, tb, ETHTOOL_A_PLCA_NODE_ID, &mod); in ethnl_set_plca()
168 plca_update_sint(&plca_cfg.node_cnt, tb, ETHTOOL_A_PLCA_NODE_CNT, &mod); in ethnl_set_plca()
[all …]
/linux/drivers/net/phy/
H A Dphy-c45.c1288 struct phy_plca_cfg *plca_cfg) in genphy_c45_plca_get_cfg() argument
1299 plca_cfg->version = ret & ~MDIO_OATC14_PLCA_IDM; in genphy_c45_plca_get_cfg()
1305 plca_cfg->enabled = !!(ret & MDIO_OATC14_PLCA_EN); in genphy_c45_plca_get_cfg()
1311 plca_cfg->node_cnt = (ret & MDIO_OATC14_PLCA_NCNT) >> 8; in genphy_c45_plca_get_cfg()
1312 plca_cfg->node_id = (ret & MDIO_OATC14_PLCA_ID); in genphy_c45_plca_get_cfg()
1318 plca_cfg->to_tmr = ret & MDIO_OATC14_PLCA_TOT; in genphy_c45_plca_get_cfg()
1324 plca_cfg->burst_cnt = (ret & MDIO_OATC14_PLCA_MAXBC) >> 8; in genphy_c45_plca_get_cfg()
1325 plca_cfg->burst_tmr = (ret & MDIO_OATC14_PLCA_BTMR); in genphy_c45_plca_get_cfg()
1342 const struct phy_plca_cfg *plca_cfg) in genphy_c45_plca_set_cfg() argument
1348 if (plca_cfg->version >= 0) in genphy_c45_plca_set_cfg()
[all …]
H A Dphy.c661 struct phy_plca_cfg *plca_cfg) in phy_ethtool_get_plca_cfg() argument
676 ret = phydev->drv->get_plca_cfg(phydev, plca_cfg); in phy_ethtool_get_plca_cfg()
694 const struct phy_plca_cfg *plca_cfg, in plca_check_valid() argument
704 } else if (plca_cfg->node_id >= 255) { in plca_check_valid()
722 const struct phy_plca_cfg *plca_cfg, in phy_ethtool_set_plca_cfg() argument
751 if (curr_plca_cfg->enabled < 0 && plca_cfg->enabled >= 0) { in phy_ethtool_set_plca_cfg()
758 if (curr_plca_cfg->node_id < 0 && plca_cfg->node_id >= 0) { in phy_ethtool_set_plca_cfg()
765 if (curr_plca_cfg->node_cnt < 0 && plca_cfg->node_cnt >= 0) { in phy_ethtool_set_plca_cfg()
772 if (curr_plca_cfg->to_tmr < 0 && plca_cfg->to_tmr >= 0) { in phy_ethtool_set_plca_cfg()
779 if (curr_plca_cfg->burst_cnt < 0 && plca_cfg->burst_cnt >= 0) { in phy_ethtool_set_plca_cfg()
[all …]
H A Dmicrochip_t1s.c445 const struct phy_plca_cfg *plca_cfg) in lan86xx_plca_set_cfg() argument
452 plca_cfg->enabled); in lan86xx_plca_set_cfg()
457 ret = genphy_c45_plca_set_cfg(phydev, plca_cfg); in lan86xx_plca_set_cfg()
461 if (plca_cfg->enabled) in lan86xx_plca_set_cfg()
/linux/include/linux/
H A Dphy.h1435 struct phy_plca_cfg *plca_cfg);
1438 const struct phy_plca_cfg *plca_cfg);
2322 struct phy_plca_cfg *plca_cfg);
2324 const struct phy_plca_cfg *plca_cfg);
2436 struct phy_plca_cfg *plca_cfg);
2438 const struct phy_plca_cfg *plca_cfg,
H A Dethtool.h1369 struct phy_plca_cfg *plca_cfg);
1371 const struct phy_plca_cfg *plca_cfg,