Lines Matching full:sfp

11 #include "sfp.h"
14 * struct sfp_bus - internal representation of a sfp bus
24 struct sfp *sfp; member
37 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
88 dev_warn(bus->sfp_dev, "SFP: unknown connector id 0x%02x\n", in sfp_parse_port()
112 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
139 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
304 /* For fibre channel SFP, derive possible BaseX modes */ in sfp_parse_support()
351 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
354 * Derive the phy_interface_t mode for the SFP module from the link
406 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() local
412 list_for_each_entry(sfp, &sfp_buses, node) { in sfp_bus_get()
413 if (sfp->fwnode == fwnode) { in sfp_bus_get()
414 kref_get(&sfp->kref); in sfp_bus_get()
415 found = sfp; in sfp_bus_get()
473 bus->socket_ops->attach(bus->sfp); in sfp_register_bus()
475 bus->socket_ops->start(bus->sfp); in sfp_register_bus()
487 bus->socket_ops->stop(bus->sfp); in sfp_unregister_bus()
488 bus->socket_ops->detach(bus->sfp); in sfp_unregister_bus()
496 * sfp_get_module_info() - Get the ethtool_modinfo for a SFP module
497 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
501 * the sfp bus specified by @bus.
507 return bus->socket_ops->module_info(bus->sfp, modinfo); in sfp_get_module_info()
512 * sfp_get_module_eeprom() - Read the SFP module EEPROM
513 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
525 return bus->socket_ops->module_eeprom(bus->sfp, ee, data); in sfp_get_module_eeprom()
530 * sfp_get_module_eeprom_by_page() - Read a page from the SFP module EEPROM
531 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
545 return bus->socket_ops->module_eeprom_by_page(bus->sfp, page, extack); in sfp_get_module_eeprom_by_page()
550 * sfp_upstream_start() - Inform the SFP that the network device is up
551 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
553 * Inform the SFP socket that the network device is now up, so that the
561 bus->socket_ops->start(bus->sfp); in sfp_upstream_start()
567 * sfp_upstream_stop() - Inform the SFP that the network device is down
568 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
570 * Inform the SFP socket that the network device is now up, so that the
578 bus->socket_ops->stop(bus->sfp); in sfp_upstream_stop()
591 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
594 * Configure the rate select settings on the SFP module for the signalling
600 * SFP's sm_mutex
605 bus->socket_ops->set_signal_rate(bus->sfp, rate_kbd); in sfp_upstream_set_signal_rate()
610 * sfp_bus_find_fwnode() - parse and locate the SFP bus from fwnode
613 * Parse the parent device's firmware node for a SFP bus, and locate
619 * - %NULL if no SFP is specified,
633 ret = fwnode_property_get_reference_args(fwnode, "sfp", NULL, in sfp_bus_find_fwnode()
660 * Add upstream driver for the SFP bus, and if the bus is complete, register
661 * the SFP bus using sfp_register_upstream(). This takes a reference on the
666 * - %NULL if no SFP is specified,
688 if (bus->sfp) { in sfp_bus_add_upstream()
705 * sfp_bus_del_upstream() - Delete a sfp bus
706 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
708 * Delete a previously registered upstream connection for the SFP
715 if (bus->sfp) in sfp_bus_del_upstream()
726 * sfp_get_name() - Get the SFP device name
727 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
729 * Gets the SFP device's name, if @bus has a registered socket. Callers must
733 * - The name of the SFP device registered with sfp_register_socket()
841 bus->sfp = NULL; in sfp_socket_clear()
845 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, in sfp_register_socket() argument
854 bus->sfp = sfp; in sfp_register_socket()