Lines Matching refs:cb_data

206 				      struct stratix10_svc_cb_data *cb_data)  in svc_thread_cmd_data_claim()  argument
224 cb_data->status = BIT(SVC_STATUS_BUFFER_DONE); in svc_thread_cmd_data_claim()
225 cb_data->kaddr1 = svc_pa_to_va(res.a1); in svc_thread_cmd_data_claim()
226 cb_data->kaddr2 = (res.a2) ? in svc_thread_cmd_data_claim()
228 cb_data->kaddr3 = (res.a3) ? in svc_thread_cmd_data_claim()
231 cb_data); in svc_thread_cmd_data_claim()
252 struct stratix10_svc_cb_data *cb_data) in svc_thread_cmd_config_status() argument
258 cb_data->kaddr1 = NULL; in svc_thread_cmd_config_status()
259 cb_data->kaddr2 = NULL; in svc_thread_cmd_config_status()
260 cb_data->kaddr3 = NULL; in svc_thread_cmd_config_status()
261 cb_data->status = BIT(SVC_STATUS_ERROR); in svc_thread_cmd_config_status()
290 cb_data->status = BIT(SVC_STATUS_BUSY); in svc_thread_cmd_config_status()
292 cb_data->status = BIT(SVC_STATUS_COMPLETED); in svc_thread_cmd_config_status()
293 cb_data->kaddr2 = (res.a2) ? in svc_thread_cmd_config_status()
295 cb_data->kaddr3 = (res.a3) ? &res.a3 : NULL; in svc_thread_cmd_config_status()
298 cb_data->kaddr1 = &res.a1; in svc_thread_cmd_config_status()
299 cb_data->kaddr2 = (res.a2) ? in svc_thread_cmd_config_status()
301 cb_data->kaddr3 = (res.a3) ? &res.a3 : NULL; in svc_thread_cmd_config_status()
302 cb_data->status = BIT(SVC_STATUS_ERROR); in svc_thread_cmd_config_status()
305 p_data->chan->scl->receive_cb(p_data->chan->scl, cb_data); in svc_thread_cmd_config_status()
317 struct stratix10_svc_cb_data *cb_data, in svc_thread_recv_status_ok() argument
320 cb_data->kaddr1 = NULL; in svc_thread_recv_status_ok()
321 cb_data->kaddr2 = NULL; in svc_thread_recv_status_ok()
322 cb_data->kaddr3 = NULL; in svc_thread_recv_status_ok()
332 cb_data->status = BIT(SVC_STATUS_OK); in svc_thread_recv_status_ok()
335 cb_data->status = BIT(SVC_STATUS_BUFFER_SUBMITTED); in svc_thread_recv_status_ok()
338 cb_data->status = BIT(SVC_STATUS_COMPLETED); in svc_thread_recv_status_ok()
344 cb_data->status = BIT(SVC_STATUS_OK); in svc_thread_recv_status_ok()
345 cb_data->kaddr1 = &res.a1; in svc_thread_recv_status_ok()
348 cb_data->status = BIT(SVC_STATUS_OK); in svc_thread_recv_status_ok()
349 cb_data->kaddr1 = &res.a1; in svc_thread_recv_status_ok()
350 cb_data->kaddr2 = &res.a2; in svc_thread_recv_status_ok()
353 cb_data->status = BIT(SVC_STATUS_OK); in svc_thread_recv_status_ok()
354 cb_data->kaddr1 = &res.a1; in svc_thread_recv_status_ok()
355 cb_data->kaddr2 = &res.a2; in svc_thread_recv_status_ok()
360 cb_data->status = BIT(SVC_STATUS_OK); in svc_thread_recv_status_ok()
361 cb_data->kaddr1 = &res.a1; in svc_thread_recv_status_ok()
362 cb_data->kaddr2 = svc_pa_to_va(res.a2); in svc_thread_recv_status_ok()
363 cb_data->kaddr3 = &res.a3; in svc_thread_recv_status_ok()
366 cb_data->status = BIT(SVC_STATUS_OK); in svc_thread_recv_status_ok()
367 cb_data->kaddr1 = &res.a1; in svc_thread_recv_status_ok()
370 cb_data->kaddr2 = &res.a2; in svc_thread_recv_status_ok()
378 p_data->chan->scl->receive_cb(p_data->chan->scl, cb_data); in svc_thread_recv_status_ok()