Lines Matching refs:espi_dev
53 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()
945 static int wait_for_vwire(const struct device *espi_dev, enum espi_vwire_signal signal, in wait_for_vwire() argument
953 ret = espi_receive_vwire(espi_dev, signal, &level); in wait_for_vwire()
999 ret = wait_for_vwire(espi_dev, ESPI_VWIRE_SIGNAL_SUS_WARN, CONFIG_ESPI_VIRTUAL_WIRE_TIMEOUT, in espi_handshake()
1007 ret = wait_for_vwire(espi_dev, ESPI_VWIRE_SIGNAL_SLP_S5, CONFIG_ESPI_VIRTUAL_WIRE_TIMEOUT, in espi_handshake()
1014 ret = wait_for_vwire(espi_dev, ESPI_VWIRE_SIGNAL_SLP_S4, CONFIG_ESPI_VIRTUAL_WIRE_TIMEOUT, in espi_handshake()
1021 ret = wait_for_vwire(espi_dev, ESPI_VWIRE_SIGNAL_SLP_S3, CONFIG_ESPI_VIRTUAL_WIRE_TIMEOUT, in espi_handshake()
1030 ret = wait_for_vwire(espi_dev, ESPI_VWIRE_SIGNAL_PLTRST, CONFIG_ESPI_VIRTUAL_WIRE_TIMEOUT, in espi_handshake()
1056 ret = espi_read_flash(espi_dev, &pckt); in read_test_block()
1084 ret = espi_write_flash(espi_dev, &pckt); in write_test_block()
1154 ret = espi_receive_vwire(espi_dev, ESPI_VWIRE_SIGNAL_TARGET_BOOT_DONE, &boot_done); in send_target_bootdone()
1160 espi_send_vwire(espi_dev, ESPI_VWIRE_SIGNAL_TARGET_BOOT_STS, 1); in send_target_bootdone()
1161 espi_send_vwire(espi_dev, ESPI_VWIRE_SIGNAL_TARGET_BOOT_DONE, 1); in send_target_bootdone()
1185 if (!device_is_ready(espi_dev)) { in espi_test()
1186 LOG_ERR("%s: device not ready.", espi_dev->name); in espi_test()
1284 vw_ch_sts = espi_get_channel_status(espi_dev, ESPI_CHANNEL_VWIRE); in espi_test()
1300 flash_sts = espi_get_channel_status(espi_dev, ESPI_CHANNEL_FLASH); in espi_test()
1323 get_pch_temp_sync(espi_dev); in espi_test()
1326 get_pch_temp_async(espi_dev); in espi_test()
1331 espi_remove_callback(espi_dev, &espi_bus_cb); in espi_test()
1332 espi_remove_callback(espi_dev, &vw_rdy_cb); in espi_test()
1333 espi_remove_callback(espi_dev, &vw_cb); in espi_test()