Lines Matching refs:sig_idx
799 uint8_t reg_idx, bitmask, sig_idx, val = 0, vw_tbl_size; in espi_npcx_send_vwire() local
821 for (sig_idx = 0; sig_idx < vw_tbl_size; sig_idx++) { in espi_npcx_send_vwire()
822 if (vw_tbl[sig_idx].sig == signal) { in espi_npcx_send_vwire()
827 if (sig_idx == vw_tbl_size) { in espi_npcx_send_vwire()
832 reg_idx = vw_tbl[sig_idx].reg_idx; in espi_npcx_send_vwire()
833 bitmask = vw_tbl[sig_idx].bitmask; in espi_npcx_send_vwire()
865 uint8_t reg_idx, bitmask, sig_idx, val; in espi_npcx_receive_vwire() local
868 for (sig_idx = 0; sig_idx < ARRAY_SIZE(vw_in_tbl); sig_idx++) { in espi_npcx_receive_vwire()
869 if (vw_in_tbl[sig_idx].sig == signal) { in espi_npcx_receive_vwire()
870 reg_idx = vw_in_tbl[sig_idx].reg_idx; in espi_npcx_receive_vwire()
871 bitmask = vw_in_tbl[sig_idx].bitmask; in espi_npcx_receive_vwire()
887 for (sig_idx = 0; sig_idx < ARRAY_SIZE(vw_out_tbl); sig_idx++) { in espi_npcx_receive_vwire()
888 if (vw_out_tbl[sig_idx].sig == signal) { in espi_npcx_receive_vwire()
889 reg_idx = vw_out_tbl[sig_idx].reg_idx; in espi_npcx_receive_vwire()
890 bitmask = vw_out_tbl[sig_idx].bitmask; in espi_npcx_receive_vwire()