Lines Matching refs:res

31 	RK_RES res;  in test_nosupport_multi()  local
36 res = test_cipher(1); in test_nosupport_multi()
37 if (res) { in test_nosupport_multi()
38 E_TRACE("test_cipher error[%x]\n", res); in test_nosupport_multi()
42 res = test_hash(1); in test_nosupport_multi()
43 if (res) { in test_nosupport_multi()
44 E_TRACE("test_hash error[%x]\n", res); in test_nosupport_multi()
48 res = test_hmac(1); in test_nosupport_multi()
49 if (res) { in test_nosupport_multi()
50 E_TRACE("test_hash error[%x]\n", res); in test_nosupport_multi()
66 res = rk_crypto_init(); in test_nosupport_multi()
67 if (res) { in test_nosupport_multi()
68 E_TRACE("rk_crypto_init error[%x]\n", res); in test_nosupport_multi()
72 res = rk_cipher_init(&cipher_cfg, &hdl_cipher1); in test_nosupport_multi()
73 if (res) { in test_nosupport_multi()
74 E_TRACE("rk_cipher_init error[%x]\n", res); in test_nosupport_multi()
78 res = rk_cipher_init(&cipher_cfg, &hdl_cipher2); in test_nosupport_multi()
79 if (res != RK_CRYPTO_ERR_BUSY) { in test_nosupport_multi()
80 E_TRACE("rk_cipher_init should be busy[%x]\n", res); in test_nosupport_multi()
88 res = rk_hash_init(&hash_cfg, &hdl_hash1); in test_nosupport_multi()
89 if (res != RK_CRYPTO_ERR_BUSY) { in test_nosupport_multi()
90 E_TRACE("rk_hash_init should be busy[%x]\n", res); in test_nosupport_multi()
96 res = rk_hash_init(&hash_cfg, &hdl_hash2); in test_nosupport_multi()
97 if (res) { in test_nosupport_multi()
98 E_TRACE("rk_cipher_init error[%x]\n", res); in test_nosupport_multi()
102 res = rk_cipher_init(&cipher_cfg, &hdl_cipher2); in test_nosupport_multi()
103 if (res != RK_CRYPTO_ERR_BUSY) { in test_nosupport_multi()
104 E_TRACE("rk_cipher_init should be busy[%x]\n", res); in test_nosupport_multi()
113 res = test_cipher(1); in test_nosupport_multi()
114 if (res) { in test_nosupport_multi()
115 E_TRACE("test_cipher error[%x]\n", res); in test_nosupport_multi()
119 res = test_hash(1); in test_nosupport_multi()
120 if (res) { in test_nosupport_multi()
121 E_TRACE("test_hash error[%x]\n", res); in test_nosupport_multi()
125 res = test_hmac(1); in test_nosupport_multi()
126 if (res) { in test_nosupport_multi()
127 E_TRACE("test_hash error[%x]\n", res); in test_nosupport_multi()
137 return res; in test_nosupport_multi()
143 RK_RES res = RK_CRYPTO_ERR_GENERIC; in test_multi() local
145 res = rk_crypto_init(); in test_multi()
146 if (res) { in test_multi()
147 printf("rk_crypto_init error %08x\n", res); in test_multi()
148 return res; in test_multi()
155 printf("An unexpected return value of init[%x]\n", res); in test_multi()
156 res = RK_CRYPTO_ERR_GENERIC; in test_multi()
160 res = test_nosupport_multi(); in test_multi()
163 res = test_support_multi(); in test_multi()
167 return res; in test_multi()