Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/phy/
Dsfp.h19 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev);
20 void sfp_remove_phy(struct sfp_bus *bus);
21 void sfp_link_up(struct sfp_bus *bus);
22 void sfp_link_down(struct sfp_bus *bus);
23 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
24 void sfp_module_remove(struct sfp_bus *bus);
25 int sfp_module_start(struct sfp_bus *bus);
26 void sfp_module_stop(struct sfp_bus *bus);
27 int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
28 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
[all …]
Dsfp-bus.c22 struct sfp_bus { struct
121 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_port()
190 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id) in sfp_may_have_phy()
218 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_support()
367 phy_interface_t sfp_select_interface(struct sfp_bus *bus, in sfp_select_interface()
397 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) in sfp_get_upstream_ops()
402 static struct sfp_bus *sfp_bus_get(struct fwnode_handle *fwnode) in sfp_bus_get()
404 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get()
435 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); in sfp_bus_release()
449 void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put()
[all …]
Dphylink.c76 struct sfp_bus *sfp_bus; member
762 struct sfp_bus *bus; in phylink_register_sfp()
775 pl->sfp_bus = bus; in phylink_register_sfp()
901 sfp_bus_del_upstream(pl->sfp_bus); in phylink_destroy()
1241 if (pl->sfp_bus) in phylink_start()
1242 sfp_upstream_start(pl->sfp_bus); in phylink_start()
1259 if (pl->sfp_bus) in phylink_stop()
1260 sfp_upstream_stop(pl->sfp_bus); in phylink_stop()
1976 if (!pl->sfp_bus && pl->phydev) in phylink_speed_down()
1999 if (!pl->sfp_bus && pl->phydev) in phylink_speed_up()
[all …]
Dsfp.c219 struct sfp_bus *sfp_bus; member
1423 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach()
1449 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy()
1464 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up()
1470 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down()
1777 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove()
1882 err = sfp_module_insert(sfp->sfp_bus, &sfp->id); in sfp_sm_module()
1899 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module()
1938 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main()
2027 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main()
[all …]
Dphy_device.c1251 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach()
1256 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach()
1268 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach()
1273 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach()
1286 struct sfp_bus *bus; in phy_sfp_probe()
1294 phydev->sfp_bus = bus; in phy_sfp_probe()
1380 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct()
2936 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove()
2937 phydev->sfp_bus = NULL; in phy_remove()
Dphy.c1063 if (phydev->sfp_bus) in phy_stop()
1064 sfp_upstream_stop(phydev->sfp_bus); in phy_stop()
1100 if (phydev->sfp_bus) in phy_start()
1101 sfp_upstream_start(phydev->sfp_bus); in phy_start()
Dmarvell10g.c348 sfp_parse_support(phydev->sfp_bus, id, support); in mv3310_sfp_insert()
349 iface = sfp_select_interface(phydev->sfp_bus, support); in mv3310_sfp_insert()
/Linux-v5.10/include/linux/
Dsfp.h499 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 void sfp_upstream_start(struct sfp_bus *bus);
[all …]
Dphy.h238 struct sfp_bus;
631 struct sfp_bus *sfp_bus; member
1374 void phy_sfp_attach(void *upstream, struct sfp_bus *bus);
1375 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
Dnetdevice.h60 struct sfp_bus;
2150 struct sfp_bus *sfp_bus; member
/Linux-v5.10/net/ethtool/
Dioctl.c2185 if (dev->sfp_bus) in __ethtool_get_module_info()
2186 return sfp_get_module_info(dev->sfp_bus, modinfo); in __ethtool_get_module_info()
2222 if (dev->sfp_bus) in __ethtool_get_module_eeprom()
2223 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in __ethtool_get_module_eeprom()