Lines Matching refs:sfp_bus
14 * struct sfp_bus - internal representation of a sfp bus
16 struct sfp_bus {
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 *bus,
398 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus)
403 static struct sfp_bus *sfp_bus_get(const struct fwnode_handle *fwnode)
405 struct sfp_bus *sfp, *new, *found = NULL;
436 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref);
444 * sfp_bus_put() - put a reference on the &struct sfp_bus
445 * @bus: the &struct sfp_bus found via sfp_bus_find_fwnode()
447 * Put a reference on the &struct sfp_bus and free the underlying structure
450 void sfp_bus_put(struct sfp_bus *bus)
457 static int sfp_register_bus(struct sfp_bus *bus)
479 static void sfp_unregister_bus(struct sfp_bus *bus)
496 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
504 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo)
512 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
521 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee,
530 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
540 int sfp_get_module_eeprom_by_page(struct sfp_bus *bus,
550 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
557 void sfp_upstream_start(struct sfp_bus *bus)
567 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
574 void sfp_upstream_stop(struct sfp_bus *bus)
582 static void sfp_upstream_clear(struct sfp_bus *bus)
590 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
601 void sfp_upstream_set_signal_rate(struct sfp_bus *bus, unsigned int rate_kbd)
613 * the sfp_bus structure, incrementing its reference count. This must
617 * - on success, a pointer to the sfp_bus structure,
626 struct sfp_bus *sfp_bus_find_fwnode(const struct fwnode_handle *fwnode)
629 struct sfp_bus *bus;
655 * @bus: the &struct sfp_bus found via sfp_bus_find_fwnode()
664 * - on success, a pointer to the sfp_bus structure,
673 int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
705 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
710 void sfp_bus_del_upstream(struct sfp_bus *bus)
725 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev)
740 void sfp_remove_phy(struct sfp_bus *bus)
750 void sfp_link_up(struct sfp_bus *bus)
759 void sfp_link_down(struct sfp_bus *bus)
768 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
783 void sfp_module_remove(struct sfp_bus *bus)
794 int sfp_module_start(struct sfp_bus *bus)
806 void sfp_module_stop(struct sfp_bus *bus)
815 static void sfp_socket_clear(struct sfp_bus *bus)
822 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
825 struct sfp_bus *bus = sfp_bus_get(dev->fwnode);
851 void sfp_unregister_socket(struct sfp_bus *bus)