Searched refs:plca_cfg (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/drivers/ethernet/phy/ |
D | phy_oa_tc14_plca.c | 44 int genphy_set_plca_cfg(const struct device *dev, struct phy_plca_cfg *plca_cfg) in genphy_set_plca_cfg() argument 55 if (!plca_cfg->enable) { in genphy_set_plca_cfg() 60 val = (plca_cfg->node_count << 8) | plca_cfg->node_id; in genphy_set_plca_cfg() 66 val = (plca_cfg->burst_count << 8) | plca_cfg->burst_timer; in genphy_set_plca_cfg() 73 plca_cfg->to_timer); in genphy_set_plca_cfg() 83 int genphy_get_plca_cfg(const struct device *dev, struct phy_plca_cfg *plca_cfg) in genphy_get_plca_cfg() argument 97 plca_cfg->version = ret & ~MDIO_OATC14_PLCA_IDM; in genphy_get_plca_cfg() 104 plca_cfg->enable = !!(val & MDIO_OATC14_PLCA_EN); in genphy_get_plca_cfg() 111 plca_cfg->node_id = val & MDIO_OATC14_PLCA_ID; in genphy_get_plca_cfg() 112 plca_cfg->node_count = (val & MDIO_OATC14_PLCA_NCNT) >> 8; in genphy_get_plca_cfg() [all …]
|
D | phy_microchip_t1s.c | 458 static int phy_mc_t1s_set_plca_cfg(const struct device *dev, struct phy_plca_cfg *plca_cfg) in phy_mc_t1s_set_plca_cfg() argument 462 ret = genphy_set_plca_cfg(dev, plca_cfg); in phy_mc_t1s_set_plca_cfg() 467 return lan86xx_config_collision_detection(dev, plca_cfg->enable); in phy_mc_t1s_set_plca_cfg() 473 struct phy_plca_cfg plca_cfg; in phy_mc_t1s_set_dt_plca() local 479 plca_cfg.enable = cfg->plca->enable; in phy_mc_t1s_set_dt_plca() 480 plca_cfg.node_id = cfg->plca->node_id; in phy_mc_t1s_set_dt_plca() 481 plca_cfg.node_count = cfg->plca->node_count; in phy_mc_t1s_set_dt_plca() 482 plca_cfg.burst_count = cfg->plca->burst_count; in phy_mc_t1s_set_dt_plca() 483 plca_cfg.burst_timer = cfg->plca->burst_timer; in phy_mc_t1s_set_dt_plca() 484 plca_cfg.to_timer = cfg->plca->to_timer; in phy_mc_t1s_set_dt_plca() [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | phy.h | 117 int genphy_get_plca_cfg(const struct device *dev, struct phy_plca_cfg *plca_cfg); 130 int genphy_set_plca_cfg(const struct device *dev, struct phy_plca_cfg *plca_cfg); 186 int (*set_plca_cfg)(const struct device *dev, struct phy_plca_cfg *plca_cfg); 189 int (*get_plca_cfg)(const struct device *dev, struct phy_plca_cfg *plca_cfg); 378 static inline int phy_set_plca_cfg(const struct device *dev, struct phy_plca_cfg *plca_cfg) in phy_set_plca_cfg() argument 386 return api->set_plca_cfg(dev, plca_cfg); in phy_set_plca_cfg() 400 static inline int phy_get_plca_cfg(const struct device *dev, struct phy_plca_cfg *plca_cfg) in phy_get_plca_cfg() argument 408 return api->get_plca_cfg(dev, plca_cfg); in phy_get_plca_cfg()
|
/Zephyr-latest/drivers/ethernet/ |
D | eth_lan865x.c | 125 struct phy_plca_cfg plca_cfg; in lan865x_set_config() local 142 plca_cfg.enable = config->t1s_param.plca.enable; in lan865x_set_config() 143 plca_cfg.node_id = config->t1s_param.plca.node_id; in lan865x_set_config() 144 plca_cfg.node_count = config->t1s_param.plca.node_count; in lan865x_set_config() 145 plca_cfg.burst_count = config->t1s_param.plca.burst_count; in lan865x_set_config() 146 plca_cfg.burst_timer = config->t1s_param.plca.burst_timer; in lan865x_set_config() 147 plca_cfg.to_timer = config->t1s_param.plca.to_timer; in lan865x_set_config() 149 return phy_set_plca_cfg(cfg->phy, &plca_cfg); in lan865x_set_config()
|