Lines Matching refs:state_handle
33 static int is_hw_rng_instantiated(uint32_t *state_handle) in is_hw_rng_instantiated() argument
42 *state_handle = 0; in is_hw_rng_instantiated()
45 *state_handle = 1; in is_hw_rng_instantiated()
130 uint8_t *out, uint32_t out_len, uint32_t state_handle) in hw_rng_generate() argument
145 ret = cnstr_rng_jobdesc(jobdesc->desc, state_handle, in hw_rng_generate()
173 uint32_t state_handle; in hw_rng_instantiate() local
175 ret = is_hw_rng_instantiated(&state_handle); in hw_rng_instantiate()
219 uint32_t state_handle; in get_rand_bytes_hw() local
225 ret_code = is_hw_rng_instantiated(&state_handle); in get_rand_bytes_hw()
239 if (is_hw_rng_instantiated(&state_handle) == 0) { in get_rand_bytes_hw()
244 ret_code = hw_rng_generate(0, 0, bytes, byte_len, state_handle); in get_rand_bytes_hw()