| /Linux-v5.15/drivers/net/phy/ |
| D | sfp.h | 22 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev); 23 void sfp_remove_phy(struct sfp_bus *bus); 24 void sfp_link_up(struct sfp_bus *bus); 25 void sfp_link_down(struct sfp_bus *bus); 26 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 27 void sfp_module_remove(struct sfp_bus *bus); 28 int sfp_module_start(struct sfp_bus *bus); 29 void sfp_module_stop(struct sfp_bus *bus); 30 int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 31 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, [all …]
|
| D | sfp-bus.c | 22 struct sfp_bus { struct 136 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_port() 205 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id) in sfp_may_have_phy() 233 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_support() 392 phy_interface_t sfp_select_interface(struct sfp_bus *bus, in sfp_select_interface() 433 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) in sfp_get_upstream_ops() 438 static struct sfp_bus *sfp_bus_get(struct fwnode_handle *fwnode) in sfp_bus_get() 440 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() 471 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); in sfp_bus_release() 485 void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put() [all …]
|
| D | phylink.c | 78 struct sfp_bus *sfp_bus; member 777 struct sfp_bus *bus; in phylink_register_sfp() 790 pl->sfp_bus = bus; in phylink_register_sfp() 916 sfp_bus_del_upstream(pl->sfp_bus); in phylink_destroy() 1273 if (pl->sfp_bus) in phylink_start() 1274 sfp_upstream_start(pl->sfp_bus); in phylink_start() 1294 if (pl->sfp_bus) in phylink_stop() 1295 sfp_upstream_stop(pl->sfp_bus); in phylink_stop() 1614 if (pl->sfp_port && pl->sfp_bus) { in phylink_ethtool_ksettings_set() 1615 config.interface = sfp_select_interface(pl->sfp_bus, in phylink_ethtool_ksettings_set() [all …]
|
| D | sfp.c | 220 struct sfp_bus *sfp_bus; member 1504 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach() 1530 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy() 1545 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up() 1551 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down() 1937 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove() 2042 err = sfp_module_insert(sfp->sfp_bus, &sfp->id); in sfp_sm_module() 2059 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module() 2098 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main() 2187 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main() [all …]
|
| D | marvell-88x2222.c | 423 if (phydev->sfp_bus && !priv->sfp_link) in mv2222_link_is_operational() 492 sfp_parse_support(phydev->sfp_bus, id, sfp_supported); in mv2222_sfp_insert() 493 sfp_interface = sfp_select_interface(phydev->sfp_bus, sfp_supported); in mv2222_sfp_insert()
|
| D | phy_device.c | 1293 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach() 1298 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach() 1310 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach() 1315 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach() 1328 struct sfp_bus *bus; in phy_sfp_probe() 1336 phydev->sfp_bus = bus; in phy_sfp_probe() 1422 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct() 1423 else if (dev->sfp_bus) in phy_attach_direct() 3110 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove() 3111 phydev->sfp_bus = NULL; in phy_remove()
|
| D | phy.c | 1045 if (phydev->sfp_bus) in phy_stop() 1046 sfp_upstream_stop(phydev->sfp_bus); in phy_stop() 1082 if (phydev->sfp_bus) in phy_start() 1083 sfp_upstream_start(phydev->sfp_bus); in phy_start()
|
| D | marvell10g.c | 392 sfp_parse_support(phydev->sfp_bus, id, support); in mv3310_sfp_insert() 393 iface = sfp_select_interface(phydev->sfp_bus, support); in mv3310_sfp_insert()
|
| D | marvell.c | 2759 sfp_parse_support(phydev->sfp_bus, id, supported); in m88e1510_sfp_insert() 2760 interface = sfp_select_interface(phydev->sfp_bus, supported); in m88e1510_sfp_insert()
|
| /Linux-v5.15/include/linux/ |
| D | sfp.h | 499 struct sfp_bus; 521 void (*attach)(void *priv, struct sfp_bus *bus); 522 void (*detach)(void *priv, struct sfp_bus *bus); 534 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 536 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 537 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 539 phy_interface_t sfp_select_interface(struct sfp_bus *bus, 542 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo); 543 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee, 545 int sfp_get_module_eeprom_by_page(struct sfp_bus *bus, [all …]
|
| D | phy.h | 254 struct sfp_bus; 658 struct sfp_bus *sfp_bus; member 1440 void phy_sfp_attach(void *upstream, struct sfp_bus *bus); 1441 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
|
| D | netdevice.h | 61 struct sfp_bus; 2251 struct sfp_bus *sfp_bus; member
|
| /Linux-v5.15/net/ethtool/ |
| 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()
|
| D | ioctl.c | 2311 if (dev->sfp_bus) in ethtool_get_module_info_call() 2312 return sfp_get_module_info(dev->sfp_bus, modinfo); in ethtool_get_module_info_call() 2348 if (dev->sfp_bus) in ethtool_get_module_eeprom_call() 2349 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in ethtool_get_module_eeprom_call()
|