/Zephyr-Core-3.7.0/tests/bluetooth/addr/src/ |
D | test_bt_addr_le_eq.c | 12 bt_addr_le_t a = {.type = 0, .a = {{0, 0, 0, 0, 0, 0}}}; in ZTEST() local 13 bt_addr_le_t b = a; in ZTEST() 15 zassert_true(bt_addr_le_eq(&a, &b)); in ZTEST() 20 bt_addr_le_t a = {.type = 1, .a = {{1, 2, 3, 4, 5, 6}}}; in ZTEST() local 21 bt_addr_le_t b = a; in ZTEST() 23 zassert_true(bt_addr_le_eq(&a, &b)); in ZTEST() 28 bt_addr_le_t a = {.type = 0, .a = {{1, 2, 3, 4, 5, 6}}}; in ZTEST() local 29 bt_addr_le_t b = a; in ZTEST() 31 zassume_true(bt_addr_le_eq(&a, &b)); in ZTEST() 32 a.type = 1; in ZTEST() [all …]
|
D | test_bt_addr_from_str.c | 13 bt_addr_t a; in ZTEST() local 15 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 21 bt_addr_t a; in ZTEST() local 23 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 29 bt_addr_t a; in ZTEST() local 31 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 37 bt_addr_t a; in ZTEST() local 39 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() 45 bt_addr_t a; in ZTEST() local 47 zassert_equal(bt_addr_from_str(addr_str, &a), -EINVAL); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/modules/littlefs/ |
D | zephyr_lfs_config.h | 78 static inline uint32_t lfs_max(uint32_t a, uint32_t b) in lfs_max() argument 80 return (a > b) ? a : b; in lfs_max() 83 static inline uint32_t lfs_min(uint32_t a, uint32_t b) in lfs_min() argument 85 return (a < b) ? a : b; in lfs_min() 89 static inline uint32_t lfs_aligndown(uint32_t a, uint32_t alignment) in lfs_aligndown() argument 91 return a - (a % alignment); in lfs_aligndown() 94 static inline uint32_t lfs_alignup(uint32_t a, uint32_t alignment) in lfs_alignup() argument 96 return lfs_aligndown(a + alignment-1, alignment); in lfs_alignup() 100 static inline uint32_t lfs_npw2(uint32_t a) in lfs_npw2() argument 103 return 32 - __builtin_clz(a-1); in lfs_npw2() [all …]
|
/Zephyr-Core-3.7.0/arch/x86/core/ia32/ |
D | soft_float_stubs.c | 22 __weak void __addtf3(long double a, long double b) in __addtf3() argument 27 __weak void __addxf3(long double a, long double b) in __addxf3() argument 32 __weak void __subtf3(long double a, long double b) in __subtf3() argument 37 __weak void __subxf3(long double a, long double b) in __subxf3() argument 42 __weak void __multf3(long double a, long double b) in __multf3() argument 47 __weak void __mulxf3(long double a, long double b) in __mulxf3() argument 52 __weak void __divtf3(long double a, long double b) in __divtf3() argument 57 __weak void __divxf3(long double a, long double b) in __divxf3() argument 62 __weak void __negtf2(long double a) in __negtf2() argument 67 __weak void __negxf2(long double a) in __negxf2() argument [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/sys/ |
D | math_extras_impl.h | 32 static inline bool u16_add_overflow(uint16_t a, uint16_t b, uint16_t *result) in u16_add_overflow() argument 34 return __builtin_add_overflow(a, b, result); in u16_add_overflow() 37 static inline bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result) in u32_add_overflow() argument 39 return __builtin_add_overflow(a, b, result); in u32_add_overflow() 42 static inline bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result) in u64_add_overflow() argument 44 return __builtin_add_overflow(a, b, result); in u64_add_overflow() 47 static inline bool size_add_overflow(size_t a, size_t b, size_t *result) in size_add_overflow() argument 49 return __builtin_add_overflow(a, b, result); in size_add_overflow() 52 static inline bool u16_add_overflow(uint16_t a, uint16_t b, uint16_t *result) in u16_add_overflow() argument 54 uint16_t c = a + b; in u16_add_overflow() [all …]
|
D | util_internal.h | 104 #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__) argument 105 #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__ argument 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 [all …]
|
D | math_extras.h | 41 static bool u16_add_overflow(uint16_t a, uint16_t b, uint16_t *result); 51 static bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result); 60 static bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result); 69 static bool size_add_overflow(size_t a, size_t b, size_t *result); 88 static bool u16_mul_overflow(uint16_t a, uint16_t b, uint16_t *result); 98 static bool u32_mul_overflow(uint32_t a, uint32_t b, uint32_t *result); 106 static bool u64_mul_overflow(uint64_t a, uint64_t b, uint64_t *result); 115 static bool size_mul_overflow(size_t a, size_t b, size_t *result);
|
/Zephyr-Core-3.7.0/include/zephyr/bluetooth/ |
D | addr.h | 55 bt_addr_t a; member 80 static inline int bt_addr_cmp(const bt_addr_t *a, const bt_addr_t *b) in bt_addr_cmp() argument 82 return memcmp(a, b, sizeof(*a)); in bt_addr_cmp() 90 static inline bool bt_addr_eq(const bt_addr_t *a, const bt_addr_t *b) in bt_addr_eq() argument 92 return bt_addr_cmp(a, b) == 0; in bt_addr_eq() 104 static inline int bt_addr_le_cmp(const bt_addr_le_t *a, const bt_addr_le_t *b) in bt_addr_le_cmp() argument 106 return memcmp(a, b, sizeof(*a)); in bt_addr_le_cmp() 117 static inline bool bt_addr_le_eq(const bt_addr_le_t *a, const bt_addr_le_t *b) in bt_addr_le_eq() argument 119 return bt_addr_le_cmp(a, b) == 0; in bt_addr_le_eq() 143 #define BT_ADDR_IS_RPA(a) (((a)->val[5] & 0xc0) == 0x40) argument [all …]
|
/Zephyr-Core-3.7.0/tests/kernel/timer/timepoints/src/ |
D | main.c | 40 k_timepoint_t a, b; in ZTEST() local 42 a = sys_timepoint_calc(K_NO_WAIT); in ZTEST() 43 b = a; in ZTEST() 44 zassert_true(sys_timepoint_cmp(a, b) == 0); in ZTEST() 45 zassert_true(sys_timepoint_cmp(b, a) == 0); in ZTEST() 47 a = sys_timepoint_calc(K_FOREVER); in ZTEST() 48 b = a; in ZTEST() 49 zassert_true(sys_timepoint_cmp(a, b) == 0); in ZTEST() 50 zassert_true(sys_timepoint_cmp(b, a) == 0); in ZTEST() 52 a = sys_timepoint_calc(K_NO_WAIT); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/subsys/net/lib/ptp/ |
D | btca.c | 32 static int btca_ds_cmp2(const struct ptp_dataset *a, const struct ptp_dataset *b) in btca_ds_cmp2() argument 36 if (b->steps_rm + 1 < a->steps_rm) { in btca_ds_cmp2() 39 if (a->steps_rm + 1 < b->steps_rm) { in btca_ds_cmp2() 42 if (a->steps_rm > b->steps_rm) { in btca_ds_cmp2() 43 diff = btca_port_id_cmp(&a->receiver, &a->sender); in btca_ds_cmp2() 53 if (a->steps_rm < b->steps_rm) { in btca_ds_cmp2() 65 diff = btca_port_id_cmp(&a->sender, &b->sender); in btca_ds_cmp2() 73 if (a->receiver.port_number > b->receiver.port_number) { in btca_ds_cmp2() 76 if (a->receiver.port_number > b->receiver.port_number) { in btca_ds_cmp2() 83 int ptp_btca_ds_cmp(const struct ptp_dataset *a, const struct ptp_dataset *b) in ptp_btca_ds_cmp() argument [all …]
|
/Zephyr-Core-3.7.0/tests/arch/common/stack_unwind/src/ |
D | main.c | 12 static void func1(int a); 13 static void func2(int a); 15 static void func2(int a) in func2() argument 17 printf("%d: %s\n", a, __func__); in func2() 19 if (a >= 5) { in func2() 23 func1(a + 1); in func2() 26 static void func1(int a) in func1() argument 28 printf("%d: %s\n", a, __func__); in func1() 29 func2(a + 1); in func1()
|
/Zephyr-Core-3.7.0/subsys/testsuite/ztest/include/zephyr/ |
D | ztest_assert.h | 315 #define zassert_equal(a, b, ...) zassert((a) == (b), #a " not equal to " #b, ##__VA_ARGS__) argument 326 #define zassert_not_equal(a, b, ...) zassert((a) != (b), #a " equal to " #b, ##__VA_ARGS__) argument 337 #define zassert_equal_ptr(a, b, ...) \ argument 338 zassert((void *)(a) == (void *)(b), #a " not equal to " #b, ##__VA_ARGS__) 348 #define zassert_within(a, b, d, ...) \ argument 349 zassert(((a) >= ((b) - (d))) && ((a) <= ((b) + (d))), #a " not within " #b " +/- " #d, \ 361 #define zassert_between_inclusive(a, l, u, ...) \ argument 362 zassert(((a) >= (l)) && ((a) <= (u)), #a " not between " #l " and " #u " inclusive", \ 485 #define zassume_equal(a, b, ...) zassume((a) == (b), #a " not equal to " #b, ##__VA_ARGS__) argument 497 #define zassume_not_equal(a, b, ...) zassume((a) != (b), #a " equal to " #b, ##__VA_ARGS__) argument [all …]
|
/Zephyr-Core-3.7.0/soc/espressif/esp32c6/ |
D | default.ld | 74 * instead, there is a unified LP_RAM section 207 *libzephyr.a:panic.*(.literal .text .literal.* .text.*) 208 *libzephyr.a:loader.*(.literal .text .literal.* .text.*) 209 *libarch__riscv__core.a:(.literal .text .literal.* .text.*) 210 *libsubsys__net__l2__ethernet.a:(.literal .text .literal.* .text.*) 211 *libsubsys__net__lib__config.a:(.literal .text .literal.* .text.*) 212 *libsubsys__net__ip.a:(.literal .text .literal.* .text.*) 213 *libsubsys__net.a:(.literal .text .literal.* .text.*) 214 *libkernel.a:(.literal .text .literal.* .text.*) 215 *libgcc.a:lib2funcs.*(.literal .text .literal.* .text.*) [all …]
|
/Zephyr-Core-3.7.0/soc/espressif/esp32/ |
D | default.ld | 259 *libarch__xtensa__core.a:(.literal .text .literal.* .text.*) 260 *libkernel.a:(.literal .text .literal.* .text.*) 261 *libgcc.a:lib2funcs.*(.literal .text .literal.* .text.*) 262 *libzephyr.a:windowspill_asm.*(.literal .text .literal.* .text.*) 263 *libzephyr.a:cbprintf_complete.*(.literal .text .literal.* .text.*) 264 …*libzephyr.a:printk.*(.literal.printk .literal.vprintk .literal.char_out .text.printk .text.vprint… 265 *libzephyr.a:log_noos.*(.literal .text .literal.* .text.*) 266 *libzephyr.a:log_core.*(.literal .text .literal.* .text.*) 267 *libzephyr.a:log_msg.*(.literal .text .literal.* .text.*) 268 *libzephyr.a:log_list.*(.literal .text .literal.* .text.*) [all …]
|
D | default_appcpu.ld | 114 *libesp32.a:panic.*(.literal .text .literal.* .text.*) 115 *librtc.a:(.literal .text .literal.* .text.*) 116 *libsubsys__net__l2__ethernet.a:(.literal .text .literal.* .text.*) 117 *libsubsys__net__lib__config.a:(.literal .text .literal.* .text.*) 118 *libsubsys__net__ip.a:(.literal .text .literal.* .text.*) 119 *libsubsys__net.a:(.literal .text .literal.* .text.*) 120 *libarch__xtensa__core.a:(.literal .text .literal.* .text.*) 121 *libkernel.a:(.literal .text .literal.* .text.*) 122 *libsoc.a:rtc_*.*(.literal .text .literal.* .text.*) 123 *libsoc.a:cpu_util.*(.literal .text .literal.* .text.*) [all …]
|
/Zephyr-Core-3.7.0/soc/espressif/esp32c3/ |
D | default.ld | 219 *libzephyr.a:panic.*(.literal .text .literal.* .text.*) 220 *libzephyr.a:loader.*(.literal .text .literal.* .text.*) 221 *libarch__riscv__core.a:(.literal .text .literal.* .text.*) 222 *libsubsys__net__l2__ethernet.a:(.literal .text .literal.* .text.*) 223 *libsubsys__net__lib__config.a:(.literal .text .literal.* .text.*) 224 *libsubsys__net__ip.a:(.literal .text .literal.* .text.*) 225 *libsubsys__net.a:(.literal .text .literal.* .text.*) 226 *libkernel.a:(.literal .text .literal.* .text.*) 227 *libgcc.a:lib2funcs.*(.literal .text .literal.* .text.*) 228 *libdrivers__flash.a:flash_esp32.*(.literal .text .literal.* .text.*) [all …]
|
/Zephyr-Core-3.7.0/tests/lib/cmsis_dsp/common/ |
D | test_common.h | 75 size_t length, const float64_t *a, const float64_t *b) in test_equal_f64() argument 80 if (a[index] != b[index]) { in test_equal_f64() 89 size_t length, const float32_t *a, const float32_t *b) in test_equal_f32() argument 94 if (a[index] != b[index]) { in test_equal_f32() 104 size_t length, const float16_t *a, const float16_t *b) in test_equal_f16() argument 109 if (a[index] != b[index]) { in test_equal_f16() 119 size_t length, const q63_t *a, const q63_t *b) in test_equal_q63() argument 124 if (a[index] != b[index]) { in test_equal_q63() 133 size_t length, const q31_t *a, const q31_t *b) in test_equal_q31() argument 138 if (a[index] != b[index]) { in test_equal_q31() [all …]
|
/Zephyr-Core-3.7.0/soc/espressif/esp32s2/ |
D | default.ld | 77 * - (higher addr) bootloader rtc data (s_bootloader_retain_mem, when a Kconfig option is on). 78 * The aim of this is to keep data that will not be moved around and have a fixed address. 95 /* Used as a pointer to the heap end */ 320 *libesp32.a:panic.*(.literal .text .literal.* .text.*) 321 *librtc.a:(.literal .text .literal.* .text.*) 322 *libarch__xtensa__core.a:(.literal .text .literal.* .text.*) 323 *libkernel.a:(.literal .text .literal.* .text.*) 324 *libgcc.a:lib2funcs.*(.literal .text .literal.* .text.*) 325 *libzephyr.a:windowspill_asm.*(.literal .text .literal.* .text.*) 326 *libzephyr.a:cbprintf_packaged.*(.literal .text .literal.* .text.*) [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/usb/class/ |
D | hid.h | 193 #define HID_INPUT(a) \ argument 194 HID_ITEM(HID_ITEM_TAG_INPUT, HID_ITEM_TYPE_MAIN, 1), a 204 #define HID_OUTPUT(a) \ argument 205 HID_ITEM(HID_ITEM_TAG_OUTPUT, HID_ITEM_TYPE_MAIN, 1), a 213 #define HID_FEATURE(a) \ argument 214 HID_ITEM(HID_ITEM_TAG_FEATURE, HID_ITEM_TYPE_MAIN, 1), a 225 #define HID_COLLECTION(a) \ argument 226 HID_ITEM(HID_ITEM_TAG_COLLECTION, HID_ITEM_TYPE_MAIN, 1), a 260 #define HID_LOGICAL_MIN8(a) \ argument 261 HID_ITEM(HID_ITEM_TAG_LOGICAL_MIN, HID_ITEM_TYPE_GLOBAL, 1), a [all …]
|
/Zephyr-Core-3.7.0/samples/subsys/zbus/priority_boost/src/ |
D | main.c | 24 int a = 0; in s1_thread() local 40 err = zbus_chan_read(chan, &a, K_FOREVER); in s1_thread() 44 LOG_INF("%d -> S1: T1 prio %d", a, k_thread_priority_get(t1_id)); in s1_thread() 58 int a = 0; in ms1_thread() local 63 err = zbus_sub_wait_msg(&ms1, &chan, &a, K_FOREVER); in ms1_thread() 71 LOG_INF("%d -> MS1: T1 prio %d", a, k_thread_priority_get(t1_id)); in ms1_thread() 85 int a = 0; in ms2_thread() local 90 err = zbus_sub_wait_msg(&ms2, &chan, &a, K_FOREVER); in ms2_thread() 98 LOG_INF("%d -> MS2: T1 prio %d", a, k_thread_priority_get(t1_id)); in ms2_thread() 124 int a = 0; in t1_thread() local [all …]
|
/Zephyr-Core-3.7.0/soc/espressif/esp32s3/ |
D | default.ld | 94 /* Used as a pointer to the heap end */ 278 *libarch__xtensa__core.a:(.literal .text .literal.* .text.*) 279 *libkernel.a:(.literal .text .literal.* .text.*) 280 *libgcc.a:lib2funcs.*(.literal .text .literal.* .text.*) 281 *libzephyr.a:cbprintf_packaged.*(.literal .text .literal.* .text.*) 282 *libdrivers__flash.a:flash_esp32.*(.literal .text .literal.* .text.*) 283 *libzephyr.a:windowspill_asm.*(.literal .text .literal.* .text.*) 284 *libzephyr.a:log_noos.*(.literal .text .literal.* .text.*) 285 *libdrivers__timer.a:xtensa_sys_timer.*(.literal .text .literal.* .text.*) 286 *libzephyr.a:log_core.*(.literal .text .literal.* .text.*) [all …]
|
D | default_appcpu.ld | 93 *libesp32.a:panic.*(.literal .text .literal.* .text.*) 94 *librtc.a:(.literal .text .literal.* .text.*) 95 *libarch__xtensa__core.a:(.literal .text .literal.* .text.*) 96 *libkernel.a:(.literal .text .literal.* .text.*) 97 *libsoc.a:rtc_*.*(.literal .text .literal.* .text.*) 98 *libsoc.a:cpu_util.*(.literal .text .literal.* .text.*) 99 *libgcc.a:lib2funcs.*(.literal .text .literal.* .text.*) 100 *libdrivers__flash.a:flash_esp32.*(.literal .text .literal.* .text.*) 101 *libzephyr.a:windowspill_asm.*(.literal .text .literal.* .text.*) 102 *libzephyr.a:log_noos.*(.literal .text .literal.* .text.*) [all …]
|
/Zephyr-Core-3.7.0/samples/drivers/ipm/ipm_esp32/ |
D | README.rst | 12 ESP32 has two CPU named APP and PRO, in this simple example PRO send a 42 PRO_CPU is sending a fake request, waiting remote response... 43 PRO_CPU received a message from APP_CPU : APP_CPU: This is a response 44 PRO_CPU is sending a fake request, waiting remote response... 45 PRO_CPU received a message from APP_CPU : APP_CPU: This is a response 46 PRO_CPU is sending a fake request, waiting remote response... 47 PRO_CPU received a message from APP_CPU : APP_CPU: This is a response 48 PRO_CPU is sending a fake request, waiting remote response... 49 PRO_CPU received a message from APP_CPU : APP_CPU: This is a response 50 PRO_CPU is sending a fake request, waiting remote response... [all …]
|
/Zephyr-Core-3.7.0/doc/kernel/services/data_passing/ |
D | stacks.rst | 6 A :dfn:`stack` is a kernel object that implements a traditional 8 to add and remove a limited number of integer data values. 24 and must be aligned on a native word boundary. 32 A data value can be **added** to a stack by a thread or an ISR. 33 The value is given directly to a waiting thread, if one exists; 38 and prevent attempts to add a data value to a stack that has already reached 39 its maximum quantity of queued values. Adding a data value to a stack that is 42 A data value may be **removed** from a stack by a thread. 43 If the stack's queue is empty a thread may choose to wait for it to be given. 45 When a data item is added, it is given to the highest priority thread [all …]
|
/Zephyr-Core-3.7.0/tests/lib/cmsis_dsp/filtering/src/ |
D | misc_q31.c | 56 #define DEFINE_CORRELATE_TEST(a, b) \ argument 58 arm_correlate_q31, a##_##b, a, b, \ 59 ref_correlate_##a##_##b, ARRAY_SIZE(ref_correlate_##a##_##b)) 128 #define DEFINE_CONV_TEST(a, b) \ argument 130 arm_conv_q31, a##_##b, a, b, \ 131 ref_conv_##a##_##b, ARRAY_SIZE(ref_conv_##a##_##b)) 264 #define DEFINE_CONV_PARTIAL_TEST(a, b, c) \ argument 266 arm_conv_partial_q31, a##_##b##_##c, a, b, c, \ 267 ref_conv_partial_##a##_##b##_##c, \ 268 ARRAY_SIZE(ref_conv_partial_##a##_##b##_##c)) \ [all …]
|