tee: add tee_shm_alloc_user_buf()
authorJens Wiklander <jens.wiklander@linaro.org>
Wed, 16 Jun 2021 15:17:20 +0000 (17:17 +0200)
committerJens Wiklander <jens.wiklander@linaro.org>
Thu, 3 Feb 2022 13:34:33 +0000 (14:34 +0100)
commit15bef5fa878fcd6fb1651a9cc745d5d3126af04d
tree08677fc1a1149319cc4d93717ec15adef1f94563
parent78fbfb072e58b03f7ea33ed95645e4ab8e6891b9
tee: add tee_shm_alloc_user_buf()

Adds a new function tee_shm_alloc_user_buf() for user mode allocations,
replacing passing the flags TEE_SHM_MAPPED | TEE_SHM_DMA_BUF to
tee_shm_alloc().

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/tee_core.c
drivers/tee/tee_private.h
drivers/tee/tee_shm.c
drivers/tee/tee_shm_pool.c
include/linux/tee_drv.h