Lines Matching refs:ops
13 struct i2c_ops *ops = device_get_driver_ops(dev, struct i2c_ops, std); in class_i2c_write() local
14 if (!ops) in class_i2c_write()
17 if (ops->write) in class_i2c_write()
18 return ops->write(dev, addr, buf, len); in class_i2c_write()
24 struct i2c_ops *ops = device_get_driver_ops(dev, struct i2c_ops, std); in class_i2c_read() local
25 if (!ops) in class_i2c_read()
28 if (ops->read) in class_i2c_read()
29 return ops->read(dev, addr, buf, len); in class_i2c_read()
35 struct i2c_ops *ops = device_get_driver_ops(dev, struct i2c_ops, std); in class_i2c_write_reg() local
36 if (!ops) in class_i2c_write_reg()
39 if (ops->write_reg) in class_i2c_write_reg()
40 return ops->write_reg(dev, addr, reg, value); in class_i2c_write_reg()
46 struct i2c_ops *ops = device_get_driver_ops(dev, struct i2c_ops, std); in class_i2c_read_reg() local
47 if (!ops) in class_i2c_read_reg()
50 if (ops->read_reg) in class_i2c_read_reg()
51 return ops->read_reg(dev, addr, reg, value); in class_i2c_read_reg()