Lines Matching refs:value
102 static bool cn10k_read_trng(struct cn10k_rng *rng, u64 *value) in cn10k_read_trng() argument
110 *value = readq(rng->reg_base + RNM_PF_TRNG_DAT); in cn10k_read_trng()
111 if (*value) in cn10k_read_trng()
119 *value = readq(rng->reg_base + RNM_PF_RANDOM); in cn10k_read_trng()
124 if (!*value) { in cn10k_read_trng()
132 *value = (upper & 0xFFFFFFFF00000000) | (lower & 0xFFFFFFFF); in cn10k_read_trng()
144 u64 value; in cn10k_rng_read() local
153 if (!cn10k_read_trng(rng, &value)) in cn10k_rng_read()
156 *((u64 *)pos) = value; in cn10k_rng_read()
162 if (!cn10k_read_trng(rng, &value)) in cn10k_rng_read()
166 *pos = (u8)value; in cn10k_rng_read()
167 value >>= 8; in cn10k_rng_read()