Lines Matching refs:phydev
460 int (*soft_reset)(struct phy_device *phydev);
466 int (*config_init)(struct phy_device *phydev);
472 int (*probe)(struct phy_device *phydev);
475 int (*suspend)(struct phy_device *phydev);
476 int (*resume)(struct phy_device *phydev);
484 int (*config_aneg)(struct phy_device *phydev);
487 int (*aneg_done)(struct phy_device *phydev);
490 int (*read_status)(struct phy_device *phydev);
493 int (*ack_interrupt)(struct phy_device *phydev);
496 int (*config_intr)(struct phy_device *phydev);
502 int (*did_interrupt)(struct phy_device *phydev);
505 void (*remove)(struct phy_device *phydev);
511 int (*match_phy_device)(struct phy_device *phydev);
514 int (*ts_info)(struct phy_device *phydev, struct ethtool_ts_info *ti);
517 int (*hwtstamp)(struct phy_device *phydev, struct ifreq *ifr);
593 int (*run)(struct phy_device *phydev);
605 static inline int phy_read_mmd(struct phy_device *phydev, int devad, u32 regnum) in phy_read_mmd() argument
607 if (!phydev->is_c45) in phy_read_mmd()
610 return mdiobus_read(phydev->bus, phydev->addr, in phy_read_mmd()
624 int phy_read_mmd_indirect(struct phy_device *phydev, int prtad,
636 static inline int phy_read(struct phy_device *phydev, u32 regnum) in phy_read() argument
638 return mdiobus_read(phydev->bus, phydev->addr, regnum); in phy_read()
651 static inline int phy_write(struct phy_device *phydev, u32 regnum, u16 val) in phy_write() argument
653 return mdiobus_write(phydev->bus, phydev->addr, regnum, val); in phy_write()
663 static inline bool phy_interrupt_is_valid(struct phy_device *phydev) in phy_interrupt_is_valid() argument
665 return phydev->irq != PHY_POLL && phydev->irq != PHY_IGNORE_INTERRUPT; in phy_interrupt_is_valid()
672 static inline bool phy_is_internal(struct phy_device *phydev) in phy_is_internal() argument
674 return phydev->is_internal; in phy_is_internal()
687 static inline int phy_write_mmd(struct phy_device *phydev, int devad, in phy_write_mmd() argument
690 if (!phydev->is_c45) in phy_write_mmd()
695 return mdiobus_write(phydev->bus, phydev->addr, regnum, val); in phy_write_mmd()
709 void phy_write_mmd_indirect(struct phy_device *phydev, int prtad,
717 int phy_init_hw(struct phy_device *phydev);
718 int phy_suspend(struct phy_device *phydev);
719 int phy_resume(struct phy_device *phydev);
723 int phy_attach_direct(struct net_device *dev, struct phy_device *phydev,
725 int phy_connect_direct(struct net_device *dev, struct phy_device *phydev,
731 void phy_disconnect(struct phy_device *phydev);
732 void phy_detach(struct phy_device *phydev);
733 void phy_start(struct phy_device *phydev);
734 void phy_stop(struct phy_device *phydev);
735 int phy_start_aneg(struct phy_device *phydev);
737 int phy_stop_interrupts(struct phy_device *phydev);
739 static inline int phy_read_status(struct phy_device *phydev) in phy_read_status() argument
741 return phydev->drv->read_status(phydev); in phy_read_status()
744 int genphy_config_init(struct phy_device *phydev);
745 int genphy_setup_forced(struct phy_device *phydev);
746 int genphy_restart_aneg(struct phy_device *phydev);
747 int genphy_config_aneg(struct phy_device *phydev);
748 int genphy_aneg_done(struct phy_device *phydev);
749 int genphy_update_link(struct phy_device *phydev);
750 int genphy_read_status(struct phy_device *phydev);
751 int genphy_suspend(struct phy_device *phydev);
752 int genphy_resume(struct phy_device *phydev);
753 int genphy_soft_reset(struct phy_device *phydev);
760 void phy_mac_interrupt(struct phy_device *phydev, int new_link);
761 void phy_start_machine(struct phy_device *phydev);
762 void phy_stop_machine(struct phy_device *phydev);
763 int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd);
764 int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd);
765 int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd);
766 int phy_start_interrupts(struct phy_device *phydev);
767 void phy_print_status(struct phy_device *phydev);
768 void phy_device_free(struct phy_device *phydev);
777 int phy_init_eee(struct phy_device *phydev, bool clk_stop_enable);
778 int phy_get_eee_err(struct phy_device *phydev);
779 int phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_eee *data);
780 int phy_ethtool_get_eee(struct phy_device *phydev, struct ethtool_eee *data);
781 int phy_ethtool_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol);
782 void phy_ethtool_get_wol(struct phy_device *phydev,