Lines Matching refs:sfp_bus
20 * struct sfp_bus - internal representation of a sfp bus
22 struct sfp_bus {
130 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
142 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
205 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
211 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id)
232 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
239 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
381 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
387 phy_interface_t sfp_select_interface(struct sfp_bus *bus,
417 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus)
422 static struct sfp_bus *sfp_bus_get(struct fwnode_handle *fwnode)
424 struct sfp_bus *sfp, *new, *found = NULL;
455 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref);
463 * sfp_bus_put() - put a reference on the &struct sfp_bus
464 * @bus: the &struct sfp_bus found via sfp_bus_find_fwnode()
466 * Put a reference on the &struct sfp_bus and free the underlying structure
469 void sfp_bus_put(struct sfp_bus *bus)
476 static int sfp_register_bus(struct sfp_bus *bus)
498 static void sfp_unregister_bus(struct sfp_bus *bus)
515 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
523 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo)
531 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
540 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee,
549 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
556 void sfp_upstream_start(struct sfp_bus *bus)
566 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
573 void sfp_upstream_stop(struct sfp_bus *bus)
581 static void sfp_upstream_clear(struct sfp_bus *bus)
592 * the sfp_bus structure, incrementing its reference count. This must
596 * - on success, a pointer to the sfp_bus structure,
605 struct sfp_bus *sfp_bus_find_fwnode(struct fwnode_handle *fwnode)
608 struct sfp_bus *bus;
634 * @bus: the &struct sfp_bus found via sfp_bus_find_fwnode()
643 * - on success, a pointer to the sfp_bus structure,
652 int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
684 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
689 void sfp_bus_del_upstream(struct sfp_bus *bus)
704 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev)
719 void sfp_remove_phy(struct sfp_bus *bus)
729 void sfp_link_up(struct sfp_bus *bus)
738 void sfp_link_down(struct sfp_bus *bus)
747 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id)
761 void sfp_module_remove(struct sfp_bus *bus)
772 int sfp_module_start(struct sfp_bus *bus)
784 void sfp_module_stop(struct sfp_bus *bus)
793 static void sfp_socket_clear(struct sfp_bus *bus)
800 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
803 struct sfp_bus *bus = sfp_bus_get(dev->fwnode);
829 void sfp_unregister_socket(struct sfp_bus *bus)