Lines Matching refs:buf
21 static ssize_t get_entropy_from_instruction(void* buf, size_t len, bool block,
23 static ssize_t get_entropy_from_rdseed(void* buf, size_t len, bool block);
24 static ssize_t get_entropy_from_rdrand(void* buf, size_t len, bool block);
37 static ssize_t get_entropy_from_cpu(void* buf, size_t len, bool block) { in get_entropy_from_cpu() argument
47 return get_entropy_from_rdseed(buf, len, block); in get_entropy_from_cpu()
49 return get_entropy_from_rdrand(buf, len, block); in get_entropy_from_cpu()
69 static ssize_t get_entropy_from_instruction(void* buf, size_t len, bool block, in get_entropy_from_instruction() argument
82 memcpy(static_cast<uint8_t*>(buf) + written, &val, to_copy); in get_entropy_from_instruction()
91 static ssize_t get_entropy_from_rdseed(void* buf, size_t len, bool block) { in get_entropy_from_rdseed() argument
92 return get_entropy_from_instruction(buf, len, block, ENTROPY_INSTR_RDSEED); in get_entropy_from_rdseed()
95 static ssize_t get_entropy_from_rdrand(void* buf, size_t len, bool block) { in get_entropy_from_rdrand() argument
102 return get_entropy_from_instruction(buf, len, block, ENTROPY_INSTR_RDRAND); in get_entropy_from_rdrand()
105 size_t hw_rng_get_entropy(void* buf, size_t len, bool block) { in hw_rng_get_entropy() argument
110 ssize_t res = get_entropy_from_cpu(buf, len, block); in hw_rng_get_entropy()