/linux-6.3-rc2/drivers/net/phy/ |
A D | sfp.h | 30 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev); 31 void sfp_remove_phy(struct sfp_bus *bus); 32 void sfp_link_up(struct sfp_bus *bus); 33 void sfp_link_down(struct sfp_bus *bus); 34 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 36 void sfp_module_remove(struct sfp_bus *bus); 37 int sfp_module_start(struct sfp_bus *bus); 38 void sfp_module_stop(struct sfp_bus *bus); 39 int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 40 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, [all …]
|
A D | sfp-bus.c | 16 struct sfp_bus { struct 395 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() 426 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); in sfp_bus_release() 440 void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put() 564 void sfp_upstream_stop(struct sfp_bus *bus) in sfp_upstream_stop() 599 struct sfp_bus *bus; in sfp_bus_find_fwnode() 710 void sfp_remove_phy(struct sfp_bus *bus) in sfp_remove_phy() 720 void sfp_link_up(struct sfp_bus *bus) in sfp_link_up() 729 void sfp_link_down(struct sfp_bus *bus) in sfp_link_down() 764 int sfp_module_start(struct sfp_bus *bus) in sfp_module_start() [all …]
|
A D | phylink.c | 78 struct sfp_bus *sfp_bus; member 1448 struct sfp_bus *bus; in phylink_register_sfp() 1460 pl->sfp_bus = bus; in phylink_register_sfp() 1958 if (pl->sfp_bus) in phylink_start() 1979 if (pl->sfp_bus) in phylink_stop() 1980 sfp_upstream_stop(pl->sfp_bus); in phylink_stop() 2295 if (pl->sfp_bus) { in phylink_ethtool_ksettings_set() 2808 if (!pl->sfp_bus && pl->phydev) in phylink_speed_down() 2831 if (!pl->sfp_bus && pl->phydev) in phylink_speed_up() 2842 pl->netdev->sfp_bus = bus; in phylink_sfp_attach() [all …]
|
A D | marvell-88x2222.c | 423 if (phydev->sfp_bus && !priv->sfp_link) in mv2222_link_is_operational() 493 sfp_parse_support(phydev->sfp_bus, id, sfp_supported, interfaces); in mv2222_sfp_insert() 494 phydev->port = sfp_parse_port(phydev->sfp_bus, id, sfp_supported); in mv2222_sfp_insert() 495 sfp_interface = sfp_select_interface(phydev->sfp_bus, sfp_supported); in mv2222_sfp_insert()
|
A D | sfp.c | 222 struct sfp_bus *sfp_bus; member 1620 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach() 1647 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy() 1662 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up() 1668 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down() 2100 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove() 2224 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module() 2263 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main() 2361 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main() 2784 if (!sfp->sfp_bus) in sfp_probe() [all …]
|
A D | phy_device.c | 1359 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach() 1364 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach() 1376 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach() 1381 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach() 1394 struct sfp_bus *bus; in phy_sfp_probe() 1402 phydev->sfp_bus = bus; in phy_sfp_probe() 1488 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct() 1489 else if (dev->sfp_bus) in phy_attach_direct() 3204 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove() 3205 phydev->sfp_bus = NULL; in phy_remove()
|
A D | phy.c | 1318 if (phydev->sfp_bus) in phy_stop() 1319 sfp_upstream_stop(phydev->sfp_bus); in phy_stop() 1355 if (phydev->sfp_bus) in phy_start() 1356 sfp_upstream_start(phydev->sfp_bus); in phy_start()
|
A D | marvell10g.c | 479 sfp_parse_support(phydev->sfp_bus, id, support, interfaces); in mv3310_sfp_insert() 480 iface = sfp_select_interface(phydev->sfp_bus, support); in mv3310_sfp_insert()
|
A D | at803x.c | 690 sfp_parse_support(phydev->sfp_bus, id, sfp_support, interfaces); in at803x_sfp_insert() 701 iface = sfp_select_interface(phydev->sfp_bus, sfp_support); in at803x_sfp_insert()
|
A D | marvell.c | 2862 sfp_parse_support(phydev->sfp_bus, id, supported, interfaces); in m88e1510_sfp_insert() 2863 interface = sfp_select_interface(phydev->sfp_bus, supported); in m88e1510_sfp_insert()
|
/linux-6.3-rc2/include/linux/ |
A D | sfp.h | 508 struct sfp_bus; 530 void (*attach)(void *priv, struct sfp_bus *bus); 531 void (*detach)(void *priv, struct sfp_bus *bus); 554 int sfp_get_module_eeprom_by_page(struct sfp_bus *bus, 557 void sfp_upstream_start(struct sfp_bus *bus); 558 void sfp_upstream_stop(struct sfp_bus *bus); 559 void sfp_bus_put(struct sfp_bus *bus); 563 void sfp_bus_del_upstream(struct sfp_bus *bus); 565 static inline int sfp_parse_port(struct sfp_bus *bus, in sfp_parse_port() 572 static inline bool sfp_may_have_phy(struct sfp_bus *bus, in sfp_may_have_phy() [all …]
|
A D | phy.h | 300 struct sfp_bus; 729 struct sfp_bus *sfp_bus; member 1602 void phy_sfp_attach(void *upstream, struct sfp_bus *bus); 1603 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
|
A D | netdevice.h | 66 struct sfp_bus; 2357 struct sfp_bus *sfp_bus; member
|
/linux-6.3-rc2/net/ethtool/ |
A D | eeprom.c | 95 if (dev->sfp_bus) in get_module_eeprom_by_page() 96 return sfp_get_module_eeprom_by_page(dev->sfp_bus, page_data, extack); in get_module_eeprom_by_page()
|
A D | ioctl.c | 2366 if (dev->sfp_bus) in ethtool_get_module_info_call() 2367 return sfp_get_module_info(dev->sfp_bus, modinfo); in ethtool_get_module_info_call() 2403 if (dev->sfp_bus) in ethtool_get_module_eeprom_call() 2404 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in ethtool_get_module_eeprom_call()
|