Lines Matching defs:handle
22 /* handle the RND call in SMC 32 bit mode */
23 static uintptr_t trng_rnd32(uint32_t nbits, void *handle)
29 SMC_RET1(handle, TRNG_E_INVALID_PARAMS);
33 SMC_RET1(handle, TRNG_E_NO_ENTROPY);
42 SMC_RET4(handle, TRNG_E_SUCCESS, 0, 0, ent[0] & mask);
45 SMC_RET4(handle, TRNG_E_SUCCESS, 0, (ent[0] >> 32) & mask,
49 SMC_RET4(handle, TRNG_E_SUCCESS, ent[1] & mask,
53 SMC_RET1(handle, TRNG_E_INVALID_PARAMS);
58 /* handle the RND call in SMC 64 bit mode */
59 static uintptr_t trng_rnd64(uint32_t nbits, void *handle)
65 SMC_RET1(handle, TRNG_E_INVALID_PARAMS);
69 SMC_RET1(handle, TRNG_E_NO_ENTROPY);
79 SMC_RET4(handle, TRNG_E_SUCCESS, 0, 0, ent[0] & mask);
82 SMC_RET4(handle, TRNG_E_SUCCESS, 0, ent[1] & mask, ent[0]);
85 SMC_RET4(handle, TRNG_E_SUCCESS, ent[2] & mask, ent[1], ent[0]);
88 SMC_RET1(handle, TRNG_E_INVALID_PARAMS);
111 void *handle, u_register_t flags)
114 SMC_RET1(handle, TRNG_E_NOT_IMPLEMENTED);
119 SMC_RET1(handle, MAKE_SMCCC_VERSION(
125 SMC_RET1(handle, TRNG_E_SUCCESS);
127 SMC_RET1(handle, TRNG_E_NOT_SUPPORTED);
132 SMC_UUID_RET(handle, plat_trng_uuid);
136 return trng_rnd32((uint32_t)x1, handle);
139 return trng_rnd64((uint32_t)x1, handle);
143 SMC_RET1(handle, TRNG_E_NOT_IMPLEMENTED);