Lines Matching refs:ops
13 struct block_ops *ops = device_get_driver_ops(dev, struct block_ops, std); in class_block_get_size() local
14 if (!ops) in class_block_get_size()
17 if (ops->get_block_size) in class_block_get_size()
18 return ops->get_block_size(dev); in class_block_get_size()
24 struct block_ops *ops = device_get_driver_ops(dev, struct block_ops, std); in class_block_get_count() local
25 if (!ops) in class_block_get_count()
28 if (ops->get_block_count) in class_block_get_count()
29 return ops->get_block_count(dev); in class_block_get_count()
35 struct block_ops *ops = device_get_driver_ops(dev, struct block_ops, std); in class_block_write() local
36 if (!ops) in class_block_write()
39 if (ops->write) in class_block_write()
40 return ops->write(dev, offset, buf, count); in class_block_write()
46 struct block_ops *ops = device_get_driver_ops(dev, struct block_ops, std); in class_block_read() local
47 if (!ops) in class_block_read()
50 if (ops->read) in class_block_read()
51 return ops->read(dev, offset, buf, count); in class_block_read()
57 struct block_ops *ops = device_get_driver_ops(dev, struct block_ops, std); in class_block_flush() local
58 if (!ops) in class_block_flush()
61 if (ops->flush) in class_block_flush()
62 return ops->flush(dev); in class_block_flush()