Lines Matching refs:ops
60 const struct driver_ops *ops = dev->driver->ops; in device_init() local
62 if (ops && ops->init) { in device_init()
64 status_t err = ops->init(dev); in device_init()
82 const struct driver_ops *ops = dev->driver->ops; in device_fini() local
84 if (ops && ops->fini) in device_fini()
85 return ops->fini(dev); in device_fini()
96 const struct driver_ops *ops = dev->driver->ops; in device_suspend() local
98 if (ops && ops->suspend) in device_suspend()
99 return ops->suspend(dev); in device_suspend()
110 const struct driver_ops *ops = dev->driver->ops; in device_resume() local
112 if (ops && ops->resume) in device_resume()
113 return ops->resume(dev); in device_resume()