Lines Matching full:req

95 	struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_REGISTER_DB };  in ivpu_jsm_register_db()  local
99 req.payload.register_db.db_idx = db_id; in ivpu_jsm_register_db()
100 req.payload.register_db.jobq_base = jobq_base; in ivpu_jsm_register_db()
101 req.payload.register_db.jobq_size = jobq_size; in ivpu_jsm_register_db()
102 req.payload.register_db.host_ssid = ctx_id; in ivpu_jsm_register_db()
104 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_REGISTER_DB_DONE, &resp, in ivpu_jsm_register_db()
114 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_UNREGISTER_DB }; in ivpu_jsm_unregister_db() local
118 req.payload.unregister_db.db_idx = db_id; in ivpu_jsm_unregister_db()
120 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_UNREGISTER_DB_DONE, &resp, in ivpu_jsm_unregister_db()
130 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_QUERY_ENGINE_HB }; in ivpu_jsm_get_heartbeat() local
137 req.payload.query_engine_hb.engine_idx = engine; in ivpu_jsm_get_heartbeat()
139 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_QUERY_ENGINE_HB_DONE, &resp, in ivpu_jsm_get_heartbeat()
153 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_ENGINE_RESET }; in ivpu_jsm_reset_engine() local
160 req.payload.engine_reset.engine_idx = engine; in ivpu_jsm_reset_engine()
162 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_ENGINE_RESET_DONE, &resp, in ivpu_jsm_reset_engine()
172 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_ENGINE_PREEMPT }; in ivpu_jsm_preempt_engine() local
179 req.payload.engine_preempt.engine_idx = engine; in ivpu_jsm_preempt_engine()
180 req.payload.engine_preempt.preempt_id = preempt_id; in ivpu_jsm_preempt_engine()
182 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_ENGINE_PREEMPT_DONE, &resp, in ivpu_jsm_preempt_engine()
192 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_DYNDBG_CONTROL }; in ivpu_jsm_dyndbg_control() local
196 strscpy(req.payload.dyndbg_control.dyndbg_cmd, command, VPU_DYNDBG_CMD_MAX_LEN); in ivpu_jsm_dyndbg_control()
198 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_DYNDBG_CONTROL_RSP, &resp, in ivpu_jsm_dyndbg_control()
210 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_TRACE_GET_CAPABILITY }; in ivpu_jsm_trace_get_capability() local
214 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_TRACE_GET_CAPABILITY_RSP, &resp, in ivpu_jsm_trace_get_capability()
230 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_TRACE_SET_CONFIG }; in ivpu_jsm_trace_set_config() local
234 req.payload.trace_config.trace_level = trace_level; in ivpu_jsm_trace_set_config()
235 req.payload.trace_config.trace_destination_mask = trace_destination_mask; in ivpu_jsm_trace_set_config()
236 req.payload.trace_config.trace_hw_component_mask = trace_hw_component_mask; in ivpu_jsm_trace_set_config()
238 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_TRACE_SET_CONFIG_RSP, &resp, in ivpu_jsm_trace_set_config()
248 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_SSID_RELEASE }; in ivpu_jsm_context_release() local
252 req.payload.ssid_release.host_ssid = host_ssid; in ivpu_jsm_context_release()
254 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_SSID_RELEASE_DONE, &resp, in ivpu_jsm_context_release()
264 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_PWR_D0I3_ENTER }; in ivpu_jsm_pwr_d0i3_enter() local
271 req.payload.pwr_d0i3_enter.send_response = 1; in ivpu_jsm_pwr_d0i3_enter()
273 ret = ivpu_ipc_send_receive_active(vdev, &req, VPU_JSM_MSG_PWR_D0I3_ENTER_DONE, in ivpu_jsm_pwr_d0i3_enter()
285 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_CREATE_CMD_QUEUE }; in ivpu_jsm_hws_create_cmdq() local
289 req.payload.hws_create_cmdq.host_ssid = ctx_id; in ivpu_jsm_hws_create_cmdq()
290 req.payload.hws_create_cmdq.process_id = pid; in ivpu_jsm_hws_create_cmdq()
291 req.payload.hws_create_cmdq.engine_idx = engine; in ivpu_jsm_hws_create_cmdq()
292 req.payload.hws_create_cmdq.cmdq_group = cmdq_group; in ivpu_jsm_hws_create_cmdq()
293 req.payload.hws_create_cmdq.cmdq_id = cmdq_id; in ivpu_jsm_hws_create_cmdq()
294 req.payload.hws_create_cmdq.cmdq_base = cmdq_base; in ivpu_jsm_hws_create_cmdq()
295 req.payload.hws_create_cmdq.cmdq_size = cmdq_size; in ivpu_jsm_hws_create_cmdq()
297 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_CREATE_CMD_QUEUE_RSP, &resp, in ivpu_jsm_hws_create_cmdq()
307 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_DESTROY_CMD_QUEUE }; in ivpu_jsm_hws_destroy_cmdq() local
311 req.payload.hws_destroy_cmdq.host_ssid = ctx_id; in ivpu_jsm_hws_destroy_cmdq()
312 req.payload.hws_destroy_cmdq.cmdq_id = cmdq_id; in ivpu_jsm_hws_destroy_cmdq()
314 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_DESTROY_CMD_QUEUE_RSP, &resp, in ivpu_jsm_hws_destroy_cmdq()
325 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_HWS_REGISTER_DB }; in ivpu_jsm_hws_register_db() local
329 req.payload.hws_register_db.db_id = db_id; in ivpu_jsm_hws_register_db()
330 req.payload.hws_register_db.host_ssid = ctx_id; in ivpu_jsm_hws_register_db()
331 req.payload.hws_register_db.cmdq_id = cmdq_id; in ivpu_jsm_hws_register_db()
332 req.payload.hws_register_db.cmdq_base = cmdq_base; in ivpu_jsm_hws_register_db()
333 req.payload.hws_register_db.cmdq_size = cmdq_size; in ivpu_jsm_hws_register_db()
335 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_REGISTER_DB_DONE, &resp, in ivpu_jsm_hws_register_db()
345 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_HWS_ENGINE_RESUME }; in ivpu_jsm_hws_resume_engine() local
352 req.payload.hws_resume_engine.engine_idx = engine; in ivpu_jsm_hws_resume_engine()
354 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_HWS_RESUME_ENGINE_DONE, &resp, in ivpu_jsm_hws_resume_engine()
365 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_SET_CONTEXT_SCHED_PROPERTIES }; in ivpu_jsm_hws_set_context_sched_properties() local
369 req.payload.hws_set_context_sched_properties.host_ssid = ctx_id; in ivpu_jsm_hws_set_context_sched_properties()
370 req.payload.hws_set_context_sched_properties.cmdq_id = cmdq_id; in ivpu_jsm_hws_set_context_sched_properties()
371 req.payload.hws_set_context_sched_properties.priority_band = priority; in ivpu_jsm_hws_set_context_sched_properties()
372 req.payload.hws_set_context_sched_properties.realtime_priority_level = 0; in ivpu_jsm_hws_set_context_sched_properties()
373 req.payload.hws_set_context_sched_properties.in_process_priority = 0; in ivpu_jsm_hws_set_context_sched_properties()
374 req.payload.hws_set_context_sched_properties.context_quantum = 20000; in ivpu_jsm_hws_set_context_sched_properties()
375 req.payload.hws_set_context_sched_properties.grace_period_same_priority = 10000; in ivpu_jsm_hws_set_context_sched_properties()
376 req.payload.hws_set_context_sched_properties.grace_period_lower_priority = 0; in ivpu_jsm_hws_set_context_sched_properties()
378 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_SET_CONTEXT_SCHED_PROPERTIES_RSP, &resp, in ivpu_jsm_hws_set_context_sched_properties()
389 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_HWS_SET_SCHEDULING_LOG }; in ivpu_jsm_hws_set_scheduling_log() local
393 req.payload.hws_set_scheduling_log.engine_idx = engine_idx; in ivpu_jsm_hws_set_scheduling_log()
394 req.payload.hws_set_scheduling_log.host_ssid = host_ssid; in ivpu_jsm_hws_set_scheduling_log()
395 req.payload.hws_set_scheduling_log.vpu_log_buffer_va = vpu_log_buffer_va; in ivpu_jsm_hws_set_scheduling_log()
396 req.payload.hws_set_scheduling_log.notify_index = 0; in ivpu_jsm_hws_set_scheduling_log()
397 req.payload.hws_set_scheduling_log.enable_extra_events = in ivpu_jsm_hws_set_scheduling_log()
400 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_HWS_SET_SCHEDULING_LOG_RSP, &resp, in ivpu_jsm_hws_set_scheduling_log()
410 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_SET_PRIORITY_BAND_SETUP }; in ivpu_jsm_hws_setup_priority_bands() local
415 req.payload.hws_priority_band_setup.grace_period[0] = 0; in ivpu_jsm_hws_setup_priority_bands()
416 req.payload.hws_priority_band_setup.process_grace_period[0] = 50000; in ivpu_jsm_hws_setup_priority_bands()
417 req.payload.hws_priority_band_setup.process_quantum[0] = 160000; in ivpu_jsm_hws_setup_priority_bands()
419 req.payload.hws_priority_band_setup.grace_period[1] = 50000; in ivpu_jsm_hws_setup_priority_bands()
420 req.payload.hws_priority_band_setup.process_grace_period[1] = 50000; in ivpu_jsm_hws_setup_priority_bands()
421 req.payload.hws_priority_band_setup.process_quantum[1] = 300000; in ivpu_jsm_hws_setup_priority_bands()
423 req.payload.hws_priority_band_setup.grace_period[2] = 50000; in ivpu_jsm_hws_setup_priority_bands()
424 req.payload.hws_priority_band_setup.process_grace_period[2] = 50000; in ivpu_jsm_hws_setup_priority_bands()
425 req.payload.hws_priority_band_setup.process_quantum[2] = 200000; in ivpu_jsm_hws_setup_priority_bands()
427 req.payload.hws_priority_band_setup.grace_period[3] = 0; in ivpu_jsm_hws_setup_priority_bands()
428 req.payload.hws_priority_band_setup.process_grace_period[3] = 50000; in ivpu_jsm_hws_setup_priority_bands()
429 req.payload.hws_priority_band_setup.process_quantum[3] = 200000; in ivpu_jsm_hws_setup_priority_bands()
431 req.payload.hws_priority_band_setup.normal_band_percentage = 10; in ivpu_jsm_hws_setup_priority_bands()
433 ret = ivpu_ipc_send_receive_active(vdev, &req, VPU_JSM_MSG_SET_PRIORITY_BAND_SETUP_RSP, in ivpu_jsm_hws_setup_priority_bands()
444 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_METRIC_STREAMER_START }; in ivpu_jsm_metric_streamer_start() local
448 req.payload.metric_streamer_start.metric_group_mask = metric_group_mask; in ivpu_jsm_metric_streamer_start()
449 req.payload.metric_streamer_start.sampling_rate = sampling_rate; in ivpu_jsm_metric_streamer_start()
450 req.payload.metric_streamer_start.buffer_addr = buffer_addr; in ivpu_jsm_metric_streamer_start()
451 req.payload.metric_streamer_start.buffer_size = buffer_size; in ivpu_jsm_metric_streamer_start()
453 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_METRIC_STREAMER_START_DONE, &resp, in ivpu_jsm_metric_streamer_start()
465 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_METRIC_STREAMER_STOP }; in ivpu_jsm_metric_streamer_stop() local
469 req.payload.metric_streamer_stop.metric_group_mask = metric_group_mask; in ivpu_jsm_metric_streamer_stop()
471 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_METRIC_STREAMER_STOP_DONE, &resp, in ivpu_jsm_metric_streamer_stop()
482 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_METRIC_STREAMER_UPDATE }; in ivpu_jsm_metric_streamer_update() local
486 req.payload.metric_streamer_update.metric_group_mask = metric_group_mask; in ivpu_jsm_metric_streamer_update()
487 req.payload.metric_streamer_update.buffer_addr = buffer_addr; in ivpu_jsm_metric_streamer_update()
488 req.payload.metric_streamer_update.buffer_size = buffer_size; in ivpu_jsm_metric_streamer_update()
490 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_METRIC_STREAMER_UPDATE_DONE, &resp, in ivpu_jsm_metric_streamer_update()
511 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_METRIC_STREAMER_INFO }; in ivpu_jsm_metric_streamer_info() local
515 req.payload.metric_streamer_start.metric_group_mask = metric_group_mask; in ivpu_jsm_metric_streamer_info()
516 req.payload.metric_streamer_start.buffer_addr = buffer_addr; in ivpu_jsm_metric_streamer_info()
517 req.payload.metric_streamer_start.buffer_size = buffer_size; in ivpu_jsm_metric_streamer_info()
519 ret = ivpu_ipc_send_receive(vdev, &req, VPU_JSM_MSG_METRIC_STREAMER_INFO_DONE, &resp, in ivpu_jsm_metric_streamer_info()
541 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_DCT_ENABLE }; in ivpu_jsm_dct_enable() local
544 req.payload.pwr_dct_control.dct_active_us = active_us; in ivpu_jsm_dct_enable()
545 req.payload.pwr_dct_control.dct_inactive_us = inactive_us; in ivpu_jsm_dct_enable()
547 return ivpu_ipc_send_receive_active(vdev, &req, VPU_JSM_MSG_DCT_ENABLE_DONE, in ivpu_jsm_dct_enable()
554 struct vpu_jsm_msg req = { .type = VPU_JSM_MSG_DCT_DISABLE }; in ivpu_jsm_dct_disable() local
557 return ivpu_ipc_send_receive_active(vdev, &req, VPU_JSM_MSG_DCT_DISABLE_DONE, in ivpu_jsm_dct_disable()