Lines Matching refs:MEC_BIT
47 bitmap |= MEC_BIT(MEC5_ESPI_OOB_UP_GIRQ_POS); in msk_to_girq_bitmap()
50 bitmap |= MEC_BIT(MEC5_ESPI_OOB_DN_GIRQ_POS); in msk_to_girq_bitmap()
60 if (bitmap & MEC_BIT(MEC5_ESPI_OOB_UP_GIRQ_POS)) { in bitmap_to_msk()
63 if (bitmap & MEC_BIT(MEC5_ESPI_OOB_DN_GIRQ_POS)) { in bitmap_to_msk()
102 iobase->OOBRDY = MEC_BIT(MEC_ESPI_IO_OOBRDY_OOB_READY_Pos); in mec_hal_espi_oob_ready_set()
107 if (iobase->OOBRDY & MEC_BIT(MEC_ESPI_IO_OOBRDY_OOB_READY_Pos)) { in mec_hal_espi_oob_is_ready()
121 uint32_t en = txsts & MEC_BIT(MEC_ESPI_IO_OOBTXSTS_CHEN_CHG_Pos); /* bit[1] */ in mec_hal_espi_oob_en_status()
123 if (txsts & MEC_BIT(MEC_ESPI_IO_OOBTXSTS_CHEN_STATE_Pos)) { in mec_hal_espi_oob_en_status()
124 en |= MEC_BIT(MEC_ESPI_CHAN_ENABLED_POS); in mec_hal_espi_oob_en_status()
204 iobase->OOBRXC |= MEC_BIT(MEC_ESPI_IO_OOBRXC_RX_AVAIL_Pos); in mec_hal_espi_oob_rx_buffer_avail()
214 if (msk & MEC_BIT(MEC_ESPI_OOB_DN_INTR_DONE_POS)) { in mec_hal_espi_oob_intr_ctrl()
216 iobase->OOBRXIEN |= MEC_BIT(MEC_ESPI_IO_OOBRXIEN_DONE_Pos); in mec_hal_espi_oob_intr_ctrl()
218 iobase->OOBRXIEN &= (uint32_t)~MEC_BIT(MEC_ESPI_IO_OOBRXIEN_DONE_Pos); in mec_hal_espi_oob_intr_ctrl()
222 if (msk & MEC_BIT(MEC_ESPI_OOB_UP_INTR_DONE_POS)) { in mec_hal_espi_oob_intr_ctrl()
223 txien |= MEC_BIT(MEC_ESPI_IO_OOBTXIEN_DONE_Pos); in mec_hal_espi_oob_intr_ctrl()
225 if (msk & MEC_BIT(MEC_ESPI_OOB_UP_INTR_CHEN_CHG_POS)) { in mec_hal_espi_oob_intr_ctrl()
226 txien |= MEC_BIT(MEC_ESPI_IO_OOBTXIEN_CHEN_CHG_Pos); in mec_hal_espi_oob_intr_ctrl()
245 iobase->OOBTXC |= MEC_BIT(MEC_ESPI_IO_OOBTXC_START_Pos); in mec_hal_espi_oob_tx_start()
251 if (iobase->OOBTXSTS & MEC_BIT(MEC_ESPI_IO_OOBTXSTS_BUSY_Pos)) { in mec_hal_espi_oob_tx_is_busy()
295 if (status & MEC_BIT(done_pos)) { in mec_hal_espi_oob_is_done()
323 if (status & MEC_BIT(MEC_ESPI_IO_OOBTXSTS_CHEN_CHG_Pos)) { in mec_hal_espi_oob_up_is_chan_event()
324 if (status & MEC_BIT(MEC_ESPI_IO_OOBTXSTS_CHEN_STATE_Pos)) { in mec_hal_espi_oob_up_is_chan_event()
338 iobase->OOBTXSTS = MEC_BIT(MEC_ESPI_IO_OOBTXSTS_DONE_Pos); in mec_hal_espi_oob_status_clr_done()
340 iobase->OOBRXSTS = MEC_BIT(MEC_ESPI_IO_OOBRXSTS_DONE_Pos); in mec_hal_espi_oob_status_clr_done()
360 iobase->OOBTXSTS = MEC_BIT(MEC_ESPI_IO_OOBTXSTS_CHEN_CHG_Pos); in mec_hal_espi_oob_status_clr_chen_change()