id
stringlengths
4
63
text
stringlengths
153
8.81M
phy_port_restrict_mediums(9)
NAME phy_port_restrict_mediums - Mask away some of the port's supported mediums SYNOPSIS int phy_port_restrict_mediums (struct phy_port *port , unsigned long mediums ); ARGUMENTS port The port to act upon mediums A mask of mediums to support on the port DESCRIPTION This helper allows removing some...
phy_port_update_supported(9)
NAME phy_port_update_supported - Setup the port->supported field SYNOPSIS void phy_port_update_supported (struct phy_port *port ); ARGUMENTS port the port to update DESCRIPTION Once the port's medium list and number of pairs has been configured based on firmware, straps and vendor-specific properties, this ...
phy_power_off(9)
NAME phy_power_off - Disable the phy. SYNOPSIS int phy_power_off (struct phy *phy ); ARGUMENTS phy the phy returned by phy_get DESCRIPTION Must be called before phy_exit. RETURN 0 if successful, a negative error code otherwise SEE ALSO Kernel file ./drivers/phy/phy-core.c phy_create_lookup(9), phy_remove_...
phy_power_on(9)
NAME phy_power_on - Enable the phy and enter proper operation SYNOPSIS int phy_power_on (struct phy *phy ); ARGUMENTS phy the phy returned by phy_get DESCRIPTION Must be called after phy_init. RETURN 0 if successful, a negative error code otherwise SEE ALSO Kernel file ./drivers/phy/phy-core.c phy_create_l...
phy_prepare_link(9)
NAME phy_prepare_link - prepares the PHY layer to monitor link status SYNOPSIS void phy_prepare_link (struct phy_device *phydev , void (*handler)(struct net_device *) ); ARGUMENTS phydev target phy_device struct handler callback function for link status change notifications DESCRIPTION Tells the P...
phy_print_status(9)
NAME phy_print_status - Convenience function to print out the current phy status SYNOPSIS void phy_print_status (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct SEE ALSO Kernel file ./drivers/net/phy/phy.c phy_get_rate_matching(9), phy_config_interrupt(9), phy_restart_aneg(9), phy_aneg...
phy_probe(9)
NAME phy_probe - probe and init a PHY device SYNOPSIS int phy_probe (struct device *dev ); ARGUMENTS dev device to probe and init DESCRIPTION Take care of setting up the phy_device structure, set the state to READY. SEE ALSO Kernel file ./drivers/net/phy/phy_device.c phy_uses_state_machine(9), phy_regis...
phy_put(9)
NAME phy_put - release the PHY SYNOPSIS void phy_put (struct device *dev , struct phy *phy ); ARGUMENTS dev device that wants to release this phy phy the phy returned by phy_get DESCRIPTION Releases a refcount the caller received from phy_get. SEE ALSO Kernel file ./drivers/phy/phy-core.c ...
phy_queue_state_machine(9)
NAME phy_queue_state_machine - Trigger the state machine to run soon SYNOPSIS void phy_queue_state_machine (struct phy_device *phydev , unsigned long jiffies ); ARGUMENTS phydev the phy_device struct jiffies Run the state machine after these jiffies SEE ALSO Kernel file ./drivers/net/phy/phy.c ph...
phy_rate_matching_to_str(9)
NAME phy_rate_matching_to_str - Return a string describing the rate matching SYNOPSIS const char * phy_rate_matching_to_str (int rate_matching ); ARGUMENTS rate_matching Type of rate matching to describe SEE ALSO Kernel file ./drivers/net/phy/phy-core.c phy_speed_to_str(9), phy_duplex_to_str(9), phy_fix_ph...
phy_read(9)
NAME phy_read - Convenience function for reading a given PHY register SYNOPSIS int phy_read (struct phy_device *phydev , u32 regnum ); ARGUMENTS phydev the phy_device struct regnum register number to read NOTE MUST NOT be called from interrupt context, because the bus read/write functions may wait ...
phy_read_mmd(9)
NAME phy_read_mmd - Convenience function for reading a register from an MMD on a given PHY. SYNOPSIS int phy_read_mmd (struct phy_device *phydev , int devad , u32 regnum ); ARGUMENTS phydev The phy_device struct devad The MMD to read from regnum The register on the MMD to read DESCRIP...
phy_read_mmd_poll_timeout(9)
NAME phy_read_mmd_poll_timeout - Periodically poll a PHY register until a condition is met or a timeout occurs SYNOPSIS phy_read_mmd_poll_timeout (phydev , devaddr , regnum , val , cond , sleep_us , timeout_us , sleep_before_read ); ARGUMENTS phydev The phy_device struct devaddr The MMD to read from ...
phy_read_paged(9)
NAME phy_read_paged - Convenience function for reading a paged register SYNOPSIS int phy_read_paged (struct phy_device *phydev , int page , u32 regnum ); ARGUMENTS phydev a pointer to a struct phy_device page the page for the phy regnum register number DESCRIPTION Same rules as for p...
phy_register_fixup(9)
NAME phy_register_fixup - creates a new phy_fixup and adds it to the list SYNOPSIS int phy_register_fixup (const char *bus_id , u32 phy_uid , u32 phy_uid_mask , int (*run)(struct phy_device *) ); ARGUMENTS bus_id A string which matches phydev->mdio.dev.bus_id (or NULL) phy_uid Used to match against p...
phy_release(9)
NAME phy_release - release the phy SYNOPSIS void phy_release (struct device *dev ); ARGUMENTS dev the dev member within phy DESCRIPTION When the last reference to the device is removed, it is called from the embedded kobject as release method. SEE ALSO Kernel file ./drivers/phy/phy-core.c phy_create_look...
phy_remove_link_mode(9)
NAME phy_remove_link_mode - Remove a supported link mode SYNOPSIS void phy_remove_link_mode (struct phy_device *phydev , u32 link_mode ); ARGUMENTS phydev phy_device structure to remove link mode from link_mode Link mode to be removed DESCRIPTION Some MACs don't support all link modes which the PHY do...
phy_remove_lookup(9)
NAME phy_remove_lookup - find and remove PHY/device association SYNOPSIS void phy_remove_lookup (struct phy *phy , const char *con_id , const char *dev_id ); ARGUMENTS phy the phy of the association con_id connection ID string on device dev_id the device of the association DESCRIPTI...
phy_request_interrupt(9)
NAME phy_request_interrupt - request and enable interrupt for a PHY device SYNOPSIS void phy_request_interrupt (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION Request and enable the interrupt for the given PHY. If this fails, then we set irq to PHY_POLL. This should only be...
phy_reset_after_clk_enable(9)
NAME phy_reset_after_clk_enable - perform a PHY reset if needed SYNOPSIS int phy_reset_after_clk_enable (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION Some PHYs are known to need a reset after their refclk was enabled. This function evaluates the flags and perform the reset ...
phy_resolve_aneg_linkmode(9)
NAME phy_resolve_aneg_linkmode - resolve the advertisements into PHY settings SYNOPSIS void phy_resolve_aneg_linkmode (struct phy_device *phydev ); ARGUMENTS phydev The phy_device struct DESCRIPTION Resolve our and the link partner advertisements into their corresponding speed and duplex. If full duplex was neg...
phy_resolve_aneg_pause(9)
NAME phy_resolve_aneg_pause - Determine pause autoneg results SYNOPSIS void phy_resolve_aneg_pause (struct phy_device *phydev ); ARGUMENTS phydev The phy_device struct DESCRIPTION Once autoneg has completed the local pause settings can be resolved. Determine if pause and asymmetric pause should be used by the ...
phy_restart_aneg(9)
NAME phy_restart_aneg - restart auto-negotiation SYNOPSIS int phy_restart_aneg (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION Restart the autonegotiation on phydev. Returns >= 0 on success or negative errno on error. SEE ALSO Kernel file ./drivers/net/phy/phy.c phy_prin...
phy_restore_page(9)
NAME phy_restore_page - restore the page register and release the bus lock SYNOPSIS int phy_restore_page (struct phy_device *phydev , int oldpage , int ret ); ARGUMENTS phydev a pointer to a struct phy_device oldpage the old page, return value from phy_save_page or phy_select_page ret ...
phy_sanitize_settings(9)
NAME phy_sanitize_settings - make sure the PHY is set to supported speed and duplex SYNOPSIS void phy_sanitize_settings (struct phy_device *phydev ); ARGUMENTS phydev the target phy_device struct DESCRIPTION Make sure the PHY is set to supported speeds and duplexes. Drop down by one in this order: 1000/FULL, ...
phy_save_page(9)
NAME phy_save_page - take the bus lock and save the current page SYNOPSIS int phy_save_page (struct phy_device *phydev ); ARGUMENTS phydev a pointer to a struct phy_device DESCRIPTION Take the MDIO bus lock, and return the current page number. On error, returns a negative errno. phy_restore_page must always be ...
phy_select_page(9)
NAME phy_select_page - take the bus lock, save the current page, and set a page SYNOPSIS int phy_select_page (struct phy_device *phydev , int page ); ARGUMENTS phydev a pointer to a struct phy_device page desired page DESCRIPTION Take the MDIO bus lock to protect against concurrent access, save t...
phy_set_asym_pause(9)
NAME phy_set_asym_pause - Configure Pause and Asym Pause SYNOPSIS void phy_set_asym_pause (struct phy_device *phydev , bool rx , bool tx ); ARGUMENTS phydev target phy_device struct rx Receiver Pause is supported tx Transmit Pause is supported DESCRIPTION Configure advertised P...
phy_set_bits(9)
NAME phy_set_bits - Convenience function for setting bits in a PHY register SYNOPSIS int phy_set_bits (struct phy_device *phydev , u32 regnum , u16 val ); ARGUMENTS phydev the phy_device struct regnum register number to write val bits to set SEE ALSO Kernel file ./include/linux/ph...
phy_set_bits_mmd(9)
NAME phy_set_bits_mmd - Convenience function for setting bits in a register on MMD SYNOPSIS int phy_set_bits_mmd (struct phy_device *phydev , int devad , u32 regnum , u16 val ); ARGUMENTS phydev the phy_device struct devad the MMD containing register to modify regnum register number to...
phy_set_max_speed(9)
NAME phy_set_max_speed - Set the maximum speed the PHY should support SYNOPSIS void phy_set_max_speed (struct phy_device *phydev , u32 max_speed ); ARGUMENTS phydev The phy_device struct max_speed Maximum speed DESCRIPTION The PHY might be more capable than the MAC. For example a Fast Ethernet is conn...
phy_set_sym_pause(9)
NAME phy_set_sym_pause - Configure symmetric Pause SYNOPSIS void phy_set_sym_pause (struct phy_device *phydev , bool rx , bool tx , bool autoneg ); ARGUMENTS phydev target phy_device struct rx Receiver Pause is supported tx Transmit Pause is supported autoneg Auto ne...
phy_sfp_attach(9)
NAME phy_sfp_attach - attach the SFP bus to the PHY upstream network device SYNOPSIS void phy_sfp_attach (void *upstream , struct sfp_bus *bus ); ARGUMENTS upstream pointer to the phy device bus sfp bus representing cage being attached DESCRIPTION This is used to fill in the sfp_upstream_ops .atta...
phy_sfp_connect_phy(9)
NAME phy_sfp_connect_phy - Connect the SFP module's PHY to the upstream PHY SYNOPSIS int phy_sfp_connect_phy (void *upstream , struct phy_device *phy ); ARGUMENTS upstream pointer to the upstream phy device phy pointer to the SFP module's phy device DESCRIPTION This helper allows keeping track of ...
phy_sfp_detach(9)
NAME phy_sfp_detach - detach the SFP bus from the PHY upstream network device SYNOPSIS void phy_sfp_detach (void *upstream , struct sfp_bus *bus ); ARGUMENTS upstream pointer to the phy device bus sfp bus representing cage being attached DESCRIPTION This is used to fill in the sfp_upstream_ops .de...
phy_sfp_disconnect_phy(9)
NAME phy_sfp_disconnect_phy - Disconnect the SFP module's PHY from the upstream PHY SYNOPSIS void phy_sfp_disconnect_phy (void *upstream , struct phy_device *phy ); ARGUMENTS upstream pointer to the upstream phy device phy pointer to the SFP module's phy device DESCRIPTION This helper allows kee...
phy_sfp_probe(9)
NAME phy_sfp_probe - probe for a SFP cage attached to this PHY device SYNOPSIS int phy_sfp_probe (struct phy_device *phydev ); ARGUMENTS phydev Pointer to phy_device SEE ALSO Kernel file ./drivers/net/phy/phy_device.c phy_uses_state_machine(9), phy_register_fixup(9), genphy_match_phy_device(9), get_phy_c45_...
phy_speed_down(9)
NAME phy_speed_down - set speed to lowest speed supported by both link partners SYNOPSIS int phy_speed_down (struct phy_device *phydev , bool sync ); ARGUMENTS phydev the phy_device struct sync perform action synchronously DESCRIPTION Typically used to save energy when waiting for a WoL packet W...
phy_speed_to_str(9)
NAME phy_speed_to_str - Return a string representing the PHY link speed SYNOPSIS const char * phy_speed_to_str (int speed ); ARGUMENTS speed Speed of the link SEE ALSO Kernel file ./drivers/net/phy/phy-core.c phy_duplex_to_str(9), phy_rate_matching_to_str(9), phy_fix_phy_mode_for_mac_delays(9), phy_inter...
phy_speed_up(9)
NAME phy_speed_up - (re)set advertised speeds to all supported speeds SYNOPSIS int phy_speed_up (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct DESCRIPTION Used to revert the effect of phy_speed_down SEE ALSO Kernel file ./drivers/net/phy/phy.c phy_print_status(9), phy_get_rate_matchin...
phy_start(9)
NAME phy_start - start or restart a PHY device SYNOPSIS void phy_start (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION Indicates the attached device's readiness to handle PHY-related work. Used during startup to start the PHY, and after a call to phy_stop to resume operatio...
phy_start_aneg(9)
NAME phy_start_aneg - start auto-negotiation for this PHY device SYNOPSIS int phy_start_aneg (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct DESCRIPTION Sanitizes the settings (if we're not autonegotiating them), and then calls the driver's config_aneg function. If the PHYCONTROL Laye...
phy_start_cable_test(9)
NAME phy_start_cable_test - Start a cable test SYNOPSIS int phy_start_cable_test (struct phy_device *phydev , struct netlink_ext_ack *extack ); ARGUMENTS phydev the phy_device struct extack extack for reporting useful error messages SEE ALSO Kernel file ./drivers/net/phy/phy.c phy_print_status(9...
phy_start_cable_test_tdr(9)
NAME phy_start_cable_test_tdr - Start a raw TDR cable test SYNOPSIS int phy_start_cable_test_tdr (struct phy_device *phydev , struct netlink_ext_ack *extack , const struct phy_tdr_config *config ); ARGUMENTS phydev the phy_device struct extack extack for reporting useful error messages confi...
phy_start_machine(9)
NAME phy_start_machine - start PHY state machine tracking SYNOPSIS void phy_start_machine (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct DESCRIPTION The PHY infrastructure can run a state machine which tracks whether the PHY is starting up, negotiating, etc. This function starts the delay...
phy_state_machine(9)
NAME phy_state_machine - Handle the state machine SYNOPSIS void phy_state_machine (struct work_struct *work ); ARGUMENTS work work_struct that describes the work to be done SEE ALSO Kernel file ./drivers/net/phy/phy.c phy_print_status(9), phy_get_rate_matching(9), phy_config_interrupt(9), phy_restart_aneg...
phy_stop(9)
NAME phy_stop - Bring down the PHY link, and stop checking the status SYNOPSIS void phy_stop (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct SEE ALSO Kernel file ./drivers/net/phy/phy.c phy_print_status(9), phy_get_rate_matching(9), phy_config_interrupt(9), phy_restart_aneg(9), phy_aneg...
phy_stop_machine(9)
NAME phy_stop_machine - stop the PHY state machine tracking SYNOPSIS void phy_stop_machine (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION Stops the state machine delayed workqueue, sets the state to UP (unless it wasn't up yet). This function must be called BEFORE phy_detach...
phy_support_asym_pause(9)
NAME phy_support_asym_pause - Enable support of asym pause SYNOPSIS void phy_support_asym_pause (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION Called by the MAC to indicate is supports Asym Pause. SEE ALSO Kernel file ./drivers/net/phy/phy_device.c phy_uses_state_machine...
phy_support_eee(9)
NAME phy_support_eee - Set initial EEE policy configuration SYNOPSIS void phy_support_eee (struct phy_device *phydev ); ARGUMENTS phydev Target phy_device struct DESCRIPTION This function configures the initial policy for Energy Efficient Ethernet (EEE) on the specified PHY device, influencing that EEE capabili...
phy_support_sym_pause(9)
NAME phy_support_sym_pause - Enable support of symmetrical pause SYNOPSIS void phy_support_sym_pause (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION Called by the MAC to indicate is supports symmetrical Pause, but not asym pause. SEE ALSO Kernel file ./drivers/net/phy/phy_...
phy_supported_speeds(9)
NAME phy_supported_speeds - return all speeds currently supported by a phy device SYNOPSIS unsigned int phy_supported_speeds (struct phy_device *phy , unsigned int *speeds , unsigned int size ); ARGUMENTS phy The phy device to return supported speeds of. speeds buffer to store supported speeds in...
phy_trigger_machine(9)
NAME phy_trigger_machine - Trigger the state machine to run now SYNOPSIS void phy_trigger_machine (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct SEE ALSO Kernel file ./drivers/net/phy/phy.c phy_print_status(9), phy_get_rate_matching(9), phy_config_interrupt(9), phy_restart_aneg(9), phy...
phy_update_stats(9)
NAME phy_update_stats - Update PHY device statistics if supported. SYNOPSIS int phy_update_stats (struct phy_device *phydev ); ARGUMENTS phydev Pointer to the PHY device structure. DESCRIPTION If the PHY driver provides an update_stats callback, this function invokes it to update the PHY statistics. If not, it ...
phy_uses_state_machine(9)
NAME phy_uses_state_machine - test whether consumer driver uses PAL state machine SYNOPSIS bool phy_uses_state_machine (struct phy_device *phydev ); ARGUMENTS phydev the target PHY device structure DESCRIPTION Ultimately, this aims to indirectly determine whether the PHY is attached to a consumer which uses ...
phy_validate(9)
NAME phy_validate - Checks the phy parameters SYNOPSIS int phy_validate (struct phy *phy , enum phy_mode mode , int submode , union phy_configure_opts *opts ); ARGUMENTS phy the phy returned by phy_get mode phy_mode the configuration is applicable to. submode PHY submode the configu...
phy_validate_pause(9)
NAME phy_validate_pause - Test if the PHY/MAC support the pause configuration SYNOPSIS bool phy_validate_pause (struct phy_device *phydev , struct ethtool_pauseparam *pp ); ARGUMENTS phydev phy_device struct pp requested pause configuration DESCRIPTION Test if the PHY/MAC combination supports t...
phy_write(9)
NAME phy_write - Convenience function for writing a given PHY register SYNOPSIS int phy_write (struct phy_device *phydev , u32 regnum , u16 val ); ARGUMENTS phydev the phy_device struct regnum register number to write val value to write to regnum NOTE MUST NOT be called from interru...
phy_write_mmd(9)
NAME phy_write_mmd - Convenience function for writing a register on an MMD on a given PHY. SYNOPSIS int phy_write_mmd (struct phy_device *phydev , int devad , u32 regnum , u16 val ); ARGUMENTS phydev The phy_device struct devad The MMD to read from regnum The register on the MMD to rea...
phy_write_paged(9)
NAME phy_write_paged - Convenience function for writing a paged register SYNOPSIS int phy_write_paged (struct phy_device *phydev , int page , u32 regnum , u16 val ); ARGUMENTS phydev a pointer to a struct phy_device page the page for the phy regnum register number val ...
phydev_id_compare(9)
NAME phydev_id_compare - compare @id with the PHY's Clause 22 ID SYNOPSIS bool phydev_id_compare (struct phy_device *phydev , u32 id ); ARGUMENTS phydev the PHY device id the PHY ID to be matched DESCRIPTION Compare the phydev clause 22 ID with the provided id and return true or false depending...
phylink_cap_from_speed_duplex(9)
NAME phylink_cap_from_speed_duplex - Get mac capability from speed/duplex SYNOPSIS unsigned long phylink_cap_from_speed_duplex (int speed , unsigned int duplex ); ARGUMENTS speed the speed to search for duplex the duplex to search for DESCRIPTION Find the mac capability for a given speed and duple...
phylink_caps_to_link_caps(9)
NAME phylink_caps_to_link_caps - Convert a set of MAC capabilities LINK caps SYNOPSIS unsigned long phylink_caps_to_link_caps (unsigned long caps ); ARGUMENTS caps A set of MAC capabilities RETURN The corresponding set of LINK_CAPA as defined in phy-caps.h SEE ALSO Kernel file ./drivers/net/phy/phylink.c...
phylink_caps_to_linkmodes(9)
NAME phylink_caps_to_linkmodes - Convert capabilities to ethtool link modes SYNOPSIS void phylink_caps_to_linkmodes (unsigned long *linkmodes , unsigned long caps ); ARGUMENTS linkmodes ethtool linkmode mask (must be already initialised) caps bitmask of MAC capabilities DESCRIPTION Set all possible ...
phylink_connect_phy(9)
NAME phylink_connect_phy - connect a PHY to the phylink instance SYNOPSIS int phylink_connect_phy (struct phylink *pl , struct phy_device *phy ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create phy a pointer to a struct phy_device. DESCRIPTION Connect phy to the ph...
phylink_create(9)
NAME phylink_create - create a phylink instance SYNOPSIS struct phylink * phylink_create (struct phylink_config *config , const struct fwnode_handle *fwnode , phy_interface_t iface , const struct phylink_mac_ops *mac_ops ); ARGUMENTS config a pointer to the target struct phylink_config fwnode a poin...
phylink_decode_usgmii_word(9)
NAME phylink_decode_usgmii_word - decode the USGMII word from a MAC PCS SYNOPSIS void phylink_decode_usgmii_word (struct phylink_link_state *state , uint16_t lpa ); ARGUMENTS state a pointer to a struct phylink_link_state. lpa a 16 bit value which stores the USGMII auto-negotiation word DESCRIP...
phylink_decode_usxgmii_word(9)
NAME phylink_decode_usxgmii_word - decode the USXGMII word from a MAC PCS SYNOPSIS void phylink_decode_usxgmii_word (struct phylink_link_state *state , uint16_t lpa ); ARGUMENTS state a pointer to a struct phylink_link_state. lpa a 16 bit value which stores the USXGMII auto-negotiation word DES...
phylink_destroy(9)
NAME phylink_destroy - cleanup and destroy the phylink instance SYNOPSIS void phylink_destroy (struct phylink *pl ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create DESCRIPTION Destroy a phylink instance. Any PHY that has been attached must have been cleaned up via phylink_disconnect...
phylink_disconnect_phy(9)
NAME phylink_disconnect_phy - disconnect any PHY attached to the phylink instance. SYNOPSIS void phylink_disconnect_phy (struct phylink *pl ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create DESCRIPTION Disconnect any current PHY from the phylink instance described by pl. SEE ALSO K...
phylink_ethtool_get_eee(9)
NAME phylink_ethtool_get_eee - read the energy efficient ethernet parameters SYNOPSIS int phylink_ethtool_get_eee (struct phylink *pl , struct ethtool_keee *eee ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create eee a pointer to a struct ethtool_keee for the read param...
phylink_ethtool_get_pauseparam(9)
NAME phylink_ethtool_get_pauseparam - get the current pause parameters SYNOPSIS void phylink_ethtool_get_pauseparam (struct phylink *pl , struct ethtool_pauseparam *pause ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create pause a pointer to a struct ethtool_pauseparam S...
phylink_ethtool_get_wol(9)
NAME phylink_ethtool_get_wol - get the wake on lan parameters for the PHY SYNOPSIS void phylink_ethtool_get_wol (struct phylink *pl , struct ethtool_wolinfo *wol ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create wol a pointer to struct ethtool_wolinfo to hold the read...
phylink_ethtool_ksettings_get(9)
NAME phylink_ethtool_ksettings_get - get the current link settings SYNOPSIS int phylink_ethtool_ksettings_get (struct phylink *pl , struct ethtool_link_ksettings *kset ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create kset a pointer to a struct ethtool_link_ksettings t...
phylink_ethtool_ksettings_set(9)
NAME phylink_ethtool_ksettings_set - set the link settings SYNOPSIS int phylink_ethtool_ksettings_set (struct phylink *pl , const struct ethtool_link_ksettings *kset ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create kset a pointer to a struct ethtool_link_ksettings for...
phylink_ethtool_nway_reset(9)
NAME phylink_ethtool_nway_reset - restart negotiation SYNOPSIS int phylink_ethtool_nway_reset (struct phylink *pl ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create DESCRIPTION Restart negotiation for the phylink instance specified by pl. This will cause any attached phy to restart n...
phylink_ethtool_set_eee(9)
NAME phylink_ethtool_set_eee - set the energy efficient ethernet parameters SYNOPSIS int phylink_ethtool_set_eee (struct phylink *pl , struct ethtool_keee *eee ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create eee a pointer to a struct ethtool_keee for the desired par...
phylink_ethtool_set_pauseparam(9)
NAME phylink_ethtool_set_pauseparam - set the current pause parameters SYNOPSIS int phylink_ethtool_set_pauseparam (struct phylink *pl , struct ethtool_pauseparam *pause ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create pause a pointer to a struct ethtool_pauseparam SE...
phylink_ethtool_set_wol(9)
NAME phylink_ethtool_set_wol - set wake on lan parameters SYNOPSIS int phylink_ethtool_set_wol (struct phylink *pl , struct ethtool_wolinfo *wol ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create wol a pointer to struct ethtool_wolinfo for the desired parameters DESCR...
phylink_expects_phy(9)
NAME phylink_expects_phy - Determine if phylink expects a phy to be attached SYNOPSIS bool phylink_expects_phy (struct phylink *pl ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create DESCRIPTION When using fixed-link mode, or in-band mode with 1000base-X or 2500base-X, no PHY is neede...
phylink_fwnode_phy_connect(9)
NAME phylink_fwnode_phy_connect - connect the PHY specified in the fwnode. SYNOPSIS int phylink_fwnode_phy_connect (struct phylink *pl , const struct fwnode_handle *fwnode , u32 flags ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create fwnode a pointer to a struct fwnode_h...
phylink_get_capabilities(9)
NAME phylink_get_capabilities - get capabilities for a given MAC SYNOPSIS unsigned long phylink_get_capabilities (phy_interface_t interface , unsigned long mac_capabilities , int rate_matching ); ARGUMENTS interface phy interface mode defined by typedef phy_interface_t mac_capabilities bi...
phylink_get_eee_err(9)
NAME phylink_get_eee_err - read the energy efficient ethernet error counter SYNOPSIS int phylink_get_eee_err (struct phylink *pl ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create. DESCRIPTION Read the Energy Efficient Ethernet error counter from the PHY associated with the phylink i...
phylink_get_link_timer_ns(9)
NAME phylink_get_link_timer_ns - return the PCS link timer value SYNOPSIS int phylink_get_link_timer_ns (phy_interface_t interface ); ARGUMENTS interface link typedef phy_interface_t mode DESCRIPTION Return the PCS link timer setting in nanoseconds for the PHY interface mode, or -EINVAL if not appropriate. SEE AL...
phylink_interface_max_speed(9)
NAME phylink_interface_max_speed - get the maximum speed of a phy interface SYNOPSIS int phylink_interface_max_speed (phy_interface_t interface ); ARGUMENTS interface phy interface mode defined by typedef phy_interface_t DESCRIPTION Determine the maximum speed of a phy interface. This is intended to help determine...
phylink_limit_mac_speed(9)
NAME phylink_limit_mac_speed - limit the phylink_config to a maximum speed SYNOPSIS void phylink_limit_mac_speed (struct phylink_config *config , u32 max_speed ); ARGUMENTS config pointer to a struct phylink_config max_speed maximum speed DESCRIPTION Mask off MAC capabilities for speeds higher than th...
phylink_mac_change(9)
NAME phylink_mac_change - notify phylink of a change in MAC state SYNOPSIS void phylink_mac_change (struct phylink *pl , bool up ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create up indicates whether the link is currently up. DESCRIPTION The MAC driver should call t...
phylink_mac_implements_lpi(9)
NAME phylink_mac_implements_lpi - determine if MAC implements LPI ops SYNOPSIS bool phylink_mac_implements_lpi (const struct phylink_mac_ops *ops ); ARGUMENTS ops phylink_mac_ops structure DESCRIPTION Returns true if the phylink MAC operations structure indicates that the LPI operations have been implemented...
phylink_mii_c22_pcs_an_restart(9)
NAME phylink_mii_c22_pcs_an_restart - restart 802.3z autonegotiation SYNOPSIS void phylink_mii_c22_pcs_an_restart (struct mdio_device *pcs ); ARGUMENTS pcs a pointer to a struct mdio_device. DESCRIPTION Helper for MAC PCS supporting the 802.3 clause 22 register set for clause 37 negotiation. Restart the cl...
phylink_mii_c22_pcs_config(9)
NAME phylink_mii_c22_pcs_config - configure clause 22 PCS SYNOPSIS int phylink_mii_c22_pcs_config (struct mdio_device *pcs , phy_interface_t interface , const unsigned long *advertising , unsigned int neg_mode ); ARGUMENTS pcs a pointer to a struct mdio_device. interface the PHY interface mode being...
phylink_mii_c22_pcs_decode_state(9)
NAME phylink_mii_c22_pcs_decode_state - Decode MAC PCS state from MII registers SYNOPSIS void phylink_mii_c22_pcs_decode_state (struct phylink_link_state *state , unsigned int neg_mode , u16 bmsr , u16 lpa ); ARGUMENTS state a pointer to a struct phylink_link_state. neg_mode link negotiation mode (PH...
phylink_mii_c22_pcs_encode_advertisement(9)
NAME phylink_mii_c22_pcs_encode_advertisement - configure the clause 37 PCS advertisement SYNOPSIS int phylink_mii_c22_pcs_encode_advertisement (phy_interface_t interface , const unsigned long *advertising ); ARGUMENTS interface the PHY interface mode being configured advertising the ethtool advertisement m...
phylink_mii_c22_pcs_get_state(9)
NAME phylink_mii_c22_pcs_get_state - read the MAC PCS state SYNOPSIS void phylink_mii_c22_pcs_get_state (struct mdio_device *pcs , unsigned int neg_mode , struct phylink_link_state *state ); ARGUMENTS pcs a pointer to a struct mdio_device. neg_mode link negotiation mode (PHYLINK_PCS_NEG_xxx) ...
phylink_mii_ioctl(9)
NAME phylink_mii_ioctl - generic mii ioctl interface SYNOPSIS int phylink_mii_ioctl (struct phylink *pl , struct ifreq *ifr , int cmd ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create ifr a pointer to a struct ifreq for socket ioctls cmd ioctl cmd to e...
phylink_of_phy_connect(9)
NAME phylink_of_phy_connect - connect the PHY specified in the DT mode. SYNOPSIS int phylink_of_phy_connect (struct phylink *pl , struct device_node *dn , u32 flags ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create dn a pointer to a struct device_node. flags ...
phylink_pcs_change(9)
NAME phylink_pcs_change - notify phylink of a change to PCS link state SYNOPSIS void phylink_pcs_change (struct phylink_pcs *pcs , bool up ); ARGUMENTS pcs pointer to struct phylink_pcs up indicates whether the link is currently up. DESCRIPTION The PCS driver should call this when the stat...
phylink_pcs_neg_mode(9)
NAME phylink_pcs_neg_mode - helper to determine PCS inband mode SYNOPSIS void phylink_pcs_neg_mode (struct phylink *pl , struct phylink_pcs *pcs , phy_interface_t interface , const unsigned long *advertising ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create pcs a poin...
phylink_prepare_resume(9)
NAME phylink_prepare_resume - prepare to resume a network device SYNOPSIS void phylink_prepare_resume (struct phylink *pl ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create DESCRIPTION Optional, but if called must be called prior to phylink_resume. Prepare to resume a network device...
phylink_replay_link_begin(9)
NAME phylink_replay_link_begin - begin replay of link callbacks for driver which loses state SYNOPSIS void phylink_replay_link_begin (struct phylink *pl ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create DESCRIPTION Helper for MAC drivers which may perform a destructive rese...
phylink_replay_link_end(9)
NAME phylink_replay_link_end - end replay of link callbacks for driver which lost state SYNOPSIS void phylink_replay_link_end (struct phylink *pl ); ARGUMENTS pl a pointer to a struct phylink returned from phylink_create DESCRIPTION Helper for MAC drivers which may perform a destructive reset at runtime. ...