Lines Matching refs:ops
19 const struct misc_ops *ops = device_get_ops(dev); in misc_read() local
21 if (!ops->read) in misc_read()
24 return ops->read(dev, offset, buf, size); in misc_read()
29 const struct misc_ops *ops = device_get_ops(dev); in misc_write() local
31 if (!ops->write) in misc_write()
34 return ops->write(dev, offset, buf, size); in misc_write()
39 const struct misc_ops *ops = device_get_ops(dev); in misc_ioctl() local
41 if (!ops->ioctl) in misc_ioctl()
44 return ops->ioctl(dev, request, buf); in misc_ioctl()
50 const struct misc_ops *ops = device_get_ops(dev); in misc_call() local
52 if (!ops->call) in misc_call()
55 return ops->call(dev, msgid, tx_msg, tx_size, rx_msg, rx_size); in misc_call()
60 const struct misc_ops *ops = device_get_ops(dev); in misc_set_enabled() local
62 if (!ops->set_enabled) in misc_set_enabled()
65 return ops->set_enabled(dev, val); in misc_set_enabled()