Home
last modified time | relevance | path

Searched refs:sfp_bus (Results 1 – 20 of 20) sorted by relevance

/linux-6.15/drivers/net/phy/
H A Dsfp.h31 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 Dsfp-bus.c16 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()
763 void sfp_remove_phy(struct sfp_bus *bus) in sfp_remove_phy()
773 void sfp_link_up(struct sfp_bus *bus) in sfp_link_up()
782 void sfp_link_down(struct sfp_bus *bus) in sfp_link_down()
817 int sfp_module_start(struct sfp_bus *bus) in sfp_module_start()
[all …]
H A Dphy_link_topology.c55 pdn->parent_sfp_bus = pdn->upstream.netdev->sfp_bus; in phy_link_topo_add_phy()
60 pdn->parent_sfp_bus = pdn->upstream.phydev->sfp_bus; in phy_link_topo_add_phy()
H A Dphylink.c94 struct sfp_bus *sfp_bus; member
1322 if (pl->sfp_bus) { in phylink_major_config()
1720 struct sfp_bus *bus; in phylink_register_sfp()
1732 pl->sfp_bus = bus; in phylink_register_sfp()
2427 if (pl->sfp_bus) in phylink_start()
2448 if (pl->sfp_bus) in phylink_stop()
2907 if (pl->sfp_bus) { in phylink_ethtool_ksettings_set()
3430 if (!pl->sfp_bus && pl->phydev) in phylink_speed_down()
3453 if (!pl->sfp_bus && pl->phydev) in phylink_speed_up()
3464 pl->netdev->sfp_bus = bus; in phylink_sfp_attach()
[all …]
H A Dmarvell-88x2222.c420 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 Dsfp.c233 struct sfp_bus *sfp_bus; member
1849 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach()
1879 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy()
1894 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up()
1900 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down()
2448 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove()
2578 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module()
2617 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main()
2723 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main()
3172 if (!sfp->sfp_bus) in sfp_probe()
[all …]
H A Dphy_device.c1418 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach()
1423 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach()
1435 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach()
1440 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach()
1453 struct sfp_bus *bus; in phy_sfp_probe()
1461 phydev->sfp_bus = bus; in phy_sfp_probe()
1552 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct()
3414 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove()
3415 phydev->sfp_bus = NULL; in phy_remove()
H A Dphy.c1643 if (phydev->sfp_bus) in phy_stop()
1644 sfp_upstream_stop(phydev->sfp_bus); in phy_stop()
1682 if (phydev->sfp_bus) in phy_start()
1683 sfp_upstream_start(phydev->sfp_bus); in phy_start()
H A Dmarvell10g.c473 sfp_parse_support(phydev->sfp_bus, id, support, interfaces); in mv3310_sfp_insert()
474 iface = sfp_select_interface(phydev->sfp_bus, support); in mv3310_sfp_insert()
H A Dmarvell.c3578 sfp_parse_support(phydev->sfp_bus, id, supported, interfaces); in m88e1510_sfp_insert()
3579 interface = sfp_select_interface(phydev->sfp_bus, supported); in m88e1510_sfp_insert()
/linux-6.15/include/linux/
H A Dsfp.h522 struct sfp_bus;
544 void (*attach)(void *priv, struct sfp_bus *bus);
545 void (*detach)(void *priv, struct sfp_bus *bus);
571 void sfp_upstream_start(struct sfp_bus *bus);
572 void sfp_upstream_stop(struct sfp_bus *bus);
574 void sfp_bus_put(struct sfp_bus *bus);
578 void sfp_bus_del_upstream(struct sfp_bus *bus);
579 const char *sfp_get_name(struct sfp_bus *bus);
581 static inline int sfp_parse_port(struct sfp_bus *bus, in sfp_parse_port()
639 static inline void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put()
[all …]
H A Dphy_link_topology.h19 struct sfp_bus;
34 struct sfp_bus *parent_sfp_bus;
H A Dphy.h302 struct sfp_bus;
721 struct sfp_bus *sfp_bus; member
1815 void phy_sfp_attach(void *upstream, struct sfp_bus *bus);
1816 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
H A Dnetdevice.h69 struct sfp_bus;
2422 struct sfp_bus *sfp_bus; member
/linux-6.15/net/ethtool/
H A Dphy.c63 if (phydev->sfp_bus) { in ethnl_phy_reply_size()
64 const char *sfp_name = sfp_get_name(phydev->sfp_bus); in ethnl_phy_reply_size()
109 if (phydev->sfp_bus) { in ethnl_phy_fill_reply()
110 const char *sfp_name = sfp_get_name(phydev->sfp_bus); in ethnl_phy_fill_reply()
H A Deeprom.c100 if (dev->sfp_bus) in get_module_eeprom_by_page()
101 return sfp_get_module_eeprom_by_page(dev->sfp_bus, page_data, extack); in get_module_eeprom_by_page()
H A Dioctl.c2694 if (dev->sfp_bus) in ethtool_get_module_info_call()
2695 return sfp_get_module_info(dev->sfp_bus, modinfo); in ethtool_get_module_info_call()
2734 if (dev->sfp_bus) in ethtool_get_module_eeprom_call()
2735 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in ethtool_get_module_eeprom_call()
/linux-6.15/Documentation/networking/net_cachelines/
H A Dnet_device.rst163 struct sfp_bus* sfp_bus
/linux-6.15/drivers/net/phy/qcom/
H A Dqca807x.c652 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 Dat803x.c741 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()