Lines Matching refs:phydev

103 	int (*probe)(struct phy_device *phydev);
107 int (*config)(struct phy_device *phydev);
110 int (*startup)(struct phy_device *phydev);
113 int (*shutdown)(struct phy_device *phydev);
115 int (*readext)(struct phy_device *phydev, int addr, int devad, int reg);
116 int (*writeext)(struct phy_device *phydev, int addr, int devad, int reg,
120 int (*read_mmd)(struct phy_device *phydev, int devad, int reg);
123 int (*write_mmd)(struct phy_device *phydev, int devad, int reg,
179 int phy_reset(struct phy_device *phydev);
267 static inline ofnode phy_get_ofnode(struct phy_device *phydev) in phy_get_ofnode() argument
269 if (ofnode_valid(phydev->node)) in phy_get_ofnode()
270 return phydev->node; in phy_get_ofnode()
272 return dev_ofnode(phydev->dev); in phy_get_ofnode()
293 #define phy_read_mmd_poll_timeout(phydev, devaddr, regnum, val, cond, \ argument
298 phydev, devaddr, regnum); \
302 dev_err(phydev->dev, "%s failed: %d\n", __func__, __ret); \
306 int phy_read(struct phy_device *phydev, int devad, int regnum);
307 int phy_write(struct phy_device *phydev, int devad, int regnum, u16 val);
308 void phy_mmd_start_indirect(struct phy_device *phydev, int devad, int regnum);
309 int phy_read_mmd(struct phy_device *phydev, int devad, int regnum);
310 int phy_write_mmd(struct phy_device *phydev, int devad, int regnum, u16 val);
311 int phy_set_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val);
312 int phy_clear_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val);
313 int phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum,
315 int phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum,
318 int phy_startup(struct phy_device *phydev);
319 int phy_config(struct phy_device *phydev);
320 int phy_shutdown(struct phy_device *phydev);
321 int phy_set_supported(struct phy_device *phydev, u32 max_speed);
322 int phy_modify(struct phy_device *phydev, int devad, int regnum, u16 mask,
324 int genphy_config_aneg(struct phy_device *phydev);
325 int genphy_restart_aneg(struct phy_device *phydev);
326 int genphy_update_link(struct phy_device *phydev);
327 int genphy_parse_link(struct phy_device *phydev);
328 int genphy_config(struct phy_device *phydev);
329 int genphy_startup(struct phy_device *phydev);
330 int genphy_shutdown(struct phy_device *phydev);
331 int gen10g_config(struct phy_device *phydev);
332 int gen10g_startup(struct phy_device *phydev);
333 int gen10g_shutdown(struct phy_device *phydev);
334 int gen10g_discover_mmds(struct phy_device *phydev);
343 static inline int phy_set_bits(struct phy_device *phydev, int devad, u32 regnum, u16 val) in phy_set_bits() argument
345 return phy_modify(phydev, devad, regnum, 0, val); in phy_set_bits()
355 static inline int phy_clear_bits(struct phy_device *phydev, int devad, u32 regnum, u16 val) in phy_clear_bits() argument
357 return phy_modify(phydev, devad, regnum, val, 0); in phy_clear_bits()
367 int board_phy_config(struct phy_device *phydev);
376 static inline bool phy_interface_is_rgmii(struct phy_device *phydev) in phy_interface_is_rgmii() argument
378 switch (phydev->interface) { in phy_interface_is_rgmii()