Lines Matching refs:sfp_bus
16 struct sfp_bus { struct
49 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_port()
118 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id) in sfp_may_have_phy()
148 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_support()
347 phy_interface_t sfp_select_interface(struct sfp_bus *bus, in sfp_select_interface()
388 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus) in sfp_get_upstream_ops()
393 static struct sfp_bus *sfp_bus_get(struct fwnode_handle *fwnode) in sfp_bus_get()
395 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get()
426 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref); in sfp_bus_release()
440 void sfp_bus_put(struct sfp_bus *bus) in sfp_bus_put()
447 static int sfp_register_bus(struct sfp_bus *bus) in sfp_register_bus()
469 static void sfp_unregister_bus(struct sfp_bus *bus) in sfp_unregister_bus()
494 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo) in sfp_get_module_info()
511 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee, in sfp_get_module_eeprom()
530 int sfp_get_module_eeprom_by_page(struct sfp_bus *bus, in sfp_get_module_eeprom_by_page()
547 void sfp_upstream_start(struct sfp_bus *bus) in sfp_upstream_start()
564 void sfp_upstream_stop(struct sfp_bus *bus) in sfp_upstream_stop()
572 static void sfp_upstream_clear(struct sfp_bus *bus) in sfp_upstream_clear()
596 struct sfp_bus *sfp_bus_find_fwnode(struct fwnode_handle *fwnode) in sfp_bus_find_fwnode()
599 struct sfp_bus *bus; in sfp_bus_find_fwnode()
643 int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream, in sfp_bus_add_upstream()
680 void sfp_bus_del_upstream(struct sfp_bus *bus) in sfp_bus_del_upstream()
695 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev) in sfp_add_phy()
710 void sfp_remove_phy(struct sfp_bus *bus) in sfp_remove_phy()
720 void sfp_link_up(struct sfp_bus *bus) in sfp_link_up()
729 void sfp_link_down(struct sfp_bus *bus) in sfp_link_down()
738 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_module_insert()
753 void sfp_module_remove(struct sfp_bus *bus) in sfp_module_remove()
764 int sfp_module_start(struct sfp_bus *bus) in sfp_module_start()
776 void sfp_module_stop(struct sfp_bus *bus) in sfp_module_stop()
785 static void sfp_socket_clear(struct sfp_bus *bus) in sfp_socket_clear()
792 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, in sfp_register_socket()
795 struct sfp_bus *bus = sfp_bus_get(dev->fwnode); in sfp_register_socket()
821 void sfp_unregister_socket(struct sfp_bus *bus) in sfp_unregister_socket()