Searched refs:currsize (Results 1 – 2 of 2) sorted by relevance
118 u32 currsize = 0; in hisi_trng_generate() local140 if (dlen - currsize >= SW_DRBG_BYTES) { in hisi_trng_generate()141 memcpy(dstn + currsize, data, SW_DRBG_BYTES); in hisi_trng_generate()142 currsize += SW_DRBG_BYTES; in hisi_trng_generate()144 memcpy(dstn + currsize, data, dlen - currsize); in hisi_trng_generate()145 currsize = dlen; in hisi_trng_generate()149 } while (currsize < dlen); in hisi_trng_generate()186 int currsize = 0; in hisi_trng_read() local196 return currsize; in hisi_trng_read()198 if (max - currsize >= HISI_TRNG_BYTES) { in hisi_trng_read()[all …]
46 unsigned int currsize = 0; in qcom_rng_read() local62 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()