Lines Matching refs:phy_device
179 struct phy_device *phy_map[PHY_MAX_ADDR];
208 struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr);
354 struct phy_device { struct
426 #define to_phy_device(d) container_of(d, struct phy_device, dev) argument
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);
526 bool (*rxtstamp)(struct phy_device *dev, struct sk_buff *skb, int type);
534 void (*txtstamp)(struct phy_device *dev, struct sk_buff *skb, int type);
539 int (*set_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol);
542 void (*get_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol);
551 void (*link_change_notify)(struct phy_device *dev);
559 int (*read_mmd_indirect)(struct phy_device *dev, int ptrad,
568 void (*write_mmd_indirect)(struct phy_device *dev, int ptrad,
573 int (*module_info)(struct phy_device *dev,
577 int (*module_eeprom)(struct phy_device *dev,
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()
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()
651 static inline int phy_write(struct phy_device *phydev, u32 regnum, u16 val) in phy_write()
663 static inline bool phy_interrupt_is_valid(struct phy_device *phydev) in phy_interrupt_is_valid()
672 static inline bool phy_is_internal(struct phy_device *phydev) in phy_is_internal()
687 static inline int phy_write_mmd(struct phy_device *phydev, int devad, in phy_write_mmd()
709 void phy_write_mmd_indirect(struct phy_device *phydev, int prtad,
712 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id,
715 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
716 int phy_device_register(struct phy_device *phy);
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);
720 struct phy_device *phy_attach(struct net_device *dev, const char *bus_id,
722 struct phy_device *phy_find_first(struct mii_bus *bus);
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,
728 struct phy_device *phy_connect(struct net_device *dev, const char *bus_id,
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()
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);
771 int (*run)(struct phy_device *));
773 int (*run)(struct phy_device *));
775 int (*run)(struct phy_device *));
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,