Lines Matching refs:cbdata
396 struct stratix10_svc_cb_data *cbdata; in svc_normal_to_secure_thread() local
405 cbdata = kmalloc(sizeof(*cbdata), GFP_KERNEL); in svc_normal_to_secure_thread()
406 if (!cbdata) { in svc_normal_to_secure_thread()
437 svc_thread_cmd_data_claim(ctrl, pdata, cbdata); in svc_normal_to_secure_thread()
576 cbdata->status = BIT(SVC_STATUS_ERROR); in svc_normal_to_secure_thread()
578 cbdata->status = BIT(SVC_STATUS_OK); in svc_normal_to_secure_thread()
580 cbdata->kaddr1 = &res; in svc_normal_to_secure_thread()
581 cbdata->kaddr2 = NULL; in svc_normal_to_secure_thread()
582 cbdata->kaddr3 = NULL; in svc_normal_to_secure_thread()
583 pdata->chan->scl->receive_cb(pdata->chan->scl, cbdata); in svc_normal_to_secure_thread()
589 svc_thread_recv_status_ok(pdata, cbdata, res); in svc_normal_to_secure_thread()
595 pdata, cbdata); in svc_normal_to_secure_thread()
600 pdata, cbdata); in svc_normal_to_secure_thread()
618 cbdata->status = BIT(SVC_STATUS_INVALID_PARAM); in svc_normal_to_secure_thread()
619 cbdata->kaddr1 = NULL; in svc_normal_to_secure_thread()
620 cbdata->kaddr2 = NULL; in svc_normal_to_secure_thread()
621 cbdata->kaddr3 = NULL; in svc_normal_to_secure_thread()
623 cbdata); in svc_normal_to_secure_thread()
630 cbdata->status = BIT(SVC_STATUS_ERROR); in svc_normal_to_secure_thread()
631 cbdata->kaddr1 = &res.a1; in svc_normal_to_secure_thread()
632 cbdata->kaddr2 = (res.a2) ? in svc_normal_to_secure_thread()
634 cbdata->kaddr3 = (res.a3) ? &res.a3 : NULL; in svc_normal_to_secure_thread()
635 pdata->chan->scl->receive_cb(pdata->chan->scl, cbdata); in svc_normal_to_secure_thread()
646 cbdata->status = in svc_normal_to_secure_thread()
648 cbdata->kaddr1 = NULL; in svc_normal_to_secure_thread()
649 cbdata->kaddr2 = NULL; in svc_normal_to_secure_thread()
650 cbdata->kaddr3 = NULL; in svc_normal_to_secure_thread()
652 pdata->chan->scl, cbdata); in svc_normal_to_secure_thread()
659 kfree(cbdata); in svc_normal_to_secure_thread()