Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/net/phy/
H A 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 …]
H A Dsfp-bus.c22 struct sfp_bus { struct
142 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_port()
211 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id) in sfp_may_have_phy()
239 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_support()
387 phy_interface_t sfp_select_interface(struct sfp_bus *bus, in sfp_select_interface()
417 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) in sfp_get_upstream_ops()
422 static struct sfp_bus *sfp_bus_get(struct fwnode_handle *fwnode) in sfp_bus_get()
424 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get()
455 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); in sfp_bus_release()
469 void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put()
[all …]
H A 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 …]
H A Dsfp.c219 struct sfp_bus *sfp_bus; member
1453 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach()
1479 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy()
1494 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up()
1500 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down()
1909 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove()
2014 err = sfp_module_insert(sfp->sfp_bus, &sfp->id); in sfp_sm_module()
2031 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module()
2070 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main()
2159 if (sfp_module_start(sfp->sfp_bus)) { in sfp_sm_main()
[all …]
H A Dphy_device.c1289 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach()
1294 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach()
1306 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach()
1311 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach()
1324 struct sfp_bus *bus; in phy_sfp_probe()
1332 phydev->sfp_bus = bus; in phy_sfp_probe()
1418 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct()
2983 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove()
2984 phydev->sfp_bus = NULL; in phy_remove()
H A Dphy.c1127 if (phydev->sfp_bus) in phy_stop()
1128 sfp_upstream_stop(phydev->sfp_bus); in phy_stop()
1164 if (phydev->sfp_bus) in phy_start()
1165 sfp_upstream_start(phydev->sfp_bus); in phy_start()
H A 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()
/OK3568_Linux_fs/kernel/include/linux/
H A 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 …]
H A Dphy.h239 struct sfp_bus;
634 struct sfp_bus *sfp_bus; member
1385 void phy_sfp_attach(void *upstream, struct sfp_bus *bus);
1386 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
H A Dnetdevice.h61 struct sfp_bus;
2206 struct sfp_bus *sfp_bus; member
/OK3568_Linux_fs/kernel/net/ethtool/
H A 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()