Home
last modified time | relevance | path

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

/kernel/linux/linux-5.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
136 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_port()
205 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id) in sfp_may_have_phy()
233 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_support()
381 phy_interface_t sfp_select_interface(struct sfp_bus *bus, in sfp_select_interface()
411 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) in sfp_get_upstream_ops()
416 static struct sfp_bus *sfp_bus_get(struct fwnode_handle *fwnode) in sfp_bus_get()
418 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get()
449 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); in sfp_bus_release()
463 void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put()
[all …]
Dphylink.c76 struct sfp_bus *sfp_bus; member
786 struct sfp_bus *bus; in phylink_register_sfp()
799 pl->sfp_bus = bus; in phylink_register_sfp()
925 sfp_bus_del_upstream(pl->sfp_bus); in phylink_destroy()
1265 if (pl->sfp_bus) in phylink_start()
1266 sfp_upstream_start(pl->sfp_bus); in phylink_start()
1283 if (pl->sfp_bus) in phylink_stop()
1284 sfp_upstream_stop(pl->sfp_bus); in phylink_stop()
1524 if (pl->sfp_port && pl->sfp_bus) { in phylink_ethtool_ksettings_set()
1525 config.interface = sfp_select_interface(pl->sfp_bus, in phylink_ethtool_ksettings_set()
[all …]
Dsfp.c219 struct sfp_bus *sfp_bus; member
1452 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach()
1478 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy()
1493 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up()
1499 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down()
1902 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove()
2007 err = sfp_module_insert(sfp->sfp_bus, &sfp->id); in sfp_sm_module()
2024 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module()
2063 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main()
2152 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main()
[all …]
Dphy_device.c1231 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach()
1236 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach()
1248 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach()
1253 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach()
1266 struct sfp_bus *bus; in phy_sfp_probe()
1274 phydev->sfp_bus = bus; in phy_sfp_probe()
1360 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct()
2924 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove()
2925 phydev->sfp_bus = NULL; in phy_remove()
Dphy.c1092 if (phydev->sfp_bus) in phy_stop()
1093 sfp_upstream_stop(phydev->sfp_bus); in phy_stop()
1129 if (phydev->sfp_bus) in phy_start()
1130 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()
/kernel/linux/linux-5.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;
633 struct sfp_bus *sfp_bus; member
1376 void phy_sfp_attach(void *upstream, struct sfp_bus *bus);
1377 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
Dnetdevice.h60 struct sfp_bus;
2162 struct sfp_bus *sfp_bus; member
/kernel/linux/linux-5.10/net/ethtool/
Dioctl.c2289 if (dev->sfp_bus) in __ethtool_get_module_info()
2290 return sfp_get_module_info(dev->sfp_bus, modinfo); in __ethtool_get_module_info()
2326 if (dev->sfp_bus) in __ethtool_get_module_eeprom()
2327 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in __ethtool_get_module_eeprom()