Lines Matching refs:phy_device
54 struct phy_device;
66 struct phy_device *phymap[PHY_MAX_ADDR];
90 int (*probe)(struct phy_device *phydev);
94 int (*config)(struct phy_device *phydev);
97 int (*startup)(struct phy_device *phydev);
100 int (*shutdown)(struct phy_device *phydev);
102 int (*readext)(struct phy_device *phydev, int addr, int devad, int reg);
103 int (*writeext)(struct phy_device *phydev, int addr, int devad, int reg,
107 int (*read_mmd)(struct phy_device *phydev, int devad, int reg);
110 int (*write_mmd)(struct phy_device *phydev, int devad, int reg,
116 struct phy_device { struct
162 static inline int phy_read(struct phy_device *phydev, int devad, int regnum) in phy_read() argument
169 static inline int phy_write(struct phy_device *phydev, int devad, int regnum, in phy_write()
177 static inline void phy_mmd_start_indirect(struct phy_device *phydev, int devad, in phy_mmd_start_indirect()
191 static inline int phy_read_mmd(struct phy_device *phydev, int devad, in phy_read_mmd()
215 static inline int phy_write_mmd(struct phy_device *phydev, int devad, in phy_write_mmd()
267 int phy_reset(struct phy_device *phydev);
283 struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
293 void phy_connect_dev(struct phy_device *phydev, struct udevice *dev);
311 struct phy_device *phy_connect(struct mii_dev *bus, int addr,
315 static inline ofnode phy_get_ofnode(struct phy_device *phydev) in phy_get_ofnode()
329 void phy_connect_dev(struct phy_device *phydev, struct eth_device *dev);
347 struct phy_device *phy_connect(struct mii_dev *bus, int addr,
351 static inline ofnode phy_get_ofnode(struct phy_device *phydev) in phy_get_ofnode()
356 int phy_startup(struct phy_device *phydev);
357 int phy_config(struct phy_device *phydev);
358 int phy_shutdown(struct phy_device *phydev);
360 int phy_set_supported(struct phy_device *phydev, u32 max_speed);
361 int genphy_config_aneg(struct phy_device *phydev);
362 int genphy_restart_aneg(struct phy_device *phydev);
363 int genphy_update_link(struct phy_device *phydev);
364 int genphy_parse_link(struct phy_device *phydev);
365 int genphy_config(struct phy_device *phydev);
366 int genphy_startup(struct phy_device *phydev);
367 int genphy_shutdown(struct phy_device *phydev);
368 int gen10g_config(struct phy_device *phydev);
369 int gen10g_startup(struct phy_device *phydev);
370 int gen10g_shutdown(struct phy_device *phydev);
371 int gen10g_discover_mmds(struct phy_device *phydev);
395 int board_phy_config(struct phy_device *phydev);
411 static inline bool phy_interface_is_rgmii(struct phy_device *phydev) in phy_interface_is_rgmii()
422 static inline bool phy_interface_is_sgmii(struct phy_device *phydev) in phy_interface_is_sgmii()