Home
last modified time | relevance | path

Searched refs:currsize (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/crypto/hisilicon/trng/
H A Dtrng.c118 u32 currsize = 0; in hisi_trng_generate() local
144 memcpy(dstn + currsize, data, dlen - currsize); in hisi_trng_generate()
145 currsize = dlen; in hisi_trng_generate()
186 int currsize = 0; in hisi_trng_read() local
196 return currsize; in hisi_trng_read()
201 if (currsize == max) in hisi_trng_read()
202 return currsize; in hisi_trng_read()
207 memcpy(buf + currsize, &val, max - currsize); in hisi_trng_read()
208 currsize = max; in hisi_trng_read()
209 } while (currsize < max); in hisi_trng_read()
[all …]
/openbmc/linux/drivers/crypto/
H A Dqcom-rng.c46 unsigned int currsize = 0; in qcom_rng_read() local
62 if ((max - currsize) >= WORD_SZ) { in qcom_rng_read()
65 currsize += WORD_SZ; in qcom_rng_read()
68 memcpy(data, &val, max - currsize); in qcom_rng_read()
71 } while (currsize < max); in qcom_rng_read()