Lines Matching refs:spt
161 static inline int k3_sec_proxy_verify_thread(struct k3_sec_proxy_thread *spt, in k3_sec_proxy_verify_thread() argument
165 if (sp_readl(spt->rt, RT_THREAD_STATUS) & in k3_sec_proxy_verify_thread()
168 __func__, spt->id); in k3_sec_proxy_verify_thread()
173 if ((sp_readl(spt->scfg, SCFG_THREAD_CTRL) in k3_sec_proxy_verify_thread()
177 __func__, spt->id); in k3_sec_proxy_verify_thread()
180 __func__, spt->id); in k3_sec_proxy_verify_thread()
185 if (!(sp_readl(spt->rt, RT_THREAD_STATUS) & in k3_sec_proxy_verify_thread()
203 struct k3_sec_proxy_thread *spt = chan->con_priv; in k3_sec_proxy_send() local
210 ret = k3_sec_proxy_verify_thread(spt, THREAD_IS_TX); in k3_sec_proxy_send()
213 __func__, spt->id, ret); in k3_sec_proxy_send()
225 data_reg = spt->data + spm->desc->data_start_offset; in k3_sec_proxy_send()
245 if (data_reg <= (spt->data + spm->desc->data_end_offset)) in k3_sec_proxy_send()
246 sp_writel(spt->data, spm->desc->data_end_offset, 0); in k3_sec_proxy_send()
264 struct k3_sec_proxy_thread *spt = chan->con_priv; in k3_sec_proxy_recv() local
272 ret = k3_sec_proxy_verify_thread(spt, THREAD_IS_RX); in k3_sec_proxy_recv()
277 msg->buf = spt->rx_buf; in k3_sec_proxy_recv()
278 data_reg = spt->data + spm->desc->data_start_offset; in k3_sec_proxy_recv()
279 word_data = spt->rx_buf; in k3_sec_proxy_recv()
345 struct k3_sec_proxy_thread *spt; in k3_sec_proxy_thread_setup() local
349 spt = &spm->chans[i]; in k3_sec_proxy_thread_setup()
351 spt->id = ind; in k3_sec_proxy_thread_setup()
352 spt->data = (void *)SEC_PROXY_THREAD(spm->target_data, ind); in k3_sec_proxy_thread_setup()
353 spt->scfg = (void *)SEC_PROXY_THREAD(spm->scfg, ind); in k3_sec_proxy_thread_setup()
354 spt->rt = (void *)SEC_PROXY_THREAD(spm->rt, ind); in k3_sec_proxy_thread_setup()
355 spt->rx_buf = calloc(1, spm->desc->max_msg_size); in k3_sec_proxy_thread_setup()
356 if (!spt->rx_buf) in k3_sec_proxy_thread_setup()