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,
399 static const struct sfp_upstream_ops *sfp_get_upstream_ops(struct sfp_bus *bus)
404 static struct sfp_bus *sfp_bus_get(const struct fwnode_handle *fwnode)
406 struct sfp_bus *sfp, *new, *found = NULL;
437 struct sfp_bus *bus = container_of(kref, struct sfp_bus, kref);
445 * sfp_bus_put() - put a reference on the &struct sfp_bus
446 * @bus: the &struct sfp_bus found via sfp_bus_find_fwnode()
448 * Put a reference on the &struct sfp_bus and free the underlying structure
451 void sfp_bus_put(struct sfp_bus *bus)
458 static int sfp_register_bus(struct sfp_bus *bus)
480 static void sfp_unregister_bus(struct sfp_bus *bus)
497 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
505 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo)
513 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
522 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee,
531 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
541 int sfp_get_module_eeprom_by_page(struct sfp_bus *bus,
551 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
558 void sfp_upstream_start(struct sfp_bus *bus)
568 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
575 void sfp_upstream_stop(struct sfp_bus *bus)
583 static void sfp_upstream_clear(struct sfp_bus *bus)
591 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
602 void sfp_upstream_set_signal_rate(struct sfp_bus *bus, unsigned int rate_kbd)
614 * the sfp_bus structure, incrementing its reference count. This must
618 * - on success, a pointer to the sfp_bus structure,
627 struct sfp_bus *sfp_bus_find_fwnode(const struct fwnode_handle *fwnode)
630 struct sfp_bus *bus;
656 * @bus: the &struct sfp_bus found via sfp_bus_find_fwnode()
665 * - on success, a pointer to the sfp_bus structure,
674 int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
706 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
711 void sfp_bus_del_upstream(struct sfp_bus *bus)
726 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev)
741 void sfp_remove_phy(struct sfp_bus *bus)
751 void sfp_link_up(struct sfp_bus *bus)
760 void sfp_link_down(struct sfp_bus *bus)
769 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
784 void sfp_module_remove(struct sfp_bus *bus)
795 int sfp_module_start(struct sfp_bus *bus)
807 void sfp_module_stop(struct sfp_bus *bus)
816 static void sfp_socket_clear(struct sfp_bus *bus)
823 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
826 struct sfp_bus *bus = sfp_bus_get(dev->fwnode);
852 void sfp_unregister_socket(struct sfp_bus *bus)