Lines Matching refs:regs
129 volatile ipc_reg_t *regs = ipc_resource[ipc_device].reg_base_addr; in sedi_ipc_init() local
146 if ((regs->drbl_out & BIT(IPC_BUSY_BIT)) != 0) { in sedi_ipc_init()
147 regs->pimr_out &= ~BIT(IPC_INT_MASK_OUT_BIT); in sedi_ipc_init()
149 regs->drbl_out = 0; in sedi_ipc_init()
154 if (regs->ipc_busy_clear_peer2local) { in sedi_ipc_init()
156 regs->ipc_busy_clear_peer2local = 1; in sedi_ipc_init()
159 regs->pimr_in |= (BIT(IPC_INT_MASK_IN_BIT) | BIT(IPC_INT_MASK_BC_BIT)); in sedi_ipc_init()
160 regs->pimr_out |= BIT(IPC_INT_MASK_OUT_BIT); in sedi_ipc_init()
161 regs->channel_intr_mask = 0; in sedi_ipc_init()
169 volatile ipc_reg_t *regs = ipc_resource[ipc_device].reg_base_addr; in sedi_ipc_uninit() local
172 regs->pimr_in &= ~(BIT(IPC_INT_MASK_IN_BIT) | BIT(IPC_INT_MASK_BC_BIT)); in sedi_ipc_uninit()
173 regs->pimr_out &= ~BIT(IPC_INT_MASK_OUT_BIT); in sedi_ipc_uninit()
215 volatile ipc_reg_t *regs = ipc_resource[ipc_device].reg_base_addr; in sedi_ipc_write_msg() local
232 *(regs->msgs_out + i) = *((uint32_t *)msg + i); in sedi_ipc_write_msg()
239 *(regs->msgs_out + (size >> 2)) = tail; in sedi_ipc_write_msg()
256 volatile ipc_reg_t *regs = ipc_resource[ipc_device].reg_base_addr; in sedi_ipc_write_dbl() local
259 regs->drbl_out = doorbell; in sedi_ipc_write_dbl()
267 regs->drbl_out = doorbell; in sedi_ipc_write_dbl()
325 volatile ipc_reg_t *regs = ipc_resource[ipc_device].reg_base_addr; in sedi_ipc_read_msg() local
332 *((uint32_t *)msg + i) = *(regs->msgs_in + i); in sedi_ipc_read_msg()
337 tail = *(regs->msgs_in + (size >> 2)); in sedi_ipc_read_msg()
354 volatile ipc_reg_t *regs = ipc_resource[ipc_device].reg_base_addr; in sedi_ipc_read_dbl() local
355 *doorbell = regs->drbl_in; in sedi_ipc_read_dbl()
374 volatile ipc_reg_t *regs = ipc_resource[ipc_device].reg_base_addr; in sedi_ipc_send_ack_drbl() local
377 regs->drbl_in = ack; in sedi_ipc_send_ack_drbl()
388 regs->pimr_in |= BIT(IPC_INT_MASK_IN_BIT); in sedi_ipc_send_ack_drbl()
402 volatile ipc_reg_t *regs = ipc_resource[ipc_device].reg_base_addr; in sedi_ipc_read_ack_drbl() local
404 *ack = regs->drbl_out; in sedi_ipc_read_ack_drbl()
419 volatile ipc_reg_t *regs = ipc_resource[ipc_device].reg_base_addr; in sedi_ipc_send_ack_msg() local
426 *(regs->msgs_in + i) = *((uint32_t *)msg + i); in sedi_ipc_send_ack_msg()
433 *(regs->msgs_in + (size >> 2)) = tail; in sedi_ipc_send_ack_msg()
448 volatile ipc_reg_t *regs = ipc_resource[ipc_device].reg_base_addr; in sedi_ipc_read_ack_msg() local
456 *((uint32_t *)msg + i) = *(regs->msgs_out + i); in sedi_ipc_read_ack_msg()
460 tail = *(regs->msgs_out + (size >> 2)); in sedi_ipc_read_ack_msg()
485 volatile ipc_reg_t *regs = ipc_resource[ipc_device].reg_base_addr; in sedi_ipc_isr() local
493 if ((regs->pisr_in & BIT(IPC_INT_STAT_BIT)) && (regs->pimr_in & BIT(IPC_INT_MASK_IN_BIT))) { in sedi_ipc_isr()
494 regs->pimr_in &= ~BIT(IPC_INT_MASK_IN_BIT); in sedi_ipc_isr()
506 if (regs->ipc_busy_clear_peer2local) { in sedi_ipc_isr()
508 regs->ipc_busy_clear_peer2local = 1; in sedi_ipc_isr()
521 if ((ipc_device == SEDI_IPC_CSME) && (regs->csr != 0)) { in sedi_ipc_isr()
522 ipc_contexts[ipc_device].csr_saved = regs->csr; in sedi_ipc_isr()
524 regs->csr = ipc_contexts[ipc_device].csr_saved; in sedi_ipc_isr()