Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 852) sorted by relevance

12345678910>>...35

/Zephyr-latest/include/zephyr/dsp/
Dutils.h46 #define Z_SHIFT_Q7_TO_F32(src, m) ((float32_t)(((src << m)) / (float32_t)(1U << 7))) argument
55 #define Z_SHIFT_Q15_TO_F32(src, m) ((float32_t)((src << m) / (float32_t)(1U << 15))) argument
64 #define Z_SHIFT_Q31_TO_F32(src, m) ((float32_t)(((int64_t)src) << m) / (float32_t)(1U << 31)) argument
73 #define Z_SHIFT_Q7_TO_F64(src, m) (((float64_t)(src << m)) / (1U << 7)) argument
82 #define Z_SHIFT_Q15_TO_F64(src, m) (((float64_t)(src << m)) / (1UL << 15)) argument
91 #define Z_SHIFT_Q31_TO_F64(src, m) ((float64_t)(((int64_t)src) << m) / (1ULL << 31)) argument
114 #define Z_SHIFT_F32_TO_Q7(src, m) \ argument
115 ((q7_t)Z_CLAMP((int32_t)(src * (1U << 7)) >> m, INT8_MIN, INT8_MAX))
124 #define Z_SHIFT_F32_TO_Q15(src, m) \ argument
125 ((q15_t)Z_CLAMP((int32_t)(src * (1U << 15)) >> m, INT16_MIN, INT16_MAX))
[all …]
/Zephyr-latest/tests/crypto/tinycrypt/src/
Dsha256.c66 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-latest/subsys/bluetooth/controller/ll_sw/
Dlll_chan.c347 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-latest/include/zephyr/sys/
Dutil_internal.h145 #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-latest/lib/posix/options/
Dmutex.c44 static inline size_t posix_mutex_to_offset(struct k_mutex *m) in posix_mutex_to_offset() argument
46 return m - posix_mutex_pool; in posix_mutex_to_offset()
84 struct k_mutex *m; in to_posix_mutex() local
100 m = &posix_mutex_pool[bit]; in to_posix_mutex()
102 err = k_mutex_init(m); in to_posix_mutex()
105 return m; in to_posix_mutex()
114 struct k_mutex *m = NULL; in acquire_mutex() local
118 m = to_posix_mutex(mu); in acquire_mutex()
119 if (m == NULL) { in acquire_mutex()
124 LOG_DBG("Locking mutex %p with timeout %llx", m, timeout.ticks); in acquire_mutex()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/
Dticker.c62 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-latest/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/
Dticker.c63 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-latest/subsys/bluetooth/crypto/
Dbt_crypto.c22 uint8_t m[65]; in bt_crypto_f4() local
38 sys_memcpy_swap(m, u, 32); in bt_crypto_f4()
39 sys_memcpy_swap(m + 32, v, 32); in bt_crypto_f4()
40 m[64] = z; in bt_crypto_f4()
44 err = bt_crypto_aes_cmac(xs, m, sizeof(m), res); in bt_crypto_f4()
61 uint8_t m[53] = {0x00, /* counter */ in bt_crypto_f5() local
86 sys_memcpy_swap(m + 5, n1, 16); in bt_crypto_f5()
87 sys_memcpy_swap(m + 21, n2, 16); in bt_crypto_f5()
88 m[37] = a1->type; in bt_crypto_f5()
89 sys_memcpy_swap(m + 38, a1->a.val, 6); in bt_crypto_f5()
[all …]
/Zephyr-latest/samples/subsys/rtio/sensor_batch_processing/src/
Dmain.c38 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-latest/scripts/utils/
Dmigrate_sys_init.py32 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 …]
Dmigrate_includes.py43 m = re.match(r"^(.*)#include <(.*\.h)>(.*)$", line)
44 if m and m.group(2) in ("zephyr.h", "zephyr/zephyr.h"):
46 m.group(1)
48 + m.group(3)
53 m
54 and not m.group(2).startswith("zephyr/")
55 and (ZEPHYR_BASE / "include" / "zephyr" / m.group(2)).exists()
58 m.group(1)
60 + m.group(2)
62 + m.group(3)
Dpinctrl_nrf_migrate.py253 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 …]
Dboard_v1_to_v2.py100 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-latest/tests/subsys/lorawan/frag_decoder/src/
Dfrag_encoder.c51 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-latest/samples/sensor/accel_trig/
DREADME.rst35 fxos8700@1d [m/s^2]: ( -0.153229, -0.057461, 9.931148)
36 fxos8700@1d [m/s^2]: ( -0.153229, -0.057461, 9.931148)
37 fxos8700@1d [m/s^2]: ( -0.143653, -0.057461, 9.921571)
38 fxos8700@1d [m/s^2]: ( -0.153229, -0.067038, 9.931148)
39 fxos8700@1d [m/s^2]: ( -0.143653, -0.067038, 9.921571)
40 fxos8700@1d [m/s^2]: ( -0.134076, -0.047885, 9.931148)
41 fxos8700@1d [m/s^2]: ( -0.105345, -0.038308, 9.940725)
42 fxos8700@1d [m/s^2]: ( -0.105345, -0.019154, 9.931148)
43 fxos8700@1d [m/s^2]: ( -0.105345, -0.028731, 9.921571)
44 fxos8700@1d [m/s^2]: ( -0.095769, -0.028731, 9.931148)
[all …]
/Zephyr-latest/samples/drivers/misc/grove_display/src/
Dmain.c42 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-latest/arch/xtensa/core/
Dgen_vectors.py67 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:
/Zephyr-latest/subsys/bluetooth/controller/util/
Dmayfly.c76 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-latest/samples/kernel/metairq_dispatch/src/
Dmain.c59 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 …]
Dmsgdev.c58 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-latest/samples/sensor/accel_polling/
DREADME.rst39 lis2dh@19 [m/s^2]: ( -6.013728, -3.064320, 7.277760)
40 lis2dh@19 [m/s^2]: ( -6.128640, -3.026016, 7.201152)
41 lis2dh@19 [m/s^2]: ( -6.090336, -3.064320, 7.162848)
42 lis2dh@19 [m/s^2]: ( -6.128640, -3.026016, 7.354368)
43 lis2dh@19 [m/s^2]: ( -6.166944, -3.102624, 7.277760)
44 lis2dh@19 [m/s^2]: ( -6.128640, -2.987712, 7.277760)
45 lis2dh@19 [m/s^2]: ( -6.052032, -2.987712, 7.277760)
46 lis2dh@19 [m/s^2]: ( -6.166944, -2.987712, 7.239456)
47 lis2dh@19 [m/s^2]: ( -6.090336, -3.026016, 7.201152)
/Zephyr-latest/tests/drivers/can/host/pytest/
Dcan_shell.py58 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-latest/include/zephyr/posix/sys/
Dstat.h183 #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-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/
Dmcumgr.py75 if m := re_image.search(line):
78 image=int(m.group(1)),
79 slot=int(m.group(2))
83 if m := re_version.search(line):
84 image_list[-1].version = m.group(1)
85 elif m := re_flags.search(line):
86 image_list[-1].flags = m.group(1)
87 elif m := re_hash.search(line):
88 image_list[-1].hash = m.group(1)
/Zephyr-latest/subsys/lorawan/services/
Dfrag_decoder_lowmem.c28 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 …]

12345678910>>...35