Home
last modified time | relevance | path

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

/linux/drivers/net/phy/
A Dsfp.h22 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev);
23 void sfp_remove_phy(struct sfp_bus *bus);
24 void sfp_link_up(struct sfp_bus *bus);
25 void sfp_link_down(struct sfp_bus *bus);
26 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
27 void sfp_module_remove(struct sfp_bus *bus);
28 int sfp_module_start(struct sfp_bus *bus);
29 void sfp_module_stop(struct sfp_bus *bus);
30 int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
31 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
[all …]
A Dsfp-bus.c22 struct sfp_bus { struct
440 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get()
471 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); in sfp_bus_release()
485 void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put()
609 void sfp_upstream_stop(struct sfp_bus *bus) in sfp_upstream_stop()
644 struct sfp_bus *bus; in sfp_bus_find_fwnode()
750 void sfp_remove_phy(struct sfp_bus *bus) in sfp_remove_phy()
760 void sfp_link_up(struct sfp_bus *bus) in sfp_link_up()
769 void sfp_link_down(struct sfp_bus *bus) in sfp_link_down()
803 int sfp_module_start(struct sfp_bus *bus) in sfp_module_start()
[all …]
A Dphylink.c78 struct sfp_bus *sfp_bus; member
854 struct sfp_bus *bus; in phylink_register_sfp()
867 pl->sfp_bus = bus; in phylink_register_sfp()
1350 if (pl->sfp_bus) in phylink_start()
1371 if (pl->sfp_bus) in phylink_stop()
1372 sfp_upstream_stop(pl->sfp_bus); in phylink_stop()
1686 if (pl->sfp_bus) { in phylink_ethtool_ksettings_set()
2197 if (!pl->sfp_bus && pl->phydev) in phylink_speed_down()
2220 if (!pl->sfp_bus && pl->phydev) in phylink_speed_up()
2231 pl->netdev->sfp_bus = bus; in phylink_sfp_attach()
[all …]
A Dsfp.c220 struct sfp_bus *sfp_bus; member
1504 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach()
1530 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy()
1545 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up()
1551 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down()
1937 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove()
2059 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module()
2098 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main()
2187 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main()
2615 if (!sfp->sfp_bus) in sfp_probe()
[all …]
A Dphy_device.c1293 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach()
1298 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach()
1310 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach()
1315 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach()
1328 struct sfp_bus *bus; in phy_sfp_probe()
1336 phydev->sfp_bus = bus; in phy_sfp_probe()
1422 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct()
1423 else if (dev->sfp_bus) in phy_attach_direct()
3110 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove()
3111 phydev->sfp_bus = NULL; in phy_remove()
A Dmarvell-88x2222.c423 if (phydev->sfp_bus && !priv->sfp_link) in mv2222_link_is_operational()
492 sfp_parse_support(phydev->sfp_bus, id, sfp_supported); in mv2222_sfp_insert()
493 sfp_interface = sfp_select_interface(phydev->sfp_bus, sfp_supported); in mv2222_sfp_insert()
A Dphy.c1050 if (phydev->sfp_bus) in phy_stop()
1051 sfp_upstream_stop(phydev->sfp_bus); in phy_stop()
1087 if (phydev->sfp_bus) in phy_start()
1088 sfp_upstream_start(phydev->sfp_bus); in phy_start()
A Dmarvell10g.c471 sfp_parse_support(phydev->sfp_bus, id, support); in mv3310_sfp_insert()
472 iface = sfp_select_interface(phydev->sfp_bus, support); in mv3310_sfp_insert()
A Dmarvell.c2759 sfp_parse_support(phydev->sfp_bus, id, supported); in m88e1510_sfp_insert()
2760 interface = sfp_select_interface(phydev->sfp_bus, supported); in m88e1510_sfp_insert()
/linux/include/linux/
A Dsfp.h499 struct sfp_bus;
521 void (*attach)(void *priv, struct sfp_bus *bus);
522 void (*detach)(void *priv, struct sfp_bus *bus);
545 int sfp_get_module_eeprom_by_page(struct sfp_bus *bus,
548 void sfp_upstream_start(struct sfp_bus *bus);
549 void sfp_upstream_stop(struct sfp_bus *bus);
550 void sfp_bus_put(struct sfp_bus *bus);
554 void sfp_bus_del_upstream(struct sfp_bus *bus);
556 static inline int sfp_parse_port(struct sfp_bus *bus, in sfp_parse_port()
563 static inline bool sfp_may_have_phy(struct sfp_bus *bus, in sfp_may_have_phy()
[all …]
A Dphy.h288 struct sfp_bus;
693 struct sfp_bus *sfp_bus; member
1475 void phy_sfp_attach(void *upstream, struct sfp_bus *bus);
1476 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
A Dnetdevice.h61 struct sfp_bus;
2254 struct sfp_bus *sfp_bus; member
/linux/net/ethtool/
A Deeprom.c95 if (dev->sfp_bus) in get_module_eeprom_by_page()
96 return sfp_get_module_eeprom_by_page(dev->sfp_bus, page_data, extack); in get_module_eeprom_by_page()
A Dioctl.c2330 if (dev->sfp_bus) in ethtool_get_module_info_call()
2331 return sfp_get_module_info(dev->sfp_bus, modinfo); in ethtool_get_module_info_call()
2367 if (dev->sfp_bus) in ethtool_get_module_eeprom_call()
2368 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in ethtool_get_module_eeprom_call()

Completed in 61 milliseconds