linux/drivers/tee/amdtee/call.c

// SPDX-License-Identifier: MIT
/*
 * Copyright 2019 Advanced Micro Devices, Inc.
 */

#include <linux/device.h>
#include <linux/tee.h>
#include <linux/tee_core.h>
#include <linux/psp-tee.h>
#include <linux/slab.h>
#include <linux/psp.h>
#include "amdtee_if.h"
#include "amdtee_private.h"

static int tee_params_to_amd_params(struct tee_param *tee, u32 count,
				    struct tee_operation *amd)
{}

static int amd_params_to_tee_params(struct tee_param *tee, u32 count,
				    struct tee_operation *amd)
{}

static DEFINE_MUTEX(ta_refcount_mutex);
static LIST_HEAD(ta_list);

static u32 get_ta_refcount(u32 ta_handle)
{}

static u32 put_ta_refcount(u32 ta_handle)
{}

int handle_unload_ta(u32 ta_handle)
{}

int handle_close_session(u32 ta_handle, u32 info)
{}

void handle_unmap_shmem(u32 buf_id)
{}

int handle_invoke_cmd(struct tee_ioctl_invoke_arg *arg, u32 sinfo,
		      struct tee_param *p)
{}

int handle_map_shmem(u32 count, struct shmem_desc *start, u32 *buf_id)
{}

int handle_open_session(struct tee_ioctl_open_session_arg *arg, u32 *info,
			struct tee_param *p)
{}

int handle_load_ta(void *data, u32 size, struct tee_ioctl_open_session_arg *arg)
{}