Lines Matching refs:emul
30 static int sandbox_i2c_pmic_read_data(struct udevice *emul, uchar chip, in sandbox_i2c_pmic_read_data() argument
33 struct sandbox_i2c_pmic_plat_data *plat = dev_get_plat(emul); in sandbox_i2c_pmic_read_data()
49 static int sandbox_i2c_pmic_write_data(struct udevice *emul, uchar chip, in sandbox_i2c_pmic_write_data() argument
53 struct sandbox_i2c_pmic_plat_data *plat = dev_get_plat(emul); in sandbox_i2c_pmic_write_data()
83 static int sandbox_i2c_pmic_xfer(struct udevice *emul, struct i2c_msg *msg, in sandbox_i2c_pmic_xfer() argument
91 ret = sandbox_i2c_pmic_read_data(emul, msg->addr, in sandbox_i2c_pmic_xfer()
94 ret = sandbox_i2c_pmic_write_data(emul, msg->addr, in sandbox_i2c_pmic_xfer()
106 static int sandbox_i2c_pmic_of_to_plat(struct udevice *emul) in sandbox_i2c_pmic_of_to_plat() argument
108 struct sandbox_i2c_pmic_plat_data *plat = dev_get_plat(emul); in sandbox_i2c_pmic_of_to_plat()
109 struct udevice *pmic_dev = i2c_emul_get_device(emul); in sandbox_i2c_pmic_of_to_plat()
117 static int sandbox_i2c_pmic_probe(struct udevice *emul) in sandbox_i2c_pmic_probe() argument
119 struct sandbox_i2c_pmic_plat_data *plat = dev_get_plat(emul); in sandbox_i2c_pmic_probe()
120 struct udevice *pmic_dev = i2c_emul_get_device(emul); in sandbox_i2c_pmic_probe()
134 reg_defaults = dev_read_u8_array_ptr(emul, "reg-defaults", in sandbox_i2c_pmic_probe()
139 emul->name); in sandbox_i2c_pmic_probe()