Lines Matching refs:scmi_optee_private
150 static struct scmi_optee_agent *scmi_optee_private; variable
223 struct device *dev = scmi_optee_private->dev; in get_channel()
242 ret = tee_client_invoke_func(scmi_optee_private->tee_ctx, &arg, param); in get_channel()
269 ret = tee_client_invoke_func(scmi_optee_private->tee_ctx, &arg, param); in invoke_process_smt_channel()
271 dev_err(scmi_optee_private->dev, "Can't invoke channel %u: %d / %#x\n", in invoke_process_smt_channel()
300 ret = tee_client_invoke_func(scmi_optee_private->tee_ctx, &arg, param); in invoke_process_msg_channel()
302 dev_err(scmi_optee_private->dev, "Can't invoke channel %u: %d / %#x\n", in invoke_process_msg_channel()
315 if (!scmi_optee_private) { in scmi_optee_link_supplier()
323 if (!device_link_add(dev, scmi_optee_private->dev, DL_FLAG_AUTOREMOVE_CONSUMER)) { in scmi_optee_link_supplier()
352 channel->tee_shm = tee_shm_alloc_kernel_buf(scmi_optee_private->tee_ctx, msg_size); in setup_dynamic_shmem()
439 ret = open_session(scmi_optee_private, &channel->tee_session); in scmi_optee_chan_setup()
450 mutex_lock(&scmi_optee_private->mu); in scmi_optee_chan_setup()
451 list_add(&channel->link, &scmi_optee_private->channel_list); in scmi_optee_chan_setup()
452 mutex_unlock(&scmi_optee_private->mu); in scmi_optee_chan_setup()
457 close_session(scmi_optee_private, channel->tee_session); in scmi_optee_chan_setup()
470 mutex_lock(&scmi_optee_private->mu); in scmi_optee_chan_free()
472 mutex_unlock(&scmi_optee_private->mu); in scmi_optee_chan_free()
474 close_session(scmi_optee_private, channel->tee_session); in scmi_optee_chan_free()
551 if (scmi_optee_private) { in scmi_optee_service_probe()
577 scmi_optee_private = agent; in scmi_optee_service_probe()
589 struct scmi_optee_agent *agent = scmi_optee_private; in scmi_optee_service_remove()
591 if (!scmi_optee_private) in scmi_optee_service_remove()
594 if (!list_empty(&scmi_optee_private->channel_list)) in scmi_optee_service_remove()
598 smp_store_mb(scmi_optee_private, NULL); in scmi_optee_service_remove()
632 if (scmi_optee_private) in scmi_optee_exit()