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
405 struct sfp_bus *sfp, *new, *found = NULL; in sfp_bus_get() local
411 list_for_each_entry(sfp, &sfp_buses, node) { in sfp_bus_get()
412 if (sfp->fwnode == fwnode) { in sfp_bus_get()
413 kref_get(&sfp->kref); in sfp_bus_get()
414 found = sfp; in sfp_bus_get()
472 bus->socket_ops->attach(bus->sfp); in sfp_register_bus()
474 bus->socket_ops->start(bus->sfp); in sfp_register_bus()
486 bus->socket_ops->stop(bus->sfp); in sfp_unregister_bus()
487 bus->socket_ops->detach(bus->sfp); in sfp_unregister_bus()
495 * sfp_get_module_info() - Get the ethtool_modinfo for a SFP module
496 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
500 * the sfp bus specified by @bus.
506 return bus->socket_ops->module_info(bus->sfp, modinfo); in sfp_get_module_info()
511 * sfp_get_module_eeprom() - Read the SFP module EEPROM
512 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
524 return bus->socket_ops->module_eeprom(bus->sfp, ee, data); in sfp_get_module_eeprom()
529 * sfp_get_module_eeprom_by_page() - Read a page from the SFP module EEPROM
530 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
544 return bus->socket_ops->module_eeprom_by_page(bus->sfp, page, extack); in sfp_get_module_eeprom_by_page()
549 * sfp_upstream_start() - Inform the SFP that the network device is up
550 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
552 * Inform the SFP socket that the network device is now up, so that the
560 bus->socket_ops->start(bus->sfp); in sfp_upstream_start()
566 * sfp_upstream_stop() - Inform the SFP that the network device is down
567 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
569 * Inform the SFP socket that the network device is now up, so that the
577 bus->socket_ops->stop(bus->sfp); in sfp_upstream_stop()
590 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
593 * Configure the rate select settings on the SFP module for the signalling
599 * SFP's sm_mutex
604 bus->socket_ops->set_signal_rate(bus->sfp, rate_kbd); in sfp_upstream_set_signal_rate()
609 * sfp_bus_find_fwnode() - parse and locate the SFP bus from fwnode
612 * Parse the parent device's firmware node for a SFP bus, and locate
618 * - %NULL if no SFP is specified,
632 ret = fwnode_property_get_reference_args(fwnode, "sfp", NULL, in sfp_bus_find_fwnode()
659 * Add upstream driver for the SFP bus, and if the bus is complete, register
660 * the SFP bus using sfp_register_upstream(). This takes a reference on the
665 * - %NULL if no SFP is specified,
687 if (bus->sfp) { in sfp_bus_add_upstream()
704 * sfp_bus_del_upstream() - Delete a sfp bus
705 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
707 * Delete a previously registered upstream connection for the SFP
714 if (bus->sfp) in sfp_bus_del_upstream()
818 bus->sfp = NULL; in sfp_socket_clear()
822 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp, in sfp_register_socket() argument
831 bus->sfp = sfp; in sfp_register_socket()