Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 866) sorted by relevance

12345678910>>...35

/Zephyr-latest/include/zephyr/sys/
Dmath_extras_impl.h32 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 …]
Dmath_extras.h41 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/tests/bluetooth/addr/src/
Dtest_bt_addr_le_eq.c13 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()
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()
39 bt_addr_le_t b = a; in ZTEST() local
41 zassume_true(bt_addr_le_eq(&a, &b)); in ZTEST()
43 zassert_false(bt_addr_le_eq(&a, &b)); in ZTEST()
[all …]
/Zephyr-latest/tests/kernel/timer/timepoints/src/
Dmain.c40 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()
55 zassert_true(sys_timepoint_cmp(b, a) > 0); in ZTEST()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Daes_ccm.c20 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/subsys/net/lib/ptp/
Dbtca.c32 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()
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()
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/scripts/coredump/gdbstubs/
Dgdbstub.py41 data = b''
46 if ch == b'$':
52 if ch == b'#':
68 socket.send(b'+')
74 socket.send(b'-')
87 pkt = b'$' + data + b'#'
107 barray = b''
128 pkt = b'S'
142 self.put_gdb_packet(b"E01")
146 self.put_gdb_packet(b"E01")
[all …]
/Zephyr-latest/arch/arm64/core/
Dearly_mem_funcs.S27 b.ne 2f
31 b.lo 2f
42 b.hi 1b
50 b.ne 3b
61 b.ne 2f
65 b.lo 2f
72 b.hi 1b
81 b.ne 3b
Dvector_table.S156 b z_arm64_sync_exc
162 b _isr_wrapper
164 b z_irq_spurious
169 b .
174 b z_arm64_serror
179 b z_arm64_sync_exc
185 b _isr_wrapper
187 b z_irq_spurious
192 b .
197 b z_arm64_serror
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/common/
Dtest_common.h75 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/arch/x86/core/ia32/
Dsoft_float_stubs.c22 __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
232 __weak void __cmptf2(long double a, long double b) in __cmptf2() argument
237 __weak void __unordtf2(long double a, long double b) in __unordtf2() argument
[all …]
/Zephyr-latest/subsys/testsuite/ztest/include/zephyr/
Dztest_assert.h321 #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, \
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
515 #define zassume_equal_ptr(a, b, ...) \ argument
516 zassume((void *)(a) == (void *)(b), #a " not equal to " #b, ##__VA_ARGS__)
[all …]
/Zephyr-latest/drivers/interrupt_controller/
Dintc_nuclei_eclic.c28 } b; member
41 } b; member
54 } b; member
63 } b; member
75 } b; member
116 ECLIC_CTRL[irq].INTIE.b.IE = 1; in riscv_clic_irq_enable()
124 ECLIC_CTRL[irq].INTIE.b.IE = 0; in riscv_clic_irq_disable()
132 return ECLIC_CTRL[irq].INTIE.b.IE; in riscv_clic_irq_is_enabled()
149 intattr.b.shv = 0; in riscv_clic_irq_priority_set()
150 intattr.b.trg = (uint8_t)(flags & CLIC_INTATTR_TRIG_Msk); in riscv_clic_irq_priority_set()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/filtering/src/
Dmisc_q31.c56 #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 …]
Dmisc_f16.c52 #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 …]
Dmisc_f32.c60 #define DEFINE_CORRELATE_TEST(a, b) \ argument
62 arm_correlate_f32, a##_##b, a, b, \
63 ref_correlate_##a##_##b, ARRAY_SIZE(ref_correlate_##a##_##b))
135 #define DEFINE_CONV_TEST(a, b) \ argument
137 arm_conv_f32, a##_##b, a, b, \
138 ref_conv_##a##_##b, ARRAY_SIZE(ref_conv_##a##_##b))
229 #define DEFINE_CONV_PARTIAL_TEST(a, b, c) \ argument
231 arm_conv_partial_f32, a##_##b##_##c, a, b, c, \
232 ref_conv_partial_##a##_##b##_##c, \
233 ARRAY_SIZE(ref_conv_partial_##a##_##b##_##c))
[all …]
Dmisc_q7.c45 #define DEFINE_CORRELATE_TEST(a, b) \ argument
47 arm_correlate_q7, a##_##b, a, b, \
48 ref_correlate_##a##_##b, ARRAY_SIZE(ref_correlate_##a##_##b))
102 #define DEFINE_CONV_TEST(a, b) \ argument
104 arm_conv_q7, a##_##b, a, b, \
105 ref_conv_##a##_##b, ARRAY_SIZE(ref_conv_##a##_##b))
229 #define DEFINE_CONV_PARTIAL_TEST(a, b, c) \ argument
231 arm_conv_partial_q7, a##_##b##_##c, a, b, c, \
232 ref_conv_partial_##a##_##b##_##c, \
233 ARRAY_SIZE(ref_conv_partial_##a##_##b##_##c)) \
[all …]
Dmisc_q15.c46 #define DEFINE_CORRELATE_TEST(a, b) \ argument
48 arm_correlate_q15, a##_##b, a, b, \
49 ref_correlate_##a##_##b, ARRAY_SIZE(ref_correlate_##a##_##b))
103 #define DEFINE_CONV_TEST(a, b) \ argument
105 arm_conv_q15, a##_##b, a, b, \
106 ref_conv_##a##_##b, ARRAY_SIZE(ref_conv_##a##_##b))
324 #define DEFINE_CONV_PARTIAL_TEST(a, b, c) \ argument
326 arm_conv_partial_q15, a##_##b##_##c, a, b, c, \
327 ref_conv_partial_##a##_##b##_##c, \
328 ARRAY_SIZE(ref_conv_partial_##a##_##b##_##c)) \
[all …]
/Zephyr-latest/scripts/native_simulator/common/src/include/
Dnsi_utils.h21 #define NSI_MAX(a, b) (((a) > (b)) ? (a) : (b)) argument
22 #define NSI_MIN(a, b) (((a) < (b)) ? (a) : (b)) argument
/Zephyr-latest/soc/intel/intel_ish/utils/
Dbuild_ish_firmware.py69 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))
84 f.write(b'\x00' * (HEADER_SIZE - (MANIFEST_ENTRY_SIZE * 3)))
86 f.write(b'\x00' * (HEADER_SIZE - (MANIFEST_ENTRY_SIZE * 2)))
92 f.write(b'\x00' * (kern_rdup_pg_size * PAGE_SIZE - kernel_size))
99 f.write(b'\x00' * (aon_rdup_pg_size * PAGE_SIZE - aon_size))
/Zephyr-latest/samples/subsys/zbus/dyn_channel/
DREADME.rst66 W: 0b 0b 0b 0b 0b 0b 0b 0b |........
67 W: 0b 0b 0b 0b |....
/Zephyr-latest/lib/heap/
Dheap_validate.c57 struct z_heap_bucket *b = &h->buckets[bidx]; in check_nexts() local
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()
110 for (int b = 0; b <= bucket_idx(h, h->end_chunk); b++) { in sys_heap_validate() local
111 chunkid_t c0 = h->buckets[b].next; in sys_heap_validate()
114 check_nexts(h, b); in sys_heap_validate()
124 bool empty = (h->avail_buckets & BIT(b)) == 0; in sys_heap_validate()
131 if (empty && (h->buckets[b].next != 0)) { in sys_heap_validate()
163 for (int b = 0; b <= bucket_idx(h, h->end_chunk); b++) { in sys_heap_validate() local
[all …]
/Zephyr-latest/include/zephyr/
Dnet_buf.h1048 struct net_buf_simple b; member
1134 struct _net_buf_##_name { uint8_t b[sizeof(struct net_buf)]; \
1602 net_buf_simple_reserve(&buf->b, reserve); in net_buf_reserve()
1618 return net_buf_simple_add(&buf->b, len); in net_buf_add()
1636 return net_buf_simple_add_mem(&buf->b, mem, len); in net_buf_add_mem()
1652 return net_buf_simple_add_u8(&buf->b, val); in net_buf_add_u8()
1667 net_buf_simple_add_le16(&buf->b, val); in net_buf_add_le16()
1682 net_buf_simple_add_be16(&buf->b, val); in net_buf_add_be16()
1697 net_buf_simple_add_le24(&buf->b, val); in net_buf_add_le24()
1712 net_buf_simple_add_be24(&buf->b, val); in net_buf_add_be24()
[all …]
/Zephyr-latest/scripts/west_commands/tests/
Dtest_build.py52 b = Build()
54 b.args = Namespace()
55 b._parse_remainder(test_case['r'])
56 assert b.args.source_dir == test_case['s']
57 assert b.args.cmake_opts == test_case['c']
/Zephyr-latest/samples/subsys/zbus/uart_bridge/
Ddecoder.py27 name = b""
29 b = ser.read(size=1)
30 if b == b",":
32 name += b
43 if d == b'$':

12345678910>>...35