/openbmc/u-boot/test/dm/ |
H A D | rtc.c | 58 struct udevice *dev, *emul; in dm_test_rtc_set_get() local 64 ut_assertok(i2c_emul_find(dev, &emul)); in dm_test_rtc_set_get() 65 ut_assert(emul != NULL); in dm_test_rtc_set_get() 68 old_offset = sandbox_i2c_rtc_set_offset(emul, false, 0); in dm_test_rtc_set_get() 69 old_base_time = sandbox_i2c_rtc_get_set_base_time(emul, -1); in dm_test_rtc_set_get() 85 offset = sandbox_i2c_rtc_set_offset(emul, false, 0); in dm_test_rtc_set_get() 86 sandbox_i2c_rtc_set_offset(emul, false, offset + 1); in dm_test_rtc_set_get() 93 sandbox_i2c_rtc_set_offset(emul, false, old_offset); in dm_test_rtc_set_get() 98 sandbox_i2c_rtc_set_offset(emul, false, 0); in dm_test_rtc_set_get() 104 sandbox_i2c_rtc_get_set_base_time(emul, old_base_time + 1); in dm_test_rtc_set_get() [all …]
|
H A D | sf.c | 22 struct udevice *dev, *emul; in dm_test_spi_flash() local 50 ut_assertok(uclass_first_device_err(UCLASS_SPI_EMUL, &emul)); in dm_test_spi_flash() 52 sandbox_sf_set_block_protect(emul, 1); in dm_test_spi_flash() 54 sandbox_sf_set_block_protect(emul, 0); in dm_test_spi_flash()
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | usb-sandbox.c | 17 struct devrequest *setup, struct udevice *emul) in usbmon_trace() argument 33 debug(" %s", emul ? emul->name : "(no emul found)"); in usbmon_trace() 45 struct udevice *emul; in sandbox_submit_control() local 50 ret = usb_emul_find(bus, pipe, udev->portnr, &emul); in sandbox_submit_control() 51 usbmon_trace(bus, pipe, setup, emul); in sandbox_submit_control() 62 ret = usb_emul_control(emul, udev, pipe, buffer, length, setup); in sandbox_submit_control() 78 struct udevice *emul; in sandbox_submit_bulk() local 83 ret = usb_emul_find(bus, pipe, udev->portnr, &emul); in sandbox_submit_bulk() 84 usbmon_trace(bus, pipe, NULL, emul); in sandbox_submit_bulk() 87 ret = usb_emul_bulk(emul, udev, pipe, buffer, length); in sandbox_submit_bulk() [all …]
|
/openbmc/u-boot/drivers/power/pmic/ |
H A D | i2c_pmic_emul.c | 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 = i2c_emul_get_device(emul); in sandbox_i2c_pmic_ofdata_to_platdata() [all …]
|
/openbmc/u-boot/drivers/usb/emul/ |
H A D | usb-emul-uclass.c | 176 int usb_emul_control(struct udevice *emul, struct usb_device *udev, in usb_emul_control() argument 180 struct dm_usb_ops *ops = usb_get_emul_ops(emul); in usb_emul_control() 185 plat = dev_get_parent_platdata(emul); in usb_emul_control() 188 debug("%s: dev=%s\n", __func__, emul->name); in usb_emul_control() 196 ret = device_probe(emul); in usb_emul_control() 199 return ops->control(emul, udev, pipe, buffer, length, in usb_emul_control() 205 debug(" ** set address %s %d\n", emul->name, in usb_emul_control() 219 ret = device_probe(emul); in usb_emul_control() 222 return ops->control(emul, udev, pipe, buffer, length, in usb_emul_control() 231 int usb_emul_bulk(struct udevice *emul, struct usb_device *udev, in usb_emul_bulk() argument [all …]
|
/openbmc/u-boot/drivers/axi/ |
H A D | axi_sandbox.c | 28 struct udevice *emul; in axi_sandbox_read() local 32 ret = axi_sandbox_get_emul(bus, address, size, &emul); in axi_sandbox_read() 36 ops = axi_emul_get_ops(emul); in axi_sandbox_read() 40 return ops->read(emul, address, data, size); in axi_sandbox_read() 47 struct udevice *emul; in axi_sandbox_write() local 51 ret = axi_sandbox_get_emul(bus, address, size, &emul); in axi_sandbox_write() 55 ops = axi_emul_get_ops(emul); in axi_sandbox_write() 59 return ops->write(emul, address, data, size); in axi_sandbox_write()
|
/openbmc/u-boot/drivers/i2c/ |
H A D | i2c-emul-uclass.c | 37 struct udevice *i2c_emul_get_device(struct udevice *emul) in i2c_emul_get_device() argument 39 struct i2c_emul_uc_platdata *uc_plat = dev_get_uclass_platdata(emul); in i2c_emul_get_device() 47 struct udevice *emul; in i2c_emul_find() local 51 "sandbox,emul", &emul); in i2c_emul_find() 56 uc_plat = dev_get_uclass_platdata(emul); in i2c_emul_find() 58 *emulp = emul; in i2c_emul_find() 60 return device_probe(emul); in i2c_emul_find()
|
H A D | sandbox_i2c.c | 29 if (!plat->emul) { in get_emul() 30 ret = i2c_emul_find(dev, &plat->emul); in get_emul() 34 *devp = plat->emul; in get_emul() 35 *opsp = i2c_get_ops(plat->emul); in get_emul() 53 struct udevice *emul, *dev; in sandbox_i2c_xfer() local 65 ret = get_emul(dev, &emul, &ops); in sandbox_i2c_xfer() 81 return ops->xfer(emul, msg, nmsgs); in sandbox_i2c_xfer()
|
/openbmc/u-boot/drivers/rtc/ |
H A D | i2c_rtc_emul.c | 122 static int sandbox_i2c_rtc_prepare_read(struct udevice *emul) in sandbox_i2c_rtc_prepare_read() argument 124 struct sandbox_i2c_rtc_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_rtc_prepare_read() 128 ret = sandbox_i2c_rtc_get(emul, &time); in sandbox_i2c_rtc_prepare_read() 143 static int sandbox_i2c_rtc_complete_write(struct udevice *emul) in sandbox_i2c_rtc_complete_write() argument 145 struct sandbox_i2c_rtc_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_rtc_complete_write() 157 ret = sandbox_i2c_rtc_set(emul, &time); in sandbox_i2c_rtc_complete_write() 164 static int sandbox_i2c_rtc_xfer(struct udevice *emul, struct i2c_msg *msg, in sandbox_i2c_rtc_xfer() argument 167 struct sandbox_i2c_rtc_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_rtc_xfer() 172 ret = sandbox_i2c_rtc_prepare_read(emul); in sandbox_i2c_rtc_xfer() 200 reset_time(emul); in sandbox_i2c_rtc_xfer() [all …]
|
/openbmc/u-boot/drivers/pci/ |
H A D | pci_sandbox.c | 29 struct udevice *container, *emul; in sandbox_pci_write_config() local 32 ret = sandbox_pci_get_emul(bus, devfn, &container, &emul); in sandbox_pci_write_config() 35 ops = pci_get_emul_ops(emul); in sandbox_pci_write_config() 39 return ops->write_config(emul, offset, value, size); in sandbox_pci_write_config() 47 struct udevice *container, *emul; in sandbox_pci_read_config() local 53 ret = sandbox_pci_get_emul(bus, devfn, &container, &emul); in sandbox_pci_read_config() 72 ops = pci_get_emul_ops(emul); in sandbox_pci_read_config() 76 return ops->read_config(emul, offset, valuep, size); in sandbox_pci_read_config()
|
/openbmc/u-boot/arch/mips/ |
H A D | config.mk | 7 32bit-emul := elf32btsmip 8 64bit-emul := elf64btsmip 16 32bit-emul := elf32ltsmip 17 64bit-emul := elf64ltsmip 26 PLATFORM_LDFLAGS += -m $(32bit-emul) 33 PLATFORM_LDFLAGS += -m$(64bit-emul)
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/ |
H A D | 0006-FF-A-v15-arm_ffa-introduce-sandbox-FF-A-support.patch | 31 drivers/firmware/arm-ffa/ffa-emul-uclass.c | 720 ++++++++++++++++++ 38 create mode 100644 drivers/firmware/arm-ffa/ffa-emul-uclass.c 70 + arm-ffa-emul { 71 + compatible = "sandbox,arm-ffa-emul"; 90 + arm-ffa-emul { 91 + compatible = "sandbox,arm-ffa-emul"; 299 + * @emulp: the FF-A emulator device (sandbox-ffa-emul) 373 + ffa_emul 0 [ + ] sandbox_ffa_emul `-- arm-ffa-emul 415 + the Secure World and provides FF-A ABIs inspection methods (ffa-emul-uclass.c). 433 +obj-y += ffa-emul-uclass.o sandbox_ffa.o [all …]
|
/openbmc/u-boot/arch/riscv/ |
H A D | config.mk | 13 32bit-emul := elf32lriscv 14 64bit-emul := elf64lriscv 17 PLATFORM_LDFLAGS += -m $(32bit-emul) 22 PLATFORM_LDFLAGS += -m $(64bit-emul)
|
/openbmc/u-boot/drivers/spi/ |
H A D | sandbox_spi.c | 58 struct udevice *emul; in sandbox_spi_xfer() local 81 ret = sandbox_spi_get_emul(state, bus, slave, &emul); in sandbox_spi_xfer() 87 ret = device_probe(emul); in sandbox_spi_xfer() 91 ops = spi_emul_get_ops(emul); in sandbox_spi_xfer() 92 ret = ops->xfer(emul, bitlen, dout, din, flags); in sandbox_spi_xfer()
|
/openbmc/u-boot/drivers/misc/ |
H A D | swap_case.c | 64 static int sandbox_swap_case_read_config(struct udevice *emul, uint offset, in sandbox_swap_case_read_config() argument 67 struct swap_case_platdata *plat = dev_get_platdata(emul); in sandbox_swap_case_read_config() 156 static int sandbox_swap_case_write_config(struct udevice *emul, uint offset, in sandbox_swap_case_write_config() argument 159 struct swap_case_platdata *plat = dev_get_platdata(emul); in sandbox_swap_case_write_config() 184 static int sandbox_swap_case_find_bar(struct udevice *emul, unsigned int addr, in sandbox_swap_case_find_bar() argument 187 struct swap_case_platdata *plat = dev_get_platdata(emul); in sandbox_swap_case_find_bar()
|
H A D | i2c_eeprom_emul.c | 47 static int sandbox_i2c_eeprom_xfer(struct udevice *emul, struct i2c_msg *msg, in sandbox_i2c_eeprom_xfer() argument 50 struct sandbox_i2c_flash *priv = dev_get_priv(emul); in sandbox_i2c_eeprom_xfer() 57 dev_get_platdata(emul); in sandbox_i2c_eeprom_xfer()
|
/openbmc/u-boot/drivers/mtd/spi/ |
H A D | sandbox.c | 131 struct udevice *emul; in sandbox_sf_probe() local 136 ret = sandbox_spi_get_emul(state, bus, dev, &emul); in sandbox_sf_probe() 525 struct udevice *emul; in sandbox_sf_bind_emul() local 542 ret = device_bind_ofnode(bus, drv, str, NULL, node, &emul); in sandbox_sf_bind_emul() 549 state->spi[busnum][cs].emul = emul; in sandbox_sf_bind_emul() 558 dev = state->spi[busnum][cs].emul; in sandbox_sf_unbind_emul() 561 state->spi[busnum][cs].emul = NULL; in sandbox_sf_unbind_emul() 574 if (!info->emul) { in sandbox_spi_get_emul() 586 *emulp = info->emul; in sandbox_spi_get_emul()
|
/openbmc/u-boot/arch/sandbox/dts/ |
H A D | sandbox64.dts | 93 sandbox,emul = <&emul_eeprom>; 99 sandbox,emul = <&emul0>; 109 i2c_emul: emul { 111 compatible = "sandbox,i2c-emul-parent"; 112 emul_eeprom: emul-eeprom { 154 emul@1f,0 { 283 hub-emul {
|
H A D | sandbox.dts | 103 sandbox,emul = <&emul_eeprom>; 109 sandbox,emul = <&emul0>; 119 i2c_emul: emul { 121 compatible = "sandbox,i2c-emul-parent"; 122 emul_eeprom: emul-eeprom { 169 emul@1f,0 { 320 hub-emul {
|
H A D | test.dts | 284 sandbox,emul = <&emul_eeprom>; 298 sandbox,emul = <&emul0>; 304 sandbox,emul = <&emul1>; 307 i2c_emul: emul { 309 compatible = "sandbox,i2c-emul-parent"; 310 emul_eeprom: emul-eeprom { 325 sandbox,emul = <&emul_pmic0>; 330 sandbox,emul = <&emul_pmic1>; 458 emul@0,0 { 465 emul@1f,0 { [all …]
|
/openbmc/linux/arch/loongarch/ |
H A D | Makefile | 25 32bit-emul = elf32loongarch 26 64bit-emul = elf64loongarch 45 ld-emul = $(64bit-emul) 117 KBUILD_LDFLAGS += -m $(ld-emul)
|
/openbmc/qemu/docs/specs/ |
H A D | ppc-spapr-xive.rst | 85 dual (default) XIVE KVM XIVE emul. XIVE KVM 86 xive XIVE KVM XIVE emul. XIVE KVM 87 xics XICS KVM XICS emul. XICS KVM 99 dual (default) XICS KVM XICS emul. XICS KVM 101 xics XICS KVM XICS emul. XICS KVM 121 dual (default) XIVE emul.(1) XIVE emul. QEMU error (2) 122 xive XIVE emul.(1) XIVE emul. QEMU error (2) 123 xics XICS KVM XICS emul. XICS KVM 145 dual (default) QEMU error(4) XICS emul. QEMU error(4) 147 xics XICS KVM XICS emul. XICS KVM
|
/openbmc/linux/arch/mips/math-emu/ |
H A D | dsemul.c | 64 mips_instruction emul; member 192 if (msk_isa16_mode(regs->cp0_epc) == (unsigned long)&fr->emul) in dsemul_thread_rollback() 264 fr.emul = _emul.word; in mips_dsemul() 267 fr.emul = ir; in mips_dsemul()
|
/openbmc/linux/arch/mips/ |
H A D | Makefile | 32 32bit-emul = elf32ltsmip 33 64bit-emul = elf64ltsmip 39 32bit-emul = elf32btsmip 40 64bit-emul = elf64btsmip 68 ld-emul = $(32bit-emul) 76 ld-emul = $(64bit-emul) 346 KBUILD_LDFLAGS += -m $(ld-emul)
|
/openbmc/linux/sound/core/seq/ |
H A D | Makefile | 13 snd-seq-midi-emul-objs := seq_midi_emul.o 25 obj-$(CONFIG_SND_SEQ_MIDI_EMUL) += snd-seq-midi-emul.o
|