Lines Matching refs:sfp_bus
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 *bus,
565 void sfp_upstream_start(struct sfp_bus *bus);
566 void sfp_upstream_stop(struct sfp_bus *bus);
567 void sfp_upstream_set_signal_rate(struct sfp_bus *bus, unsigned int rate_kbd);
568 void sfp_bus_put(struct sfp_bus *bus);
569 struct sfp_bus *sfp_bus_find_fwnode(const struct fwnode_handle *fwnode);
570 int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
572 void sfp_bus_del_upstream(struct sfp_bus *bus);
574 static inline int sfp_parse_port(struct sfp_bus *bus, in sfp_parse_port()
581 static inline bool sfp_may_have_phy(struct sfp_bus *bus, in sfp_may_have_phy()
587 static inline void sfp_parse_support(struct sfp_bus *bus, in sfp_parse_support()
594 static inline phy_interface_t sfp_select_interface(struct sfp_bus *bus, in sfp_select_interface()
600 static inline int sfp_get_module_info(struct sfp_bus *bus, in sfp_get_module_info()
606 static inline int sfp_get_module_eeprom(struct sfp_bus *bus, in sfp_get_module_eeprom()
612 static inline int sfp_get_module_eeprom_by_page(struct sfp_bus *bus, in sfp_get_module_eeprom_by_page()
619 static inline void sfp_upstream_start(struct sfp_bus *bus) in sfp_upstream_start()
623 static inline void sfp_upstream_stop(struct sfp_bus *bus) in sfp_upstream_stop()
627 static inline void sfp_upstream_set_signal_rate(struct sfp_bus *bus, in sfp_upstream_set_signal_rate()
632 static inline void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put()
636 static inline struct sfp_bus *
642 static inline int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream, in sfp_bus_add_upstream()
648 static inline void sfp_bus_del_upstream(struct sfp_bus *bus) in sfp_bus_del_upstream()