Searched refs:sfp_bus (Results 1 – 7 of 7) sorted by relevance
| /Linux-v5.4/drivers/net/phy/ |
| D | sfp.h | 19 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev); 20 void sfp_remove_phy(struct sfp_bus *bus); 21 void sfp_link_up(struct sfp_bus *bus); 22 void sfp_link_down(struct sfp_bus *bus); 23 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 24 void sfp_module_remove(struct sfp_bus *bus); 25 int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 26 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, 28 void sfp_unregister_socket(struct sfp_bus *bus);
|
| D | sfp-bus.c | 15 struct sfp_bus { struct 47 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_port() 117 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_support() 255 phy_interface_t sfp_select_interface(struct sfp_bus *bus, in sfp_select_interface() 286 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) in sfp_get_upstream_ops() 291 static struct sfp_bus *sfp_bus_get(struct fwnode_handle *fwnode) in sfp_bus_get() 293 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() 324 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); in sfp_bus_release() 331 static void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put() 336 static int sfp_register_bus(struct sfp_bus *bus) in sfp_register_bus() [all …]
|
| D | phylink.c | 73 struct sfp_bus *sfp_bus; member 586 pl->sfp_bus = sfp_register_upstream(ref.fwnode, pl, &sfp_phylink_ops); in phylink_register_sfp() 587 if (!pl->sfp_bus) in phylink_register_sfp() 688 if (pl->sfp_bus) in phylink_destroy() 689 sfp_unregister_upstream(pl->sfp_bus); in phylink_destroy() 1017 if (pl->sfp_bus) in phylink_start() 1018 sfp_upstream_start(pl->sfp_bus); in phylink_start() 1035 if (pl->sfp_bus) in phylink_stop() 1036 sfp_upstream_stop(pl->sfp_bus); in phylink_stop() 1683 static void phylink_sfp_attach(void *upstream, struct sfp_bus *bus) in phylink_sfp_attach() [all …]
|
| D | sfp.c | 177 struct sfp_bus *sfp_bus; member 1258 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach() 1281 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy() 1295 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up() 1301 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down() 1524 ret = sfp_module_insert(sfp->sfp_bus, &sfp->id); in sfp_sm_mod_probe() 1533 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove() 2002 sfp->sfp_bus = sfp_register_socket(sfp->dev, sfp, &sfp_module_ops); in sfp_probe() 2003 if (!sfp->sfp_bus) in sfp_probe() 2013 sfp_unregister_socket(sfp->sfp_bus); in sfp_remove()
|
| /Linux-v5.4/include/linux/ |
| D | sfp.h | 467 struct sfp_bus; 487 void (*attach)(void *priv, struct sfp_bus *bus); 488 void (*detach)(void *priv, struct sfp_bus *bus); 498 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 500 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 502 phy_interface_t sfp_select_interface(struct sfp_bus *bus, 506 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo); 507 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee, 509 void sfp_upstream_start(struct sfp_bus *bus); 510 void sfp_upstream_stop(struct sfp_bus *bus); [all …]
|
| D | netdevice.h | 57 struct sfp_bus; 2055 struct sfp_bus *sfp_bus; member
|
| /Linux-v5.4/net/core/ |
| D | ethtool.c | 2199 if (dev->sfp_bus) in __ethtool_get_module_info() 2200 return sfp_get_module_info(dev->sfp_bus, modinfo); in __ethtool_get_module_info() 2236 if (dev->sfp_bus) in __ethtool_get_module_eeprom() 2237 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in __ethtool_get_module_eeprom()
|