Lines Matching refs:ops
28 const struct demo_ops *ops = device_get_ops(dev); in demo_hello() local
30 if (!ops->hello) in demo_hello()
33 return ops->hello(dev, ch); in demo_hello()
38 const struct demo_ops *ops = device_get_ops(dev); in demo_status() local
40 if (!ops->status) in demo_status()
43 return ops->status(dev, status); in demo_status()
48 const struct demo_ops *ops = device_get_ops(dev); in demo_get_light() local
50 if (!ops->get_light) in demo_get_light()
53 return ops->get_light(dev); in demo_get_light()
58 const struct demo_ops *ops = device_get_ops(dev); in demo_set_light() local
60 if (!ops->set_light) in demo_set_light()
63 return ops->set_light(dev, light); in demo_set_light()