Lines Matching refs:copied
39 unsigned int chunk, copied; in copy_from_registers() local
46 copied = chunk; in copy_from_registers()
47 if (copied >= bytes) in copy_from_registers()
48 return copied; in copy_from_registers()
50 chunk = min((bytes - copied), sizeof(long)); in copy_from_registers()
51 memcpy(&buf[copied], &res->a2, chunk); in copy_from_registers()
52 copied += chunk; in copy_from_registers()
53 if (copied >= bytes) in copy_from_registers()
54 return copied; in copy_from_registers()
56 chunk = min((bytes - copied), sizeof(long)); in copy_from_registers()
57 memcpy(&buf[copied], &res->a1, chunk); in copy_from_registers()
59 return copied + chunk; in copy_from_registers()
66 unsigned int copied = 0; in smccc_trng_read() local
69 while (copied < max) { in smccc_trng_read()
70 size_t bits = min_t(size_t, (max - copied) * BITS_PER_BYTE, in smccc_trng_read()
77 copied += copy_from_registers(buf + copied, &res, in smccc_trng_read()
83 return copied; in smccc_trng_read()
86 return copied; in smccc_trng_read()
94 return copied; in smccc_trng_read()