Lines Matching refs:phydev

472 	int (*soft_reset)(struct phy_device *phydev);
478 int (*config_init)(struct phy_device *phydev);
484 int (*probe)(struct phy_device *phydev);
487 int (*suspend)(struct phy_device *phydev);
488 int (*resume)(struct phy_device *phydev);
496 int (*config_aneg)(struct phy_device *phydev);
499 int (*aneg_done)(struct phy_device *phydev);
502 int (*read_status)(struct phy_device *phydev);
505 int (*ack_interrupt)(struct phy_device *phydev);
508 int (*config_intr)(struct phy_device *phydev);
514 int (*did_interrupt)(struct phy_device *phydev);
517 void (*remove)(struct phy_device *phydev);
523 int (*match_phy_device)(struct phy_device *phydev);
526 int (*ts_info)(struct phy_device *phydev, struct ethtool_ts_info *ti);
529 int (*hwtstamp)(struct phy_device *phydev, struct ifreq *ifr);
605 int (*run)(struct phy_device *phydev);
617 static inline int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) in phy_read_mmd() argument
619 if (!phydev->is_c45) in phy_read_mmd()
622 return mdiobus_read(phydev->bus, phydev->addr, in phy_read_mmd()
636 int phy_read_mmd_indirect(struct phy_device *phydev, int prtad,
648 static inline int phy_read(struct phy_device *phydev, u32 regnum) in phy_read() argument
650 return mdiobus_read(phydev->bus, phydev->addr, regnum); in phy_read()
663 static inline int phy_write(struct phy_device *phydev, u32 regnum, u16 val) in phy_write() argument
665 return mdiobus_write(phydev->bus, phydev->addr, regnum, val); in phy_write()
675 static inline bool phy_interrupt_is_valid(struct phy_device *phydev) in phy_interrupt_is_valid() argument
677 return phydev->irq != PHY_POLL && phydev->irq != PHY_IGNORE_INTERRUPT; in phy_interrupt_is_valid()
684 static inline bool phy_is_internal(struct phy_device *phydev) in phy_is_internal() argument
686 return phydev->is_internal; in phy_is_internal()
694 static inline bool phy_interface_is_rgmii(struct phy_device *phydev) in phy_interface_is_rgmii() argument
696 return phydev->interface >= PHY_INTERFACE_MODE_RGMII && in phy_interface_is_rgmii()
697 phydev->interface <= PHY_INTERFACE_MODE_RGMII_TXID; in phy_interface_is_rgmii()
705 static inline bool phy_is_pseudo_fixed_link(struct phy_device *phydev) in phy_is_pseudo_fixed_link() argument
707 return phydev->is_pseudo_fixed_link; in phy_is_pseudo_fixed_link()
720 static inline int phy_write_mmd(struct phy_device *phydev, int devad, in phy_write_mmd() argument
723 if (!phydev->is_c45) in phy_write_mmd()
728 return mdiobus_write(phydev->bus, phydev->addr, regnum, val); in phy_write_mmd()
742 void phy_write_mmd_indirect(struct phy_device *phydev, int prtad,
750 void phy_device_remove(struct phy_device *phydev);
751 int phy_init_hw(struct phy_device *phydev);
752 int phy_suspend(struct phy_device *phydev);
753 int phy_resume(struct phy_device *phydev);
757 int phy_attach_direct(struct net_device *dev, struct phy_device *phydev,
759 int phy_connect_direct(struct net_device *dev, struct phy_device *phydev,
765 void phy_disconnect(struct phy_device *phydev);
766 void phy_detach(struct phy_device *phydev);
767 void phy_start(struct phy_device *phydev);
768 void phy_stop(struct phy_device *phydev);
769 int phy_start_aneg(struct phy_device *phydev);
771 int phy_stop_interrupts(struct phy_device *phydev);
773 static inline int phy_read_status(struct phy_device *phydev) in phy_read_status() argument
775 return phydev->drv->read_status(phydev); in phy_read_status()
778 int genphy_config_init(struct phy_device *phydev);
779 int genphy_setup_forced(struct phy_device *phydev);
780 int genphy_restart_aneg(struct phy_device *phydev);
781 int genphy_config_aneg(struct phy_device *phydev);
782 int genphy_aneg_done(struct phy_device *phydev);
783 int genphy_update_link(struct phy_device *phydev);
784 int genphy_read_status(struct phy_device *phydev);
785 int genphy_suspend(struct phy_device *phydev);
786 int genphy_resume(struct phy_device *phydev);
787 int genphy_soft_reset(struct phy_device *phydev);
794 void phy_mac_interrupt(struct phy_device *phydev, int new_link);
795 void phy_start_machine(struct phy_device *phydev);
796 void phy_stop_machine(struct phy_device *phydev);
797 int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd);
798 int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd);
799 int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd);
800 int phy_start_interrupts(struct phy_device *phydev);
801 void phy_print_status(struct phy_device *phydev);
802 void phy_device_free(struct phy_device *phydev);
803 int phy_set_max_speed(struct phy_device *phydev, u32 max_speed);
812 int phy_init_eee(struct phy_device *phydev, bool clk_stop_enable);
813 int phy_get_eee_err(struct phy_device *phydev);
814 int phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_eee *data);
815 int phy_ethtool_get_eee(struct phy_device *phydev, struct ethtool_eee *data);
816 int phy_ethtool_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol);
817 void phy_ethtool_get_wol(struct phy_device *phydev,