Lines Matching refs:dev

127 	const struct device *dev;  member
141 typedef int (*uhc_event_cb_t)(const struct device *dev,
193 static inline bool uhc_is_initialized(const struct device *dev) in uhc_is_initialized() argument
195 struct uhc_data *data = dev->data; in uhc_is_initialized()
207 static inline bool uhc_is_enabled(const struct device *dev) in uhc_is_enabled() argument
209 struct uhc_data *data = dev->data; in uhc_is_enabled()
218 int (*lock)(const struct device *dev);
219 int (*unlock)(const struct device *dev);
221 int (*init)(const struct device *dev);
222 int (*enable)(const struct device *dev);
223 int (*disable)(const struct device *dev);
224 int (*shutdown)(const struct device *dev);
226 int (*bus_reset)(const struct device *dev);
227 int (*sof_enable)(const struct device *dev);
228 int (*bus_suspend)(const struct device *dev);
229 int (*bus_resume)(const struct device *dev);
231 int (*ep_enqueue)(const struct device *dev,
233 int (*ep_dequeue)(const struct device *dev,
251 static inline int uhc_bus_reset(const struct device *dev) in uhc_bus_reset() argument
253 const struct uhc_api *api = dev->api; in uhc_bus_reset()
256 api->lock(dev); in uhc_bus_reset()
257 ret = api->bus_reset(dev); in uhc_bus_reset()
258 api->unlock(dev); in uhc_bus_reset()
273 static inline int uhc_sof_enable(const struct device *dev) in uhc_sof_enable() argument
275 const struct uhc_api *api = dev->api; in uhc_sof_enable()
278 api->lock(dev); in uhc_sof_enable()
279 ret = api->sof_enable(dev); in uhc_sof_enable()
280 api->unlock(dev); in uhc_sof_enable()
296 static inline int uhc_bus_suspend(const struct device *dev) in uhc_bus_suspend() argument
298 const struct uhc_api *api = dev->api; in uhc_bus_suspend()
301 api->lock(dev); in uhc_bus_suspend()
302 ret = api->bus_suspend(dev); in uhc_bus_suspend()
303 api->unlock(dev); in uhc_bus_suspend()
319 static inline int uhc_bus_resume(const struct device *dev) in uhc_bus_resume() argument
321 const struct uhc_api *api = dev->api; in uhc_bus_resume()
324 api->lock(dev); in uhc_bus_resume()
325 ret = api->bus_resume(dev); in uhc_bus_resume()
326 api->unlock(dev); in uhc_bus_resume()
349 struct uhc_transfer *uhc_xfer_alloc(const struct device *dev,
375 struct uhc_transfer *uhc_xfer_alloc_with_buf(const struct device *dev,
395 int uhc_xfer_free(const struct device *dev,
409 int uhc_xfer_buf_add(const struct device *dev,
423 struct net_buf *uhc_xfer_buf_alloc(const struct device *dev,
434 void uhc_xfer_buf_free(const struct device *dev, struct net_buf *const buf);
448 int uhc_ep_enqueue(const struct device *dev, struct uhc_transfer *const xfer);
461 int uhc_ep_dequeue(const struct device *dev, struct uhc_transfer *const xfer);
475 int uhc_init(const struct device *dev, uhc_event_cb_t event_cb);
489 int uhc_enable(const struct device *dev);
501 int uhc_disable(const struct device *dev);
514 int uhc_shutdown(const struct device *dev);
526 static inline struct uhc_device_caps uhc_caps(const struct device *dev) in uhc_caps() argument
528 struct uhc_data *data = dev->data; in uhc_caps()