Lines Matching refs:emul
10 LOG_MODULE_REGISTER(emul);
17 const struct emul *emul_get_binding(const char *name) in emul_get_binding()
19 STRUCT_SECTION_FOREACH(emul, emul_it) { in emul_get_binding()
41 const struct emul *emul = emul_get_binding(elp->dev->name); in emul_init_for_bus() local
43 if (!emul) { in emul_init_for_bus()
48 switch (emul->bus_type) { in emul_init_for_bus()
50 emul->bus.i2c->target = emul; in emul_init_for_bus()
53 emul->bus.espi->target = emul; in emul_init_for_bus()
56 emul->bus.spi->target = emul; in emul_init_for_bus()
59 emul->bus.mspi->target = emul; in emul_init_for_bus()
62 emul->bus.uart->target = emul; in emul_init_for_bus()
67 int rc = emul->init(emul, dev); in emul_init_for_bus()
74 switch (emul->bus_type) { in emul_init_for_bus()
77 rc = i2c_emul_register(dev, emul->bus.i2c); in emul_init_for_bus()
82 rc = espi_emul_register(dev, emul->bus.espi); in emul_init_for_bus()
87 rc = spi_emul_register(dev, emul->bus.spi); in emul_init_for_bus()
92 rc = mspi_emul_register(dev, emul->bus.mspi); in emul_init_for_bus()
97 rc = uart_emul_register(dev, emul->bus.uart); in emul_init_for_bus()