Home
last modified time | relevance | path

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

/linux/drivers/net/phy/
H A Dsfp.h32 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev);
33 void sfp_remove_phy(struct sfp_bus *bus);
34 void sfp_link_up(struct sfp_bus *bus);
35 void sfp_link_down(struct sfp_bus *bus);
36 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
38 void sfp_module_remove(struct sfp_bus *bus);
39 int sfp_module_start(struct sfp_bus *bus);
40 void sfp_module_stop(struct sfp_bus *bus);
41 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
43 void sfp_unregister_socket(struct sfp_bus *bus);
H A Dsfp-bus.c16 struct sfp_bus { struct
36 const struct sfp_module_caps *sfp_get_module_caps(struct sfp_bus *bus) in sfp_get_module_caps() argument
42 static void sfp_module_parse_port(struct sfp_bus *bus, in sfp_module_parse_port()
100 static void sfp_module_parse_may_have_phy(struct sfp_bus *bus, in sfp_module_parse_may_have_phy()
122 static void sfp_module_parse_support(struct sfp_bus *bus, in sfp_module_parse_support()
318 static void sfp_init_module(struct sfp_bus *bus, in sfp_init_module()
340 phy_interface_t sfp_select_interface(struct sfp_bus *bus, in sfp_select_interface()
382 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) in sfp_get_upstream_ops()
387 static struct sfp_bus *sfp_bus_get(const struct fwnode_handle *fwnode) in sfp_bus_get()
389 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get()
[all …]
H A Dphy_device.c1526 static void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach()
1531 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach()
1542 static void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach()
1547 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach()
1566 caps = sfp_get_module_caps(phydev->sfp_bus); in phy_sfp_module_insert()
1574 iface = sfp_select_interface(phydev->sfp_bus, sfp_support); in phy_sfp_module_insert()
1709 struct sfp_bus *bus; in phy_sfp_probe()
1717 phydev->sfp_bus = bus; in phy_sfp_probe()
1723 phydev->sfp_bus = NULL; in phy_sfp_probe()
1726 if (!ret && phydev->sfp_bus) in phy_sfp_probe()
[all …]
H A Dsfp.c245 struct sfp_bus *sfp_bus; member
2099 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach()
2129 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy()
2144 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up()
2150 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down()
2698 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove()
2810 err = sfp_module_insert(sfp->sfp_bus, &sfp->id, in sfp_sm_module()
2828 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module()
2867 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main()
2973 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main()
[all …]
/linux/net/ethtool/
H A Deeprom.c104 if (dev->sfp_bus) in get_module_eeprom_by_page()
105 return sfp_get_module_eeprom_by_page(dev->sfp_bus, page_data, extack); in get_module_eeprom_by_page()
/linux/include/linux/
H A Dphy.h331 struct sfp_bus;
787 struct sfp_bus *sfp_bus; member
H A Dnetdevice.h69 struct sfp_bus;
2511 struct sfp_bus *sfp_bus; member