/Zephyr-latest/subsys/ipc/ipc_service/backends/ |
D | ipc_rpmsg_static_vrings.h | 4 * SPDX-License-Identifier: Apache-2.0 17 * [B] backend 21 * ----------------------------------------------------------------- 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 [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | math_extras_impl.h | 4 * SPDX-License-Identifier: Apache-2.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 …]
|
D | math_extras.h | 4 * SPDX-License-Identifier: Apache-2.0 12 * Portable wrapper functions for a number of arithmetic and bit-counting functions that are often 29 * These functions compute `a + b` and store the result in `*result`, returning 35 * @brief Add two unsigned 16-bit integers. 37 * @param b Second operand. 41 static bool u16_add_overflow(uint16_t a, uint16_t b, uint16_t *result); 44 * @brief Add two unsigned 32-bit integers. 46 * @param b Second operand. 51 static bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result); 54 * @brief Add two unsigned 64-bit integers. [all …]
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | btca.c | 4 * SPDX-License-Identifier: Apache-2.0 18 #define B_BETTER (-1) 19 #define B_BETTER_TOPOLOGY (-2) 21 static int btca_port_id_cmp(const struct ptp_port_id *p1, const struct ptp_port_id *p2) in btca_port_id_cmp() 23 int diff = memcmp(&p1->clk_id, &p2->clk_id, sizeof(p1->clk_id)); in btca_port_id_cmp() 26 diff = p1->port_number - p2->port_number; 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 34 int diff; in btca_ds_cmp2() 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() [all …]
|
/Zephyr-latest/scripts/coredump/gdbstubs/ |
D | gdbstub.py | 5 # SPDX-License-Identifier: Apache-2.0 41 data = b'' 46 if ch == b'$': 52 if ch == b'#': 59 # Get checksum (2-bytes) 68 socket.send(b'+') 74 socket.send(b'-') 87 pkt = b'$' + data + b'#' 107 barray = b'' 118 offset = addr - r['start'] [all …]
|
/Zephyr-latest/lib/posix/options/ |
D | barrier.c | 5 * SPDX-License-Identifier: Apache-2.0 35 return bar - posix_barrier_pool; in posix_barrier_to_offset() 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 45 int actually_initialized; in get_posix_barrier() 46 size_t bit = to_posix_barrier_idx(b); in get_posix_barrier() 49 if (!is_pthread_obj_initialized(b)) { in get_posix_barrier() 66 int pthread_barrier_wait(pthread_barrier_t *b) in pthread_barrier_wait() argument 68 int ret; in pthread_barrier_wait() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | aes_ccm.c | 5 * SPDX-License-Identifier: Apache-2.0 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() [all …]
|
/Zephyr-latest/arch/x86/core/ia32/ |
D | soft_float_stubs.c | 4 * SPDX-License-Identifier: Apache-2.0 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 172 __weak void __floatsitf(int i) in __floatsitf() [all …]
|
/Zephyr-latest/tests/subsys/llext/src/ |
D | export_dependent_ext.c | 4 * SPDX-License-Identifier: Apache-2.0 13 extern long test_dependency(int a, int b); 18 unsigned long mask = BIT(half_ptr_bits) - 1; in test_entry() 19 int a = mask & (uintptr_t)test_entry; in test_entry() 20 int b = mask & ((uintptr_t)test_entry >> half_ptr_bits); in test_entry() local 22 zassert_equal(test_dependency(a, b), (long)a * b); in test_entry()
|
D | export_dependency_ext.c | 4 * SPDX-License-Identifier: Apache-2.0 11 long test_dependency(int a, int b) in test_dependency() argument 13 return (long)a * b; in test_dependency()
|
/Zephyr-latest/tests/subsys/debug/gdbstub/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 12 static int test(void) in test() 14 int a; in test() 15 int b; in test() local 18 b = a * 2; in test() 20 return a + b; in test() 23 int main(void) in main() 25 int ret; in main()
|
/Zephyr-latest/lib/libc/minimal/source/stdlib/ |
D | qsort.c | 4 * SPDX-License-Identifier: Apache-2.0 14 * Normally parent is defined parent(k) = floor((k-1) / 2) but we can avoid a 15 * divide by noticing that floor((k-1) / 2) = ((k - 1) >> 1). 18 #define parent(k) (((k) - 1) >> 1) 38 int (*comp2)(const void *a, const void *b); 39 int (*comp3)(const void *a, const void *b, void *arg); 43 static inline int compare(struct qsort_comp *cmp, void *a, void *b) in compare() argument 45 if (cmp->has3) { in compare() 46 return cmp->comp3(a, b, cmp->arg); in compare() 49 return cmp->comp2(a, b); in compare() [all …]
|
/Zephyr-latest/samples/arch/smp/pi/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 20 #define STACK_SIZE ((LENGTH * sizeof(int) + 1280)) 43 * -------------------------------->8-------------------------------- in test_thread() 44 * int a=10000,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5; in test_thread() 45 * for(;d=0,g=c*2;c-=14,printf("%.4d",e+d/a),e=d%a)for(b=c;d+=f[b]*a, in test_thread() 46 * f[b]=d%--g,d/=g--,--b;d*=b);} in test_thread() 47 * -------------------------------->8-------------------------------- in test_thread() 52 int array[LENGTH + 1] = {}; in test_thread() 53 int carry = 0; in test_thread() 54 int i, j; in test_thread() [all …]
|
/Zephyr-latest/tests/net/conn_mgr_conn/src/ |
D | test_conn_impl.h | 4 * SPDX-License-Identifier: Apache-2.0 29 /* The number of times an A-implementation API func has been called (other than init) */ 30 int call_cnt_a; 32 /* The number of times a B-implementation API func has been called (other than init) */ 33 int call_cnt_b; 36 int conn_bal; 38 /* The number of times A-implementation init was called (should always be 1) */ 39 int init_calls_a; 41 /* The number of times B-implementation init was called (should always be 1) */ 42 int init_calls_b; [all …]
|
/Zephyr-latest/samples/drivers/video/capture/src/ |
D | check_test_pattern.h | 4 * SPDX-License-Identifier: Apache-2.0 22 double b; member 26 * This is measured on a real 8-colorbar pattern generated by an ov5640 camera sensor. 33 {100.0, 0.0053, -0.0104}, {97.1804, -21.2151, 91.3538}, {90.1352, -58.4675, 6.0570}, 34 {87.7630, -85.9469, 83.2128}, {56.6641, 95.0182, -66.9129}, {46.6937, 72.7494, 49.5801}, 35 {27.6487, 71.5662, -97.4712}, {1.3726, -2.8040, 2.0043}}; 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() 60 lab.L = 116.0 * y - 16.0; in rgb888_to_lab() 61 lab.a = 500.0 * (x - y); in rgb888_to_lab() [all …]
|
/Zephyr-latest/tests/unit/intmath/ |
D | main.c | 5 * SPDX-License-Identifier: Apache-2.0 10 /* Built-time math test. Zephyr code depends on a standard C ABI with 20 #pragma GCC diagnostic ignored "-Woverflow" 23 /* Two's complement negation check: "-N" must equal "(~N)+1" */ 24 #define NEG_CHECK(T, N) BUILD_ASSERT((-((T)N)) == (~((T)N)) + 1) 31 #pragma clang diagnostic ignored "-Winteger-overflow" 34 ROLLOVER_CHECK(unsigned int, 0xffffffff, 0); 40 NEG_CHECK(signed char, -1); 43 ROLLOVER_CHECK(signed char, 127, -128); 47 NEG_CHECK(short, -1); [all …]
|
/Zephyr-latest/dts/bindings/flash_controller/ |
D | st,stm32-ospi-nor.yaml | 2 # SPDX-License-Identifier: Apache-2.0 9 mx25lm51245: ospi-nor-flash@70000000 { 10 compatible = "st,stm32-ospi-nor"; 12 data-mode = <OSPI_OPI_MODE>; /* access on 8 data lines */ 13 data-rate = <OSPI_DTR_TRANSFER>; /* access in DTR */ 14 ospi-max-frequency = <DT_FREQ_M(50)>; 18 compatible: "st,stm32-ospi-nor" 20 include: ["flash-controller.yaml", "jedec,jesd216.yaml"] 22 on-bus: ospi 28 ospi-max-frequency: [all …]
|
/Zephyr-latest/subsys/fs/ext2/ |
D | ext2_bitmap.c | 4 * SPDX-License-Identifier: Apache-2.0 18 int ext2_bitmap_set(uint8_t *bm, uint32_t index, uint32_t size) in ext2_bitmap_set() 27 return -EINVAL; in ext2_bitmap_set() 39 int ext2_bitmap_unset(uint8_t *bm, uint32_t index, uint32_t size) in ext2_bitmap_unset() 48 return -EINVAL; in ext2_bitmap_unset() 62 for (int i = 0; i < size; ++i) { in ext2_bitmap_find_free() 66 int off = find_lsb_set(~bm[i]) - 1; in ext2_bitmap_find_free() 72 return -ENOSPC; in ext2_bitmap_find_free() 82 for (int b = 0; b < 8 && i + b < size; ++b) { in ext2_bitmap_count_set() local 83 count += (val >> b) & BIT(0); in ext2_bitmap_count_set()
|
/Zephyr-latest/dts/bindings/gpio/ |
D | nxp,lpc-gpio-port.yaml | 1 # Copyright 2019-2022, 2024 NXP 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nxp,lpc-gpio-port" 8 include: [gpio-controller.yaml, base.yaml] 14 "#gpio-cells": 17 int-source: 21 - "pint" 22 - "int-a" 23 - "int-b" 24 - "none" [all …]
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_nuclei_eclic.c | 4 * SPDX-License-Identifier: Apache-2.0 28 } b; member 41 } b; member 54 } b; member 63 } b; member 69 /** 0: non-vectored 1:vectored */ 75 } b; member 103 return (val << (8U - shift)); in leftalign8() 108 return ((1 << len) - 1) & 0xFFFFU; in mask8() 116 ECLIC_CTRL[irq].INTIE.b.IE = 1; in riscv_clic_irq_enable() [all …]
|
/Zephyr-latest/samples/subsys/zbus/remote_mock/ |
D | remote_mock.py | 3 # SPDX-License-Identifier: Apache-2.0 25 channel_id = int.from_bytes(ser.read(), "little") 35 f"Proxy PUB [{channels[2]['name']}] -> start measurement") 36 ser.write(b'$') 37 ser.write(b'\x02') # idx 38 ser.write(b'\x01') 39 ser.write(b'*') 47 if d == b'$': 51 f"Proxy NOTIFY: [{channel_name}] -> sensor value {int.from_bytes(msg, 'little')}")
|
/Zephyr-latest/samples/drivers/led/lp5562/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 64 * @param b Blue value in hex [0x00..0xFF]. 66 * @return 0 if successful, -ERRNO otherwise. 68 static int set_static_color(const struct device *dev, uint8_t r, uint8_t g, in set_static_color() 69 uint8_t b) in set_static_color() argument 71 int ret; in set_static_color() 75 b = scale_color_to_percent(b); in set_static_color() 89 ret = led_set_brightness(dev, LED_B, b); in set_static_color() 107 * @param b Blink the blue LED. 111 * @return 0 if successful, -ERRNO otherwise. [all …]
|
/Zephyr-latest/tests/subsys/zbus/unittests/src/ |
D | messages.h | 3 * SPDX-License-Identifier: Apache-2.0 18 int a; 19 int b; member 32 int m; 34 int a, b, c; member
|
/Zephyr-latest/lib/heap/ |
D | heap_validate.c | 4 * SPDX-License-Identifier: Apache-2.0 11 /* White-box sys_heap validation code. Uses internal data structures. 17 * something scribbling a copy of a previously-valid heap on top of a 26 VALIDATE(c < h->end_chunk); in in_bounds() 27 VALIDATE(chunk_size(h, c) < h->end_chunk); in in_bounds() 34 VALIDATE((c + chunk_size(h, c)) <= h->end_chunk); in valid_chunk() 55 static inline void check_nexts(struct z_heap *h, int bidx) in check_nexts() 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() [all …]
|
/Zephyr-latest/drivers/display/ |
D | mb_display.c | 5 * SPDX-License-Identifier: Apache-2.0 65 return &mb_font[' ' - MB_FONT_START]; in get_font() 68 return &mb_font[ch - MB_FONT_START]; in get_font() 71 static ALWAYS_INLINE uint8_t flip_pixels(uint8_t b) in flip_pixels() argument 73 b = (b & 0xf0) >> 4 | (b & 0x0f) << 4; in flip_pixels() 74 b = (b & 0xcc) >> 2 | (b & 0x33) << 2; in flip_pixels() 75 b = (b & 0xaa) >> 1 | (b & 0x55) << 1; in flip_pixels() 77 return b; in flip_pixels() 80 static int update_content(struct mb_display *disp, const struct mb_image *img) in update_content() 89 int ret; in update_content() [all …]
|