Lines Matching refs:phy

23 struct phy;
34 int (*init)(struct phy *phy);
35 int (*exit)(struct phy *phy);
36 int (*power_on)(struct phy *phy);
37 int (*power_off)(struct phy *phy);
60 struct phy { struct
82 struct phy * (*of_xlate)(struct device *dev,
90 struct phy *phy; member
93 #define to_phy(a) (container_of((a), struct phy, dev))
101 static inline void phy_set_drvdata(struct phy *phy, void *data) in phy_set_drvdata() argument
103 dev_set_drvdata(&phy->dev, data); in phy_set_drvdata()
106 static inline void *phy_get_drvdata(struct phy *phy) in phy_get_drvdata() argument
108 return dev_get_drvdata(&phy->dev); in phy_get_drvdata()
112 int phy_pm_runtime_get(struct phy *phy);
113 int phy_pm_runtime_get_sync(struct phy *phy);
114 int phy_pm_runtime_put(struct phy *phy);
115 int phy_pm_runtime_put_sync(struct phy *phy);
116 void phy_pm_runtime_allow(struct phy *phy);
117 void phy_pm_runtime_forbid(struct phy *phy);
118 int phy_init(struct phy *phy);
119 int phy_exit(struct phy *phy);
120 int phy_power_on(struct phy *phy);
121 int phy_power_off(struct phy *phy);
122 static inline int phy_get_bus_width(struct phy *phy) in phy_get_bus_width() argument
124 return phy->attrs.bus_width; in phy_get_bus_width()
126 static inline void phy_set_bus_width(struct phy *phy, int bus_width) in phy_set_bus_width() argument
128 phy->attrs.bus_width = bus_width; in phy_set_bus_width()
130 struct phy *phy_get(struct device *dev, const char *string);
131 struct phy *phy_optional_get(struct device *dev, const char *string);
132 struct phy *devm_phy_get(struct device *dev, const char *string);
133 struct phy *devm_phy_optional_get(struct device *dev, const char *string);
134 struct phy *devm_of_phy_get(struct device *dev, struct device_node *np,
136 struct phy *devm_of_phy_get_by_index(struct device *dev, struct device_node *np,
138 void phy_put(struct phy *phy);
139 void devm_phy_put(struct device *dev, struct phy *phy);
140 struct phy *of_phy_get(struct device_node *np, const char *con_id);
141 struct phy *of_phy_simple_xlate(struct device *dev,
143 struct phy *phy_create(struct device *dev, struct device_node *node,
145 struct phy *devm_phy_create(struct device *dev, struct device_node *node,
147 void phy_destroy(struct phy *phy);
148 void devm_phy_destroy(struct device *dev, struct phy *phy);
150 struct module *owner, struct phy * (*of_xlate)(struct device *dev,
153 struct module *owner, struct phy * (*of_xlate)(struct device *dev,
158 int phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id);
159 void phy_remove_lookup(struct phy *phy, const char *con_id, const char *dev_id);
161 static inline int phy_pm_runtime_get(struct phy *phy) in phy_pm_runtime_get() argument
163 if (!phy) in phy_pm_runtime_get()
168 static inline int phy_pm_runtime_get_sync(struct phy *phy) in phy_pm_runtime_get_sync() argument
170 if (!phy) in phy_pm_runtime_get_sync()
175 static inline int phy_pm_runtime_put(struct phy *phy) in phy_pm_runtime_put() argument
177 if (!phy) in phy_pm_runtime_put()
182 static inline int phy_pm_runtime_put_sync(struct phy *phy) in phy_pm_runtime_put_sync() argument
184 if (!phy) in phy_pm_runtime_put_sync()
189 static inline void phy_pm_runtime_allow(struct phy *phy) in phy_pm_runtime_allow() argument
194 static inline void phy_pm_runtime_forbid(struct phy *phy) in phy_pm_runtime_forbid() argument
199 static inline int phy_init(struct phy *phy) in phy_init() argument
201 if (!phy) in phy_init()
206 static inline int phy_exit(struct phy *phy) in phy_exit() argument
208 if (!phy) in phy_exit()
213 static inline int phy_power_on(struct phy *phy) in phy_power_on() argument
215 if (!phy) in phy_power_on()
220 static inline int phy_power_off(struct phy *phy) in phy_power_off() argument
222 if (!phy) in phy_power_off()
227 static inline int phy_get_bus_width(struct phy *phy) in phy_get_bus_width() argument
232 static inline void phy_set_bus_width(struct phy *phy, int bus_width) in phy_set_bus_width() argument
237 static inline struct phy *phy_get(struct device *dev, const char *string) in phy_get()
242 static inline struct phy *phy_optional_get(struct device *dev, in phy_optional_get()
248 static inline struct phy *devm_phy_get(struct device *dev, const char *string) in devm_phy_get()
253 static inline struct phy *devm_phy_optional_get(struct device *dev, in devm_phy_optional_get()
259 static inline struct phy *devm_of_phy_get(struct device *dev, in devm_of_phy_get()
266 static inline struct phy *devm_of_phy_get_by_index(struct device *dev, in devm_of_phy_get_by_index()
273 static inline void phy_put(struct phy *phy) in phy_put() argument
277 static inline void devm_phy_put(struct device *dev, struct phy *phy) in devm_phy_put() argument
281 static inline struct phy *of_phy_get(struct device_node *np, const char *con_id) in of_phy_get()
286 static inline struct phy *of_phy_simple_xlate(struct device *dev, in of_phy_simple_xlate()
292 static inline struct phy *phy_create(struct device *dev, in phy_create()
299 static inline struct phy *devm_phy_create(struct device *dev, in devm_phy_create()
306 static inline void phy_destroy(struct phy *phy) in phy_destroy() argument
310 static inline void devm_phy_destroy(struct device *dev, struct phy *phy) in devm_phy_destroy() argument
315 struct device *dev, struct module *owner, struct phy * (*of_xlate)( in __of_phy_provider_register()
322 *dev, struct module *owner, struct phy * (*of_xlate)(struct device *dev, in __devm_of_phy_provider_register()
337 phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id) in phy_create_lookup() argument
341 static inline void phy_remove_lookup(struct phy *phy, const char *con_id, in phy_remove_lookup() argument