Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/phy/
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);
Dsfp-bus.c16 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()
399 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) in sfp_get_upstream_ops()
404 static struct sfp_bus *sfp_bus_get(const struct fwnode_handle *fwnode) in sfp_bus_get()
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()
[all …]
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()
Dphylink.c84 struct sfp_bus *sfp_bus; member
1257 if (pl->sfp_bus) { in phylink_major_config()
1260 sfp_upstream_set_signal_rate(pl->sfp_bus, rate_kbd); in phylink_major_config()
1618 struct sfp_bus *bus; in phylink_register_sfp()
1630 pl->sfp_bus = bus; in phylink_register_sfp()
1792 sfp_bus_del_upstream(pl->sfp_bus); in phylink_destroy()
2004 phy_interface_mode_is_8023z(interface) && !pl->sfp_bus))) in phylink_attach_phy()
2272 if (pl->sfp_bus) in phylink_start()
2273 sfp_upstream_start(pl->sfp_bus); in phylink_start()
2293 if (pl->sfp_bus) in phylink_stop()
[all …]
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()
Dsfp.c233 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()
2498 err = sfp_module_insert(sfp->sfp_bus, &sfp->id, in sfp_sm_module()
2516 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module()
2555 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main()
2661 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main()
[all …]
Dphy_device.c1437 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach()
1442 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach()
1454 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach()
1459 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach()
1472 struct sfp_bus *bus; in phy_sfp_probe()
1480 phydev->sfp_bus = bus; in phy_sfp_probe()
1571 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct()
3659 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove()
3660 phydev->sfp_bus = NULL; in phy_remove()
Dphy.c1524 if (phydev->sfp_bus) in phy_stop()
1525 sfp_upstream_stop(phydev->sfp_bus); in phy_stop()
1563 if (phydev->sfp_bus) in phy_start()
1564 sfp_upstream_start(phydev->sfp_bus); in phy_start()
Dmarvell10g.c493 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()
Dmarvell.c3548 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-6.12.1/include/linux/
Dsfp.h522 struct sfp_bus;
544 void (*attach)(void *priv, struct sfp_bus *bus);
545 void (*detach)(void *priv, struct sfp_bus *bus);
557 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
559 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
560 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
562 phy_interface_t sfp_select_interface(struct sfp_bus *bus,
565 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo);
566 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee,
568 int sfp_get_module_eeprom_by_page(struct sfp_bus *bus,
[all …]
Dphy_link_topology.h19 struct sfp_bus;
34 struct sfp_bus *parent_sfp_bus;
Dphy.h314 struct sfp_bus;
769 struct sfp_bus *sfp_bus; member
1786 void phy_sfp_attach(void *upstream, struct sfp_bus *bus);
1787 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
Dnetdevice.h67 struct sfp_bus;
2358 struct sfp_bus *sfp_bus; member
/linux-6.12.1/net/ethtool/
Dphy.c62 if (phydev->sfp_bus) { in ethnl_phy_reply_size()
63 const char *sfp_name = sfp_get_name(phydev->sfp_bus); in ethnl_phy_reply_size()
108 if (phydev->sfp_bus) { in ethnl_phy_fill_reply()
109 const char *sfp_name = sfp_get_name(phydev->sfp_bus); in ethnl_phy_fill_reply()
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()
Dioctl.c2669 if (dev->sfp_bus) in ethtool_get_module_info_call()
2670 return sfp_get_module_info(dev->sfp_bus, modinfo); in ethtool_get_module_info_call()
2709 if (dev->sfp_bus) in ethtool_get_module_eeprom_call()
2710 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in ethtool_get_module_eeprom_call()
/linux-6.12.1/drivers/net/phy/qcom/
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()
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()
/linux-6.12.1/Documentation/networking/net_cachelines/
Dnet_device.rst162 struct_sfp_bus* sfp_bus