/linux-master/drivers/net/phy/ |
H A D | sfp.h | 31 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev); 32 void sfp_remove_phy(struct sfp_bus *bus); 33 void sfp_link_up(struct sfp_bus *bus); 34 void sfp_link_down(struct sfp_bus *bus); 35 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 37 void sfp_module_remove(struct sfp_bus *bus); 38 int sfp_module_start(struct sfp_bus *bus); 39 void sfp_module_stop(struct sfp_bus *bus); 40 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, 42 void sfp_unregister_socket(struct sfp_bus *bu [all...] |
H A D | sfp-bus.c | 14 * struct sfp_bus - internal representation of a sfp bus 16 struct sfp_bus { struct 37 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 49 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 112 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 118 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id) 139 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 148 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 351 * @bus: a pointer to the &struct sfp_bus structure for the sfp module 357 phy_interface_t sfp_select_interface(struct sfp_bus *bu [all...] |
H A D | phylink.c | 84 struct sfp_bus *sfp_bus; member in struct:phylink 1230 if (pl->sfp_bus) { 1233 sfp_upstream_set_signal_rate(pl->sfp_bus, rate_kbd); 1591 struct sfp_bus *bus; 1603 pl->sfp_bus = bus; 1723 sfp_bus_del_upstream(pl->sfp_bus); 1928 phy_interface_mode_is_8023z(interface) && !pl->sfp_bus))) 2190 if (pl->sfp_bus) 2191 sfp_upstream_start(pl->sfp_bus); [all...] |
H A D | marvell-88x2222.c | 420 if (phydev->sfp_bus && !priv->sfp_link) 490 sfp_parse_support(phydev->sfp_bus, id, sfp_supported, interfaces); 491 phydev->port = sfp_parse_port(phydev->sfp_bus, id, sfp_supported); 492 sfp_interface = sfp_select_interface(phydev->sfp_bus, sfp_supported);
|
H A D | sfp.c | 233 struct sfp_bus *sfp_bus; member in struct:sfp 1776 sfp_remove_phy(sfp->sfp_bus); 1806 err = sfp_add_phy(sfp->sfp_bus, phy); 1821 sfp_link_up(sfp->sfp_bus); 1827 sfp_link_down(sfp->sfp_bus); 2375 sfp_module_remove(sfp->sfp_bus); 2488 err = sfp_module_insert(sfp->sfp_bus, &sfp->id, 2506 sfp_module_remove(sfp->sfp_bus); 2545 sfp_module_stop(sfp->sfp_bus); [all...] |
H A D | phy_device.c | 1379 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) 1384 phydev->attached_dev->sfp_bus = bus; 1396 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) 1401 phydev->attached_dev->sfp_bus = NULL; 1414 struct sfp_bus *bus; 1422 phydev->sfp_bus = bus; 1513 dev->sfp_bus = phydev->sfp_bus; 3579 sfp_bus_del_upstream(phydev->sfp_bus); 3580 phydev->sfp_bus [all...] |
H A D | phy.c | 1516 if (phydev->sfp_bus) 1517 sfp_upstream_stop(phydev->sfp_bus); 1555 if (phydev->sfp_bus) 1556 sfp_upstream_start(phydev->sfp_bus);
|
H A D | marvell10g.c | 493 sfp_parse_support(phydev->sfp_bus, id, support, interfaces); 494 iface = sfp_select_interface(phydev->sfp_bus, support);
|
H A D | marvell.c | 3192 sfp_parse_support(phydev->sfp_bus, id, supported, interfaces); 3193 interface = sfp_select_interface(phydev->sfp_bus, supported);
|
/linux-master/include/linux/ |
H A D | sfp.h | 516 struct sfp_bus; 538 void (*attach)(void *priv, struct sfp_bus *bus); 539 void (*detach)(void *priv, struct sfp_bus *bus); 551 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 553 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id); 554 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, 556 phy_interface_t sfp_select_interface(struct sfp_bus *bus, 559 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo); 560 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee, 562 int sfp_get_module_eeprom_by_page(struct sfp_bus *bu [all...] |
H A D | phy.h | 310 struct sfp_bus; 580 * @sfp_bus: SFP bus attached to this PHY's fiber port 757 struct sfp_bus *sfp_bus; member in struct:phy_device 1756 void phy_sfp_attach(void *upstream, struct sfp_bus *bus); 1757 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
|
H A D | netdevice.h | 67 struct sfp_bus; 1978 * @sfp_bus: attached &struct sfp_bus structure. 2367 struct sfp_bus *sfp_bus; member in struct:net_device
|
/linux-master/net/ethtool/ |
H A D | eeprom.c | 94 if (dev->sfp_bus) 95 return sfp_get_module_eeprom_by_page(dev->sfp_bus, page_data, extack);
|
H A D | ioctl.c | 2465 if (dev->sfp_bus) 2466 return sfp_get_module_info(dev->sfp_bus, modinfo); 2502 if (dev->sfp_bus) 2503 return sfp_get_module_eeprom(dev->sfp_bus, ee, data);
|
/linux-master/drivers/net/phy/qcom/ |
H A D | qca807x.c | 652 sfp_parse_support(phydev->sfp_bus, id, support, interfaces); 653 iface = sfp_select_interface(phydev->sfp_bus, support);
|
H A D | at803x.c | 740 sfp_parse_support(phydev->sfp_bus, id, sfp_support, interfaces); 751 iface = sfp_select_interface(phydev->sfp_bus, sfp_support);
|