Home
last modified time | relevance | path

Searched refs:emul (Results 1 – 25 of 50) sorted by relevance

12

/external/u-boot/test/dm/
Drtc.c57 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 …]
Dpci.c37 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/
Dusb-sandbox.c17 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/
Di2c_pmic_emul.c28 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/
Dusb-emul-uclass.c176 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 …]
DMakefile9 obj-$(CONFIG_USB_EMUL) += usb-emul-uclass.o
Dsandbox_hub.c307 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/
Dpci_sandbox.c18 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()
DMakefile11 obj-$(CONFIG_SANDBOX) += pci-emul-uclass.o
/external/u-boot/drivers/rtc/
Di2c_rtc_emul.c120 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/
Dsandbox_i2c.c30 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()
DMakefile33 obj-$(CONFIG_SYS_I2C_SANDBOX) += sandbox_i2c.o i2c-emul-uclass.o
/external/u-boot/arch/mips/
Dconfig.mk7 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/
Dconfig.mk17 32bit-emul := elf32lriscv
18 64bit-emul := elf64lriscv
21 PLATFORM_LDFLAGS += -m $(32bit-emul)
26 PLATFORM_LDFLAGS += -m $(64bit-emul)
/external/u-boot/drivers/spi/
Dsandbox_spi.c56 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()
DMakefile9 obj-$(CONFIG_SANDBOX) += spi-emul-uclass.o
/external/u-boot/drivers/misc/
Dswap_case.c64 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()
Di2c_eeprom_emul.c47 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/
Dsandbox.c125 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/
Dsandbox.txt16 Required PMIC's "emul" subnode, with property:
32 emul {
/external/u-boot/arch/sandbox/dts/
Dsandbox.dts101 emul {
111 emul {
155 emul@1f,0 {
284 hub-emul {
Dsandbox64.dts101 emul {
111 emul {
155 emul@1f,0 {
284 hub-emul {
Dtest.dts204 emul {
214 emul {
222 emul {
308 emul@1f,0 {
453 hub-emul {
/external/u-boot/arch/sandbox/include/asm/
Dstate.h39 struct udevice *emul; member
/external/u-boot/include/
Dusb.h1008 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,

12