Searched refs:sfp_bus (Results 1 - 16 of 16) sorted by last modified time

/linux-master/include/linux/
H A Dsfp.h516 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 Dphy.h310 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
1757 void phy_sfp_attach(void *upstream, struct sfp_bus *bus);
1758 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
H A Dnetdevice.h67 struct sfp_bus;
1980 * @sfp_bus: attached &struct sfp_bus structure.
2371 struct sfp_bus *sfp_bus; member in struct:net_device
/linux-master/drivers/net/phy/
H A Dsfp.c233 struct sfp_bus *sfp_bus; member in struct:sfp
1787 sfp_remove_phy(sfp->sfp_bus);
1817 err = sfp_add_phy(sfp->sfp_bus, phy);
1832 sfp_link_up(sfp->sfp_bus);
1838 sfp_link_down(sfp->sfp_bus);
2386 sfp_module_remove(sfp->sfp_bus);
2499 err = sfp_module_insert(sfp->sfp_bus, &sfp->id,
2517 sfp_module_remove(sfp->sfp_bus);
2556 sfp_module_stop(sfp->sfp_bus);
[all...]
H A Dsfp-bus.c14 * 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 Dphylink.c84 struct sfp_bus *sfp_bus; member in struct:phylink
1245 if (pl->sfp_bus) {
1248 sfp_upstream_set_signal_rate(pl->sfp_bus, rate_kbd);
1606 struct sfp_bus *bus;
1618 pl->sfp_bus = bus;
1738 sfp_bus_del_upstream(pl->sfp_bus);
1948 phy_interface_mode_is_8023z(interface) && !pl->sfp_bus)))
2216 if (pl->sfp_bus)
2217 sfp_upstream_start(pl->sfp_bus);
[all...]
H A Dmarvell.c3548 sfp_parse_support(phydev->sfp_bus, id, supported, interfaces);
3549 interface = sfp_select_interface(phydev->sfp_bus, supported);
H A Dphy_device.c1379 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 Dphy.c1516 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 Dmarvell-88x2222.c420 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 Dmarvell10g.c493 sfp_parse_support(phydev->sfp_bus, id, support, interfaces);
494 iface = sfp_select_interface(phydev->sfp_bus, support);
H A Dsfp.h31 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...]
/linux-master/drivers/net/phy/qcom/
H A Dat803x.c741 sfp_parse_support(phydev->sfp_bus, id, sfp_support, interfaces);
752 iface = sfp_select_interface(phydev->sfp_bus, sfp_support);
H A Dqca807x.c652 sfp_parse_support(phydev->sfp_bus, id, support, interfaces);
653 iface = sfp_select_interface(phydev->sfp_bus, support);
/linux-master/net/ethtool/
H A Dioctl.c2465 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);
H A Deeprom.c94 if (dev->sfp_bus)
95 return sfp_get_module_eeprom_by_page(dev->sfp_bus, page_data, extack);

Completed in 337 milliseconds