Lines Matching refs:signal
220 enum espi_vwire_signal signal, uint8_t *level);
222 enum espi_vwire_signal signal, uint8_t level);
559 enum espi_vwire_signal signal) in espi_vw_notify_system_state() argument
565 espi_npcx_receive_vwire(dev, signal, &wire); in espi_vw_notify_system_state()
567 data->sx_state = signal; in espi_vw_notify_system_state()
570 evt.evt_details = signal; in espi_vw_notify_system_state()
576 enum espi_vwire_signal signal) in espi_vw_notify_host_warning() argument
580 espi_npcx_receive_vwire(dev, signal, &wire); in espi_vw_notify_host_warning()
583 switch (signal) { in espi_vw_notify_host_warning()
650 enum espi_vwire_signal signal; in espi_vw_generic_isr() local
667 signal = vw_in_tbl[idx].sig; in espi_vw_generic_isr()
668 if (signal == ESPI_VWIRE_SIGNAL_SLP_S3 in espi_vw_generic_isr()
669 || signal == ESPI_VWIRE_SIGNAL_SLP_S4 in espi_vw_generic_isr()
670 || signal == ESPI_VWIRE_SIGNAL_SLP_S5 in espi_vw_generic_isr()
671 || signal == ESPI_VWIRE_SIGNAL_SLP_A) { in espi_vw_generic_isr()
672 espi_vw_notify_system_state(dev, signal); in espi_vw_generic_isr()
674 } else if (signal == ESPI_VWIRE_SIGNAL_HOST_RST_WARN in espi_vw_generic_isr()
675 || signal == ESPI_VWIRE_SIGNAL_SUS_WARN in espi_vw_generic_isr()
676 || signal == ESPI_VWIRE_SIGNAL_OOB_RST_WARN in espi_vw_generic_isr()
677 || signal == ESPI_VWIRE_SIGNAL_DNX_WARN) { in espi_vw_generic_isr()
679 } else if (signal == ESPI_VWIRE_SIGNAL_HOST_RST_WARN in espi_vw_generic_isr()
680 || signal == ESPI_VWIRE_SIGNAL_SUS_WARN in espi_vw_generic_isr()
681 || signal == ESPI_VWIRE_SIGNAL_OOB_RST_WARN) { in espi_vw_generic_isr()
683 espi_vw_notify_host_warning(dev, signal); in espi_vw_generic_isr()
684 } else if (signal == ESPI_VWIRE_SIGNAL_PLTRST) { in espi_vw_generic_isr()
797 enum espi_vwire_signal signal, uint8_t level) in espi_npcx_send_vwire() argument
805 if (signal >= ESPI_VWIRE_SIGNAL_COUNT) { in espi_npcx_send_vwire()
806 LOG_ERR("Invalid VW: %d", signal); in espi_npcx_send_vwire()
810 if (signal >= ESPI_VWIRE_SIGNAL_TARGET_GPIO_0) { in espi_npcx_send_vwire()
822 if (vw_tbl[sig_idx].sig == signal) { in espi_npcx_send_vwire()
828 LOG_ERR("%s signal %d is invalid", __func__, signal); in espi_npcx_send_vwire()
836 if (signal >= ESPI_VWIRE_SIGNAL_TARGET_GPIO_0) { in espi_npcx_send_vwire()
848 if (signal >= ESPI_VWIRE_SIGNAL_TARGET_GPIO_0) { in espi_npcx_send_vwire()
862 enum espi_vwire_signal signal, uint8_t *level) in espi_npcx_receive_vwire() argument
869 if (vw_in_tbl[sig_idx].sig == signal) { in espi_npcx_receive_vwire()
888 if (vw_out_tbl[sig_idx].sig == signal) { in espi_npcx_receive_vwire()
905 LOG_ERR("%s Out of index %d", __func__, signal); in espi_npcx_receive_vwire()