id
stringlengths
4
63
text
stringlengths
153
8.81M
phy_create_lookup(9)
NAME phy_create_lookup - allocate and register PHY/device association SYNOPSIS int phy_create_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 DESC...
phy_destroy(9)
NAME phy_destroy - destroy the phy SYNOPSIS void phy_destroy (struct phy *phy ); ARGUMENTS phy the phy to be destroyed DESCRIPTION Called to destroy the phy. SEE ALSO Kernel file ./drivers/phy/phy-core.c phy_create_lookup(9), phy_remove_lookup(9), phy_init(9), phy_exit(9), phy_power_on(9), phy_power_of...
phy_detach(9)
NAME phy_detach - detach a PHY device from its network device SYNOPSIS void phy_detach (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION This detaches the phy device from its network device and the phy driver, and drops the reference count taken in phy_attach_direct. SEE ALSO ...
phy_device_register(9)
NAME phy_device_register - Register the phy device on the MDIO bus SYNOPSIS int phy_device_register (struct phy_device *phydev ); ARGUMENTS phydev phy_device structure to be added to the MDIO bus SEE ALSO Kernel file ./drivers/net/phy/phy_device.c phy_uses_state_machine(9), phy_register_fixup(9), genphy_match_...
phy_device_remove(9)
NAME phy_device_remove - Remove a previously registered phy device from the MDIO bus SYNOPSIS void phy_device_remove (struct phy_device *phydev ); ARGUMENTS phydev phy_device structure to remove DESCRIPTION This doesn't free the phy_device itself, it merely reverses the effects of phy_device_register. Use phy_d...
phy_disable_eee(9)
NAME phy_disable_eee - Disable EEE for the PHY SYNOPSIS void phy_disable_eee (struct phy_device *phydev ); ARGUMENTS phydev Target phy_device struct DESCRIPTION This function is used by MAC drivers for MAC's which don't support EEE. It disables EEE on the PHY layer. SEE ALSO Kernel file ./drivers/net/phy/ph...
phy_disable_eee_mode(9)
NAME phy_disable_eee_mode - Don't advertise an EEE mode. SYNOPSIS void phy_disable_eee_mode (struct phy_device *phydev , u32 link_mode ); ARGUMENTS phydev The phy_device struct link_mode The EEE mode to be disabled SEE ALSO Kernel file ./include/linux/phy.h enum phy_interface_t(9), phy_modes(9), ...
phy_disable_interrupts(9)
NAME phy_disable_interrupts - Disable the PHY interrupts from the PHY side SYNOPSIS int phy_disable_interrupts (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_rest...
phy_disconnect(9)
NAME phy_disconnect - disable interrupts, stop state machine, and detach a PHY device SYNOPSIS void phy_disconnect (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct SEE ALSO Kernel file ./drivers/net/phy/phy_device.c phy_uses_state_machine(9), phy_register_fixup(9), genphy_match_phy_de...
phy_do_ioctl(9)
NAME phy_do_ioctl - generic ndo_eth_ioctl implementation SYNOPSIS int phy_do_ioctl (struct net_device *dev , struct ifreq *ifr , int cmd ); ARGUMENTS dev the net_device struct ifr struct ifreq for socket ioctl's cmd ioctl cmd to execute SEE ALSO Kernel file ./drivers/net/phy...
phy_do_ioctl_running(9)
NAME phy_do_ioctl_running - generic ndo_eth_ioctl implementation but test first SYNOPSIS int phy_do_ioctl_running (struct net_device *dev , struct ifreq *ifr , int cmd ); ARGUMENTS dev the net_device struct ifr struct ifreq for socket ioctl's cmd ioctl cmd to execute DESCRIPTI...
phy_driver_is_genphy(9)
NAME phy_driver_is_genphy - Convenience function to check whether PHY is driven by one of the generic PHY drivers SYNOPSIS bool phy_driver_is_genphy (struct phy_device *phydev ); ARGUMENTS phydev The phy_device struct RETURN true if PHY is driven by one of the genphy drivers SEE ALSO Kernel file ./include/li...
phy_driver_register(9)
NAME phy_driver_register - register a phy_driver with the PHY layer SYNOPSIS int phy_driver_register (struct phy_driver *new_driver , struct module *owner ); ARGUMENTS new_driver new phy_driver to register owner module owning this PHY SEE ALSO Kernel file ./drivers/net/phy/phy_device.c phy_uses_sta...
phy_duplex_to_str(9)
NAME phy_duplex_to_str - Return string describing the duplex SYNOPSIS const char * phy_duplex_to_str (unsigned int duplex ); ARGUMENTS duplex Duplex setting to describe SEE ALSO Kernel file ./drivers/net/phy/phy-core.c phy_speed_to_str(9), phy_rate_matching_to_str(9), phy_fix_phy_mode_for_mac_delays(9), ...
phy_eee_rx_clock_stop(9)
NAME phy_eee_rx_clock_stop - configure PHY receive clock in LPI SYNOPSIS int phy_eee_rx_clock_stop (struct phy_device *phydev , bool clk_stop_enable ); ARGUMENTS phydev target phy_device struct clk_stop_enable flag to indicate whether the clock can be stopped DESCRIPTION Configure whe...
phy_eee_tx_clock_stop_capable(9)
NAME phy_eee_tx_clock_stop_capable - indicate whether the MAC can stop tx clock SYNOPSIS int phy_eee_tx_clock_stop_capable (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION Indicate whether the MAC can disable the transmit xMII clock while in LPI state. Returns 1 if the MAC may...
phy_enable_interrupts(9)
NAME phy_enable_interrupts - Enable the interrupts from the PHY side SYNOPSIS int phy_enable_interrupts (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_ane...
phy_error(9)
NAME phy_error - enter ERROR state for this PHY device SYNOPSIS void phy_error (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION Moves the PHY to the ERROR state in response to a read or write error, and tells the controller the link is down. Must be called with phydev->lock h...
phy_ethtool_get_eee(9)
NAME phy_ethtool_get_eee - get EEE supported and status SYNOPSIS int phy_ethtool_get_eee (struct phy_device *phydev , struct ethtool_keee *data ); ARGUMENTS phydev target phy_device struct data ethtool_keee data DESCRIPTION get the current EEE settings, filling in all members of data. SEE ALSO K...
phy_ethtool_get_plca_cfg(9)
NAME phy_ethtool_get_plca_cfg - Get PLCA RS configuration SYNOPSIS int phy_ethtool_get_plca_cfg (struct phy_device *phydev , struct phy_plca_cfg *plca_cfg ); ARGUMENTS phydev the phy_device struct plca_cfg where to store the retrieved configuration DESCRIPTION Retrieve the PLCA configuration from the...
phy_ethtool_get_plca_status(9)
NAME phy_ethtool_get_plca_status - Get PLCA RS status information SYNOPSIS int phy_ethtool_get_plca_status (struct phy_device *phydev , struct phy_plca_status *plca_st ); ARGUMENTS phydev the phy_device struct plca_st where to store the retrieved status information DESCRIPTION Retrieve the PLCA stat...
phy_ethtool_get_sset_count(9)
NAME phy_ethtool_get_sset_count - Get the number of statistic counters SYNOPSIS int phy_ethtool_get_sset_count (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...
phy_ethtool_get_stats(9)
NAME phy_ethtool_get_stats - Get the statistic counters SYNOPSIS int phy_ethtool_get_stats (struct phy_device *phydev , struct ethtool_stats *stats , u64 *data ); ARGUMENTS phydev the phy_device struct stats What counters to get data Where to store the counters SEE ALSO Kernel file...
phy_ethtool_get_strings(9)
NAME phy_ethtool_get_strings - Get the statistic counter names SYNOPSIS int phy_ethtool_get_strings (struct phy_device *phydev , u8 *data ); ARGUMENTS phydev the phy_device struct data Where to put the strings SEE ALSO Kernel file ./drivers/net/phy/phy.c phy_print_status(9), phy_get_rate_matc...
phy_ethtool_get_wol(9)
NAME phy_ethtool_get_wol - Get the current Wake On LAN configuration SYNOPSIS void phy_ethtool_get_wol (struct phy_device *phydev , struct ethtool_wolinfo *wol ); ARGUMENTS phydev target phy_device struct wol Store the current configuration here SEE ALSO Kernel file ./drivers/net/phy/phy.c ph...
phy_ethtool_nway_reset(9)
NAME phy_ethtool_nway_reset - Restart auto negotiation SYNOPSIS int phy_ethtool_nway_reset (struct net_device *ndev ); ARGUMENTS ndev Network device to restart autoneg for 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_ethtool_set_eee(9)
NAME phy_ethtool_set_eee - set EEE supported and status SYNOPSIS int phy_ethtool_set_eee (struct phy_device *phydev , struct ethtool_keee *data ); ARGUMENTS phydev target phy_device struct data ethtool_keee data DESCRIPTION it is to program the Advertisement EEE register. SEE ALSO Kernel file ....
phy_ethtool_set_eee_noneg(9)
NAME phy_ethtool_set_eee_noneg - Adjusts MAC LPI configuration without PHY renegotiation SYNOPSIS void phy_ethtool_set_eee_noneg (struct phy_device *phydev , const struct eee_config *old_cfg ); ARGUMENTS phydev pointer to the target PHY device structure old_cfg pointer to the eee_config structure con...
phy_ethtool_set_plca_cfg(9)
NAME phy_ethtool_set_plca_cfg - Set PLCA RS configuration SYNOPSIS int phy_ethtool_set_plca_cfg (struct phy_device *phydev , const struct phy_plca_cfg *plca_cfg , struct netlink_ext_ack *extack ); ARGUMENTS phydev the phy_device struct plca_cfg new PLCA configuration to apply extack extac...
phy_ethtool_set_wol(9)
NAME phy_ethtool_set_wol - Configure Wake On LAN SYNOPSIS int phy_ethtool_set_wol (struct phy_device *phydev , struct ethtool_wolinfo *wol ); ARGUMENTS phydev target phy_device struct wol Configuration requested SEE ALSO Kernel file ./drivers/net/phy/phy.c phy_print_status(9), phy_get_rate_m...
phy_exit(9)
NAME phy_exit - Phy internal un-initialization SYNOPSIS int phy_exit (struct phy *phy ); ARGUMENTS phy the phy returned by phy_get DESCRIPTION Must be called after phy_power_off. RETURN 0 if successful, a negative error code otherwise SEE ALSO Kernel file ./drivers/phy/phy-core.c phy_create_lookup(9), ...
phy_find_next(9)
NAME phy_find_next - finds the next PHY device on the bus SYNOPSIS struct phy_device * phy_find_next (struct mii_bus *bus , struct phy_device *pos ); ARGUMENTS bus the target MII bus pos cursor RETURN next phy_device on the bus, or NULL SEE ALSO Kernel file ./drivers/net/phy/phy_device.c ...
phy_fix_phy_mode_for_mac_delays(9)
NAME phy_fix_phy_mode_for_mac_delays - Convenience function for fixing PHY mode based on whether mac adds internal delay SYNOPSIS phy_interface_t phy_fix_phy_mode_for_mac_delays (phy_interface_t interface , bool mac_txid , bool mac_rxid ); ARGUMENTS interface The current interface mode of the port mac_txid ...
phy_free_interrupt(9)
NAME phy_free_interrupt - disable and free interrupt for a PHY device SYNOPSIS void phy_free_interrupt (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION Disable and free the interrupt for the given PHY. This should only be called with a valid IRQ number. SEE ALSO Kernel file...
phy_get(9)
NAME phy_get - lookup and obtain a reference to a phy. SYNOPSIS struct phy * phy_get (struct device *dev , const char *string ); ARGUMENTS dev device that requests this phy string the phy name as given in the dt data or the name of the controller port for non-dt case DESCRIPTION Returns the phy ...
phy_get_c45_ids(9)
NAME phy_get_c45_ids - Read 802.3-c45 IDs for phy device. SYNOPSIS int phy_get_c45_ids (struct phy_device *phydev ); ARGUMENTS phydev phy_device structure to read 802.3-c45 IDs DESCRIPTION Returns zero on success, -EIO on bus access error, or -ENODEV if the "devices in package" is invalid. SEE ALSO Kernel fil...
phy_get_eee_err(9)
NAME phy_get_eee_err - report the EEE wake error count SYNOPSIS int phy_get_eee_err (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION it is to report the number of time where the PHY failed to complete its normal wake sequence. SEE ALSO Kernel file ./drivers/net/phy/phy.c p...
phy_get_internal_delay(9)
NAME phy_get_internal_delay - returns the index of the internal delay SYNOPSIS s32 phy_get_internal_delay (struct phy_device *phydev , const int *delay_values , int size , bool is_rx ); ARGUMENTS phydev phy_device struct delay_values array of delays the PHY supports size ...
phy_get_mac_termination(9)
NAME phy_get_mac_termination - stores MAC termination in @val SYNOPSIS int phy_get_mac_termination (struct phy_device *phydev , struct device *dev , u32 *val ); ARGUMENTS phydev phy_device struct dev pointer to the devices device struct val MAC termination RETURN 0 on success, < ...
phy_get_manual_rx_polarity(9)
NAME phy_get_manual_rx_polarity - Get manual RX polarity for PHY differential lane SYNOPSIS int phy_get_manual_rx_polarity (struct fwnode_handle *fwnode , const char *mode_name , unsigned int *val ); ARGUMENTS fwnode Pointer to the PHY's firmware node. mode_name The name of the PHY mode to look up. ...
phy_get_manual_tx_polarity(9)
NAME phy_get_manual_tx_polarity - Get manual TX polarity for PHY differential lane SYNOPSIS int phy_get_manual_tx_polarity (struct fwnode_handle *fwnode , const char *mode_name , unsigned int *val ); ARGUMENTS fwnode Pointer to the PHY's firmware node. mode_name The name of the PHY mode to look up. ...
phy_get_next_update_time(9)
NAME phy_get_next_update_time - Determine the next PHY update time SYNOPSIS unsigned int phy_get_next_update_time (struct phy_device *phydev ); ARGUMENTS phydev Pointer to the phy_device structure DESCRIPTION This function queries the PHY driver to get the time for the next polling event. If the driver does not...
phy_get_non_dummy_port(9)
NAME phy_get_non_dummy_port - This method returns the port currently containing this phy. If the phy is currently contained by the dummy port, then the phy is considered to not be part of a port. SYNOPSIS struct isci_port * phy_get_non_dummy_port (struct isci_phy *iphy ); ARGUMENTS iphy This parameter specifie...
phy_get_pause(9)
NAME phy_get_pause - resolve negotiated pause modes SYNOPSIS void phy_get_pause (struct phy_device *phydev , bool *tx_pause , bool *rx_pause ); ARGUMENTS phydev phy_device struct tx_pause pointer to bool to indicate whether transmit pause should be enabled. rx_pause pointer to bool to indic...
phy_get_rate_matching(9)
NAME phy_get_rate_matching - determine if rate matching is supported SYNOPSIS int phy_get_rate_matching (struct phy_device *phydev , phy_interface_t iface ); ARGUMENTS phydev The phy device to return rate matching for iface The interface mode to use DESCRIPTION This determines the type of rate mat...
phy_get_rx_polarity(9)
NAME phy_get_rx_polarity - Get RX polarity for PHY differential lane SYNOPSIS int phy_get_rx_polarity (struct fwnode_handle *fwnode , const char *mode_name , unsigned int supported , unsigned int default_val , unsigned int *val ); ARGUMENTS fwnode Pointer to the PHY's firmware node. mode_name The name ...
phy_get_sfp_port(9)
NAME phy_get_sfp_port - Returns the first valid SFP port of a PHY SYNOPSIS struct phy_port * phy_get_sfp_port (struct phy_device *phydev ); ARGUMENTS phydev pointer to the PHY device to get the SFP port from RETURN The first active SFP (serdes) port of a PHY device, NULL if none exist. SEE ALSO Kernel file ....
phy_get_tx_amplitude_gain(9)
NAME phy_get_tx_amplitude_gain - stores tx amplitude gain in @val SYNOPSIS int phy_get_tx_amplitude_gain (struct phy_device *phydev , struct device *dev , enum ethtool_link_mode_bit_indices linkmode , u32 *val ); ARGUMENTS phydev phy_device struct dev pointer to the devices device struct ...
phy_get_tx_polarity(9)
NAME phy_get_tx_polarity - Get TX polarity for PHY differential lane SYNOPSIS int phy_get_tx_polarity (struct fwnode_handle *fwnode , const char *mode_name , unsigned int supported , unsigned int default_val , unsigned int *val ); ARGUMENTS fwnode Pointer to the PHY's firmware node. mode_name The name ...
phy_has_hwtstamp(9)
NAME phy_has_hwtstamp - Tests whether a PHY time stamp configuration. SYNOPSIS bool phy_has_hwtstamp (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct SEE ALSO Kernel file ./include/linux/phy.h enum phy_interface_t(9), phy_modes(9), rgmii_clock(9), struct mdio_bus_stats(9), struct m...
phy_has_rxtstamp(9)
NAME phy_has_rxtstamp - Tests whether a PHY supports receive time stamping. SYNOPSIS bool phy_has_rxtstamp (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct SEE ALSO Kernel file ./include/linux/phy.h enum phy_interface_t(9), phy_modes(9), rgmii_clock(9), struct mdio_bus_stats(9), str...
phy_has_tsinfo(9)
NAME phy_has_tsinfo - Tests whether a PHY reports time stamping and/or PTP hardware clock capabilities. SYNOPSIS bool phy_has_tsinfo (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct SEE ALSO Kernel file ./include/linux/phy.h enum phy_interface_t(9), phy_modes(9), rgmii_clock(9), struc...
phy_has_txtstamp(9)
NAME phy_has_txtstamp - Tests whether a PHY supports transmit time stamping. SYNOPSIS bool phy_has_txtstamp (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct SEE ALSO Kernel file ./include/linux/phy.h enum phy_interface_t(9), phy_modes(9), rgmii_clock(9), struct mdio_bus_stats(9), st...
phy_id_compare(9)
NAME phy_id_compare - compare @id1 with @id2 taking account of @mask SYNOPSIS bool phy_id_compare (u32 id1 , u32 id2 , u32 mask ); ARGUMENTS id1 first PHY ID id2 second PHY ID mask the PHY ID mask, set bits are significant in matching DESCRIPTION Return true if the bits from id...
phy_id_compare_model(9)
NAME phy_id_compare_model - compare @id with @model mask SYNOPSIS bool phy_id_compare_model (u32 id , u32 model_mask ); ARGUMENTS id PHY ID model_mask PHY Model mask RETURN true if the bits from id match model using the generic PHY Model mask. SEE ALSO Kernel file ./include/linux/phy.h enum ph...
phy_id_compare_vendor(9)
NAME phy_id_compare_vendor - compare @id with @vendor mask SYNOPSIS bool phy_id_compare_vendor (u32 id , u32 vendor_mask ); ARGUMENTS id PHY ID vendor_mask PHY Vendor mask RETURN true if the bits from id match vendor using the generic PHY Vendor mask. SEE ALSO Kernel file ./include/linux/phy.h e...
phy_inband_caps(9)
NAME phy_inband_caps - query which in-band signalling modes are supported SYNOPSIS unsigned int phy_inband_caps (struct phy_device *phydev , phy_interface_t interface ); ARGUMENTS phydev a pointer to a struct phy_device interface the interface mode for the PHY DESCRIPTION Returns zero if it is unknow...
phy_init(9)
NAME phy_init - phy internal initialization before phy operation SYNOPSIS int phy_init (struct phy *phy ); ARGUMENTS phy the phy returned by phy_get DESCRIPTION Used to allow phy's driver to perform phy internal initialization, such as PLL block powering, clock initialization or anything that's is requ...
phy_init_eee(9)
NAME phy_init_eee - init and check the EEE feature SYNOPSIS int phy_init_eee (struct phy_device *phydev , bool clk_stop_enable ); ARGUMENTS phydev target phy_device struct clk_stop_enable PHY may stop the clock during LPI DESCRIPTION it checks if the Energy-Efficient Ethernet (EEE) is...
phy_interface_is_rgmii(9)
NAME phy_interface_is_rgmii - Convenience function for testing if a PHY interface is RGMII (all variants) SYNOPSIS bool phy_interface_is_rgmii (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct SEE ALSO Kernel file ./include/linux/phy.h enum phy_interface_t(9), phy_modes(9), rgmii_clock(...
phy_interface_mode_is_8023z(9)
NAME phy_interface_mode_is_8023z - does the PHY interface mode use 802.3z negotiation SYNOPSIS bool phy_interface_mode_is_8023z (phy_interface_t mode ); ARGUMENTS mode one of enum phy_interface_t DESCRIPTION Returns true if the PHY interface mode uses the 16-bit negotiation word as defined in 802.3z. (See 802...
phy_interface_mode_is_rgmii(9)
NAME phy_interface_mode_is_rgmii - Convenience function for testing if a PHY interface mode is RGMII (all variants) SYNOPSIS bool phy_interface_mode_is_rgmii (phy_interface_t mode ); ARGUMENTS mode the phy_interface_t enum SEE ALSO Kernel file ./include/linux/phy.h enum phy_interface_t(9), phy_modes(9), ...
phy_interface_num_ports(9)
NAME phy_interface_num_ports - Return the number of links that can be carried by a given MAC-PHY physical link. Returns 0 if this is unknown, the number of links else. SYNOPSIS int phy_interface_num_ports (phy_interface_t interface ); ARGUMENTS interface The interface mode we want to get the number of ports SEE AL...
phy_interrupt(9)
NAME phy_interrupt - PHY interrupt handler SYNOPSIS irqreturn_t phy_interrupt (int irq , void *phy_dat ); ARGUMENTS irq interrupt line phy_dat phy_device pointer DESCRIPTION Handle PHY interrupt SEE ALSO Kernel file ./drivers/net/phy/phy.c phy_print_status(9), phy_get_rate_matching(9), phy_c...
phy_interrupt_is_valid(9)
NAME phy_interrupt_is_valid - Convenience function for testing a given PHY irq SYNOPSIS bool phy_interrupt_is_valid (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct NOTE must be kept in sync with addition/removal of PHY_POLL and PHY_MAC_INTERRUPT SEE ALSO Kernel file ./include/linux/phy.h...
phy_is_default_hwtstamp(9)
NAME phy_is_default_hwtstamp - Is the PHY hwtstamp the default timestamp SYNOPSIS bool phy_is_default_hwtstamp (struct phy_device *phydev ); ARGUMENTS phydev Pointer to phy_device DESCRIPTION This is used to get default timestamping device taking into account the new API choice, which is selecting the timestamp...
phy_is_pseudo_fixed_link(9)
NAME phy_is_pseudo_fixed_link - Convenience function for testing if this PHY is the CPU port facing side of an Ethernet switch, or similar. SYNOPSIS bool phy_is_pseudo_fixed_link (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct SEE ALSO Kernel file ./include/linux/phy.h enum phy_interfac...
phy_is_started(9)
NAME phy_is_started - Convenience function to check whether PHY is started SYNOPSIS bool phy_is_started (struct phy_device *phydev ); ARGUMENTS phydev The phy_device struct SEE ALSO Kernel file ./include/linux/phy.h enum phy_interface_t(9), phy_modes(9), rgmii_clock(9), struct mdio_bus_stats(9), struct...
phy_loopback(9)
NAME phy_loopback - Configure loopback mode of PHY SYNOPSIS int phy_loopback (struct phy_device *phydev , bool enable , int speed ); ARGUMENTS phydev target phy_device struct enable enable or disable loopback mode speed enable loopback mode with speed DESCRIPTION Configure loopback mo...
phy_mac_interrupt(9)
NAME phy_mac_interrupt - MAC says the link has changed SYNOPSIS void phy_mac_interrupt (struct phy_device *phydev ); ARGUMENTS phydev phy_device struct with changed link DESCRIPTION The MAC layer is able to indicate there has been a change in the PHY link status. Trigger the state machine and work a work queue....
phy_may_wakeup(9)
NAME phy_may_wakeup - indicate whether PHY has wakeup enabled SYNOPSIS bool phy_may_wakeup (struct phy_device *phydev ); ARGUMENTS phydev The phy_device struct RETURN true/false depending on the PHY driver's device_set_wakeup_enabled setting if using the driver model, otherwise the legacy determination. SEE AL...
phy_mdm6600_cmd(9)
NAME phy_mdm6600_cmd - send a command request to mdm6600 SYNOPSIS void phy_mdm6600_cmd (struct phy_mdm6600 *ddata , int val ); ARGUMENTS ddata device driver data val value of cmd to be set DESCRIPTION Configures the three command request GPIOs to the specified value. SEE ALSO Kernel file ....
phy_mdm6600_device_power_off(9)
NAME phy_mdm6600_device_power_off - power off mdm6600 device SYNOPSIS void phy_mdm6600_device_power_off (struct phy_mdm6600 *ddata ); ARGUMENTS ddata device driver data SEE ALSO Kernel file ./drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_cmd(9), phy_mdm6600_status(9), phy_mdm6600_wakeirq_thread(9), p...
phy_mdm6600_device_power_on(9)
NAME phy_mdm6600_device_power_on - power on mdm6600 device SYNOPSIS int phy_mdm6600_device_power_on (struct phy_mdm6600 *ddata ); ARGUMENTS ddata device driver data DESCRIPTION To get the integrated USB phy in MDM6600 takes some hoops. We must ensure the shared USB bootmode GPIOs are configured, then request m...
phy_mdm6600_init_irq(9)
NAME phy_mdm6600_init_irq - initialize mdm6600 status IRQ lines SYNOPSIS void phy_mdm6600_init_irq (struct phy_mdm6600 *ddata ); ARGUMENTS ddata device driver data SEE ALSO Kernel file ./drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_cmd(9), phy_mdm6600_status(9), phy_mdm6600_wakeirq_thread(...
phy_mdm6600_init_lines(9)
NAME phy_mdm6600_init_lines - initialize mdm6600 GPIO lines SYNOPSIS int phy_mdm6600_init_lines (struct phy_mdm6600 *ddata ); ARGUMENTS ddata device driver data SEE ALSO Kernel file ./drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_cmd(9), phy_mdm6600_status(9), phy_mdm6600_wakeirq_thread(9), phy_mdm66...
phy_mdm6600_status(9)
NAME phy_mdm6600_status - read mdm6600 status lines SYNOPSIS void phy_mdm6600_status (struct work_struct *work ); ARGUMENTS work work structure SEE ALSO Kernel file ./drivers/phy/motorola/phy-mapphone-mdm6600.c phy_mdm6600_cmd(9), phy_mdm6600_wakeirq_thread(9), phy_mdm6600_init_irq(9), phy_mdm6600_...
phy_mdm6600_wakeirq_thread(9)
NAME phy_mdm6600_wakeirq_thread - handle mode1 line OOB wake after booting SYNOPSIS irqreturn_t phy_mdm6600_wakeirq_thread (int irq , void *data ); ARGUMENTS irq interrupt data interrupt handler data DESCRIPTION GPIO mode1 is used initially as output to configure the USB boot mode for mdm6600....
phy_mii_ioctl(9)
NAME phy_mii_ioctl - generic PHY MII ioctl interface SYNOPSIS int phy_mii_ioctl (struct phy_device *phydev , struct ifreq *ifr , int cmd ); ARGUMENTS phydev the phy_device struct ifr struct ifreq for socket ioctl's cmd ioctl cmd to execute DESCRIPTION Note that this function is c...
phy_modes(9)
NAME phy_modes - map phy_interface_t enum to device tree binding of phy-mode SYNOPSIS const char * phy_modes (phy_interface_t interface ); ARGUMENTS interface enum phy_interface_t value DESCRIPTION maps enum phy_interface_t defined in this file into the device tree binding of 'phy-mode', so that Ethernet device dr...
phy_modify(9)
NAME phy_modify - Convenience function for modifying a given PHY register SYNOPSIS int phy_modify (struct phy_device *phydev , u32 regnum , u16 mask , u16 set ); ARGUMENTS phydev the phy_device struct regnum register number to write mask bit mask of bits to clear set n...
phy_modify_changed(9)
NAME phy_modify_changed - Function for modifying a PHY register SYNOPSIS int phy_modify_changed (struct phy_device *phydev , u32 regnum , u16 mask , u16 set ); ARGUMENTS phydev the phy_device struct regnum register number to modify mask bit mask of bits to clear set ne...
phy_modify_mmd(9)
NAME phy_modify_mmd - Convenience function for modifying a register on MMD SYNOPSIS int phy_modify_mmd (struct phy_device *phydev , int devad , u32 regnum , u16 mask , u16 set ); ARGUMENTS phydev the phy_device struct devad the MMD containing register to modify regnum register number t...
phy_modify_mmd_changed(9)
NAME phy_modify_mmd_changed - Function for modifying a register on MMD SYNOPSIS int phy_modify_mmd_changed (struct phy_device *phydev , int devad , u32 regnum , u16 mask , u16 set ); ARGUMENTS phydev the phy_device struct devad the MMD containing register to modify regnum register numb...
phy_modify_paged(9)
NAME phy_modify_paged - Convenience function for modifying a paged register SYNOPSIS int phy_modify_paged (struct phy_device *phydev , int page , u32 regnum , u16 mask , u16 set ); ARGUMENTS phydev a pointer to a struct phy_device page the page for the phy regnum register number ...
phy_modify_paged_changed(9)
NAME phy_modify_paged_changed - Function for modifying a paged register SYNOPSIS int phy_modify_paged_changed (struct phy_device *phydev , int page , u32 regnum , u16 mask , u16 set ); ARGUMENTS phydev a pointer to a struct phy_device page the page for the phy regnum register number ...
phy_module_driver(9)
NAME phy_module_driver - Helper macro for registering PHY drivers SYNOPSIS phy_module_driver (__phy_drivers , __count ); ARGUMENTS __phy_drivers array of PHY drivers to register __count Numbers of members in array DESCRIPTION Helper macro for PHY drivers which do not do anything special in module init/ex...
phy_notify_connect(9)
NAME phy_notify_connect - phy connect notification SYNOPSIS int phy_notify_connect (struct phy *phy , int port ); ARGUMENTS phy the phy returned by phy_get port the port index for connect DESCRIPTION If the phy needs to get connection status, the callback can be used. RETURN 0 if successful, ...
phy_notify_disconnect(9)
NAME phy_notify_disconnect - phy disconnect notification SYNOPSIS int phy_notify_disconnect (struct phy *phy , int port ); ARGUMENTS phy the phy returned by phy_get port the port index for disconnect DESCRIPTION If the phy needs to get connection status, the callback can be used. RETURN 0 if ...
phy_notify_state(9)
NAME phy_notify_state - phy state notification SYNOPSIS int phy_notify_state (struct phy *phy , union phy_notify state ); ARGUMENTS phy the PHY returned by phy_get state the PHY state DESCRIPTION Notify the PHY of a state transition. Used to notify and configure the PHY accordingly. RETURN 0 i...
phy_of_parse_port(9)
NAME phy_of_parse_port - Create a phy_port from a firmware representation SYNOPSIS struct phy_port * phy_of_parse_port (struct device_node *dn ); ARGUMENTS dn device_node representation of the port, following the ethernet-connector.yaml binding RETURN a newly allocated and initialized phy_port pointer, or a...
phy_on_sfp(9)
NAME phy_on_sfp - Convenience function for testing if a PHY is on an SFP module SYNOPSIS bool phy_on_sfp (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct SEE ALSO Kernel file ./include/linux/phy.h enum phy_interface_t(9), phy_modes(9), rgmii_clock(9), struct mdio_bus_stats(9), struc...
phy_package_join(9)
NAME phy_package_join - join a common PHY group SYNOPSIS int phy_package_join (struct phy_device *phydev , int base_addr , size_t priv_size ); ARGUMENTS phydev target phy_device struct base_addr cookie and base PHY address of PHY package for offset calculation of global register access priv_siz...
phy_package_leave(9)
NAME phy_package_leave - leave a common PHY group SYNOPSIS void phy_package_leave (struct phy_device *phydev ); ARGUMENTS phydev target phy_device struct DESCRIPTION This leaves a PHY group created by phy_package_join. If this phydev was the last user of the shared data between the group, this data is freed. Re...
phy_poll_reset(9)
NAME phy_poll_reset - Safely wait until a PHY reset has properly completed SYNOPSIS int phy_poll_reset (struct phy_device *phydev ); ARGUMENTS phydev The PHY device to poll DESCRIPTION According to IEEE 802.3, Section 2, Subsection 22.2.4.1.1, as published in 2008, a PHY reset may take up to 0.5 seconds. The M...
phy_polling_mode(9)
NAME phy_polling_mode - Convenience function for testing whether polling is used to detect PHY status changes SYNOPSIS bool phy_polling_mode (struct phy_device *phydev ); ARGUMENTS phydev the phy_device struct SEE ALSO Kernel file ./include/linux/phy.h enum phy_interface_t(9), phy_modes(9), rgmii_clock(9)...
phy_port_alloc(9)
NAME phy_port_alloc - Allocate a new phy_port SYNOPSIS struct phy_port * phy_port_alloc (void ); ARGUMENTS void no arguments RETURN a newly allocated struct phy_port, or NULL. SEE ALSO Kernel file ./drivers/net/phy/phy_port.c phy_port_destroy(9), phy_of_parse_port(9), phy_port_update_supported(9), phy_port_f...
phy_port_destroy(9)
NAME phy_port_destroy - Free a struct phy_port SYNOPSIS void phy_port_destroy (struct phy_port *port ); ARGUMENTS port The port to destroy SEE ALSO Kernel file ./drivers/net/phy/phy_port.c phy_port_alloc(9), phy_of_parse_port(9), phy_port_update_supported(9), phy_port_filter_supported(9), phy_port_restrict_me...
phy_port_filter_supported(9)
NAME phy_port_filter_supported - Make sure that port->supported match port->mediums SYNOPSIS void phy_port_filter_supported (struct phy_port *port ); ARGUMENTS port The port to filter DESCRIPTION After updating a port's mediums to a more restricted subset, this helper will make sure that port->supported only ...
phy_port_get_type(9)
NAME phy_port_get_type - get the PORT_* attribute for that port. SYNOPSIS int phy_port_get_type (struct phy_port *port ); ARGUMENTS port The port we want the information from RETURN A PORT_XXX value. SEE ALSO Kernel file ./drivers/net/phy/phy_port.c phy_port_alloc(9), phy_port_destroy(9), phy_of_parse_port(9...