Home
last modified time | relevance | path

Searched refs:espi_dev (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/tests/drivers/espi/src/
Dtest_acpi.c13 const struct device *const espi_dev = DEVICE_DT_GET(DT_NODELABEL(espi0)); in ZTEST() local
19 zassert_true(device_is_ready(espi_dev), "Device is not ready"); in ZTEST()
21 zassert_ok(espi_config(espi_dev, &cfg)); in ZTEST()
23 host_shm = emul_espi_host_get_acpi_shm(espi_dev); in ZTEST()
26 zassert_ok(espi_read_lpc_request(espi_dev, EACPI_GET_SHARED_MEMORY, in ZTEST()
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/
Dec_host_cmd_backend_espi.c34 const struct device *espi_dev; member
102 if (!device_is_ready(hc_espi->espi_dev)) { in ec_host_cmd_espi_init()
110 espi_add_callback(hc_espi->espi_dev, &hc_espi->espi_cb); in ec_host_cmd_espi_init()
112 espi_read_lpc_request(hc_espi->espi_dev, ECUSTOM_HOST_CMD_GET_PARAM_MEMORY, in ec_host_cmd_espi_init()
114 espi_read_lpc_request(hc_espi->espi_dev, ECUSTOM_HOST_CMD_GET_PARAM_MEMORY_SIZE, in ec_host_cmd_espi_init()
141 ret = espi_write_lpc_request(hc_espi->espi_dev, ECUSTOM_HOST_CMD_SEND_RESULT, &result); in ec_host_cmd_espi_send()
155 ((struct ec_host_cmd_espi_ctx *)(ec_host_cmd_espi.ctx))->espi_dev = dev; in ec_host_cmd_backend_get_espi()
/Zephyr-latest/subsys/emul/espi/
Demul_espi_host.c163 int emul_espi_host_send_vw(const struct device *espi_dev, enum espi_vwire_signal vw, in emul_espi_host_send_vw() argument
172 api = (struct emul_espi_driver_api *)espi_dev->api; in emul_espi_host_send_vw()
178 emul_espi = api->find_emul(espi_dev, EMUL_ESPI_HOST_CHIPSEL); in emul_espi_host_send_vw()
193 api->trigger_event(espi_dev, &evt); in emul_espi_host_send_vw()
198 int emul_espi_host_port80_write(const struct device *espi_dev, uint32_t data) in emul_espi_host_port80_write() argument
203 api = (struct emul_espi_driver_api *)espi_dev->api; in emul_espi_host_port80_write()
212 api->trigger_event(espi_dev, &evt); in emul_espi_host_port80_write()
225 uintptr_t emul_espi_host_get_acpi_shm(const struct device *espi_dev) in emul_espi_host_get_acpi_shm() argument
228 int rc = espi_read_lpc_request(espi_dev, EACPI_GET_SHARED_MEMORY, &shm); in emul_espi_host_get_acpi_shm()
/Zephyr-latest/samples/drivers/espi/src/
Dmain.c53 static const struct device *const espi_dev = DEVICE_DT_GET(DT_NODELABEL(espi0)); variable
769 espi_send_vwire(espi_dev, ESPI_VWIRE_SIGNAL_HOST_RST_ACK, status); in host_warn_handler()
776 espi_send_vwire(espi_dev, ESPI_VWIRE_SIGNAL_SUS_ACK, status); in host_warn_handler()
853 espi_remove_callback(espi_dev, &p80_cb); in periph_handler()
882 ret = espi_config(espi_dev, &cfg); in espi_init()
902 espi_add_callback(espi_dev, &espi_bus_cb); in espi_init()
903 espi_add_callback(espi_dev, &vw_rdy_cb); in espi_init()
904 espi_add_callback(espi_dev, &vw_cb); in espi_init()
905 espi_add_callback(espi_dev, &p80_cb); in espi_init()
907 espi_add_callback(espi_dev, &oob_cb); in espi_init()
[all …]
Despi_oob_handler.c42 const struct device *espi_dev; member
142 context.espi_dev = dev; in get_pch_temp_async()
184 ret = retrieve_packet(context.espi_dev, &sender); in espihub_thread()
209 request_temp(context.espi_dev); in espihub_thread()
/Zephyr-latest/include/zephyr/drivers/
Despi_emul.h152 int emul_espi_host_send_vw(const struct device *espi_dev, enum espi_vwire_signal vw, uint8_t level);
164 int emul_espi_host_port80_write(const struct device *espi_dev, uint32_t data);
174 uintptr_t emul_espi_host_get_acpi_shm(const struct device *espi_dev);