/openbmc/linux/drivers/net/phy/ |
H A 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);
|
H A 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 …]
|
H A 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() 1699 sfp_bus_del_upstream(pl->sfp_bus); in phylink_destroy() 1857 phy_interface_mode_is_8023z(interface) && !pl->sfp_bus))) in phylink_attach_phy() 2119 if (pl->sfp_bus) in phylink_start() 2120 sfp_upstream_start(pl->sfp_bus); in phylink_start() 2140 if (pl->sfp_bus) in phylink_stop() [all …]
|
H A 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()
|
H A D | sfp.c | 233 struct sfp_bus *sfp_bus; member 1759 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach() 1789 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy() 1804 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up() 1810 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down() 2355 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove() 2467 err = sfp_module_insert(sfp->sfp_bus, &sfp->id, in sfp_sm_module() 2485 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module() 2524 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main() 2626 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main() [all …]
|
H A 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() 1496 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct() 3400 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove() 3401 phydev->sfp_bus = NULL; in phy_remove()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
/openbmc/linux/include/linux/ |
H A 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 …]
|
H A 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);
|
H A D | netdevice.h | 67 struct sfp_bus; 2395 struct sfp_bus *sfp_bus; member
|
/openbmc/linux/net/ethtool/ |
H A 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()
|
H A D | ioctl.c | 2382 if (dev->sfp_bus) in ethtool_get_module_info_call() 2383 return sfp_get_module_info(dev->sfp_bus, modinfo); in ethtool_get_module_info_call() 2419 if (dev->sfp_bus) in ethtool_get_module_eeprom_call() 2420 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in ethtool_get_module_eeprom_call()
|