Lines Matching refs:phy_device

181 	struct phy_device *phy_map[PHY_MAX_ADDR];
214 struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr);
363 struct phy_device { struct
438 #define to_phy_device(d) container_of(d, struct phy_device, dev) argument
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);
538 bool (*rxtstamp)(struct phy_device *dev, struct sk_buff *skb, int type);
546 void (*txtstamp)(struct phy_device *dev, struct sk_buff *skb, int type);
551 int (*set_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol);
554 void (*get_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol);
563 void (*link_change_notify)(struct phy_device *dev);
571 int (*read_mmd_indirect)(struct phy_device *dev, int ptrad,
580 void (*write_mmd_indirect)(struct phy_device *dev, int ptrad,
585 int (*module_info)(struct phy_device *dev,
589 int (*module_eeprom)(struct phy_device *dev,
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()
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()
663 static inline int phy_write(struct phy_device *phydev, u32 regnum, u16 val) in phy_write()
675 static inline bool phy_interrupt_is_valid(struct phy_device *phydev) in phy_interrupt_is_valid()
684 static inline bool phy_is_internal(struct phy_device *phydev) in phy_is_internal()
694 static inline bool phy_interface_is_rgmii(struct phy_device *phydev) in phy_interface_is_rgmii()
705 static inline bool phy_is_pseudo_fixed_link(struct phy_device *phydev) in phy_is_pseudo_fixed_link()
720 static inline int phy_write_mmd(struct phy_device *phydev, int devad, in phy_write_mmd()
742 void phy_write_mmd_indirect(struct phy_device *phydev, int prtad,
745 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id,
748 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
749 int phy_device_register(struct phy_device *phy);
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);
754 struct phy_device *phy_attach(struct net_device *dev, const char *bus_id,
756 struct phy_device *phy_find_first(struct mii_bus *bus);
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,
762 struct phy_device *phy_connect(struct net_device *dev, const char *bus_id,
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()
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);
806 int (*run)(struct phy_device *));
808 int (*run)(struct phy_device *));
810 int (*run)(struct phy_device *));
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,