/linux-6.1.9/drivers/net/phy/ |
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 …]
|
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() 347 phy_interface_t sfp_select_interface(struct sfp_bus *bus, in sfp_select_interface() 388 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) in sfp_get_upstream_ops() 393 static struct sfp_bus *sfp_bus_get(struct fwnode_handle *fwnode) in sfp_bus_get() 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() [all …]
|
D | phylink.c | 78 struct sfp_bus *sfp_bus; member 1414 struct sfp_bus *bus; in phylink_register_sfp() 1426 pl->sfp_bus = bus; in phylink_register_sfp() 1546 sfp_bus_del_upstream(pl->sfp_bus); in phylink_destroy() 1685 phy_interface_mode_is_8023z(interface) && !pl->sfp_bus))) in phylink_attach_phy() 1925 if (pl->sfp_bus) in phylink_start() 1926 sfp_upstream_start(pl->sfp_bus); in phylink_start() 1946 if (pl->sfp_bus) in phylink_stop() 1947 sfp_upstream_stop(pl->sfp_bus); in phylink_stop() 2262 if (pl->sfp_bus) { in phylink_ethtool_ksettings_set() [all …]
|
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()
|
D | sfp.c | 224 struct sfp_bus *sfp_bus; member 1609 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach() 1636 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy() 1651 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up() 1657 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down() 2103 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove() 2209 err = sfp_module_insert(sfp->sfp_bus, &sfp->id, in sfp_sm_module() 2227 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module() 2266 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main() 2364 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main() [all …]
|
D | phy_device.c | 1329 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach() 1334 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach() 1346 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach() 1351 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach() 1364 struct sfp_bus *bus; in phy_sfp_probe() 1372 phydev->sfp_bus = bus; in phy_sfp_probe() 1458 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct() 1459 else if (dev->sfp_bus) in phy_attach_direct() 3132 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove() 3133 phydev->sfp_bus = NULL; in phy_remove()
|
D | phy.c | 1110 if (phydev->sfp_bus) in phy_stop() 1111 sfp_upstream_stop(phydev->sfp_bus); in phy_stop() 1147 if (phydev->sfp_bus) in phy_start() 1148 sfp_upstream_start(phydev->sfp_bus); in phy_start()
|
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()
|
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()
|
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.1.9/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 | 295 struct sfp_bus; 715 struct sfp_bus *sfp_bus; member 1518 void phy_sfp_attach(void *upstream, struct sfp_bus *bus); 1519 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
|
D | netdevice.h | 65 struct sfp_bus; 2336 struct sfp_bus *sfp_bus; member
|
/linux-6.1.9/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 | 2329 if (dev->sfp_bus) in ethtool_get_module_info_call() 2330 return sfp_get_module_info(dev->sfp_bus, modinfo); in ethtool_get_module_info_call() 2366 if (dev->sfp_bus) in ethtool_get_module_eeprom_call() 2367 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in ethtool_get_module_eeprom_call()
|