/Zephyr-latest/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-latest/modules/littlefs/ |
D | zephyr_lfs_config.h | 82 static inline uint32_t lfs_max(uint32_t a, uint32_t b) in lfs_max() argument 84 return (a > b) ? a : b; in lfs_max() 87 static inline uint32_t lfs_min(uint32_t a, uint32_t b) in lfs_min() argument 89 return (a < b) ? a : b; in lfs_min() 93 static inline uint32_t lfs_aligndown(uint32_t a, uint32_t alignment) in lfs_aligndown() argument 95 return a - (a % alignment); in lfs_aligndown() 98 static inline uint32_t lfs_alignup(uint32_t a, uint32_t alignment) in lfs_alignup() argument 100 return lfs_aligndown(a + alignment-1, alignment); in lfs_alignup() 104 static inline uint32_t lfs_npw2(uint32_t a) in lfs_npw2() argument 107 return 32 - __builtin_clz(a-1); in lfs_npw2() [all …]
|
/Zephyr-latest/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-latest/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-latest/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-latest/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-latest/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-latest/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-latest/subsys/testsuite/ztest/include/zephyr/ |
D | ztest_assert.h | 321 #define zassert_equal(a, b, ...) zassert((a) == (b), #a " not equal to " #b, ##__VA_ARGS__) argument 332 #define zassert_not_equal(a, b, ...) zassert((a) != (b), #a " equal to " #b, ##__VA_ARGS__) argument 343 #define zassert_equal_ptr(a, b, ...) \ argument 344 zassert((void *)(a) == (void *)(b), #a " not equal to " #b, ##__VA_ARGS__) 354 #define zassert_within(a, b, d, ...) \ argument 355 zassert(((a) >= ((b) - (d))) && ((a) <= ((b) + (d))), #a " not within " #b " +/- " #d, \ 367 #define zassert_between_inclusive(a, l, u, ...) \ argument 368 zassert(((a) >= (l)) && ((a) <= (u)), #a " not between " #l " and " #u " inclusive", \ 491 #define zassume_equal(a, b, ...) zassume((a) == (b), #a " not equal to " #b, ##__VA_ARGS__) argument 503 #define zassume_not_equal(a, b, ...) zassume((a) != (b), #a " equal to " #b, ##__VA_ARGS__) argument [all …]
|
/Zephyr-latest/soc/espressif/esp32/ |
D | default.ld | 236 *libarch__xtensa__core.a:(.literal .text .literal.* .text.*) 237 *libkernel.a:(.literal .text .literal.* .text.*) 238 *libgcc.a:lib2funcs.*(.literal .text .literal.* .text.*) 239 *libzephyr.a:windowspill_asm.*(.literal .text .literal.* .text.*) 240 *libzephyr.a:cbprintf_complete.*(.literal .text .literal.* .text.*) 241 …*libzephyr.a:printk.*(.literal.printk .literal.vprintk .literal.char_out .text.printk .text.vprint… 242 *libzephyr.a:log_noos.*(.literal .text .literal.* .text.*) 243 *libzephyr.a:log_core.*(.literal .text .literal.* .text.*) 244 *libzephyr.a:log_msg.*(.literal .text .literal.* .text.*) 245 *libzephyr.a:log_list.*(.literal .text .literal.* .text.*) [all …]
|
/Zephyr-latest/soc/espressif/esp32c6/ |
D | default.ld | 85 * instead, there is a unified LP_RAM section 275 *libzephyr.a:panic.*(.literal .text .literal.* .text.*) 276 *libzephyr.a:loader.*(.literal .text .literal.* .text.*) 277 *libzephyr.a:flash_init.*(.literal .text .literal.* .text.*) 278 *libzephyr.a:soc_flash_init.*(.literal .text .literal.* .text.*) 279 *libzephyr.a:console_init.*(.literal .text .literal.* .text.*) 280 *libzephyr.a:soc_init.*(.literal .text .literal.* .text.*) 281 *libzephyr.a:hw_init.*(.literal .text .literal.* .text.*) 282 *libzephyr.a:soc_random.*(.literal .text .literal.* .text.*) 284 *libarch__riscv__core.a:(.literal .text .literal.* .text.*) [all …]
|
/Zephyr-latest/soc/espressif/esp32c2/ |
D | default.ld | 88 /* Used as a pointer to the heap end */ 171 *libzephyr.a:panic.*(.literal .text .literal.* .text.*) 172 *libzephyr.a:loader.*(.literal .text .literal.* .text.*) 173 *libzephyr.a:flash_init.*(.literal .text .literal.* .text.*) 174 *libzephyr.a:soc_flash_init.*(.literal .text .literal.* .text.*) 175 *libzephyr.a:console_init.*(.literal .text .literal.* .text.*) 176 *libzephyr.a:soc_init.*(.literal .text .literal.* .text.*) 177 *libzephyr.a:hw_init.*(.literal .text .literal.* .text.*) 178 *libarch__riscv__core.a:(.literal .text .literal.* .text.*) 179 *libsubsys__net__l2__ethernet.a:(.literal .text .literal.* .text.*) [all …]
|
/Zephyr-latest/soc/espressif/esp32c3/ |
D | default.ld | 231 *libzephyr.a:panic.*(.literal .text .literal.* .text.*) 232 *libzephyr.a:loader.*(.literal .text .literal.* .text.*) 233 *libzephyr.a:flash_init.*(.literal .text .literal.* .text.*) 234 *libzephyr.a:soc_flash_init.*(.literal .text .literal.* .text.*) 235 *libzephyr.a:console_init.*(.literal .text .literal.* .text.*) 236 *libzephyr.a:soc_init.*(.literal .text .literal.* .text.*) 237 *libzephyr.a:hw_init.*(.literal .text .literal.* .text.*) 238 *libzephyr.a:soc_random.*(.literal .text .literal.* .text.*) 240 *libarch__riscv__core.a:(.literal .text .literal.* .text.*) 241 *libsubsys__net__l2__ethernet.a:(.literal .text .literal.* .text.*) [all …]
|
/Zephyr-latest/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-latest/soc/espressif/esp32s3/ |
D | default.ld | 97 /* Used as a pointer to the heap end */ 286 *libarch__xtensa__core.a:(.literal .text .literal.* .text.*) 287 *libkernel.a:(.literal .text .literal.* .text.*) 288 *libgcc.a:lib2funcs.*(.literal .text .literal.* .text.*) 289 *libzephyr.a:cbprintf_packaged.*(.literal .text .literal.* .text.*) 290 *libdrivers__flash.a:flash_esp32.*(.literal .text .literal.* .text.*) 291 *libzephyr.a:windowspill_asm.*(.literal .text .literal.* .text.*) 292 *libzephyr.a:log_noos.*(.literal .text .literal.* .text.*) 293 *libdrivers__timer.a:xtensa_sys_timer.*(.literal .text .literal.* .text.*) 294 *libzephyr.a:log_core.*(.literal .text .literal.* .text.*) [all …]
|
/Zephyr-latest/include/zephyr/usb/class/ |
D | hid.h | 195 #define HID_INPUT(a) \ argument 196 HID_ITEM(HID_ITEM_TAG_INPUT, HID_ITEM_TYPE_MAIN, 1), a 206 #define HID_OUTPUT(a) \ argument 207 HID_ITEM(HID_ITEM_TAG_OUTPUT, HID_ITEM_TYPE_MAIN, 1), a 215 #define HID_FEATURE(a) \ argument 216 HID_ITEM(HID_ITEM_TAG_FEATURE, HID_ITEM_TYPE_MAIN, 1), a 227 #define HID_COLLECTION(a) \ argument 228 HID_ITEM(HID_ITEM_TAG_COLLECTION, HID_ITEM_TYPE_MAIN, 1), a 262 #define HID_LOGICAL_MIN8(a) \ argument 263 HID_ITEM(HID_ITEM_TAG_LOGICAL_MIN, HID_ITEM_TYPE_GLOBAL, 1), a [all …]
|
/Zephyr-latest/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-latest/soc/espressif/esp32s2/ |
D | default.ld | 86 * - (higher addr) bootloader rtc data (s_bootloader_retain_mem, when a Kconfig option is on). 87 * The aim of this is to keep data that will not be moved around and have a fixed address. 104 /* Used as a pointer to the heap end */ 329 *libesp32.a:panic.*(.literal .text .literal.* .text.*) 330 *librtc.a:(.literal .text .literal.* .text.*) 331 *libarch__xtensa__core.a:(.literal .text .literal.* .text.*) 332 *libkernel.a:(.literal .text .literal.* .text.*) 333 *libgcc.a:lib2funcs.*(.literal .text .literal.* .text.*) 334 *libzephyr.a:windowspill_asm.*(.literal .text .literal.* .text.*) 335 *libzephyr.a:cbprintf_packaged.*(.literal .text .literal.* .text.*) [all …]
|
/Zephyr-latest/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-latest/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 …]
|
D | misc_f16.c | 52 #define DEFINE_CORRELATE_TEST(a, b) \ argument 54 arm_correlate_f16, a##_##b, a, b, \ 55 ref_correlate_##a##_##b, ARRAY_SIZE(ref_correlate_##a##_##b)) 132 #define DEFINE_CONV_TEST(a, b) \ 134 arm_conv_f16, a##_##b, a, b, \ 135 ref_conv_##a##_##b, ARRAY_SIZE(ref_conv_##a##_##b)) 214 #define DEFINE_LEVINSON_DURBIN_TEST(a, b) \ argument 216 arm_levinson_durbin_f16, a##_##b, a, b, \ 217 in_levinson_durbin_##a##_##b, \ 218 ref_levinson_durbin_##a##_##b, \ [all …]
|
/Zephyr-latest/samples/net/sockets/coap_client/ |
D | README.rst | 5 Use the CoAP library to implement a client that fetches a resource. 10 This sample is a simple CoAP client showing how to retrieve information 11 from a resource. 16 This sample will make a GET request with path 'test' to the IPv6 28 be obtained by using a tool such as tcpdump or wireshark. 42 00 24 3d 86 60 40 00 01 ff 54 79 70 65 3a 20 30 0a 43 6f 64 65 3a 20 43 31 0a 4d 49 44 3a 20 31 0a (76 bytes)
|