Lines Matching refs:hvc
17 use crate::hvc;
32 Trng(hvc::trng::Error),
36 UnsupportedTrngVersion(hvc::trng::Version),
45 impl From<hvc::trng::Error> for Error {
46 fn from(e: hvc::trng::Error) -> Self { in from()
81 match hvc::trng_version()? { in init()
82 hvc::trng::Version { major: 1, minor: _ } => (), in init()
87 let _ = hvc::trng_features(hvc::ARM_SMCCC_TRNG_RND64).map_err(|e| { in init()
88 if e == hvc::trng::Error::NotSupported { in init()
127 let result = hvc::trng_rnd64((n_bytes * bits).try_into().unwrap()); in rnd64()
128 let entropy = if matches!(result, Err(hvc::trng::Error::NoEntropy)) { in rnd64()