Lines Matching refs:ops
21 const struct misc_ops *ops = device_get_ops(dev); in misc_read() local
23 if (!ops->read) in misc_read()
26 return ops->read(dev, offset, buf, size); in misc_read()
31 const struct misc_ops *ops = device_get_ops(dev); in misc_write() local
33 if (!ops->write) in misc_write()
36 return ops->write(dev, offset, buf, size); in misc_write()
41 const struct misc_ops *ops = device_get_ops(dev); in misc_ioctl() local
43 if (!ops->ioctl) in misc_ioctl()
46 return ops->ioctl(dev, request, buf); in misc_ioctl()
52 const struct misc_ops *ops = device_get_ops(dev); in misc_call() local
54 if (!ops->call) in misc_call()
57 return ops->call(dev, msgid, tx_msg, tx_size, rx_msg, rx_size); in misc_call()
62 const struct misc_ops *ops = device_get_ops(dev); in misc_set_enabled() local
64 if (!ops->set_enabled) in misc_set_enabled()
67 return ops->set_enabled(dev, val); in misc_set_enabled()