/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 406 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() 437 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); in sfp_bus_release() 451 void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put() 575 void sfp_upstream_stop(struct sfp_bus *bus) in sfp_upstream_stop() 630 struct sfp_bus *bus; in sfp_bus_find_fwnode() 741 void sfp_remove_phy(struct sfp_bus *bus) in sfp_remove_phy() 751 void sfp_link_up(struct sfp_bus *bus) in sfp_link_up() 760 void sfp_link_down(struct sfp_bus *bus) in sfp_link_down() 795 int sfp_module_start(struct sfp_bus *bus) in sfp_module_start() [all …]
|
H A D | phylink.c | 84 struct sfp_bus *sfp_bus; member 1245 if (pl->sfp_bus) { in phylink_major_config() 1606 struct sfp_bus *bus; in phylink_register_sfp() 1618 pl->sfp_bus = bus; in phylink_register_sfp() 2216 if (pl->sfp_bus) in phylink_start() 2237 if (pl->sfp_bus) in phylink_stop() 2562 if (pl->sfp_bus) { in phylink_ethtool_ksettings_set() 3076 if (!pl->sfp_bus && pl->phydev) in phylink_speed_down() 3099 if (!pl->sfp_bus && pl->phydev) in phylink_speed_up() 3110 pl->netdev->sfp_bus = bus; in phylink_sfp_attach() [all …]
|
H A D | marvell-88x2222.c | 420 if (phydev->sfp_bus && !priv->sfp_link) in mv2222_link_is_operational() 490 sfp_parse_support(phydev->sfp_bus, id, sfp_supported, interfaces); in mv2222_sfp_insert() 491 phydev->port = sfp_parse_port(phydev->sfp_bus, id, sfp_supported); in mv2222_sfp_insert() 492 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 1787 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach() 1817 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy() 1832 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up() 1838 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down() 2386 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove() 2517 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module() 2556 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main() 2662 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main() 3112 if (!sfp->sfp_bus) in sfp_probe() [all …]
|
H A D | phy_device.c | 1379 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach() 1384 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach() 1396 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach() 1401 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach() 1414 struct sfp_bus *bus; in phy_sfp_probe() 1422 phydev->sfp_bus = bus; in phy_sfp_probe() 1513 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct() 3579 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove() 3580 phydev->sfp_bus = NULL; in phy_remove()
|
H A D | phy.c | 1516 if (phydev->sfp_bus) in phy_stop() 1517 sfp_upstream_stop(phydev->sfp_bus); in phy_stop() 1555 if (phydev->sfp_bus) in phy_start() 1556 sfp_upstream_start(phydev->sfp_bus); in phy_start()
|
H A D | marvell10g.c | 493 sfp_parse_support(phydev->sfp_bus, id, support, interfaces); in mv3310_sfp_insert() 494 iface = sfp_select_interface(phydev->sfp_bus, support); in mv3310_sfp_insert()
|
H A D | marvell.c | 3548 sfp_parse_support(phydev->sfp_bus, id, supported, interfaces); in m88e1510_sfp_insert() 3549 interface = sfp_select_interface(phydev->sfp_bus, supported); in m88e1510_sfp_insert()
|
/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); 562 int sfp_get_module_eeprom_by_page(struct sfp_bus *bus, 565 void sfp_upstream_start(struct sfp_bus *bus); 566 void sfp_upstream_stop(struct sfp_bus *bus); 568 void sfp_bus_put(struct sfp_bus *bus); 572 void sfp_bus_del_upstream(struct sfp_bus *bus); 574 static inline int sfp_parse_port(struct sfp_bus *bus, in sfp_parse_port() 632 static inline void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put() [all …]
|
H A D | phy.h | 310 struct sfp_bus; 757 struct sfp_bus *sfp_bus; member 1757 void phy_sfp_attach(void *upstream, struct sfp_bus *bus); 1758 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
|
H A D | netdevice.h | 67 struct sfp_bus; 2371 struct sfp_bus *sfp_bus; member
|
/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 | 2465 if (dev->sfp_bus) in ethtool_get_module_info_call() 2466 return sfp_get_module_info(dev->sfp_bus, modinfo); in ethtool_get_module_info_call() 2502 if (dev->sfp_bus) in ethtool_get_module_eeprom_call() 2503 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in ethtool_get_module_eeprom_call()
|
/linux/drivers/net/phy/qcom/ |
H A D | qca807x.c | 652 sfp_parse_support(phydev->sfp_bus, id, support, interfaces); in qca807x_sfp_insert() 653 iface = sfp_select_interface(phydev->sfp_bus, support); in qca807x_sfp_insert()
|
H A D | at803x.c | 741 sfp_parse_support(phydev->sfp_bus, id, sfp_support, interfaces); in at8031_sfp_insert() 752 iface = sfp_select_interface(phydev->sfp_bus, sfp_support); in at8031_sfp_insert()
|
/linux/Documentation/networking/net_cachelines/ |
H A D | net_device.rst | 161 struct_sfp_bus* sfp_bus
|