Searched refs:sfp_bus (Results 1 – 7 of 7) sorted by relevance
/Linux-v4.19/drivers/net/phy/ |
D | sfp.h | 17 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev); 18 void sfp_remove_phy(struct sfp_bus *bus); 19 void sfp_link_up(struct sfp_bus *bus); 20 void sfp_link_down(struct sfp_bus *bus); 21 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 22 void sfp_module_remove(struct sfp_bus *bus); 23 int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 24 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, 26 void sfp_unregister_socket(struct sfp_bus *bus);
|
D | sfp-bus.c | 14 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 | 68 struct sfp_bus *sfp_bus; member 536 pl->sfp_bus = sfp_register_upstream(ref.fwnode, pl->netdev, pl, in phylink_register_sfp() 538 if (!pl->sfp_bus) in phylink_register_sfp() 625 if (pl->sfp_bus) in phylink_destroy() 626 sfp_unregister_upstream(pl->sfp_bus); in phylink_destroy() 928 if (pl->sfp_bus) in phylink_start() 929 sfp_upstream_start(pl->sfp_bus); in phylink_start() 950 if (pl->sfp_bus) in phylink_stop() 951 sfp_upstream_stop(pl->sfp_bus); in phylink_stop() 1585 sfp_parse_support(pl->sfp_bus, id, support); in phylink_sfp_module_insert() [all …]
|
D | sfp.c | 175 struct sfp_bus *sfp_bus; member 1174 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach() 1197 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy() 1211 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up() 1217 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down() 1440 ret = sfp_module_insert(sfp->sfp_bus, &sfp->id); in sfp_sm_mod_probe() 1449 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove() 1837 sfp->sfp_bus = sfp_register_socket(sfp->dev, sfp, &sfp_module_ops); in sfp_probe() 1838 if (!sfp->sfp_bus) in sfp_probe() 1894 sfp_unregister_socket(sfp->sfp_bus); in sfp_remove()
|
/Linux-v4.19/include/linux/ |
D | sfp.h | 468 struct sfp_bus; 493 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 495 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 497 phy_interface_t sfp_select_interface(struct sfp_bus *bus, 501 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo); 502 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee, 504 void sfp_upstream_start(struct sfp_bus *bus); 505 void sfp_upstream_stop(struct sfp_bus *bus); 506 struct sfp_bus *sfp_register_upstream(struct fwnode_handle *fwnode, 509 void sfp_unregister_upstream(struct sfp_bus *bus); [all …]
|
D | netdevice.h | 61 struct sfp_bus; 2015 struct sfp_bus *sfp_bus; member
|
/Linux-v4.19/net/core/ |
D | ethtool.c | 2249 if (dev->sfp_bus) in __ethtool_get_module_info() 2250 return sfp_get_module_info(dev->sfp_bus, modinfo); in __ethtool_get_module_info() 2286 if (dev->sfp_bus) in __ethtool_get_module_eeprom() 2287 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in __ethtool_get_module_eeprom()
|