/Zephyr-latest/drivers/ethernet/ |
D | eth_ivshmem_queue.c | 4 * SPDX-License-Identifier: Apache-2.0 27 static int tx_clean_used(struct eth_ivshmem_queue *q); 28 static int get_rx_avail_desc_idx(struct eth_ivshmem_queue *q, uint16_t *avail_desc_idx); 31 struct eth_ivshmem_queue *q, uintptr_t tx_shmem, in eth_ivshmem_queue_init() argument 34 memset(q, 0, sizeof(*q)); in eth_ivshmem_queue_init() 44 q->desc_max_len = vring_desc_len; in eth_ivshmem_queue_init() 45 q->vring_data_max_len = shmem_section_size - vring_header_size; in eth_ivshmem_queue_init() 46 q->vring_header_size = vring_header_size; in eth_ivshmem_queue_init() 47 q->tx.shmem = (void *)tx_shmem; in eth_ivshmem_queue_init() 48 q->rx.shmem = (void *)rx_shmem; in eth_ivshmem_queue_init() [all …]
|
D | eth_ivshmem_priv.h | 4 * SPDX-License-Identifier: Apache-2.0 43 struct eth_ivshmem_queue *q, uintptr_t tx_shmem, 45 void eth_ivshmem_queue_reset(struct eth_ivshmem_queue *q); 46 int eth_ivshmem_queue_tx_get_buff(struct eth_ivshmem_queue *q, void **data, size_t len); 47 int eth_ivshmem_queue_tx_commit_buff(struct eth_ivshmem_queue *q); 48 int eth_ivshmem_queue_rx(struct eth_ivshmem_queue *q, const void **data, size_t *len); 49 int eth_ivshmem_queue_rx_complete(struct eth_ivshmem_queue *q);
|
/Zephyr-latest/doc/services/zbus/images/ |
D | zbus_overview.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Generator: Gravit.io --> 3 …-path="url(#_clipPath_4s5vgiB38S3pAl7QuuCNwfKUotLNVBNL)"><g><path d="M 28.3 26.02 L 149.17 26.02 C…
|
D | zbus_anatomy.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Generator: Gravit.io --> 3 …-path="url(#_clipPath_RMksZwjYncgyEzjvRuYD2Ss4GUVxFZdP)"><g/><path d="M 2.459 109.6 L 645.841 109.…
|
/Zephyr-latest/include/zephyr/dsp/ |
D | print_format.h | 2 * SPDX-License-Identifier: Apache-2.0 14 * @defgroup math_printing Helper macros for printing Q values. 21 * For a Q value representing 0.5, the expected output will be: 28 * @brief Insert Q value format string 32 static inline int64_t ___PRIq_arg_shift(int64_t q, int shift) in ___PRIq_arg_shift() argument 35 return llabs(q) >> -shift; in ___PRIq_arg_shift() 37 return llabs(q) << shift; in ___PRIq_arg_shift() 45 #define __PRIq_arg_shift(q, shift) ___PRIq_arg_shift(q, ((shift) + (8 * (4 - (int)sizeof(q))))) argument 46 #define __PRIq_arg_get(q, shift, h, l) FIELD_GET(GENMASK64(h, l), __PRIq_arg_shift(q, shift)) argument 47 #define __PRIq_arg_get_int(q, shift) __PRIq_arg_get(q, shift, 63, 31) argument [all …]
|
/Zephyr-latest/tests/subsys/ipc/ipc_sessions/src/ |
D | data_queue.c | 4 * SPDX-License-Identifier: Apache-2.0 17 void data_queue_init(struct data_queue *q, void *mem, size_t bytes) in data_queue_init() argument 19 k_heap_init(&q->h, mem, bytes); in data_queue_init() 20 k_queue_init(&q->q); in data_queue_init() 23 int data_queue_put(struct data_queue *q, const void *data, size_t bytes, k_timeout_t timeout) in data_queue_put() argument 26 &q->h, in data_queue_put() 32 return -ENOMEM; in data_queue_put() 34 buffer->size = bytes; in data_queue_put() 35 memcpy(buffer->data, data, bytes); in data_queue_put() 37 k_queue_append(&q->q, buffer); in data_queue_put() [all …]
|
D | data_queue.h | 4 * SPDX-License-Identifier: Apache-2.0 11 struct k_queue q; member 15 void data_queue_init(struct data_queue *q, void *mem, size_t bytes); 17 int data_queue_put(struct data_queue *q, const void *data, size_t bytes, k_timeout_t timeout); 19 void *data_queue_get(struct data_queue *q, size_t *size, k_timeout_t timeout); 21 void data_queue_release(struct data_queue *q, void *data); 23 int data_queue_is_empty(struct data_queue *q);
|
/Zephyr-latest/tests/bluetooth/host/cs/bt_le_cs_parse_pct/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 19 * - Valid PCT is passed in 22 * - IQ term matches expected values 33 {.input = {0x00, 0x00, 0x00}, .output = {.i = 0, .q = 0}}, in ZTEST() 34 {.input = {0xFF, 0xFF, 0xFF}, .output = {.i = -1, .q = -1}}, in ZTEST() 35 {.input = {0xFF, 0x00, 0xFF}, .output = {.i = 255, .q = -16}}, in ZTEST() 36 {.input = {0xFF, 0x00, 0x00}, .output = {.i = 255, .q = 0}}, in ZTEST() 37 {.input = {0x00, 0xFF, 0x00}, .output = {.i = -256, .q = 15}}, in ZTEST() 38 {.input = {0x00, 0x00, 0xFF}, .output = {.i = 0, .q = -16}}, in ZTEST() 39 {.input = {0x00, 0x08, 0x80}, .output = {.i = -2048, .q = -2048}}, in ZTEST() [all …]
|
/Zephyr-latest/tests/subsys/dsp/print_format/src/ |
D | main.c | 2 * SPDX-License-Identifier: Apache-2.0 9 #define float_multiplier(type) ((INT64_C(1) << (8 * sizeof(type) - 1)) - 1) 22 q31_t q = (q31_t)0x0f5c28f0; /* 0.119999997 */ in ZTEST() local 24 snprintf(buffer, 256, "%" PRIq(6), PRIq_arg(q, 6, 0)); in ZTEST() 27 snprintf(buffer, 256, "%" PRIq(6), PRIq_arg(q, 6, 1)); in ZTEST() 30 snprintf(buffer, 256, "%" PRIq(6), PRIq_arg(q, 6, -2)); in ZTEST() 33 snprintf(buffer, 256, "%" PRIq(4), PRIq_arg(q, 4, 0)); in ZTEST() 36 snprintf(buffer, 256, "%" PRIq(4), PRIq_arg(q, 4, 1)); in ZTEST() 39 snprintf(buffer, 256, "%" PRIq(4), PRIq_arg(q, 4, -2)); in ZTEST() 46 q31_t q = (q31_t)0x83d70a00; /* -0.970000029 */ in ZTEST() local [all …]
|
/Zephyr-latest/tests/kernel/msgq/msgq_api/src/ |
D | test_msgq_fail.c | 4 * SPDX-License-Identifier: Apache-2.0 12 static void put_fail(struct k_msgq *q) in put_fail() argument 14 int ret = k_msgq_put(q, (void *)&data[0], K_NO_WAIT); in put_fail() 17 ret = k_msgq_put(q, (void *)&data[0], K_NO_WAIT); in put_fail() 19 /**TESTPOINT: msgq put returns -ENOMSG*/ in put_fail() 20 ret = k_msgq_put(q, (void *)&data[1], K_NO_WAIT); in put_fail() 21 zassert_equal(ret, -ENOMSG); in put_fail() 22 /**TESTPOINT: msgq put returns -EAGAIN*/ in put_fail() 23 ret = k_msgq_put(q, (void *)&data[0], TIMEOUT); in put_fail() 24 zassert_equal(ret, -EAGAIN); in put_fail() [all …]
|
D | test_msgq_attrs.c | 4 * SPDX-License-Identifier: Apache-2.0 13 static void attrs_get(struct k_msgq *q) in attrs_get() argument 18 k_msgq_get_attrs(q, &attrs); in attrs_get() 23 ret = k_msgq_put(q, (void *)&send_buf[i], K_NO_WAIT); in attrs_get() 27 k_msgq_get_attrs(q, &attrs); in attrs_get() 31 ret = k_msgq_get(q, (void *)&rec_buf[i], K_NO_WAIT); in attrs_get() 35 k_msgq_get_attrs(q, &attrs); in attrs_get() 64 struct k_msgq *q; in ZTEST_USER() local 66 q = k_object_alloc(K_OBJ_MSGQ); in ZTEST_USER() 67 zassert_not_null(q, "couldn't alloc message queue"); in ZTEST_USER() [all …]
|
D | test_msgq_purge.c | 4 * SPDX-License-Identifier: Apache-2.0 20 zassert_equal(ret, -ENOMSG); in tThread_entry() 23 static void purge_when_put(struct k_msgq *q) in purge_when_put() argument 29 ret = k_msgq_put(q, (void *)&data[i], K_NO_WAIT); in purge_when_put() 34 tThread_entry, q, NULL, NULL, in purge_when_put() 39 k_msgq_purge(q); in purge_when_put() 43 ret = k_msgq_put(q, (void *)&data[i], K_NO_WAIT); in purge_when_put() 73 struct k_msgq *q; in ZTEST_USER() local 75 q = k_object_alloc(K_OBJ_MSGQ); in ZTEST_USER() 76 zassert_not_null(q, "couldn't alloc message queue"); in ZTEST_USER() [all …]
|
/Zephyr-latest/tests/kernel/queue/src/ |
D | test_queue_user.c | 4 * SPDX-License-Identifier: Apache-2.0 30 struct k_queue *q = p1; in child_thread_get() local 33 zassert_false(k_queue_is_empty(q)); in child_thread_get() 34 qd = k_queue_peek_head(q); in child_thread_get() 35 zassert_equal(qd->data, 0); in child_thread_get() 36 qd = k_queue_peek_tail(q); in child_thread_get() 37 zassert_equal(qd->data, (LIST_LEN * 2) - 1, in child_thread_get() 38 "got %d expected %d", qd->data, (LIST_LEN * 2) - 1); in child_thread_get() 41 qd = k_queue_get(q, K_FOREVER); in child_thread_get() 43 zassert_equal(qd->data, i); in child_thread_get() [all …]
|
/Zephyr-latest/tests/kernel/context/ |
D | README.txt | 12 - start a helper thread to help with k_yield() tests 13 - start a thread to test thread related functionality 16 - Called by a higher priority thread when there is another thread 17 - Called by an equal priority thread when there is another thread 18 - Called by a lower priority thread when there is another thread 21 - Called from an ISR (interrupted a task) 22 - Called from an ISR (interrupted a thread) 23 - Called from a task 24 - Called from a thread 27 - Called from an ISR that interrupted a task [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | mpsc_lockfree.h | 2 * Copyright (c) 2010-2011 Dmitry Vyukov 5 * SPDX-License-Identifier: Apache-2.0 30 * @brief A wait-free intrusive multi producer single consumer (MPSC) queue using 31 * a singly linked list. Ordering is First-In-First-Out. 33 * Based on the well known and widely used wait-free MPSC queue described by 111 * @param q Queue to initialize or reset 113 static inline void mpsc_init(struct mpsc *q) in mpsc_init() argument 115 mpsc_ptr_set(q->head, &q->stub); in mpsc_init() 116 q->tail = &q->stub; in mpsc_init() 117 mpsc_ptr_set(q->stub.next, NULL); in mpsc_init() [all …]
|
/Zephyr-latest/tests/lib/cobs/src/ |
D | main.c | 3 * SPDX-License-Identifier: Apache-2.0 27 fixture->test_data = net_buf_alloc(&test_pool, K_NO_WAIT); in cobs_test_setup() 28 fixture->encoded = net_buf_alloc(&test_pool, K_NO_WAIT); in cobs_test_setup() 29 fixture->decoded = net_buf_alloc(&test_pool, K_NO_WAIT); in cobs_test_setup() 31 zassert_not_null(fixture->test_data, "Failed to allocate test_data buffer"); in cobs_test_setup() 32 zassert_not_null(fixture->encoded, "Failed to allocate encoded buffer"); in cobs_test_setup() 33 zassert_not_null(fixture->decoded, "Failed to allocate decoded buffer"); in cobs_test_setup() 35 net_buf_reset(fixture->test_data); in cobs_test_setup() 36 net_buf_reset(fixture->encoded); in cobs_test_setup() 37 net_buf_reset(fixture->decoded); in cobs_test_setup() [all …]
|
/Zephyr-latest/doc/build/dts/ |
D | zephyr_dt_i2c_high_level.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 3 …-color: rgb(255, 255, 255);" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="429px…
|
/Zephyr-latest/tests/lib/heap_align/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 33 align -= rew; in alignment_ok() 39 return (addr & (align - 1)) == 0; in alignment_ok() 45 * are returned low-address to high, and that freed blocks are merged 51 void *p, *q, *r, *s; in check_heap_align() local 57 q = sys_heap_aligned_alloc(h, align, size); in check_heap_align() 58 zassert_true(q != NULL, "first aligned allocation failed"); in check_heap_align() 59 zassert_true(alignment_ok(q, align), "block not aligned"); in check_heap_align() 68 suffix = (heap_end - (uint8_t *)ROUND_UP((uintptr_t)r + size, CHUNK_UNIT)) in check_heap_align() 69 - heap_chunk_header_size; in check_heap_align() [all …]
|
/Zephyr-latest/boards/st/nucleo_n657x0_q/doc/ |
D | index.rst | 6 The NUCLEO-N657X0-Q board provides an affordable and flexible way for users to try out 15 The NUCLEO-N657X0-Q board does not require any separate probe as it integrates the ST-LINK 18 The STM32 Nucleo-144 board comes with the STM32 comprehensive free software libraries and 24 - Common features: 26 - STM32 microcontroller in an LQFP144, TFBGA225, or VFBGA264 package 27 - 3 user LEDs 28 - 1 user push-button and 1 reset push-button 29 - 32.768 kHz crystal oscillator 30 - Board connectors: 32 - SWD [all …]
|
/Zephyr-latest/tests/drivers/clock_control/stm32_clock_configuration/stm32h7_devices/boards/ |
D | spi1_pllq_2_d1ppre_4.overlay | 4 * SPDX-License-Identifier: Apache-2.0 12 /* With this particular div-q and d1ppre values 19 /delete-property/ div-q; 20 div-q = <2>; 24 /delete-property/ d1ppre; 29 /delete-property/ clocks;
|
/Zephyr-latest/boards/st/nucleo_h7a3zi_q/doc/ |
D | index.rst | 6 The STM32 Nucleo-144 boards offer combinations of performance and power that 8 out new concepts. For compatible boards, the SMPS (Switched-Mode Power Supply) 11 The Arduino-compatible ST Zio connector expands functionality of the Nucleo 15 The STM32 Nucleo-144 board does not require any separate probe as it integrates 16 the ST-LINK/V3E debugger/programmer. 18 The STM32 Nucleo-144 board comes with the STM32 comprehensive free software 23 - STM32 microcontroller in LQFP144 package 24 - USB OTG or full-speed device (depending on STM32 support) 25 - 3 user LEDs 26 - 2 user and reset push-buttons [all …]
|
/Zephyr-latest/tests/drivers/spi/spi_loopback/boards/ |
D | nucleo_h723zg.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /* Set div-q to get test clk freq into acceptable SPI freq range */ 9 /delete-property/ div-q; 10 div-q = <8>; 15 /delete-property/ clocks; 19 compatible = "test-spi-loopback-slow"; 21 spi-max-frequency = <500000>; 24 compatible = "test-spi-loopback-fast"; 26 spi-max-frequency = <16000000>;
|
D | nucleo_h743zi.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /* Set div-q to get test clk freq into acceptable SPI freq range */ 9 /delete-property/ div-q; 10 div-q = <8>; 14 zephyr,memory-attr = < DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE) >; 20 dma-names = "tx", "rx"; 22 compatible = "test-spi-loopback-slow"; 24 spi-max-frequency = <500000>; 27 compatible = "test-spi-loopback-fast"; 29 spi-max-frequency = <16000000>;
|
D | nucleo_h745zi_q_stm32h745xx_m4.overlay | 4 * SPDX-License-Identifier: Apache-2.0 7 /* Set div-q to get test clk freq into acceptable SPI freq range */ 9 /delete-property/ div-q; 10 div-q = <8>; 14 zephyr,memory-attr = < DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE) >; 20 dma-names = "tx", "rx"; 22 compatible = "test-spi-loopback-slow"; 24 spi-max-frequency = <500000>; 27 compatible = "test-spi-loopback-fast"; 29 spi-max-frequency = <16000000>;
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | traffic-class.rst | 1 .. _traffic-class-support: 13 VLAN priority at `IEEE 802.1Q <https://en.wikipedia.org/wiki/IEEE_802.1Q>`_. 21 specified in `IEEE 802.1Q spec`_ chapter I.3, chapter 8.6.6 table 8-4, 22 and chapter 34.5 table 34-1. Each traffic class is in turn mapped to a certain 28 .. _IEEE 802.1Q spec: https://ieeexplore.ieee.org/document/6991462/
|