/Zephyr-latest/subsys/random/ |
D | random_entropy_device.c | 15 static int rand_get(uint8_t *dst, size_t outlen, bool csrand) in rand_get() argument 23 ret = entropy_get_entropy(entropy_dev, dst, outlen); in rand_get() 43 while (len < outlen) { in rand_get() 44 size_t copylen = outlen - len; in rand_get() 60 void z_impl_sys_rand_get(void *dst, size_t outlen) in z_impl_sys_rand_get() argument 62 rand_get(dst, outlen, false); in z_impl_sys_rand_get() 68 int z_impl_sys_csrand_get(void *dst, size_t outlen) in z_impl_sys_csrand_get() argument 70 if (rand_get(dst, outlen, true) != 0) { in z_impl_sys_csrand_get()
|
D | random_timer.c | 58 void z_impl_sys_rand_get(void *dst, size_t outlen) in z_impl_sys_rand_get() argument 64 while (outlen > 0) { in z_impl_sys_rand_get() 66 blocksize = MIN(outlen, sizeof(ret)); in z_impl_sys_rand_get() 69 outlen -= blocksize; in z_impl_sys_rand_get()
|
D | random_test_csprng.c | 9 int z_impl_sys_csrand_get(void *dst, size_t outlen) in z_impl_sys_csrand_get() argument 11 sys_rand_get(dst, outlen); in z_impl_sys_csrand_get()
|
D | random_xoshiro128.c | 94 void z_impl_sys_rand_get(void *dst, size_t outlen) in z_impl_sys_rand_get() argument 96 size_t blocks = outlen / sizeof(uint32_t); in z_impl_sys_rand_get() 97 size_t rem = (outlen - (blocks * sizeof(uint32_t))); in z_impl_sys_rand_get()
|
D | random_ctr_drbg.c | 65 int z_impl_sys_csrand_get(void *dst, uint32_t outlen) in z_impl_sys_csrand_get() argument 79 ret = mbedtls_ctr_drbg_random(&ctr_ctx, (unsigned char *)dst, outlen); in z_impl_sys_csrand_get()
|
/Zephyr-latest/tests/bluetooth/host/crypto/mocks/ |
D | prng_expects.c | 19 void expect_single_call_psa_generate_random(uint8_t *out, size_t outlen) in expect_single_call_psa_generate_random() argument 28 zassert_equal(psa_generate_random_fake.arg1_val, outlen, in expect_single_call_psa_generate_random()
|
D | prng_expects.h | 23 void expect_single_call_psa_generate_random(uint8_t *out, unsigned int outlen);
|
/Zephyr-latest/lib/os/ |
D | spsc_pbuf.c | 231 int outlen; in spsc_pbuf_write() local 237 outlen = spsc_pbuf_alloc(pb, len, &pbuf); in spsc_pbuf_write() 238 if (outlen != len) { in spsc_pbuf_write() 239 return outlen < 0 ? outlen : -ENOMEM; in spsc_pbuf_write()
|
/Zephyr-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_util.h | 23 int lwm2m_ftoa(double *input, char *out, size_t outlen, int8_t dec_limit);
|
D | lwm2m_util.c | 376 int lwm2m_ftoa(double *input, char *out, size_t outlen, int8_t dec_limit) in lwm2m_ftoa() argument 422 return snprintk(out, outlen, "%s%lld.%s", in lwm2m_ftoa()
|
/Zephyr-latest/tests/lib/spsc_pbuf/src/ |
D | main.c | 129 uint16_t outlen, in packet_write() argument 143 zassert_true(rv >= outlen, "%d: Unexpected rv (bigger than %d)", line, rv, outlen); in packet_write() 145 for (uint16_t i = 0; i < outlen; i++) { in packet_write() 149 if (outlen > 0) { in packet_write() 150 spsc_pbuf_commit(pb, outlen); in packet_write()
|
/Zephyr-latest/include/zephyr/sys/ |
D | cbprintf.h | 385 #define CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, align_offset, flags, \ argument 387 Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, \
|
D | cbprintf_internal.h | 865 #define Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, align_offset, flags, \ argument 867 Z_CBPRINTF_STATIC_PACKAGE_GENERIC(packaged, inlen, outlen, \ 870 #define Z_CBPRINTF_STATIC_PACKAGE(packaged, inlen, outlen, align_offset, flags, \ 875 outlen = cbprintf_package(packaged, inlen, flags, __VA_ARGS__); \ 877 outlen = cbprintf_package(NULL, align_offset, flags, __VA_ARGS__); \
|
/Zephyr-latest/tests/lib/cbprintf_package/src/ |
D | main.c | 90 int outlen; \ 92 CBPRINTF_STATIC_PACKAGE(pkg, len, outlen, ALIGN_OFFSET, flags, fmt, __VA_ARGS__);\ 93 zassert_equal(len, outlen); \
|