Lines Matching refs:ops
20 const struct misc_ops *ops = device_get_ops(dev); in misc_read() local
22 if (!ops->read) in misc_read()
25 return ops->read(dev, offset, buf, size); in misc_read()
30 const struct misc_ops *ops = device_get_ops(dev); in misc_write() local
32 if (!ops->write) in misc_write()
35 return ops->write(dev, offset, buf, size); in misc_write()
40 const struct misc_ops *ops = device_get_ops(dev); in misc_ioctl() local
42 if (!ops->ioctl) in misc_ioctl()
45 return ops->ioctl(dev, request, buf); in misc_ioctl()
51 const struct misc_ops *ops = device_get_ops(dev); in misc_call() local
53 if (!ops->call) in misc_call()
56 return ops->call(dev, msgid, tx_msg, tx_size, rx_msg, rx_size); in misc_call()
61 const struct misc_ops *ops; in misc_get_device_by_capability() local
74 ops = device_get_ops(dev); in misc_get_device_by_capability()
75 if (!ops || !ops->ioctl) in misc_get_device_by_capability()
78 ret = ops->ioctl(dev, IOCTL_REQ_CAPABILITY, &cap); in misc_get_device_by_capability()