/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/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 19 zassert_equal(ret, -ENOMSG); in tThread_entry() 22 static void purge_when_put(struct k_msgq *q) in purge_when_put() argument 28 ret = k_msgq_put(q, (void *)&data[i], K_NO_WAIT); in purge_when_put() 33 tThread_entry, q, NULL, NULL, in purge_when_put() 38 k_msgq_purge(q); in purge_when_put() 42 ret = k_msgq_put(q, (void *)&data[i], K_NO_WAIT); in purge_when_put() 72 struct k_msgq *q; in ZTEST_USER() local 74 q = k_object_alloc(K_OBJ_MSGQ); in ZTEST_USER() 75 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/heap_align/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 20 * are returned low-address to high, and that freed blocks are merged 26 void *p, *q, *r, *s; in check_heap_align() local 31 q = sys_heap_aligned_alloc(h, align, size); in check_heap_align() 32 zassert_true(q != NULL, "first aligned allocation failed"); in check_heap_align() 33 zassert_true((((uintptr_t)q) & (align - 1)) == 0, "block not aligned"); in check_heap_align() 37 zassert_true((((uintptr_t)r) & (align - 1)) == 0, "block not aligned"); in check_heap_align() 42 s = sys_heap_alloc(h, (heap_end - (uint8_t *)r) - size - 8); in check_heap_align() 47 sys_heap_free(h, q); in check_heap_align() 53 p = sys_heap_alloc(h, heap_end - heap_start); in check_heap_align() [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/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/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>;
|
D | nucleo_h745zi_q_stm32h745xx_m7.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_h753zi.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/
|
/Zephyr-latest/tests/drivers/spi/spi_loopback/ |
D | overlay-stm32-spi-16bits.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/_templates/ |
D | searchbox.html | 3 (ex. built-in search, Google Custom Search, ...) 5 {%- if ('singlehtml' not in builder) %} 6 <div class="search-container" role="search"> 7 <form id="rtd-search-form" class="wy-form" action="{{ pathto('search') }}" method="get"> 8 <input type="search" name="q" placeholder="{{ _('Search docs') }}" 9 aria-label="{{ _('Search docs') }}" /> 10 {%- if google_searchengine_id is defined %} 11 <span id="search-se-settings-icon" class="fa fa-gear" role="button" tabindex="0" 12 title="Search settings" aria-label="Search settings" 13 aria-haspopup="true" aria-controls="search-se-menu" aria-expanded="false" [all …]
|
/Zephyr-latest/scripts/logging/dictionary/dictionary_parser/ |
D | data_types.py | 5 # SPDX-License-Identifier: Apache-2.0 32 self.add_data_type(self.LONG, "q") 33 self.add_data_type(self.ULONG, "Q") 34 self.add_data_type(self.LONG_LONG, "q") 35 self.add_data_type(self.ULONG_LONG, "Q") 36 self.add_data_type(self.PTR, "Q") 40 self.add_data_type(self.LONG_LONG, "q") 41 self.add_data_type(self.ULONG_LONG, "Q")
|