Lines Matching refs:reg_base

34 	struct spip_reg *reg_base;  member
48 struct spip_reg *const reg_base = config->reg_base; in spi_npcx_spip_configure() local
85 reg_base->SPIP_CTL1 &= ~BIT(NPCX_SPIP_CTL1_MOD); in spi_npcx_spip_configure()
87 reg_base->SPIP_CTL1 |= BIT(NPCX_SPIP_CTL1_MOD); in spi_npcx_spip_configure()
117 reg_base->SPIP_CTL1 |= BIT(NPCX_SPIP_CTL1_SCIDL); in spi_npcx_spip_configure()
119 reg_base->SPIP_CTL1 &= ~BIT(NPCX_SPIP_CTL1_SCIDL); in spi_npcx_spip_configure()
123 reg_base->SPIP_CTL1 |= BIT(NPCX_SPIP_CTL1_SCM); in spi_npcx_spip_configure()
125 reg_base->SPIP_CTL1 &= ~BIT(NPCX_SPIP_CTL1_SCM); in spi_npcx_spip_configure()
138 SET_FIELD(reg_base->SPIP_CTL1, NPCX_SPIP_CTL1_SCDV, prescaler_divider); in spi_npcx_spip_configure()
178 struct spip_reg *const reg_base = config->reg_base; in spi_npcx_spip_xfer_frame() local
185 if (WAIT_FOR(!IS_BIT_SET(reg_base->SPIP_STAT, NPCX_SPIP_STAT_BSY), in spi_npcx_spip_xfer_frame()
191 reg_base->SPIP_DATA = tx_frame; in spi_npcx_spip_xfer_frame()
193 if (WAIT_FOR(IS_BIT_SET(reg_base->SPIP_STAT, NPCX_SPIP_STAT_RBF), in spi_npcx_spip_xfer_frame()
199 rx_frame = reg_base->SPIP_DATA; in spi_npcx_spip_xfer_frame()
215 struct spip_reg *const reg_base = config->reg_base; in spi_npcx_spip_isr() local
222 status = reg_base->SPIP_STAT; in spi_npcx_spip_isr()
225 reg_base->SPIP_CTL1 &= ~BIT(NPCX_SPIP_CTL1_EIW); in spi_npcx_spip_isr()
228 reg_base->SPIP_DATA = tx_frame; in spi_npcx_spip_isr()
230 rx_frame = reg_base->SPIP_DATA; in spi_npcx_spip_isr()
235 reg_base->SPIP_CTL1 &= ~BIT(NPCX_SPIP_CTL1_EIR); in spi_npcx_spip_isr()
247 reg_base->SPIP_DATA = tx_frame; in spi_npcx_spip_isr()
258 struct spip_reg *const reg_base = config->reg_base; in transceive() local
289 reg_base->SPIP_CTL1 |= BIT(NPCX_SPIP_CTL1_SPIEN); in transceive()
292 while (IS_BIT_SET(reg_base->SPIP_STAT, NPCX_SPIP_STAT_RBF)) { in transceive()
295 unused = reg_base->SPIP_DATA; in transceive()
302 reg_base->SPIP_CTL1 |= BIT(NPCX_SPIP_CTL1_EIR) | BIT(NPCX_SPIP_CTL1_EIW); in transceive()
361 struct spip_reg *const reg_base = config->reg_base; in spi_npcx_spip_init() local
400 reg_base->SPIP_CTL1 |= BIT(NPCX_SPIP_CTL1_SPIEN); in spi_npcx_spip_init()
441 .reg_base = (struct spip_reg *)DT_INST_REG_ADDR(n), \