/external/u-boot/test/dm/ |
D | rtc.c | 57 struct udevice *dev, *emul; in dm_test_rtc_set_get() local 63 ut_assertok(device_find_first_child(dev, &emul)); in dm_test_rtc_set_get() 64 ut_assert(emul != NULL); in dm_test_rtc_set_get() 67 old_offset = sandbox_i2c_rtc_set_offset(emul, false, 0); in dm_test_rtc_set_get() 68 old_base_time = sandbox_i2c_rtc_get_set_base_time(emul, -1); in dm_test_rtc_set_get() 84 offset = sandbox_i2c_rtc_set_offset(emul, false, 0); in dm_test_rtc_set_get() 85 sandbox_i2c_rtc_set_offset(emul, false, offset + 1); in dm_test_rtc_set_get() 92 sandbox_i2c_rtc_set_offset(emul, false, old_offset); in dm_test_rtc_set_get() 97 sandbox_i2c_rtc_set_offset(emul, false, 0); in dm_test_rtc_set_get() 103 sandbox_i2c_rtc_get_set_base_time(emul, old_base_time + 1); in dm_test_rtc_set_get() [all …]
|
D | pci.c | 37 struct udevice *emul, *swap; in dm_test_pci_swapcase() local 42 ut_assertok(uclass_get_device(UCLASS_PCI_EMUL, 0, &emul)); in dm_test_pci_swapcase()
|
/external/u-boot/drivers/usb/host/ |
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 …]
|
/external/u-boot/drivers/power/pmic/ |
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 = dev_get_parent(emul); in sandbox_i2c_pmic_ofdata_to_platdata() [all …]
|
/external/u-boot/drivers/usb/emul/ |
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 …]
|
D | Makefile | 9 obj-$(CONFIG_USB_EMUL) += usb-emul-uclass.o
|
D | sandbox_hub.c | 307 struct usb_emul_platdata *emul = dev_get_uclass_platdata(dev); in sandbox_child_post_bind() local 310 emul->port1 = plat->port + 1; in sandbox_child_post_bind()
|
/external/u-boot/drivers/pci/ |
D | pci_sandbox.c | 18 struct udevice *emul; in sandbox_pci_write_config() local 21 ret = sandbox_pci_get_emul(bus, devfn, &emul); in sandbox_pci_write_config() 24 ops = pci_get_emul_ops(emul); in sandbox_pci_write_config() 28 return ops->write_config(emul, offset, value, size); in sandbox_pci_write_config() 36 struct udevice *emul; in sandbox_pci_read_config() local 41 ret = sandbox_pci_get_emul(bus, devfn, &emul); in sandbox_pci_read_config() 44 ops = pci_get_emul_ops(emul); in sandbox_pci_read_config() 48 return ops->read_config(emul, offset, valuep, size); in sandbox_pci_read_config()
|
D | Makefile | 11 obj-$(CONFIG_SANDBOX) += pci-emul-uclass.o
|
/external/u-boot/drivers/rtc/ |
D | i2c_rtc_emul.c | 120 static int sandbox_i2c_rtc_prepare_read(struct udevice *emul) in sandbox_i2c_rtc_prepare_read() argument 122 struct sandbox_i2c_rtc_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_rtc_prepare_read() 126 ret = sandbox_i2c_rtc_get(emul, &time); in sandbox_i2c_rtc_prepare_read() 141 static int sandbox_i2c_rtc_complete_write(struct udevice *emul) in sandbox_i2c_rtc_complete_write() argument 143 struct sandbox_i2c_rtc_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_rtc_complete_write() 155 ret = sandbox_i2c_rtc_set(emul, &time); in sandbox_i2c_rtc_complete_write() 162 static int sandbox_i2c_rtc_xfer(struct udevice *emul, struct i2c_msg *msg, in sandbox_i2c_rtc_xfer() argument 165 struct sandbox_i2c_rtc_plat_data *plat = dev_get_platdata(emul); in sandbox_i2c_rtc_xfer() 170 ret = sandbox_i2c_rtc_prepare_read(emul); in sandbox_i2c_rtc_xfer() 198 reset_time(emul); in sandbox_i2c_rtc_xfer() [all …]
|
/external/u-boot/drivers/i2c/ |
D | sandbox_i2c.c | 30 if (!plat->emul) { in get_emul() 48 plat->emul = child; in get_emul() 52 *devp = plat->emul; in get_emul() 53 *opsp = i2c_get_ops(plat->emul); in get_emul() 71 struct udevice *emul, *dev; in sandbox_i2c_xfer() local 83 ret = get_emul(dev, &emul, &ops); in sandbox_i2c_xfer() 99 return ops->xfer(emul, msg, nmsgs); in sandbox_i2c_xfer()
|
D | Makefile | 33 obj-$(CONFIG_SYS_I2C_SANDBOX) += sandbox_i2c.o i2c-emul-uclass.o
|
/external/u-boot/arch/mips/ |
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) 32 PLATFORM_LDFLAGS += -m$(64bit-emul)
|
/external/u-boot/arch/riscv/ |
D | config.mk | 17 32bit-emul := elf32lriscv 18 64bit-emul := elf64lriscv 21 PLATFORM_LDFLAGS += -m $(32bit-emul) 26 PLATFORM_LDFLAGS += -m $(64bit-emul)
|
/external/u-boot/drivers/spi/ |
D | sandbox_spi.c | 56 struct udevice *emul; in sandbox_spi_xfer() local 80 ret = sandbox_spi_get_emul(state, bus, slave, &emul); in sandbox_spi_xfer() 86 ret = device_probe(emul); in sandbox_spi_xfer() 108 ops = spi_emul_get_ops(emul); in sandbox_spi_xfer() 109 ret = ops->xfer(emul, bitlen, dout, din, flags); in sandbox_spi_xfer()
|
D | Makefile | 9 obj-$(CONFIG_SANDBOX) += spi-emul-uclass.o
|
/external/u-boot/drivers/misc/ |
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() 126 static int sandbox_swap_case_write_config(struct udevice *emul, uint offset, in sandbox_swap_case_write_config() argument 129 struct swap_case_platdata *plat = dev_get_platdata(emul); in sandbox_swap_case_write_config() 152 static int sandbox_swap_case_find_bar(struct udevice *emul, unsigned int addr, in sandbox_swap_case_find_bar() argument 155 struct swap_case_platdata *plat = dev_get_platdata(emul); in sandbox_swap_case_find_bar()
|
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()
|
/external/u-boot/drivers/mtd/spi/ |
D | sandbox.c | 125 if (state->spi[bus->seq][i].emul == dev) in sandbox_sf_probe() 561 struct udevice *emul; in sandbox_sf_bind_emul() local 578 ret = device_bind(bus, drv, str, NULL, of_offset, &emul); in sandbox_sf_bind_emul() 585 state->spi[busnum][cs].emul = emul; in sandbox_sf_bind_emul() 594 dev = state->spi[busnum][cs].emul; in sandbox_sf_unbind_emul() 597 state->spi[busnum][cs].emul = NULL; in sandbox_sf_unbind_emul() 636 if (!info->emul) { in sandbox_spi_get_emul() 648 *emulp = info->emul; in sandbox_spi_get_emul()
|
/external/u-boot/doc/device-tree-bindings/pmic/ |
D | sandbox.txt | 16 Required PMIC's "emul" subnode, with property: 32 emul {
|
/external/u-boot/arch/sandbox/dts/ |
D | sandbox.dts | 101 emul { 111 emul { 155 emul@1f,0 { 284 hub-emul {
|
D | sandbox64.dts | 101 emul { 111 emul { 155 emul@1f,0 { 284 hub-emul {
|
D | test.dts | 204 emul { 214 emul { 222 emul { 308 emul@1f,0 { 453 hub-emul {
|
/external/u-boot/arch/sandbox/include/asm/ |
D | state.h | 39 struct udevice *emul; member
|
/external/u-boot/include/ |
D | usb.h | 1008 int usb_emul_control(struct udevice *emul, struct usb_device *udev, 1020 int usb_emul_bulk(struct udevice *emul, struct usb_device *udev, 1031 int usb_emul_int(struct udevice *emul, struct usb_device *udev,
|