Lines Matching refs:phy
49 struct phy { struct
78 int (*of_xlate)(struct phy *phy, struct ofnode_phandle_args *args);
92 int (*init)(struct phy *phy);
107 int (*exit)(struct phy *phy);
119 int (*reset)(struct phy *phy);
133 int (*power_on)(struct phy *phy);
147 int (*power_off)(struct phy *phy);
161 int (*configure)(struct phy *phy, void *params);
175 int (*set_mode)(struct phy *phy, enum phy_mode mode, int submode);
187 int (*set_speed)(struct phy *phy, int speed);
203 struct phy *phys;
215 int generic_phy_init(struct phy *phy);
223 int generic_phy_exit(struct phy *phy);
231 int generic_phy_reset(struct phy *phy);
239 int generic_phy_power_on(struct phy *phy);
247 int generic_phy_power_off(struct phy *phy);
256 int generic_phy_configure(struct phy *phy, void *params);
266 int generic_phy_set_mode(struct phy *phy, enum phy_mode mode, int submode);
275 int generic_phy_set_speed(struct phy *phy, int speed);
303 struct phy *phy);
333 int generic_phy_get_by_index_nodev(ofnode node, int index, struct phy *phy);
361 struct phy *phy);
423 int generic_setup_phy(struct udevice *dev, struct phy *phy, int index,
433 int generic_shutdown_phy(struct phy *phy);
437 static inline int generic_phy_init(struct phy *phy) in generic_phy_init() argument
442 static inline int generic_phy_exit(struct phy *phy) in generic_phy_exit() argument
447 static inline int generic_phy_reset(struct phy *phy) in generic_phy_reset() argument
452 static inline int generic_phy_power_on(struct phy *phy) in generic_phy_power_on() argument
457 static inline int generic_phy_power_off(struct phy *phy) in generic_phy_power_off() argument
462 static inline int generic_phy_configure(struct phy *phy, void *params) in generic_phy_configure() argument
467 static inline int generic_phy_set_mode(struct phy *phy, enum phy_mode mode, int submode) in generic_phy_set_mode() argument
472 static inline int generic_phy_set_speed(struct phy *phy, int speed) in generic_phy_set_speed() argument
478 struct phy *phy) in generic_phy_get_by_index() argument
484 struct phy *phy) in generic_phy_get_by_name() argument
515 static inline int generic_setup_phy(struct udevice *dev, struct phy *phy, int index, in generic_setup_phy() argument
521 static inline int generic_shutdown_phy(struct phy *phy) in generic_shutdown_phy() argument
534 static inline bool generic_phy_valid(struct phy *phy) in generic_phy_valid() argument
536 return phy && phy->dev; in generic_phy_valid()