/Zephyr-Core-3.7.0/tests/crypto/tinycrypt/src/ |
D | sha256.c | 66 const char *m = "abc"; in ZTEST() local 71 tc_sha256_update(&s, (const uint8_t *)m, strlen(m)); in ZTEST() 95 const char *m = in ZTEST() local 101 tc_sha256_update(&s, (const uint8_t *)m, strlen(m)); in ZTEST() 123 const uint8_t m[1] = { 0xbd }; in ZTEST() local 128 tc_sha256_update(&s, m, sizeof(m)); in ZTEST() 151 const uint8_t m[4] = { 0xc9, 0x8c, 0x8e, 0x55 }; in ZTEST() local 156 tc_sha256_update(&s, m, sizeof(m)); in ZTEST() 179 uint8_t m[55]; in ZTEST() local 183 (void)memset(m, 0x00, sizeof(m)); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/ll_sw/ |
D | lll_chan.c | 347 uint8_t m; in lll_chan_sel_2_ut() local 351 m = lll_chan_sel_2(0U, chan_id, chan_map_1, chan_map_1_37_used); in lll_chan_sel_2_ut() 352 LL_ASSERT(m == 25U); in lll_chan_sel_2_ut() 354 m = lll_chan_sel_2(1U, chan_id, chan_map_1, chan_map_1_37_used); in lll_chan_sel_2_ut() 355 LL_ASSERT(m == 20U); in lll_chan_sel_2_ut() 357 m = lll_chan_sel_2(2U, chan_id, chan_map_1, chan_map_1_37_used); in lll_chan_sel_2_ut() 358 LL_ASSERT(m == 6U); in lll_chan_sel_2_ut() 360 m = lll_chan_sel_2(3U, chan_id, chan_map_1, chan_map_1_37_used); in lll_chan_sel_2_ut() 361 LL_ASSERT(m == 21U); in lll_chan_sel_2_ut() 364 m = lll_chan_sel_2(6U, chan_id, chan_map_2, chan_map_2_9_used); in lll_chan_sel_2_ut() [all …]
|
/Zephyr-Core-3.7.0/lib/posix/options/ |
D | mutex.c | 43 static inline size_t posix_mutex_to_offset(struct k_mutex *m) in posix_mutex_to_offset() argument 45 return m - posix_mutex_pool; in posix_mutex_to_offset() 83 struct k_mutex *m; in to_posix_mutex() local 99 m = &posix_mutex_pool[bit]; in to_posix_mutex() 101 err = k_mutex_init(m); in to_posix_mutex() 104 return m; in to_posix_mutex() 112 struct k_mutex *m; in acquire_mutex() local 117 m = to_posix_mutex(mu); in acquire_mutex() 118 if (m == NULL) { in acquire_mutex() 123 LOG_DBG("Locking mutex %p with timeout %llx", m, timeout.ticks); in acquire_mutex() [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/sys/ |
D | util_internal.h | 145 #define MACRO_MC_1(m, a, ...) m(a) argument 146 #define MACRO_MC_2(m, a, ...) UTIL_CAT(m(a), MACRO_MC_1(m, __VA_ARGS__,)) argument 147 #define MACRO_MC_3(m, a, ...) UTIL_CAT(m(a), MACRO_MC_2(m, __VA_ARGS__,)) argument 148 #define MACRO_MC_4(m, a, ...) UTIL_CAT(m(a), MACRO_MC_3(m, __VA_ARGS__,)) argument 149 #define MACRO_MC_5(m, a, ...) UTIL_CAT(m(a), MACRO_MC_4(m, __VA_ARGS__,)) argument 150 #define MACRO_MC_6(m, a, ...) UTIL_CAT(m(a), MACRO_MC_5(m, __VA_ARGS__,)) argument 151 #define MACRO_MC_7(m, a, ...) UTIL_CAT(m(a), MACRO_MC_6(m, __VA_ARGS__,)) argument 152 #define MACRO_MC_8(m, a, ...) UTIL_CAT(m(a), MACRO_MC_7(m, __VA_ARGS__,)) argument 153 #define MACRO_MC_9(m, a, ...) UTIL_CAT(m(a), MACRO_MC_8(m, __VA_ARGS__,)) argument 154 #define MACRO_MC_10(m, a, ...) UTIL_CAT(m(a), MACRO_MC_9(m, __VA_ARGS__,)) argument [all …]
|
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ |
D | ticker.c | 62 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched() local 65 m.param = instance; in hal_ticker_instance0_sched() 71 &m); in hal_ticker_instance0_sched() 86 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched() local 89 m.param = instance; in hal_ticker_instance0_sched() 94 &m); in hal_ticker_instance0_sched() 109 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched() local 112 m.param = instance; in hal_ticker_instance0_sched() 117 &m); in hal_ticker_instance0_sched() 132 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched() local [all …]
|
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/ |
D | ticker.c | 63 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched() local 66 m.param = instance; in hal_ticker_instance0_sched() 72 &m); in hal_ticker_instance0_sched() 88 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched() local 91 m.param = instance; in hal_ticker_instance0_sched() 96 &m); in hal_ticker_instance0_sched() 111 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched() local 114 m.param = instance; in hal_ticker_instance0_sched() 119 &m); in hal_ticker_instance0_sched() 134 static struct mayfly m = {0, 0, &link, NULL, in hal_ticker_instance0_sched() local [all …]
|
/Zephyr-Core-3.7.0/subsys/bluetooth/crypto/ |
D | bt_crypto.c | 27 uint8_t m[65]; in bt_crypto_f4() local 43 sys_memcpy_swap(m, u, 32); in bt_crypto_f4() 44 sys_memcpy_swap(m + 32, v, 32); in bt_crypto_f4() 45 m[64] = z; in bt_crypto_f4() 49 err = bt_crypto_aes_cmac(xs, m, sizeof(m), res); in bt_crypto_f4() 66 uint8_t m[53] = {0x00, /* counter */ in bt_crypto_f5() local 91 sys_memcpy_swap(m + 5, n1, 16); in bt_crypto_f5() 92 sys_memcpy_swap(m + 21, n2, 16); in bt_crypto_f5() 93 m[37] = a1->type; in bt_crypto_f5() 94 sys_memcpy_swap(m + 38, a1->a.val, 6); in bt_crypto_f5() [all …]
|
/Zephyr-Core-3.7.0/samples/subsys/rtio/sensor_batch_processing/src/ |
D | main.c | 38 int m = 0; in main() local 49 while (m < M) { in main() 57 LOG_DBG("Consumed completion event %d", m); in main() 63 if (rtio_cqe_get_mempool_buffer(&ez_io, cqe, &userdata[m], &data_len[m])) { in main() 67 m++; in main() 77 for (m = 0; m < M; m++) { in main() 78 LOG_HEXDUMP_DBG(userdata[m], SAMPLE_SIZE, "Sample data:"); in main() 86 for (m = 0; m < M; m++) { in main() 89 rtio_release_buffer(&ez_io, userdata[m], data_len[m]); in main()
|
/Zephyr-Core-3.7.0/scripts/utils/ |
D | migrate_sys_init.py | 32 m = re.match(r"^SYS_INIT\(([A-Za-z0-9_]+),.*", line) 33 if m: 34 sys_inits.append(m.group(1)) 37 m = re.match(r"^SYS_INIT_NAMED\([A-Za-z0-9_]+,\s?([A-Za-z0-9_]+).*", line) 38 if m: 39 sys_inits.append(m.group(1)) 50 m = re.match( 56 if m: 57 b, sys_init, arg, e = m.groups() 61 m = re.match(r"^\s?ARG_UNUSED\(" + arg + r"\);.*$", line) [all …]
|
D | migrate_includes.py | 44 m = re.match(r"^(.*)#include <(.*\.h)>(.*)$", line) 45 if m and m.group(2) in ("zephyr.h", "zephyr/zephyr.h"): 47 m.group(1) 49 + m.group(3) 54 m 55 and not m.group(2).startswith("zephyr/") 56 and (ZEPHYR_BASE / "include" / "zephyr" / m.group(2)).exists() 59 m.group(1) 61 + m.group(2) 63 + m.group(3)
|
D | pinctrl_nrf_migrate.py | 253 m = re.match(r'^#include\s+(?:"|<).*nrf.*(?:>|").*', line) 254 if m: 346 m = re.match(r'^#include\s+".*-pinctrl\.dtsi".*', line) 347 if m: 352 m = re.match(r'^#include\s+(?:"|<)(.*)(?:>|").*', line) 353 if m: 358 m = re.match(r"^\s*/\s*{.*", line) 359 if m: 393 m = re.match(r"^[^&]*&([a-z0-9]+)\s*{[^}]*$", line) 394 if m: [all …]
|
D | board_v1_to_v2.py | 100 m = re.match(r"^CONFIG_BOARD_.*$", line) 101 if m: 105 m = re.match(r"^CONFIG_(SOC_[A-Z0-9_]+).*$", line) 106 if m: 109 board_soc_settings.append(m.group(1)) 130 m = re.match(r"^config BOARD$", line) 131 if m: 140 m = re.match(r"^config .*$", line) 141 if m: 144 m = re.match(rf"^(.*)BOARD_{board.upper()}(.*)$", line) [all …]
|
/Zephyr-Core-3.7.0/tests/subsys/lorawan/frag_decoder/src/ |
D | frag_encoder.c | 51 void lorawan_fec_parity_matrix_vector(int m, int n, uint8_t *vec) in lorawan_fec_parity_matrix_vector() argument 55 memset(vec, 0, m); in lorawan_fec_parity_matrix_vector() 61 if (is_power_of_two(m)) { in lorawan_fec_parity_matrix_vector() 62 mm = m + 1; in lorawan_fec_parity_matrix_vector() 64 mm = m; in lorawan_fec_parity_matrix_vector() 69 for (int nb_coeff = 0; nb_coeff < (m / 2); nb_coeff++) { in lorawan_fec_parity_matrix_vector() 71 while (r >= m) { in lorawan_fec_parity_matrix_vector() 105 for (int m = 0; m < frag_size; m++) { in lorawan_frag_encoder() local 106 out[m] ^= coded[j * frag_size + m]; in lorawan_frag_encoder()
|
/Zephyr-Core-3.7.0/samples/drivers/misc/grove_display/src/ |
D | main.c | 42 int i, j, m; in main() local 79 m = (rgb[2] > 255) ? (512 - rgb[2]) : (rgb[2]); in main() 80 rgb_chg[2] = clamp_rgb(m); in main() 82 m = (rgb[1] > 255) ? (512 - rgb[1]) : (rgb[1]); in main() 83 rgb_chg[1] = clamp_rgb(m); in main() 85 m = (rgb[0] > 255) ? (512 - rgb[0]) : (rgb[0]); in main() 86 rgb_chg[0] = clamp_rgb(m); in main() 95 m = cnt; in main() 99 str[j] = '0' + (m / i); in main() 101 m = m % i; in main()
|
/Zephyr-Core-3.7.0/arch/xtensa/core/ |
D | gen_vectors.py | 67 m = re.match(r"^#define\s+XCHAL_([^ ]+)_VECOFS\s*(.*)", line.rstrip()) variable 68 if m: 69 (sym, val) = (m.group(1), m.group(2)) 82 m = re.match(r"XCHAL_INTLEVEL(\d+)_VECOFS", val) variable 83 if not m: 85 assert m 86 debug_level = eval(m.group(1)) 94 m = re.match(r"^INTLEVEL(\d+)", sym) variable 95 if m:
|
D | gen_zsr.py | 48 m = re.match(r"^#define\s+([^ ]+)\s*(.*)", line.rstrip()) variable 49 if m: 50 syms[m.group(1)] = m.group(2) 76 m = re.match(r"XCHAL_INT(\d+)_TYPE", sym) variable 77 if m: 78 intnum = int(m.group(1))
|
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/util/ |
D | mayfly.c | 76 struct mayfly *m) in mayfly_enqueue() argument 87 ack = m->_ack; in mayfly_enqueue() 90 state = (m->_req - ack) & 0x03; in mayfly_enqueue() 95 m->_req = ack + 1; in mayfly_enqueue() 105 m->_req = ack + 2; in mayfly_enqueue() 111 m->fp(m->param); in mayfly_enqueue() 117 m->_req = ack + 1; in mayfly_enqueue() 118 memq_enqueue(m->_link, m, &mft[callee_id][caller_id].tail); in mayfly_enqueue() 131 struct mayfly *m) in dequeue() argument 135 req = m->_req; in dequeue() [all …]
|
/Zephyr-Core-3.7.0/samples/kernel/metairq_dispatch/src/ |
D | main.c | 59 struct msg m; in metairq_fn() local 61 message_dev_fetch(&m); in metairq_fn() 62 m.metairq_latency = k_cycle_get_32() - m.timestamp; in metairq_fn() 64 int ret = k_msgq_put(&threads[m.target].msgq, &m, K_NO_WAIT); in metairq_fn() 68 m.target, m.seq); in metairq_fn() 111 static void record_latencies(struct msg *m, uint32_t latency) in record_latencies() argument 117 if (IS_ENABLED(CONFIG_QEMU_TARGET) && m->seq == 0) { in record_latencies() 125 if (m->seq >= MAX_EVENTS) { in record_latencies() 129 int t = m->target; in record_latencies() 136 stats.mirq_latencies[atomic_inc(&stats.num_mirq)] = m->metairq_latency; in record_latencies() [all …]
|
D | msgdev.c | 58 struct msg m; in dev_timer_expired() local 60 m.seq = msg_seq++; in dev_timer_expired() 61 m.timestamp = timestamp; in dev_timer_expired() 62 m.target = rand32() % NUM_THREADS; in dev_timer_expired() 63 m.proc_cyc = rand32() % max_duty_cyc; in dev_timer_expired() 65 int ret = k_msgq_put(&hw_msgs, &m, K_NO_WAIT); in dev_timer_expired() 71 if (m.seq < MAX_EVENTS) { in dev_timer_expired() 99 void message_dev_fetch(struct msg *m) in message_dev_fetch() argument 101 int ret = k_msgq_get(&hw_msgs, m, K_FOREVER); in message_dev_fetch()
|
/Zephyr-Core-3.7.0/samples/sensor/accel_polling/ |
D | README.rst | 38 lis2dh@19 [m/s^2]: ( -6.013728, -3.064320, 7.277760) 39 lis2dh@19 [m/s^2]: ( -6.128640, -3.026016, 7.201152) 40 lis2dh@19 [m/s^2]: ( -6.090336, -3.064320, 7.162848) 41 lis2dh@19 [m/s^2]: ( -6.128640, -3.026016, 7.354368) 42 lis2dh@19 [m/s^2]: ( -6.166944, -3.102624, 7.277760) 43 lis2dh@19 [m/s^2]: ( -6.128640, -2.987712, 7.277760) 44 lis2dh@19 [m/s^2]: ( -6.052032, -2.987712, 7.277760) 45 lis2dh@19 [m/s^2]: ( -6.166944, -2.987712, 7.239456) 46 lis2dh@19 [m/s^2]: ( -6.090336, -3.026016, 7.201152)
|
/Zephyr-Core-3.7.0/tests/drivers/can/host/pytest/ |
D | can_shell.py | 58 m = regex_compiled.match(line) 59 if m: 60 return m.group('caps').split() 100 m = regex_compiled.match(line) 101 if m: 102 frame_num = m.group('id') 126 m = regex_compiled.match(line) 127 if m: 128 filter_id = int(m.group('id')) 176 m = regex_compiled.match(line) [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/posix/sys/ |
D | stat.h | 183 #define S_ISBLK(m) (((m)&_IFMT) == _IFBLK) argument 184 #define S_ISCHR(m) (((m)&_IFMT) == _IFCHR) argument 185 #define S_ISDIR(m) (((m)&_IFMT) == _IFDIR) argument 186 #define S_ISFIFO(m) (((m)&_IFMT) == _IFIFO) argument 187 #define S_ISREG(m) (((m)&_IFMT) == _IFREG) argument 188 #define S_ISLNK(m) (((m)&_IFMT) == _IFLNK) argument 189 #define S_ISSOCK(m) (((m)&_IFMT) == _IFSOCK) argument
|
/Zephyr-Core-3.7.0/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/ |
D | mcumgr.py | 76 if m := re_image.search(line): 79 image=int(m.group(1)), 80 slot=int(m.group(2)) 84 if m := re_version.search(line): 85 image_list[-1].version = m.group(1) 86 elif m := re_flags.search(line): 87 image_list[-1].flags = m.group(1) 88 elif m := re_hash.search(line): 89 image_list[-1].hash = m.group(1)
|
/Zephyr-Core-3.7.0/subsys/lorawan/services/ |
D | frag_decoder_lowmem.c | 28 static inline size_t matrix_location_to_index(size_t x, size_t y, size_t m) in matrix_location_to_index() argument 34 return (y + 1) * (m + m - y) / 2 - (m - x); in matrix_location_to_index() 37 static bool triangular_matrix_get_entry(struct sys_bitarray *m2tbm, size_t x, size_t y, size_t m) in triangular_matrix_get_entry() argument 40 __ASSERT(x >= y, "x: %d, y: %d, m: %d", x, y, m); in triangular_matrix_get_entry() 44 ret = sys_bitarray_test_bit(m2tbm, matrix_location_to_index(x, y, m), &bit); in triangular_matrix_get_entry() 50 static void triangular_matrix_set_entry(struct sys_bitarray *m2tbm, size_t x, size_t y, size_t m) in triangular_matrix_set_entry() argument 53 __ASSERT(x >= y, "x: %d, y: %d, m: %d", x, y, m); in triangular_matrix_set_entry() 56 ret = sys_bitarray_set_bit(m2tbm, matrix_location_to_index(x, y, m)); in triangular_matrix_set_entry() 60 static void triangular_matrix_clear_entry(struct sys_bitarray *m2tbm, size_t x, size_t y, size_t m) in triangular_matrix_clear_entry() argument 63 __ASSERT(x >= y, "x: %d, y: %d, m: %d", x, y, m); in triangular_matrix_clear_entry() [all …]
|
/Zephyr-Core-3.7.0/tests/net/socket/socketpair/src/ |
D | block.c | 15 atomic_t m; member 31 LOG_DBG("ctx.m: %lu", atomic_get(&ctx.m)); in work_handler() 32 if (atomic_get(&ctx.m) in work_handler() 77 for (ctx.m = 0; atomic_get(&ctx.m) in ZTEST_F() 85 atomic_inc(&ctx.m); in ZTEST_F() 86 LOG_DBG("have written %lu bytes", atomic_get(&ctx.m)); in ZTEST_F()
|