Lines Matching full:sfp
11 #include "sfp.h"
20 * struct sfp_bus - internal representation of a sfp bus
30 struct sfp *sfp; member
130 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
181 dev_warn(bus->sfp_dev, "SFP: unknown connector id 0x%02x\n", in sfp_parse_port()
205 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
232 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
347 /* For fibre channel SFP, derive possible BaseX modes */ in sfp_parse_support()
381 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
384 * Derive the phy_interface_t mode for the SFP module from the link
424 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() local
430 list_for_each_entry(sfp, &sfp_buses, node) { in sfp_bus_get()
431 if (sfp->fwnode == fwnode) { in sfp_bus_get()
432 kref_get(&sfp->kref); in sfp_bus_get()
433 found = sfp; in sfp_bus_get()
491 bus->socket_ops->attach(bus->sfp); in sfp_register_bus()
493 bus->socket_ops->start(bus->sfp); in sfp_register_bus()
505 bus->socket_ops->stop(bus->sfp); in sfp_unregister_bus()
506 bus->socket_ops->detach(bus->sfp); in sfp_unregister_bus()
514 * sfp_get_module_info() - Get the ethtool_modinfo for a SFP module
515 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
519 * the sfp bus specified by @bus.
525 return bus->socket_ops->module_info(bus->sfp, modinfo); in sfp_get_module_info()
530 * sfp_get_module_eeprom() - Read the SFP module EEPROM
531 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
543 return bus->socket_ops->module_eeprom(bus->sfp, ee, data); in sfp_get_module_eeprom()
548 * sfp_upstream_start() - Inform the SFP that the network device is up
549 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
551 * Inform the SFP socket that the network device is now up, so that the
559 bus->socket_ops->start(bus->sfp); in sfp_upstream_start()
565 * sfp_upstream_stop() - Inform the SFP that the network device is down
566 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
568 * Inform the SFP socket that the network device is now up, so that the
576 bus->socket_ops->stop(bus->sfp); in sfp_upstream_stop()
588 * sfp_bus_find_fwnode() - parse and locate the SFP bus from fwnode
591 * Parse the parent device's firmware node for a SFP bus, and locate
597 * - %NULL if no SFP is specified,
611 ret = fwnode_property_get_reference_args(fwnode, "sfp", NULL, in sfp_bus_find_fwnode()
638 * Add upstream driver for the SFP bus, and if the bus is complete, register
639 * the SFP bus using sfp_register_upstream(). This takes a reference on the
644 * - %NULL if no SFP is specified,
666 if (bus->sfp) { in sfp_bus_add_upstream()
683 * sfp_bus_del_upstream() - Delete a sfp bus
684 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
686 * Delete a previously registered upstream connection for the SFP
693 if (bus->sfp) in sfp_bus_del_upstream()
796 bus->sfp = NULL; in sfp_socket_clear()
800 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, in sfp_register_socket() argument
809 bus->sfp = sfp; in sfp_register_socket()