Lines Matching refs:emul
28 static int sandbox_i2c_pmic_read_data(struct udevice *emul, uchar chip, in sandbox_i2c_pmic_read_data() argument
31 struct sandbox_i2c_pmic_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_pmic_read_data()
47 static int sandbox_i2c_pmic_write_data(struct udevice *emul, uchar chip, in sandbox_i2c_pmic_write_data() argument
51 struct sandbox_i2c_pmic_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_pmic_write_data()
81 static int sandbox_i2c_pmic_xfer(struct udevice *emul, struct i2c_msg *msg, in sandbox_i2c_pmic_xfer() argument
89 ret = sandbox_i2c_pmic_read_data(emul, msg->addr, in sandbox_i2c_pmic_xfer()
92 ret = sandbox_i2c_pmic_write_data(emul, msg->addr, in sandbox_i2c_pmic_xfer()
104 static int sandbox_i2c_pmic_ofdata_to_platdata(struct udevice *emul) in sandbox_i2c_pmic_ofdata_to_platdata() argument
106 struct sandbox_i2c_pmic_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_pmic_ofdata_to_platdata()
107 struct udevice *pmic_dev = dev_get_parent(emul); in sandbox_i2c_pmic_ofdata_to_platdata()
123 reg_defaults = dev_read_u8_array_ptr(emul, "reg-defaults", in sandbox_i2c_pmic_ofdata_to_platdata()
128 emul->name); in sandbox_i2c_pmic_ofdata_to_platdata()