Symbol: sfp_bus
drivers/net/phy/marvell-88x2222.c
420
if (phydev->sfp_bus && !priv->sfp_link)
drivers/net/phy/phy.c
1683
if (phydev->sfp_bus)
drivers/net/phy/phy.c
1684
sfp_upstream_stop(phydev->sfp_bus);
drivers/net/phy/phy.c
1722
if (phydev->sfp_bus)
drivers/net/phy/phy.c
1723
sfp_upstream_start(phydev->sfp_bus);
drivers/net/phy/phy_device.c
1526
static void phy_sfp_attach(void *upstream, struct sfp_bus *bus)
drivers/net/phy/phy_device.c
1531
phydev->attached_dev->sfp_bus = bus;
drivers/net/phy/phy_device.c
1542
static void phy_sfp_detach(void *upstream, struct sfp_bus *bus)
drivers/net/phy/phy_device.c
1547
phydev->attached_dev->sfp_bus = NULL;
drivers/net/phy/phy_device.c
1566
caps = sfp_get_module_caps(phydev->sfp_bus);
drivers/net/phy/phy_device.c
1574
iface = sfp_select_interface(phydev->sfp_bus, sfp_support);
drivers/net/phy/phy_device.c
1709
struct sfp_bus *bus;
drivers/net/phy/phy_device.c
1717
phydev->sfp_bus = bus;
drivers/net/phy/phy_device.c
1723
phydev->sfp_bus = NULL;
drivers/net/phy/phy_device.c
1726
if (!ret && phydev->sfp_bus)
drivers/net/phy/phy_device.c
1813
dev->sfp_bus = phydev->sfp_bus;
drivers/net/phy/phy_device.c
3790
sfp_bus_del_upstream(phydev->sfp_bus);
drivers/net/phy/phy_device.c
3791
phydev->sfp_bus = NULL;
drivers/net/phy/phy_device.c
3818
sfp_bus_del_upstream(phydev->sfp_bus);
drivers/net/phy/phy_device.c
3819
phydev->sfp_bus = NULL;
drivers/net/phy/phy_link_topology.c
65
pdn->parent_sfp_bus = pdn->upstream.netdev->sfp_bus;
drivers/net/phy/phy_link_topology.c
70
pdn->parent_sfp_bus = pdn->upstream.phydev->sfp_bus;
drivers/net/phy/phylink.c
1360
if (pl->sfp_bus) {
drivers/net/phy/phylink.c
1363
sfp_upstream_set_signal_rate(pl->sfp_bus, rate_kbd);
drivers/net/phy/phylink.c
1771
struct sfp_bus *bus;
drivers/net/phy/phylink.c
1783
pl->sfp_bus = bus;
drivers/net/phy/phylink.c
1949
sfp_bus_del_upstream(pl->sfp_bus);
drivers/net/phy/phylink.c
2212
phy_interface_mode_is_8023z(interface) && !pl->sfp_bus)))
drivers/net/phy/phylink.c
2484
if (pl->sfp_bus)
drivers/net/phy/phylink.c
2485
sfp_upstream_start(pl->sfp_bus);
drivers/net/phy/phylink.c
2505
if (pl->sfp_bus)
drivers/net/phy/phylink.c
2506
sfp_upstream_stop(pl->sfp_bus);
drivers/net/phy/phylink.c
2823
interface = sfp_select_interface(pl->sfp_bus, link_modes);
drivers/net/phy/phylink.c
3078
if (pl->sfp_bus) {
drivers/net/phy/phylink.c
3607
if (!pl->sfp_bus && pl->phydev)
drivers/net/phy/phylink.c
3630
if (!pl->sfp_bus && pl->phydev)
drivers/net/phy/phylink.c
3637
static void phylink_sfp_attach(void *upstream, struct sfp_bus *bus)
drivers/net/phy/phylink.c
3641
pl->netdev->sfp_bus = bus;
drivers/net/phy/phylink.c
3644
static void phylink_sfp_detach(void *upstream, struct sfp_bus *bus)
drivers/net/phy/phylink.c
3648
pl->netdev->sfp_bus = NULL;
drivers/net/phy/phylink.c
3855
caps = sfp_get_module_caps(pl->sfp_bus);
drivers/net/phy/phylink.c
91
struct sfp_bus *sfp_bus;
drivers/net/phy/sfp-bus.c
100
static void sfp_module_parse_may_have_phy(struct sfp_bus *bus,
drivers/net/phy/sfp-bus.c
122
static void sfp_module_parse_support(struct sfp_bus *bus,
drivers/net/phy/sfp-bus.c
318
static void sfp_init_module(struct sfp_bus *bus,
drivers/net/phy/sfp-bus.c
340
phy_interface_t sfp_select_interface(struct sfp_bus *bus,
drivers/net/phy/sfp-bus.c
36
const struct sfp_module_caps *sfp_get_module_caps(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
382
static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
387
static struct sfp_bus *sfp_bus_get(const struct fwnode_handle *fwnode)
drivers/net/phy/sfp-bus.c
389
struct sfp_bus *sfp, *new, *found = NULL;
drivers/net/phy/sfp-bus.c
42
static void sfp_module_parse_port(struct sfp_bus *bus,
drivers/net/phy/sfp-bus.c
420
struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref);
drivers/net/phy/sfp-bus.c
434
void sfp_bus_put(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
441
static int sfp_register_bus(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
463
static void sfp_unregister_bus(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
488
int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo)
drivers/net/phy/sfp-bus.c
505
int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee,
drivers/net/phy/sfp-bus.c
524
int sfp_get_module_eeprom_by_page(struct sfp_bus *bus,
drivers/net/phy/sfp-bus.c
541
void sfp_upstream_start(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
558
void sfp_upstream_stop(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
566
static void sfp_upstream_clear(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
585
void sfp_upstream_set_signal_rate(struct sfp_bus *bus, unsigned int rate_kbd)
drivers/net/phy/sfp-bus.c
610
struct sfp_bus *sfp_bus_find_fwnode(const struct fwnode_handle *fwnode)
drivers/net/phy/sfp-bus.c
613
struct sfp_bus *bus;
drivers/net/phy/sfp-bus.c
657
int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
drivers/net/phy/sfp-bus.c
694
void sfp_bus_del_upstream(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
719
const char *sfp_get_name(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
731
int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev)
drivers/net/phy/sfp-bus.c
746
void sfp_remove_phy(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
756
void sfp_link_up(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
765
void sfp_link_down(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
774
int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
drivers/net/phy/sfp-bus.c
789
void sfp_module_remove(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
798
int sfp_module_start(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
810
void sfp_module_stop(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
819
static void sfp_socket_clear(struct sfp_bus *bus)
drivers/net/phy/sfp-bus.c
826
struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
drivers/net/phy/sfp-bus.c
829
struct sfp_bus *bus = sfp_bus_get(dev->fwnode);
drivers/net/phy/sfp-bus.c
855
void sfp_unregister_socket(struct sfp_bus *bus)
drivers/net/phy/sfp.c
2064
sfp_remove_phy(sfp->sfp_bus);
drivers/net/phy/sfp.c
2094
err = sfp_add_phy(sfp->sfp_bus, phy);
drivers/net/phy/sfp.c
2109
sfp_link_up(sfp->sfp_bus);
drivers/net/phy/sfp.c
2115
sfp_link_down(sfp->sfp_bus);
drivers/net/phy/sfp.c
245
struct sfp_bus *sfp_bus;
drivers/net/phy/sfp.c
2663
sfp_module_remove(sfp->sfp_bus);
drivers/net/phy/sfp.c
2775
err = sfp_module_insert(sfp->sfp_bus, &sfp->id,
drivers/net/phy/sfp.c
2793
sfp_module_remove(sfp->sfp_bus);
drivers/net/phy/sfp.c
2832
sfp_module_stop(sfp->sfp_bus);
drivers/net/phy/sfp.c
2938
if (sfp_module_start(sfp->sfp_bus)) {
drivers/net/phy/sfp.c
3407
sfp->sfp_bus = sfp_register_socket(sfp->dev, sfp, &sfp_module_ops);
drivers/net/phy/sfp.c
3408
if (!sfp->sfp_bus)
drivers/net/phy/sfp.c
3430
sfp_unregister_socket(sfp->sfp_bus);
drivers/net/phy/sfp.h
31
int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev);
drivers/net/phy/sfp.h
32
void sfp_remove_phy(struct sfp_bus *bus);
drivers/net/phy/sfp.h
33
void sfp_link_up(struct sfp_bus *bus);
drivers/net/phy/sfp.h
34
void sfp_link_down(struct sfp_bus *bus);
drivers/net/phy/sfp.h
35
int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
drivers/net/phy/sfp.h
37
void sfp_module_remove(struct sfp_bus *bus);
drivers/net/phy/sfp.h
38
int sfp_module_start(struct sfp_bus *bus);
drivers/net/phy/sfp.h
39
void sfp_module_stop(struct sfp_bus *bus);
drivers/net/phy/sfp.h
40
struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
drivers/net/phy/sfp.h
42
void sfp_unregister_socket(struct sfp_bus *bus);
include/linux/netdevice.h
2497
struct sfp_bus *sfp_bus;
include/linux/netdevice.h
69
struct sfp_bus;
include/linux/phy.h
331
struct sfp_bus;
include/linux/phy.h
787
struct sfp_bus *sfp_bus;
include/linux/phy_link_topology.h
19
struct sfp_bus;
include/linux/phy_link_topology.h
34
struct sfp_bus *parent_sfp_bus;
include/linux/sfp.h
522
struct sfp_bus;
include/linux/sfp.h
566
void (*attach)(void *priv, struct sfp_bus *bus);
include/linux/sfp.h
567
void (*detach)(void *priv, struct sfp_bus *bus);
include/linux/sfp.h
579
const struct sfp_module_caps *sfp_get_module_caps(struct sfp_bus *bus);
include/linux/sfp.h
580
phy_interface_t sfp_select_interface(struct sfp_bus *bus,
include/linux/sfp.h
583
int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo);
include/linux/sfp.h
584
int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee,
include/linux/sfp.h
586
int sfp_get_module_eeprom_by_page(struct sfp_bus *bus,
include/linux/sfp.h
589
void sfp_upstream_start(struct sfp_bus *bus);
include/linux/sfp.h
590
void sfp_upstream_stop(struct sfp_bus *bus);
include/linux/sfp.h
591
void sfp_upstream_set_signal_rate(struct sfp_bus *bus, unsigned int rate_kbd);
include/linux/sfp.h
592
void sfp_bus_put(struct sfp_bus *bus);
include/linux/sfp.h
593
struct sfp_bus *sfp_bus_find_fwnode(const struct fwnode_handle *fwnode);
include/linux/sfp.h
594
int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
include/linux/sfp.h
596
void sfp_bus_del_upstream(struct sfp_bus *bus);
include/linux/sfp.h
597
const char *sfp_get_name(struct sfp_bus *bus);
include/linux/sfp.h
600
sfp_get_module_caps(struct sfp_bus *bus)
include/linux/sfp.h
605
static inline phy_interface_t sfp_select_interface(struct sfp_bus *bus,
include/linux/sfp.h
611
static inline int sfp_get_module_info(struct sfp_bus *bus,
include/linux/sfp.h
617
static inline int sfp_get_module_eeprom(struct sfp_bus *bus,
include/linux/sfp.h
623
static inline int sfp_get_module_eeprom_by_page(struct sfp_bus *bus,
include/linux/sfp.h
630
static inline void sfp_upstream_start(struct sfp_bus *bus)
include/linux/sfp.h
634
static inline void sfp_upstream_stop(struct sfp_bus *bus)
include/linux/sfp.h
638
static inline void sfp_upstream_set_signal_rate(struct sfp_bus *bus,
include/linux/sfp.h
643
static inline void sfp_bus_put(struct sfp_bus *bus)
include/linux/sfp.h
647
static inline struct sfp_bus *
include/linux/sfp.h
653
static inline int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
include/linux/sfp.h
659
static inline void sfp_bus_del_upstream(struct sfp_bus *bus)
include/linux/sfp.h
663
static inline const char *sfp_get_name(struct sfp_bus *bus)
net/ethtool/eeprom.c
104
if (dev->sfp_bus)
net/ethtool/eeprom.c
105
return sfp_get_module_eeprom_by_page(dev->sfp_bus, page_data, extack);
net/ethtool/ioctl.c
2873
if (dev->sfp_bus)
net/ethtool/ioctl.c
2874
return sfp_get_module_info(dev->sfp_bus, modinfo);
net/ethtool/ioctl.c
2913
if (dev->sfp_bus)
net/ethtool/ioctl.c
2914
return sfp_get_module_eeprom(dev->sfp_bus, ee, data);
net/ethtool/phy.c
120
if (phydev->sfp_bus) {
net/ethtool/phy.c
121
rep_data->downstream_sfp_name = kstrdup(sfp_get_name(phydev->sfp_bus),