/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings-include/ |
D | include-invalid-keys.yaml | 1 # SPDX-License-Identifier: BSD-3-Clause 5 compatible: include-invalid-keys 7 - name: include.yaml 8 property-allowlist: [x] 9 bad-key-1: 3 10 bad-key-2: 3
|
/Zephyr-latest/drivers/ipm/ |
D | ipm_sedi.c | 2 * Copyright (c) 2020-2023 Intel Corporation 4 * SPDX-License-Identifier: Apache-2.0 23 struct ipm_sedi_context *ipm = dev->data; in set_ipm_dev_busy() 24 unsigned int key = irq_lock(); in set_ipm_dev_busy() local 26 atomic_set_bit(&ipm->status, is_write ? IPM_WRITE_BUSY_BIT : IPM_READ_BUSY_BIT); in set_ipm_dev_busy() 28 irq_unlock(key); in set_ipm_dev_busy() 33 struct ipm_sedi_context *ipm = dev->data; in clear_ipm_dev_busy() 34 unsigned int key = irq_lock(); in clear_ipm_dev_busy() local 36 atomic_clear_bit(&ipm->status, is_write ? IPM_WRITE_BUSY_BIT : IPM_READ_BUSY_BIT); in clear_ipm_dev_busy() 37 if ((!atomic_test_bit(&ipm->status, IPM_WRITE_BUSY_BIT)) in clear_ipm_dev_busy() [all …]
|
/Zephyr-latest/tests/subsys/mgmt/mcumgr/zcbor_bulk/src/ |
D | main.c | 2 * Copyright (c) 2022-2023 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 26 zassert_ok(strcmp(map_one[0].key.value, "hello")); in ZTEST() 27 zassert_equal(map_one[0].key.len, sizeof("hello") - 1); in ZTEST() 31 zassert_ok(strcmp(map_one[0].key.value, map_two[0].key.value)); in ZTEST() 32 zassert_equal(map_one[0].key.len, map_two[0].key.len); in ZTEST() 54 /* { "hello":"world", "one":1, "bool_val":true } */ in ZTEST() 57 zcbor_tstr_put_lit(zsd, "one") && zcbor_uint32_put(zsd, 1) && in ZTEST() 63 zcbor_new_decode_state(zsd, 4, buffer, ARRAY_SIZE(buffer), 1, NULL, 0); in ZTEST() 70 zassert_equal(one, 1, "Expected 1"); in ZTEST() [all …]
|
/Zephyr-latest/kernel/ |
D | userspace.c | 4 * SPDX-License-Identifier: Apache-2.0 21 #include <zephyr/sys/libc-hooks.h> 25 #include <zephyr/linker/linker-defs.h> 44 * non-recursive. Rather than try to redesign as part of 55 /* On ARM & ARC MPU & RISC-V PMP we may have two different alignment requirement 86 /* -fdata-sections doesn't work right except in very recent in otype_to_str() 92 /* otype-to-str.h is generated automatically during build by in otype_to_str() 98 #include <zephyr/otype-to-str.h> in otype_to_str() 126 __ASSERT(obj->type == K_OBJ_THREAD_STACK_ELEMENT, in z_priv_stack_find() 127 "bad stack object"); in z_priv_stack_find() [all …]
|
/Zephyr-latest/scripts/ |
D | get_maintainer.py | 4 # SPDX-License-Identifier: Apache-2.0 16 ./get_maintainer.py path --help 60 "-m", "--maintainers", 63 "the top-level repository directory is used, and must exist. " 65 "to the top-level directory.") 68 help="Available commands (each has a separate --help text)") 98 "non-orphaned files are listed (all files that do not appear in " 127 "-a", 128 "--count-areas", 132 "-c", [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | net_stats.h | 11 * SPDX-License-Identifier: Apache-2.0 127 /** Number of ICMP packets with a bad checksum. */ 153 /** Number of TCP segments with a bad checksum. */ 156 /** Number of received TCP segments with a bad ACK number. */ 159 /** Number of received bad TCP RST (reset) segments. */ 190 /** Number of UDP segments with a bad checksum. */ 303 #define NET_TC_TX_STATS_COUNT 1 309 #define NET_TC_RX_STATS_COUNT 1 442 #if NET_TC_COUNT > 1 581 const char * const key; /**< Key name of vendor statistics */ member [all …]
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | testinstance.py | 3 # Copyright (c) 2018-2024 Intel Corporation 7 # SPDX-License-Identifier: Apache-2.0 75 source_dir_rel = testsuite.source_dir_rel.rsplit(os.pardir+os.path.sep, 1)[-1] 113 def status(self) -> TwisterStatus: 117 def status(self, value : TwisterStatus) -> None: 120 key = value.name if isinstance(value, Enum) else value 121 self._status = TwisterStatus[key] 176 def compose_case_name(self, tc_name) -> str: 215 # command-line, then we need to run the test, not just build it. 250 handler.args.append("COVERAGE=1") [all …]
|
D | config_parser.py | 3 # Copyright (c) 2018-2022 Intel Corporation 4 # SPDX-License-Identifier: Apache-2.0 28 name, val = field.split("=", 1) 148 @return A dictionary containing the scenario key-value pairs with 201 # (1) CONF_FILEs extracted from common['extra_args'] 256 f"bad {kinfo['type']} value '{d[k]}' for key '{k}' in name '{name}'"
|
D | testsuite.py | 3 # Copyright (c) 2018-2024 Intel Corporation 4 # SPDX-License-Identifier: Apache-2.0 71 # do not match until end-of-line, otherwise we won't allow 73 # line--as we only search starting the end of this match 74 br"^\s*ztest_test_suite\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,", 78 br"\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,", 81 br"^\s*ZTEST_SUITE\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,", 84 br"^\s*(?:ZTEST|ZTEST_F|ZTEST_USER|ZTEST_USER_F)\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*," 85 br"\s*(?P<testcase_name>[a-zA-Z0-9_]+)\s*", 89 # 1. register test suites and not call the run function if and only if [all …]
|
D | testplan.py | 4 # Copyright (c) 2018-2024 Intel Corporation 7 # SPDX-License-Identifier: Apache-2.0 28 print("Install the anytree module to use the --test-tree option") 50 "python-devicetree", "src")) 51 from devicetree import edtlib # pylint: disable=unused-import 57 PLATFORM_KEY = 'platform key filter' 86 config_re = re.compile('(CONFIG_[A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$') 87 dt_re = re.compile('([A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$') 91 "scripts", "schemas", "twister", "testsuite-schema.yaml")) 94 "scripts", "schemas", "twister", "quarantine-schema.yaml")) [all …]
|
/Zephyr-latest/arch/arm/core/cortex_a_r/ |
D | swap_helper.S | 2 * Copyright (c) 2013-2014 Wind River Systems, Inc. 3 * Copyright (c) 2017-2019 Nordic Semiconductor ASA. 6 * SPDX-License-Identifier: Apache-2.0 11 * @brief Thread context switching for ARM Cortex-A and Cortex-R 14 * on ARM Cortex-A and Cortex-R CPUs. 40 * For Cortex-R, this function is directly called either by z_arm_{exc,int}_exit 62 /* addr of callee-saved regs in thread in r0 */ 68 stm r0, {r4-r11, sp} 73 tst r0, #K_FP_REGS /* arch_current_thread()->base.user_options & K_FP_REGS */ 81 * used since this thread has used it. Consequently, the caller-saved [all …]
|
/Zephyr-latest/drivers/i2s/ |
D | i2s_esp32.c | 4 * SPDX-License-Identifier: Apache-2.0 93 if (i2s_cfg->word_size == 24) { in i2s_esp32_calculate_clock() 97 if (i2s_cfg->options & I2S_OPT_FRAME_CLK_SLAVE || in i2s_esp32_calculate_clock() 98 i2s_cfg->options & I2S_OPT_BIT_CLK_SLAVE) { in i2s_esp32_calculate_clock() 99 i2s_hal_clock_info->bclk_div = 8; in i2s_esp32_calculate_clock() 100 i2s_hal_clock_info->bclk = in i2s_esp32_calculate_clock() 101 i2s_cfg->frame_clk_freq * i2s_cfg->channels * channel_length; in i2s_esp32_calculate_clock() 102 i2s_hal_clock_info->mclk = i2s_cfg->frame_clk_freq * i2s_hal_clock_info->bclk_div; in i2s_esp32_calculate_clock() 104 i2s_hal_clock_info->bclk = in i2s_esp32_calculate_clock() 105 i2s_cfg->frame_clk_freq * i2s_cfg->channels * channel_length; in i2s_esp32_calculate_clock() [all …]
|
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/ |
D | mesh.c | 4 * SPDX-License-Identifier: Apache-2.0 44 SENSOR_HDR_B = 1, 50 uint16_t format:1; 55 uint8_t format:1; 186 NET_BUF_SIMPLE_DEFINE(msg, 2 + 1 + 4); in gen_onoff_get() 187 struct led_onoff_state *state = model->rt->user_data; in gen_onoff_get() 190 bt_mesh_model_elem(model)->rt->addr, state->current); in gen_onoff_get() 192 net_buf_simple_add_u8(&msg, state->current); in gen_onoff_get() 205 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_set_unack() 206 struct led_onoff_state *state = model->rt->user_data; in gen_onoff_set_unack() [all …]
|
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/ |
D | edtlib.py | 3 # SPDX-License-Identifier: BSD-3-Clause 17 but a binding can also come from a 'child-binding:' key in the binding for the 23 The top-level entry points for the library are the EDT and Binding classes. 31 # -------------------- 47 # - Consider using @property for APIs that don't need parameters. It makes 51 # - Think about the data type of the thing you're exposing. Exposing something 55 # - Avoid get_*() prefixes on functions. Name them after the thing they return 60 # - Don't expose dtlib stuff directly. 62 # - Add documentation for any new APIs you add. 108 The free-form description of the binding, or None. [all …]
|
/Zephyr-latest/arch/riscv/core/ |
D | pmp.c | 4 * SPDX-License-Identifier: Apache-2.0 6 * Physical Memory Protection (PMP) is RISC-V parlance for an MPU. 14 * PMP slot configurations are updated in memory to avoid read-modify-write 18 * In the stackguard case we keep an m-mode copy for each thread. Each user 19 * mode threads also has a u-mode copy. This makes faster context switching 23 * Thread-specific m-mode and u-mode PMP entries start from the PMP slot 30 #include <zephyr/linker/linker-defs.h> 54 #define NAPOT_RANGE(size) (((size) - 1) >> 1) 72 start = (index == 0) ? 0 : (pmp_addr[index - 1] << 2); in print_pmp_entries() 73 end = (pmp_addr[index] << 2) - 1; in print_pmp_entries() [all …]
|
/Zephyr-latest/arch/arm/core/cortex_m/ |
D | swap_helper.S | 2 * Copyright (c) 2013-2014 Wind River Systems, Inc. 3 * Copyright (c) 2017-2019 Nordic Semiconductor ASA. 6 * SPDX-License-Identifier: Apache-2.0 11 * @brief Thread context switching for ARM Cortex-M 14 * on ARM Cortex-M CPUs. 52 * For Cortex-M, z_arm_pendsv() is invoked with no arguments. 78 /* addr of callee-saved regs in thread in r0 */ 82 /* save callee-saved + psp in thread */ 86 /* Store current r4-r7 */ 87 stmea r0!, {r4-r7} [all …]
|
/Zephyr-latest/scripts/west_commands/ |
D | bindesc.py | 3 # SPDX-License-Identifier: Apache-2.0 30 if hd[0] != UF2_MAGIC_START0 or hd[1] != UF2_MAGIC_START1: 31 cmd.inf('Skipping block at ' + ptr + '; bad magic') 33 if hd[2] & 1: 34 # NO-flash flag set; skip block 42 padding = newaddr - curraddr 48 cmd.die(f'Non-word padding size at {ptr}') 50 padding -= 4 63 TYPE_STR = 1 106 Work with Binary Descriptors - constant data objects [all …]
|
/Zephyr-latest/scripts/kconfig/ |
D | menuconfig.py | 3 # Copyright (c) 2018-2019, Nordic Semiconductor ASA and Ulf Magnusson 4 # SPDX-License-Identifier: ISC 10 A curses-based Python 2/3 menuconfig implementation. The interface should feel 19 Ctrl-D/U: Page Down/Page Up 26 The mconf feature where pressing a key jumps to a menu entry with that 27 character in it in the current menu isn't supported. A jump-to feature for 33 F: Toggle show-help mode, which shows the help text of the currently selected 37 C: Toggle show-name mode, which shows the symbol name before each symbol menu 40 A: Toggle show-all mode, which shows all items, including currently invisible 52 When run in standalone mode, the top-level Kconfig file to load can be passed [all …]
|
/Zephyr-latest/subsys/mgmt/ec_host_cmd/backends/ |
D | ec_host_cmd_backend_shi_ite.c | 4 * SPDX-License-Identifier: Apache-2.0 14 #include <zephyr/dt-bindings/gpio/ite-it8xxx2-gpio.h> 22 BUILD_ASSERT(DT_NUM_INST_STATUS_OKAY(DT_DRV_COMPAT) == 1, "Invalid number of ITE SHI peripherals"); 32 (SPI_TX_MAX_FIFO_SIZE - EC_SHI_PREAMBLE_LENGTH - EC_SHI_PAST_END_LENGTH) 49 /* Received bad data */ 93 if (atomic_test_and_set_bit(data->pm_policy_state_flag, flag) == 0) { in shi_ite_pm_policy_state_lock_get() 95 k_work_reschedule(&data->cs_off_put, K_SECONDS(3)); in shi_ite_pm_policy_state_lock_get() 102 if (atomic_test_and_clear_bit(data->pm_policy_state_flag, flag) == 1) { in shi_ite_pm_policy_state_lock_put() 104 k_work_cancel_delayable(&data->cs_off_put); in shi_ite_pm_policy_state_lock_put() 110 * Under the condition, SoC will not enter deep sleep until AP de-assert the CS. [all …]
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_nxp_fs26.c | 4 * SPDX-License-Identifier: Apache-2.0 47 uint8_t m_aval : 1; 48 uint8_t fs_en : 1; 49 uint8_t fs_g : 1; 50 uint8_t com_g : 1; 51 uint8_t wio_g : 1; 52 uint8_t vsup_g : 1; 53 uint8_t reg_g : 1; 54 uint8_t tsd_g : 1; 92 0, 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 64, 128, 256, 512, 1024 [all …]
|
/Zephyr-latest/subsys/mgmt/osdp/src/ |
D | osdp_common.h | 4 * SPDX-License-Identifier: Apache-2.0 23 #define ISSET_FLAG(p, f) (((p)->flags & (f)) == (f)) 24 #define SET_FLAG(p, f) ((p)->flags |= (f)) 25 #define CLEAR_FLAG(p, f) ((p)->flags &= ~(f)) 32 #define GET_CURRENT_PD(p) ((p)->current_pd) 35 (p)->current_pd = osdp_to_pd(p, i); \ 38 (uint32_t)((1 << ((ctx)->num_pd)) - 1) 39 #define AES_PAD_LEN(x) ((x + 16 - 1) & (~(16 - 1))) 40 #define NUM_PD(ctx) ((ctx)->num_pd) 105 #define SCS_11 0x11 /* CP -> PD -- CMD_CHLNG */ [all …]
|
/Zephyr-latest/doc/develop/west/ |
D | release-notes.rst | 1 .. _west-release-notes: 11 - New ``west grep`` command for running a "grep tool" in your west workspace's 18 .. code-block:: console 25 .. list-table:: 27 * - ``git grep --untracked`` 28 - ``west grep --untracked foo`` 29 * - ``ripgrep`` 30 - ``west grep --tool ripgrep foo`` 31 * - ``grep --recursive`` 32 - ``west grep --tool grep foo`` [all …]
|
/Zephyr-latest/drivers/dai/intel/ssp/ |
D | ssp.c | 4 * SPDX-License-Identifier: Apache-2.0 22 #define dai_set_drvdata(dai, data) (dai->priv_data = data) 23 #define dai_get_drvdata(dai) dai->priv_data 24 #define dai_get_plat_data(dai) dai->ssp_plat_data 25 #define dai_get_mn(dai) dai->ssp_plat_data->mn_inst 26 #define dai_get_ftable(dai) dai->ssp_plat_data->ftable 27 #define dai_get_fsources(dai) dai->ssp_plat_data->fsources 28 #define dai_mn_base(dai) dai->ssp_plat_data->mn_inst->base 29 #define dai_base(dai) dai->ssp_plat_data->base 30 #define dai_ip_base(dai) dai->ssp_plat_data->ip_base [all …]
|
/Zephyr-latest/tests/kernel/context/src/ |
D | main.c | 2 * Copyright (c) 2012-2015 Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 40 #define EXEC_CTX_TYPE_CMD 1 42 #define UNKNOWN_COMMAND -1 43 #define INVALID_BEHAVIOUR -2 54 * The Cortex-M use the SYSTICK exception for the system timer, which is 75 /* Cortex-M1 and Nios II do have a power saving instruction, so k_cpu_idle() 138 if (arch_current_thread()->base.prio < 0) { in isr_handler() 226 unsigned int i, key; in _test_kernel_cpu_idle() local 228 uint32_t slop = 1 + k_ms_to_ticks_ceil32(1); in _test_kernel_cpu_idle() [all …]
|
/Zephyr-latest/kernel/include/ |
D | kernel_arch_interface.h | 4 * SPDX-License-Identifier: Apache-2.0 11 * Not all architecture-specific defines are here, APIs that are used 30 * @defgroup arch-timing Architecture timing APIs 35 * Architecture-specific implementation of busy-waiting 45 * @defgroup arch-threads Architecture thread APIs 46 * @ingroup arch-interface 50 /** Handle arch-specific logic for setting up new threads 52 * The stack and arch-specific thread state variables must be set up 64 * randomization and thread-local storage. 66 * Fields in thread->base will be initialized when this is called. [all …]
|