Home
last modified time | relevance | path

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

12345678910>>...28

/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/lib/posix/options/
Dmutex.c43 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.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/subsys/bluetooth/crypto/
Dbt_crypto.c44 uint8_t m[65]; in bt_crypto_f4() local
60 sys_memcpy_swap(m, u, 32); in bt_crypto_f4()
61 sys_memcpy_swap(m + 32, v, 32); in bt_crypto_f4()
62 m[64] = z; in bt_crypto_f4()
66 err = bt_crypto_aes_cmac(xs, m, sizeof(m), res); in bt_crypto_f4()
83 uint8_t m[53] = {0x00, /* counter */ in bt_crypto_f5() local
108 sys_memcpy_swap(m + 5, n1, 16); in bt_crypto_f5()
109 sys_memcpy_swap(m + 21, n2, 16); in bt_crypto_f5()
110 m[37] = a1->type; in bt_crypto_f5()
111 sys_memcpy_swap(m + 38, a1->a.val, 6); in bt_crypto_f5()
[all …]
/Zephyr-Core-3.6.0/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.py44 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)
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 …]
Dmigrate_mcumgr_kconfigs.py123 for m in REPLACEMENTS:
124 if re.match(".*" + m + ".*", line) and len(m) > length:
125 length = len(m)
126 longest = m
/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/samples/sensor/accel_polling/
DREADME.rst38 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.6.0/include/zephyr/posix/sys/
Dstat.h218 #define S_ISBLK(m) (((m)&_IFMT) == _IFBLK) argument
219 #define S_ISCHR(m) (((m)&_IFMT) == _IFCHR) argument
220 #define S_ISDIR(m) (((m)&_IFMT) == _IFDIR) argument
221 #define S_ISFIFO(m) (((m)&_IFMT) == _IFIFO) argument
222 #define S_ISREG(m) (((m)&_IFMT) == _IFREG) argument
223 #define S_ISLNK(m) (((m)&_IFMT) == _IFLNK) argument
224 #define S_ISSOCK(m) (((m)&_IFMT) == _IFSOCK) argument
/Zephyr-Core-3.6.0/scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/
Dmcumgr.py76 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.6.0/arch/xtensa/core/
Dgen_zsr.py46 m = re.match(r"^#define\s+([^ ]+)\s*(.*)", line.rstrip()) variable
47 if m:
48 syms[m.group(1)] = m.group(2)
66 m = re.match(r"XCHAL_INT(\d+)_TYPE", sym) variable
67 if m:
68 intnum = int(m.group(1))
/Zephyr-Core-3.6.0/subsys/debug/coredump/
Dcoredump_core.c162 struct coredump_mem_hdr_t m; in coredump_memory_dump() local
176 m.id = COREDUMP_MEM_HDR_ID; in coredump_memory_dump()
177 m.hdr_version = COREDUMP_MEM_HDR_VER; in coredump_memory_dump()
180 m.start = sys_cpu_to_le64(start_addr); in coredump_memory_dump()
181 m.end = sys_cpu_to_le64(end_addr); in coredump_memory_dump()
183 m.start = sys_cpu_to_le32(start_addr); in coredump_memory_dump()
184 m.end = sys_cpu_to_le32(end_addr); in coredump_memory_dump()
187 coredump_buffer_output((uint8_t *)&m, sizeof(m)); in coredump_memory_dump()
/Zephyr-Core-3.6.0/tests/net/socket/socketpair/src/
Dblock.c15 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()
/Zephyr-Core-3.6.0/boards/riscv/niosv_m/doc/
Dindex.rst9 niosv_m board is based on Intel FPGA Design Store Nios® V/m Hello World Example Design system and t…
13 Nios® V/m Processor Intel® FPGA IP
17 Nios® V/m hello world example design system
20 Prebuilt Nios® V/m hello world example design system is available in Intel FPGA Design store.
23 For example, Arria10 Nios® V/m processor example design system prebuilt files can be downloaded fro…
28 Create Nios® V/m processor example design system in FPGA
31 Please use Intel Quartus Programmer tool to program Nios® V/m processor based system into the FPGA …
33 In order to create the Nios® V/m processor inside the FPGA device, please download the generated .s…
37 quartus_pgm -c 1 -m JTAG -o "p;top.sof@1"
44 top.sof is referring to Nios® V/m processor based system SRAM Object File.
[all …]
/Zephyr-Core-3.6.0/samples/sensor/icm42605/
DREADME.rst39 accel -5.882554 -6.485893 5.868188 m/s/s
42 accel -5.841853 -6.435615 5.911283 m/s/s
45 accel -5.930438 -6.461951 6.009446 m/s/s
48 accel -5.884948 -6.524200 5.961562 m/s/s
51 accel -5.863400 -12.872426 -0.154427 m/s/s
54 accel -5.906496 -6.461951 5.899312 m/s/s
/Zephyr-Core-3.6.0/soc/x86/intel_ish/utils/
Dbuild_ish_firmware.py39 m = bytearray(MANIFEST_ENTRY_SIZE)
42 struct.pack_into('<4s', m, 0, ext_id)
44 struct.pack_into('<8s', m, 32, comp_app_name)
46 struct.pack_into('<I', m, 96, code_offset)
48 struct.pack_into('<H', m, 100, module_size)
50 return m

12345678910>>...28