Lines Matching refs:base
31 struct mu_type *base;
44 static inline void mu_hal_init(struct mu_type *base)
47 clrbits_le32(&base->cr, MU_CR_GIE_MASK | MU_CR_RIE_MASK |
51 static int mu_hal_sendmsg(struct mu_type *base, u32 reg_index, u32 msg)
60 ret = readl_poll_timeout(&base->sr, val, val & mask, 10000);
66 writel(msg, &base->tr[reg_index]);
71 static int mu_hal_receivemsg(struct mu_type *base, u32 reg_index, u32 *msg)
80 ret = readl_poll_timeout(&base->sr, val, val & mask, 1000000);
86 *msg = readl(&base->rr[reg_index]);
91 static int sc_ipc_read(struct mu_type *base, void *data)
101 ret = mu_hal_receivemsg(base, 0, (u32 *)msg);
114 ret = mu_hal_receivemsg(base, count % MU_RR_COUNT,
124 static int sc_ipc_write(struct mu_type *base, void *data)
138 ret = mu_hal_sendmsg(base, 0, *((u32 *)msg));
145 ret = mu_hal_sendmsg(base, count % MU_TR_COUNT,
170 ret = sc_ipc_write(plat->base, tx_msg);
174 ret = sc_ipc_read(plat->base, rx_msg);
196 plat->base = (struct mu_type *)CONFIG_MU_BASE_SPL;
198 plat->base = (struct mu_type *)addr;
202 mu_hal_init(plat->base);