Lines Matching refs:ops
25 const struct demo_ops *ops = device_get_ops(dev); in demo_hello() local
27 if (!ops->hello) in demo_hello()
30 return ops->hello(dev, ch); in demo_hello()
35 const struct demo_ops *ops = device_get_ops(dev); in demo_status() local
37 if (!ops->status) in demo_status()
40 return ops->status(dev, status); in demo_status()
45 const struct demo_ops *ops = device_get_ops(dev); in demo_get_light() local
47 if (!ops->get_light) in demo_get_light()
50 return ops->get_light(dev); in demo_get_light()
55 const struct demo_ops *ops = device_get_ops(dev); in demo_set_light() local
57 if (!ops->set_light) in demo_set_light()
60 return ops->set_light(dev, light); in demo_set_light()