Lines Matching refs:MSTATUS
322 if (WAIT_FOR(IS_BIT_SET(inst->MSTATUS, bit_offset), NPCX_I3C_CHK_TIMEOUT_US, NULL) == in npcx_i3c_status_wait_clear()
327 inst->MSTATUS = BIT(bit_offset); /* W1C */ in npcx_i3c_status_wait_clear()
334 return GET_FIELD(inst->MSTATUS, NPCX_I3C_MSTATUS_STATE); in npcx_i3c_state_get()
374 if (IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_ERRWARN)) { in npcx_i3c_has_error()
375 LOG_ERR("ERROR: MSTATUS 0x%08x MERRWARN 0x%08x", inst->MSTATUS, inst->MERRWARN); in npcx_i3c_has_error()
387 inst->MSTATUS = mask; in npcx_i3c_status_clear_all()
680 while (IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_TGTSTART)) { in npcx_i3c_recover_bus()
681 inst->MSTATUS = BIT(NPCX_I3C_MSTATUS_TGTSTART); /* W1C */ in npcx_i3c_recover_bus()
686 if (WAIT_FOR(IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_COMPLETE), in npcx_i3c_recover_bus()
692 while (IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_RXPEND)) { in npcx_i3c_recover_bus()
783 if (IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_COMPLETE)) { in npcx_i3c_xfer_read_fifo()
800 if (IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_RXPEND)) { in npcx_i3c_xfer_read_fifo()
1077 if (WAIT_FOR(IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_COMPLETE), in npcx_i3c_do_one_xfer()
1087 inst->MSTATUS = BIT(NPCX_I3C_MSTATUS_COMPLETE); /* W1C */ in npcx_i3c_do_one_xfer()
1371 IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_BETWEEN)) { in npcx_i3c_do_daa()
1437 if (IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_NACKED)) { in npcx_i3c_do_daa()
1455 } while ((!IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_COMPLETE)) && in npcx_i3c_do_daa()
1555 if (WAIT_FOR(IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_COMPLETE), NPCX_I3C_CHK_TIMEOUT_US, in npcx_i3c_do_ccc()
1562 inst->MSTATUS = BIT(NPCX_I3C_MSTATUS_COMPLETE); /* W1C */ in npcx_i3c_do_ccc()
1628 LOG_ERR("%s: MSTATUS 0x%08x MERRWARN 0x%08x", __func__, inst->MSTATUS, in npcx_i3c_ibi_work()
1639 if (WAIT_FOR(IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_IBIWON), NPCX_I3C_CHK_TIMEOUT_US, in npcx_i3c_ibi_work()
1642 LOG_ERR("%s: MSTATUS 0x%08x MERRWARN 0x%08x", __func__, inst->MSTATUS, in npcx_i3c_ibi_work()
1649 ibitype = GET_FIELD(inst->MSTATUS, NPCX_I3C_MSTATUS_IBITYPE); in npcx_i3c_ibi_work()
1650 ibiaddr = GET_FIELD(inst->MSTATUS, NPCX_I3C_MSTATUS_IBIADDR); in npcx_i3c_ibi_work()
2817 inst->MSTATUS = BIT(NPCX_I3C_MSTATUS_NOWCNTLR); /* W1C */ in npcx_i3c_target_isr()
2836 if (IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_COMPLETE)) { in npcx_i3c_isr()
2837 inst->MSTATUS = BIT(NPCX_I3C_MSTATUS_COMPLETE); /* W1C */ in npcx_i3c_isr()
2862 if (IS_BIT_SET(inst->MSTATUS, NPCX_I3C_MSTATUS_TGTSTART)) { in npcx_i3c_isr()
2868 inst->MSTATUS = BIT(NPCX_I3C_MSTATUS_TGTSTART); in npcx_i3c_isr()