/Linux-v6.6/drivers/net/phy/ |
D | sfp.h | 31 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev); 32 void sfp_remove_phy(struct sfp_bus *bus); 33 void sfp_link_up(struct sfp_bus *bus); 34 void sfp_link_down(struct sfp_bus *bus); 35 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 37 void sfp_module_remove(struct sfp_bus *bus); 38 int sfp_module_start(struct sfp_bus *bus); 39 void sfp_module_stop(struct sfp_bus *bus); 40 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, 42 void sfp_unregister_socket(struct sfp_bus *bus);
|
D | sfp-bus.c | 16 struct sfp_bus { struct 49 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_port() 118 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id) in sfp_may_have_phy() 148 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_support() 357 phy_interface_t sfp_select_interface(struct sfp_bus *bus, in sfp_select_interface() 398 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) in sfp_get_upstream_ops() 403 static struct sfp_bus *sfp_bus_get(const struct fwnode_handle *fwnode) in sfp_bus_get() 405 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() 436 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); in sfp_bus_release() 450 void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put() [all …]
|
D | phylink.c | 84 struct sfp_bus *sfp_bus; member 1206 if (pl->sfp_bus) { in phylink_major_config() 1209 sfp_upstream_set_signal_rate(pl->sfp_bus, rate_kbd); in phylink_major_config() 1567 struct sfp_bus *bus; in phylink_register_sfp() 1579 pl->sfp_bus = bus; in phylink_register_sfp() 1698 sfp_bus_del_upstream(pl->sfp_bus); in phylink_destroy() 1856 phy_interface_mode_is_8023z(interface) && !pl->sfp_bus))) in phylink_attach_phy() 2118 if (pl->sfp_bus) in phylink_start() 2119 sfp_upstream_start(pl->sfp_bus); in phylink_start() 2139 if (pl->sfp_bus) in phylink_stop() [all …]
|
D | marvell-88x2222.c | 422 if (phydev->sfp_bus && !priv->sfp_link) in mv2222_link_is_operational() 492 sfp_parse_support(phydev->sfp_bus, id, sfp_supported, interfaces); in mv2222_sfp_insert() 493 phydev->port = sfp_parse_port(phydev->sfp_bus, id, sfp_supported); in mv2222_sfp_insert() 494 sfp_interface = sfp_select_interface(phydev->sfp_bus, sfp_supported); in mv2222_sfp_insert()
|
D | sfp.c | 233 struct sfp_bus *sfp_bus; member 1747 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach() 1777 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy() 1792 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up() 1798 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down() 2343 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove() 2456 err = sfp_module_insert(sfp->sfp_bus, &sfp->id, in sfp_sm_module() 2474 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module() 2513 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main() 2615 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main() [all …]
|
D | phy_device.c | 1362 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach() 1367 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach() 1379 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach() 1384 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach() 1397 struct sfp_bus *bus; in phy_sfp_probe() 1405 phydev->sfp_bus = bus; in phy_sfp_probe() 1491 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct() 3392 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove() 3393 phydev->sfp_bus = NULL; in phy_remove()
|
D | phy.c | 1382 if (phydev->sfp_bus) in phy_stop() 1383 sfp_upstream_stop(phydev->sfp_bus); in phy_stop() 1420 if (phydev->sfp_bus) in phy_start() 1421 sfp_upstream_start(phydev->sfp_bus); in phy_start()
|
D | marvell10g.c | 486 sfp_parse_support(phydev->sfp_bus, id, support, interfaces); in mv3310_sfp_insert() 487 iface = sfp_select_interface(phydev->sfp_bus, support); in mv3310_sfp_insert()
|
D | at803x.c | 701 sfp_parse_support(phydev->sfp_bus, id, sfp_support, interfaces); in at803x_sfp_insert() 712 iface = sfp_select_interface(phydev->sfp_bus, sfp_support); in at803x_sfp_insert()
|
D | marvell.c | 3189 sfp_parse_support(phydev->sfp_bus, id, supported, interfaces); in m88e1510_sfp_insert() 3190 interface = sfp_select_interface(phydev->sfp_bus, supported); in m88e1510_sfp_insert()
|
/Linux-v6.6/include/linux/ |
D | sfp.h | 516 struct sfp_bus; 538 void (*attach)(void *priv, struct sfp_bus *bus); 539 void (*detach)(void *priv, struct sfp_bus *bus); 551 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 553 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 554 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 556 phy_interface_t sfp_select_interface(struct sfp_bus *bus, 559 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo); 560 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee, 562 int sfp_get_module_eeprom_by_page(struct sfp_bus *bus, [all …]
|
D | phy.h | 307 struct sfp_bus; 744 struct sfp_bus *sfp_bus; member 1719 void phy_sfp_attach(void *upstream, struct sfp_bus *bus); 1720 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
|
D | netdevice.h | 67 struct sfp_bus; 2383 struct sfp_bus *sfp_bus; member
|
/Linux-v6.6/net/ethtool/ |
D | eeprom.c | 94 if (dev->sfp_bus) in get_module_eeprom_by_page() 95 return sfp_get_module_eeprom_by_page(dev->sfp_bus, page_data, extack); in get_module_eeprom_by_page()
|
D | ioctl.c | 2379 if (dev->sfp_bus) in ethtool_get_module_info_call() 2380 return sfp_get_module_info(dev->sfp_bus, modinfo); in ethtool_get_module_info_call() 2416 if (dev->sfp_bus) in ethtool_get_module_eeprom_call() 2417 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in ethtool_get_module_eeprom_call()
|