Lines Matching refs:ctrl

157  * @ctrl: pointer to service controller which is the provider of this channel
166 struct stratix10_svc_controller *ctrl;
197 * @ctrl: pointer to service layer controller
204 static void svc_thread_cmd_data_claim(struct stratix10_svc_controller *ctrl,
211 reinit_completion(&ctrl->complete_status);
216 ctrl->invoke_fn(INTEL_SIP_SMC_FPGA_CONFIG_COMPLETED_WRITE,
221 complete(&ctrl->complete_status);
238 wait_for_completion_timeout(&ctrl->complete_status, timeout));
243 * @ctrl: pointer to service layer controller
250 static void svc_thread_cmd_config_status(struct stratix10_svc_controller *ctrl,
274 ctrl->invoke_fn(a0, a1, a2, 0, 0, 0, 0, 0, &res);
394 *ctrl = (struct stratix10_svc_controller *)data;
424 ret_fifo = kfifo_out_spinlocked(&ctrl->svc_fifo,
426 &ctrl->svc_fifo_lock);
437 svc_thread_cmd_data_claim(ctrl, pdata, cbdata);
566 ctrl->invoke_fn(a0, a1, a2, a3, a4, a5, a6, a7, &res);
594 svc_thread_cmd_data_claim(ctrl,
599 svc_thread_cmd_config_status(ctrl,
918 chan->ctrl->num_active_client++;
937 chan->ctrl->num_active_client--;
938 module_put(chan->ctrl->dev->driver->owner);
968 if (!chan->ctrl->task) {
969 chan->ctrl->task =
971 (void *)chan->ctrl,
974 if (IS_ERR(chan->ctrl->task)) {
975 dev_err(chan->ctrl->dev,
980 kthread_bind(chan->ctrl->task, cpu);
981 wake_up_process(chan->ctrl->task);
1023 ret = kfifo_in_spinlocked(&chan->ctrl->svc_fifo, p_data,
1025 &chan->ctrl->svc_fifo_lock);
1047 if (chan->ctrl->task && chan->ctrl->num_active_client <= 1) {
1049 kthread_stop(chan->ctrl->task);
1050 chan->ctrl->task = NULL;
1071 struct gen_pool *genpool = chan->ctrl->genpool;
1074 pmem = devm_kzalloc(chan->ctrl->dev, sizeof(*pmem), GFP_KERNEL);
1109 gen_pool_free(chan->ctrl->genpool,
1189 chans[0].ctrl = controller;
1194 chans[1].ctrl = controller;
1199 chans[2].ctrl = controller;
1257 struct stratix10_svc_controller *ctrl = platform_get_drvdata(pdev);
1262 kfifo_free(&ctrl->svc_fifo);
1263 if (ctrl->task) {
1264 kthread_stop(ctrl->task);
1265 ctrl->task = NULL;
1267 if (ctrl->genpool)
1268 gen_pool_destroy(ctrl->genpool);
1269 list_del(&ctrl->node);