Lines Matching refs:sfp_bus
522 struct sfp_bus;
544 void (*attach)(void *priv, struct sfp_bus *bus);
545 void (*detach)(void *priv, struct sfp_bus *bus);
557 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
559 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
560 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
562 phy_interface_t sfp_select_interface(struct sfp_bus *bus,
565 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo);
566 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee,
568 int sfp_get_module_eeprom_by_page(struct sfp_bus *bus,
571 void sfp_upstream_start(struct sfp_bus *bus);
572 void sfp_upstream_stop(struct sfp_bus *bus);
573 void sfp_upstream_set_signal_rate(struct sfp_bus *bus, unsigned int rate_kbd);
574 void sfp_bus_put(struct sfp_bus *bus);
575 struct sfp_bus *sfp_bus_find_fwnode(const struct fwnode_handle *fwnode);
576 int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
578 void sfp_bus_del_upstream(struct sfp_bus *bus);
579 const char *sfp_get_name(struct sfp_bus *bus);
581 static inline int sfp_parse_port(struct sfp_bus *bus, in sfp_parse_port()
588 static inline bool sfp_may_have_phy(struct sfp_bus *bus, in sfp_may_have_phy()
594 static inline void sfp_parse_support(struct sfp_bus *bus, in sfp_parse_support()
601 static inline phy_interface_t sfp_select_interface(struct sfp_bus *bus, in sfp_select_interface()
607 static inline int sfp_get_module_info(struct sfp_bus *bus, in sfp_get_module_info()
613 static inline int sfp_get_module_eeprom(struct sfp_bus *bus, in sfp_get_module_eeprom()
619 static inline int sfp_get_module_eeprom_by_page(struct sfp_bus *bus, in sfp_get_module_eeprom_by_page()
626 static inline void sfp_upstream_start(struct sfp_bus *bus) in sfp_upstream_start()
630 static inline void sfp_upstream_stop(struct sfp_bus *bus) in sfp_upstream_stop()
634 static inline void sfp_upstream_set_signal_rate(struct sfp_bus *bus, in sfp_upstream_set_signal_rate()
639 static inline void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put()
643 static inline struct sfp_bus *
649 static inline int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream, in sfp_bus_add_upstream()
655 static inline void sfp_bus_del_upstream(struct sfp_bus *bus) in sfp_bus_del_upstream()
659 static inline const char *sfp_get_name(struct sfp_bus *bus) in sfp_get_name()