1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * (C) Copyright 2024 Rockchip Electronics Co., Ltd 4 */ 5 6 #ifndef _ROCKCHIP_CRYPTO_MPA_H_ 7 #define _ROCKCHIP_CRYPTO_MPA_H_ 8 #include <common.h> 9 10 #define MPA_USE_ALLOC 1 11 12 struct mpa_num { 13 u32 alloc; 14 s32 size; 15 u32 *d; 16 }; 17 18 int rk_mpa_alloc(struct mpa_num **mpa, void *data, u32 word_size); 19 void rk_mpa_free(struct mpa_num **mpa); 20 int rk_check_size(u32 *data, u32 max_word_size); 21 22 #endif 23