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 void phy_put(struct phy *phy);
137 void devm_phy_put(struct device *dev, struct phy *phy);
138 struct phy *of_phy_get(struct device_node *np, const char *con_id);
139 struct phy *of_phy_simple_xlate(struct device *dev,
141 struct phy *phy_create(struct device *dev, struct device_node *node,
143 struct phy *devm_phy_create(struct device *dev, struct device_node *node,
145 void phy_destroy(struct phy *phy);
146 void devm_phy_destroy(struct device *dev, struct phy *phy);
148 struct module *owner, struct phy * (*of_xlate)(struct device *dev,
151 struct module *owner, struct phy * (*of_xlate)(struct device *dev,
156 int phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id);
157 void phy_remove_lookup(struct phy *phy, const char *con_id, const char *dev_id);
159 static inline int phy_pm_runtime_get(struct phy *phy) in phy_pm_runtime_get() argument
161 if (!phy) in phy_pm_runtime_get()
166 static inline int phy_pm_runtime_get_sync(struct phy *phy) in phy_pm_runtime_get_sync() argument
168 if (!phy) in phy_pm_runtime_get_sync()
173 static inline int phy_pm_runtime_put(struct phy *phy) in phy_pm_runtime_put() argument
175 if (!phy) in phy_pm_runtime_put()
180 static inline int phy_pm_runtime_put_sync(struct phy *phy) in phy_pm_runtime_put_sync() argument
182 if (!phy) in phy_pm_runtime_put_sync()
187 static inline void phy_pm_runtime_allow(struct phy *phy) in phy_pm_runtime_allow() argument
192 static inline void phy_pm_runtime_forbid(struct phy *phy) in phy_pm_runtime_forbid() argument
197 static inline int phy_init(struct phy *phy) in phy_init() argument
199 if (!phy) in phy_init()
204 static inline int phy_exit(struct phy *phy) in phy_exit() argument
206 if (!phy) in phy_exit()
211 static inline int phy_power_on(struct phy *phy) in phy_power_on() argument
213 if (!phy) in phy_power_on()
218 static inline int phy_power_off(struct phy *phy) in phy_power_off() argument
220 if (!phy) in phy_power_off()
225 static inline int phy_get_bus_width(struct phy *phy) in phy_get_bus_width() argument
230 static inline void phy_set_bus_width(struct phy *phy, int bus_width) in phy_set_bus_width() argument
235 static inline struct phy *phy_get(struct device *dev, const char *string) in phy_get()
240 static inline struct phy *phy_optional_get(struct device *dev, in phy_optional_get()
246 static inline struct phy *devm_phy_get(struct device *dev, const char *string) in devm_phy_get()
251 static inline struct phy *devm_phy_optional_get(struct device *dev, in devm_phy_optional_get()
257 static inline struct phy *devm_of_phy_get(struct device *dev, in devm_of_phy_get()
264 static inline void phy_put(struct phy *phy) in phy_put() argument
268 static inline void devm_phy_put(struct device *dev, struct phy *phy) in devm_phy_put() argument
272 static inline struct phy *of_phy_get(struct device_node *np, const char *con_id) in of_phy_get()
277 static inline struct phy *of_phy_simple_xlate(struct device *dev, in of_phy_simple_xlate()
283 static inline struct phy *phy_create(struct device *dev, in phy_create()
290 static inline struct phy *devm_phy_create(struct device *dev, in devm_phy_create()
297 static inline void phy_destroy(struct phy *phy) in phy_destroy() argument
301 static inline void devm_phy_destroy(struct device *dev, struct phy *phy) in devm_phy_destroy() argument
306 struct device *dev, struct module *owner, struct phy * (*of_xlate)( in __of_phy_provider_register()
313 *dev, struct module *owner, struct phy * (*of_xlate)(struct device *dev, in __devm_of_phy_provider_register()
328 phy_create_lookup(struct phy *phy, const char *con_id, const char *dev_id) in phy_create_lookup() argument
332 static inline void phy_remove_lookup(struct phy *phy, const char *con_id, in phy_remove_lookup() argument