/Zephyr-latest/tests/posix/c_lib_ext/src/ |
D | fnmatch.c | 18 zassert_ok(fnmatch("*.c", "foo.c", 0)); in ZTEST() 19 zassert_ok(fnmatch("*.c", ".c", 0)); in ZTEST() 20 zassert_equal(fnmatch("*.a", "foo.c", 0), FNM_NOMATCH); in ZTEST() 21 zassert_ok(fnmatch("*.c", ".foo.c", 0)); in ZTEST() 25 zassert_equal(fnmatch("a\\*.c", "ax.c", 0), FNM_NOMATCH); in ZTEST() 26 zassert_ok(fnmatch("a[xy].c", "ax.c", 0)); in ZTEST() 27 zassert_ok(fnmatch("a[!y].c", "ax.c", 0)); in ZTEST() 32 zassert_ok(fnmatch("-O[01]", "-O1", 0)); in ZTEST() 33 /* zassert_ok(fnmatch("[[?*\\]", "\\", 0)); */ in ZTEST() 34 /* zassert_ok(fnmatch("[]?*\\]", "]", 0)); */ in ZTEST() [all …]
|
/Zephyr-latest/tests/kernel/timer/timepoints/src/ |
D | main.c | 31 zassert_true(remaining.ticks <= timeout.ticks && remaining.ticks != 0); in ZTEST() 40 k_timepoint_t a, b; in ZTEST() local 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() 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() 53 b = sys_timepoint_calc(K_MSEC(1)); in ZTEST() 54 zassert_true(sys_timepoint_cmp(a, b) < 0); in ZTEST() [all …]
|
/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() 13 bt_addr_le_t b = a; in ZTEST() local 15 zassert_true(bt_addr_le_eq(&a, &b)); in ZTEST() 21 bt_addr_le_t b = a; in ZTEST() local 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() 29 bt_addr_le_t b = a; in ZTEST() local 31 zassume_true(bt_addr_le_eq(&a, &b)); in ZTEST() 33 zassert_false(bt_addr_le_eq(&a, &b)); in ZTEST() 38 bt_addr_le_t a = {.type = 0, .a = {{1, 2, 3, 4, 5, 6}}}; in ZTEST() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | aes_ccm.c | 20 static inline void xor16(uint8_t *dst, const uint8_t *a, const uint8_t *b) in xor16() argument 22 dst[0] = a[0] ^ b[0]; in xor16() 23 dst[1] = a[1] ^ b[1]; in xor16() 24 dst[2] = a[2] ^ b[2]; in xor16() 25 dst[3] = a[3] ^ b[3]; in xor16() 26 dst[4] = a[4] ^ b[4]; in xor16() 27 dst[5] = a[5] ^ b[5]; in xor16() 28 dst[6] = a[6] ^ b[6]; in xor16() 29 dst[7] = a[7] ^ b[7]; in xor16() 30 dst[8] = a[8] ^ b[8]; in xor16() [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | math_extras_impl.h | 26 #define use_builtin(x) 0 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 [all …]
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | btca.c | 25 if (diff == 0) { in btca_port_id_cmp() 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() 44 if (diff > 0) { in btca_ds_cmp2() 47 if (diff < 0) { in btca_ds_cmp2() 51 return 0; in btca_ds_cmp2() 53 if (a->steps_rm < b->steps_rm) { in btca_ds_cmp2() 54 diff = btca_port_id_cmp(&b->receiver, &b->sender); in btca_ds_cmp2() [all …]
|
/Zephyr-latest/soc/microchip/mec/mec172x/ |
D | soc.h | 19 * MPU present to 0. We define these two symbols here based on our k-config 21 * revision to 0. At this time ARM CMSIS does not appear to use the hardware 27 #define __CM4_REV 0x0201 /*!< Core Revision r2p1 */ 31 #define __Vendor_SysTickConfig 0 /*!< 0 use default SysTick HW */ 32 #define __FPU_DP 0 /*!< Set to 1 if FPU is double precision */ 33 #define __ICACHE_PRESENT 0 /*!< Set to 1 if I-Cache is present */ 34 #define __DCACHE_PRESENT 0 /*!< Set to 1 if D-Cache is present */ 35 #define __DTCM_PRESENT 0 /*!< Set to 1 if DTCM is present */ 55 * Numbers >= 0 are external peripheral interrupts. 73 GIRQ08_IRQn = 0, /*!< GPIO 0140 - 0176 */ [all …]
|
/Zephyr-latest/scripts/coredump/gdbstubs/ |
D | gdbstub.py | 24 self.selected_thread = 0 41 data = b'' 42 checksum = 0 46 if ch == b'$': 52 if ch == b'#': 68 socket.send(b'+') 74 socket.send(b'-') 83 checksum = 0 87 pkt = b'$' + data + b'#' 107 barray = b'' [all …]
|
/Zephyr-latest/samples/subsys/zbus/dyn_channel/ |
D | sample.yaml | 48 - "W: 0b 0b 0b 0b 0b 0b 0b 0b |........" 49 - "W: 0b 0b 0b 0b |...." 56 - "W: 0d 0d 0d 0d 0d 0d 0d 0d |........" 57 - "W: 0d 0d 0d 0d 0d 0d |......" 64 - "W: 0f 0f 0f 0f 0f 0f 0f 0f |........" 65 - "W: 0f 0f 0f 0f 0f 0f 0f 0f |........"
|
D | README.rst | 66 W: 0b 0b 0b 0b 0b 0b 0b 0b |........ 67 W: 0b 0b 0b 0b |.... 74 W: 0d 0d 0d 0d 0d 0d 0d 0d |........ 75 W: 0d 0d 0d 0d 0d 0d |...... 82 W: 0f 0f 0f 0f 0f 0f 0f 0f |........ 83 W: 0f 0f 0f 0f 0f 0f 0f 0f |........
|
/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 79 for (index = 0; index < length; index++) { in test_equal_f64() 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 93 for (index = 0; index < length; index++) { in test_equal_f32() 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 108 for (index = 0; index < length; index++) { in test_equal_f16() 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 [all …]
|
/Zephyr-latest/samples/subsys/fs/zms/ |
D | README.rst | 15 #. A binary blob representing a key/value pair: stored at id=0xbeefdead, 16 data={0xDE, 0xAD, 0xBE, 0xEF, 0xDE, 0xAD, 0xBE, 0xEF} 55 [00:00:00.000,000] <inf> fs_zms: alloc wra: 0, fc0 56 [00:00:00.000,000] <inf> fs_zms: data wra: 0, 0 57 ITERATION: 0 63 [00:00:00.000,000] <inf> fs_zms: alloc wra: 0, f80 64 [00:00:00.000,000] <inf> fs_zms: data wra: 0, 8c 70 Id: 2, loop_cnt: 0 72 …0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 … 73 …4 55 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 … [all …]
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_nuclei_eclic.c | 28 } b; member 41 } b; member 54 } b; member 63 } b; member 69 /** 0: non-vectored 1:vectored */ 71 /** 0: level 1: rising edge 2: falling edge */ 75 } b; member 87 #define CLIC_INTATTR_TRIG_Msk 0x3U 89 #define ECLIC_CFG (*((volatile union CLICCFG *)(DT_REG_ADDR_BY_IDX(DT_NODELABEL(eclic), 0)))) 108 return ((1 << len) - 1) & 0xFFFFU; in mask8() [all …]
|
/Zephyr-latest/arch/arm64/core/ |
D | early_mem_funcs.S | 26 tst x0, #0x7 27 b.ne 2f 31 b.lo 2f 34 and x8, x1, #0xff 35 mov x9, #0x0101010101010101 42 b.hi 1b 50 b.ne 3b 60 tst x8, #0x7 61 b.ne 2f 65 b.lo 2f [all …]
|
/Zephyr-latest/samples/subsys/ipc/ipc_service/multi_endpoint/ |
D | README.rst | 32 IPC-service HOST [INST 0 - ENDP A] demo started 33 IPC-service HOST [INST 0 - ENDP B] demo started 35 HOST [0A]: 1 36 HOST [0A]: 3 37 HOST [0B]: 1 40 HOST [0A]: 99 41 IPC-service HOST [INST 0 - ENDP A] demo ended. 42 HOST [0B]: 99 43 IPC-service HOST [INST 0 - ENDP B] demo ended. 50 IPC-service REMOTE [INST 0 - ENDP A] demo started [all …]
|
/Zephyr-latest/lib/posix/options/ |
D | barrier.c | 28 * the theoretical pthread_barrier_t range is [0,2147483647]. 38 static inline size_t to_posix_barrier_idx(pthread_barrier_t b) in to_posix_barrier_idx() argument 40 return mark_pthread_obj_uninitialized(b); in to_posix_barrier_idx() 43 struct posix_barrier *get_posix_barrier(pthread_barrier_t b) in get_posix_barrier() argument 46 size_t bit = to_posix_barrier_idx(b); in get_posix_barrier() 49 if (!is_pthread_obj_initialized(b)) { in get_posix_barrier() 54 if (sys_bitarray_test_bit(&posix_barrier_bitarray, bit, &actually_initialized) < 0) { in get_posix_barrier() 58 if (actually_initialized == 0) { in get_posix_barrier() 66 int pthread_barrier_wait(pthread_barrier_t *b) in pthread_barrier_wait() argument 70 pthread_barrier_t bb = *b; in pthread_barrier_wait() [all …]
|
/Zephyr-latest/subsys/ipc/ipc_service/backends/ |
D | ipc_rpmsg_static_vrings.h | 17 * [B] backend 22 * [B] register_ept ** 23 * [B] register_ept ** 24 * [B] ipc_rpmsg_register_ept 25 * [B] rpmsg_create_ept 29 * [B] mbox_send 30 * [B] mbox_callback 31 * [B] mbox_callback_process 32 * [B] virtqueue_notification 34 * [B] ns_bind_cb [all …]
|
/Zephyr-latest/soc/intel/intel_ish/utils/ |
D | build_ish_firmware.py | 18 MANIFEST_ENTRY_SIZE = 0x80 19 HEADER_SIZE = 0x1000 20 PAGE_SIZE = 0x1000 42 struct.pack_into('<4s', m, 0, ext_id) 54 return int(size / PAGE_SIZE) + (size % PAGE_SIZE > 0) 69 f.write(gen_manifest(b'ISHM', b'ISH_KERN', HEADER_SIZE, kern_rdup_pg_size)) 75 f.write(gen_manifest(b'ISHM', b'AON_TASK', 80 f.write(gen_manifest(b'ISHE', b'', 0, 0)) 82 # Pad the remaining HEADER with 0s 84 f.write(b'\x00' * (HEADER_SIZE - (MANIFEST_ENTRY_SIZE * 3))) [all …]
|
/Zephyr-latest/dts/bindings/sensor/ |
D | vishay,veml7700.yaml | 15 default: 0x00 18 The initial power on register value for the PSM register is 0 21 0x00 = Disable power saving mode 22 0x01 = Mode 1 (0001b) 23 0x03 = Mode 2 (0011b) 24 0x05 = Mode 3 (0101b) 25 0x07 = Mode 4 (0111b) 27 - 0x00 28 - 0x01 29 - 0x03 [all …]
|
/Zephyr-latest/lib/heap/ |
D | heap_validate.c | 21 #define VALIDATE(cond) do { if (!(cond)) { return false; } } while (0) 25 VALIDATE(c >= right_chunk(h, 0)); in in_bounds() 33 VALIDATE(chunk_size(h, c) > 0); in valid_chunk() 57 struct z_heap_bucket *b = &h->buckets[bidx]; in check_nexts() local 59 bool emptybit = (h->avail_buckets & BIT(bidx)) == 0; in check_nexts() 60 bool emptylist = b->next == 0; in check_nexts() 66 if (b->next != 0) { in check_nexts() 67 CHECK(valid_chunk(h, b->next)); in check_nexts() 79 for (c = right_chunk(h, 0); c < h->end_chunk; c = right_chunk(h, c)) { in sys_heap_validate() 110 for (int b = 0; b <= bucket_idx(h, h->end_chunk); b++) { in sys_heap_validate() local [all …]
|
/Zephyr-latest/include/zephyr/portability/ |
D | cmsis_os.h | 48 /// \note MUST REMAIN UNCHANGED: \b osCMSIS identifies the CMSIS-RTOS API version. 49 #define osCMSIS 0x10002 ///< API version (main [31:16] .sub [15:0]) 51 /// \note CAN BE CHANGED: \b osCMSIS_KERNEL identifies the underlying RTOS kernel and version numbe… 52 #define osCMSIS_KERNEL 0x10000 ///< RTOS identification and version (main [31:16] .sub … 54 /// \note MUST REMAIN UNCHANGED: \b osKernelSystemId shall be consistent in every CMSIS-RTOS. 57 /// \note MUST REMAIN UNCHANGED: \b osFeature_xxx shall be consistent in every CMSIS-RTOS. 58 #define osFeature_MainThread 1 ///< main thread 1=main can be thread, 0=not available 59 #define osFeature_Pool 1 ///< Memory Pools: 1=available, 0=not available 60 #define osFeature_MailQ 1 ///< Mail Queues: 1=available, 0=not available 61 #define osFeature_MessageQ 1 ///< Message Queues: 1=available, 0=not available [all …]
|
/Zephyr-latest/dts/bindings/flash_controller/ |
D | st,stm32-ospi-nor.yaml | 11 reg = <0x70000000 DT_SIZE_M(64)>; /* 512 Mbits */ 69 - "PP" # Page program, PP (0x02) up to 256 bytes 70 - "PP_1_1_2" # Dual page program, PP 1-1-2 (0xA2) 71 - "PP_1_1_4" # Quad data line SPI, PP 1-1-4 (0x32) 72 - "PP_1_4_4" # Quad data line SPI, PP 1-4-4 (0x38) 86 * OSPI_SPI_MODE -> PP 1-1-1 (0x02) 87 * OSPI_DUAL_MODE -> PP 1-1-2 (0xA2) 88 * OSPI_QUAD_MODE -> PP 1-4-4 (0x38) 98 * PP 1-1-1 (0x02) -> PP 1-1-1 4B (0x12) 99 * PP 1-1-4 (0x32) -> PP 1-1-4 4B (0x34) [all …]
|
/Zephyr-latest/samples/net/capture/ |
D | README.rst | 57 inet6 2001:db8::2 prefixlen 128 scopeid 0x0<global> 59 RX packets 0 bytes 0 (0.0 B) 60 RX errors 0 dropped 0 overruns 0 frame 0 61 TX packets 0 bytes 0 (0.0 B) 62 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 65 inet6 2001:db8:200::2 prefixlen 64 scopeid 0x0<global> 66 inet6 fe80::c000:202 prefixlen 64 scopeid 0x20<link> 68 RX packets 0 bytes 0 (0.0 B) 69 RX errors 0 dropped 0 overruns 0 frame 0 70 TX packets 0 bytes 0 (0.0 B) [all …]
|
/Zephyr-latest/samples/drivers/video/capture/src/ |
D | check_test_pattern.h | 22 double b; member 37 static inline CIELAB rgb888_to_lab(const uint8_t r, const uint8_t g, const uint8_t b) in rgb888_to_lab() argument 43 double b_lin = b / 255.0; in rgb888_to_lab() 62 lab.b = 200.0 * (y - z); in rgb888_to_lab() 69 uint8_t r = (color >> 16) & 0xFF; in xrgb32_to_lab() 70 uint8_t g = (color >> 8) & 0xFF; in xrgb32_to_lab() 71 uint8_t b = color & 0xFF; in xrgb32_to_lab() local 73 return rgb888_to_lab(r, g, b); in xrgb32_to_lab() 78 uint8_t r5 = (color >> 11) & 0x1F; in rgb565_to_lab() 79 uint8_t g6 = (color >> 5) & 0x3F; in rgb565_to_lab() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/bridge/ |
D | brg_net_key_refresh.sh | 5 source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh 16 # (subnet 0) 18 # Subnet Bridge (bridges subnets 0 <-> 1) 32 # b. Tester sends DATA and GET messages to the non-bridge node encrypted 35 # c. Tester triggers transition to KRP phase 0x02 for relevant nodes for 37 # d. Messaging is verified like in step 4b. 38 # e. Tester triggers transition to KRP phase 0x03 for relevant nodes for 40 # f Messaging is verified like in step 4b. 42 # 6. Messaging is verified like in step 4b. 43 # 7. Tester triggers transition to KRP phase 0x02 for all nodes and net keys. [all …]
|