Lines Matching refs:res
42 RK_RES res = RK_CRYPTO_ERR_GENERIC; in demo_hash() local
50 res = rk_crypto_init(); in demo_hash()
51 if (res) { in demo_hash()
52 printf("rk_crypto_init error! res: 0x%08x\n", res); in demo_hash()
53 return res; in demo_hash()
59 res = RK_CRYPTO_ERR_GENERIC; in demo_hash()
67 res = rk_hash_init(&hash_cfg, &hash_hdl); in demo_hash()
68 if (res) { in demo_hash()
69 printf("rk_hash_init error! res: 0x%08x\n", res); in demo_hash()
73 res = rk_hash_update(hash_hdl, in->dma_fd, in->size); in demo_hash()
74 if (res) { in demo_hash()
76 printf("rk_hash_update error = %d\n", res); in demo_hash()
85 res = RK_CRYPTO_ERR_GENERIC; in demo_hash()
96 return res; in demo_hash()
101 RK_RES res = RK_CRYPTO_ERR_GENERIC; in demo_hash_virt() local
110 res = rk_crypto_init(); in demo_hash_virt()
111 if (res) { in demo_hash_virt()
112 printf("rk_crypto_init error! res: 0x%08x\n", res); in demo_hash_virt()
113 return res; in demo_hash_virt()
119 res = rk_hash_init(&hash_cfg, &hash_hdl); in demo_hash_virt()
120 if (res) { in demo_hash_virt()
121 printf("rk_hash_init error! res: 0x%08x\n", res); in demo_hash_virt()
130 res = rk_hash_update_virt(hash_hdl, tmp_data, data_block); in demo_hash_virt()
131 if (res) { in demo_hash_virt()
133 printf("rk_hash_update_virt error! res: 0x%08x\n", res); in demo_hash_virt()
138 res = rk_hash_update_virt(hash_hdl, tmp_data, tmp_len); in demo_hash_virt()
139 if (res) { in demo_hash_virt()
141 printf("rk_hash_update_virt error! res: 0x%08x\n", res); in demo_hash_virt()
153 res = RK_CRYPTO_ERR_GENERIC; in demo_hash_virt()
161 return res; in demo_hash_virt()
166 RK_RES res = RK_CRYPTO_ERR_GENERIC; in demo_hmac() local
173 res = rk_crypto_init(); in demo_hmac()
174 if (res) { in demo_hmac()
175 printf("rk_crypto_init error! res: 0x%08x\n", res); in demo_hmac()
176 return res; in demo_hmac()
182 res = RK_CRYPTO_ERR_GENERIC; in demo_hmac()
192 res = rk_hash_init(&hash_cfg, &hash_hdl); in demo_hmac()
193 if (res) { in demo_hmac()
194 printf("rk_hash_init error! res: 0x%08x\n", res); in demo_hmac()
198 res = rk_hash_update(hash_hdl, in->dma_fd, in->size); in demo_hmac()
199 if (res) { in demo_hmac()
201 printf("rk_hash_update error = %d\n", res); in demo_hmac()
210 res = RK_CRYPTO_ERR_GENERIC; in demo_hmac()
221 return res; in demo_hmac()
226 RK_RES res = RK_CRYPTO_ERR_GENERIC; in demo_hmac_virt() local
235 res = rk_crypto_init(); in demo_hmac_virt()
236 if (res) { in demo_hmac_virt()
237 printf("rk_crypto_init error! res: 0x%08x\n", res); in demo_hmac_virt()
238 return res; in demo_hmac_virt()
246 res = rk_hash_init(&hash_cfg, &hash_hdl); in demo_hmac_virt()
247 if (res) { in demo_hmac_virt()
248 printf("rk_hash_init error! res: 0x%08x\n", res); in demo_hmac_virt()
258 res = rk_hash_update_virt(hash_hdl, tmp_data, data_block); in demo_hmac_virt()
259 if (res) { in demo_hmac_virt()
261 printf("rk_hash_update_virt error! res: 0x%08x\n", res); in demo_hmac_virt()
273 res = RK_CRYPTO_ERR_GENERIC; in demo_hmac_virt()
281 return res; in demo_hmac_virt()