/Zephyr-latest/dts/bindings/watchdog/ |
D | nxp,s32-swt.yaml | 1 # Copyright 2022-2024 NXP 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nxp,s32-swt" 20 master-access-mask: 26 are chip-specific. 29 reset-on-invalid-access: 34 service-mode: 38 - "fixed" 39 - "keyed" 42 - fixed: writes a fixed sequence as defined by hardware. [all …]
|
/Zephyr-latest/samples/tfm_integration/psa_crypto/src/ |
D | psa_attestation.h | 4 * SPDX-License-Identifier: Apache-2.0 15 /** Maximum buffer size for an initial attestation token instance. */ 19 * @brief Gets the public key portion of the attestation service's securely 20 * stored key pair. This public key can be provided to external 28 * @brief Gets an initial attestation token (IAT) from the TF-M secure 30 * format and is encrypted using the private key held on the SPE. 32 * The initial attestation token (IAT) is composed of a series of 'claims' or 38 * For details on IAT see https://tools.ietf.org/html/draft-mandyam-eat-01 41 * challenge data to be validated with the private key.
|
D | psa_attestation.c | 4 * SPDX-License-Identifier: Apache-2.0 70 err = -EINVAL; in att_get_iat() 79 /* Request the initial attestation token w/the challenge data. */ in att_get_iat() 99 /* 64-byte nonce/challenge, encrypted using the default public key; in att_test() 130 /* Request the IAT from the initial attestation service. */ in att_test()
|
/Zephyr-latest/arch/arc/core/ |
D | thread.c | 4 * SPDX-License-Identifier: Apache-2.0 31 /* initial stack frame */ 52 return (thread->base.user_options & K_USER) != 0; in is_user() 56 /* Set all stack-related architecture variables for the provided thread */ 62 thread->arch.priv_stack_start = in setup_stack_vars() 63 (uint32_t)z_priv_stack_find(thread->stack_obj); in setup_stack_vars() 65 thread->arch.priv_stack_start = (uint32_t)(thread->stack_obj); in setup_stack_vars() 67 thread->arch.priv_stack_start += Z_ARC_STACK_GUARD_SIZE; in setup_stack_vars() 69 thread->arch.priv_stack_start = 0; in setup_stack_vars() 76 thread->arch.k_stack_top = thread->arch.priv_stack_start; in setup_stack_vars() [all …]
|
/Zephyr-latest/boards/st/b_u585i_iot02a/ |
D | Kconfig.defconfig | 4 # SPDX-License-Identifier: Apache-2.0 14 # Initial Attestation key provisioned by the BL1 bootloader
|
/Zephyr-latest/arch/nios2/core/ |
D | thread.c | 4 * SPDX-License-Identifier: Apache-2.0 12 * in r4-r7 and not on the stack 37 /* Initial stack frame data, stored at the base of the stack */ in arch_new_thread() 40 /* Setup the initial stack frame */ in arch_new_thread() 41 iframe->entry_point = entry; in arch_new_thread() 42 iframe->arg1 = arg1; in arch_new_thread() 43 iframe->arg2 = arg2; in arch_new_thread() 44 iframe->arg3 = arg3; in arch_new_thread() 46 thread->callee_saved.sp = (uint32_t)iframe; in arch_new_thread() 47 thread->callee_saved.ra = (uint32_t)z_thread_entry_wrapper; in arch_new_thread() [all …]
|
/Zephyr-latest/soc/renesas/ra/ra4m1/ |
D | soc.c | 5 * SPDX-License-Identifier: Apache-2.0 99 * Initial settings for watchdog timers. Set all fields to 1, 123 * Initial settings for MPU. Set all areas to maximum values 154 uint32_t key; in soc_early_init_hook() local 156 key = irq_lock(); in soc_early_init_hook() 161 irq_unlock(key); in soc_early_init_hook()
|
/Zephyr-latest/subsys/random/ |
D | random_timer.c | 2 * Copyright (c) 2013-2015 Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 9 * @brief Non-random number generator based on system timer 11 * This module provides a non-random implementation of sys_rand32_get(), which 28 * This pseudo-random number generator returns values that are based off the 32 * @return a 32-bit number 36 /* initial seed value */ in rand32_get() 38 k_spinlock_key_t key = k_spin_lock(&rand32_lock); in rand32_get() local 44 k_spin_unlock(&rand32_lock, key); in rand32_get() 51 * The pseudo-random number generator returns values that are based off the [all …]
|
/Zephyr-latest/doc/security/ |
D | sensor-threat.rst | 1 .. _sensor-threat: 17 .. figure:: media/sensor-model.svg 28 This model also focuses on communicating via the MQTT-over-TLS protocol, 39 on-device flash that is the first code to run. In order to establish 43 programmed into the device, early in production [th-imboot]_. 52 [th-authrepl]_. 55 shall be done in a timely manner [th-timely-update]_. 60 [th-atomic-update]_. 64 are allowed to sign the certificate on the server. For cloud-provider 68 [th-root-certs]_, [th-root-check]_. [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | hash_map_api.h | 4 * SPDX-License-Identifier: Apache-2.0 47 /** Modify the iterator in-place to point to the next Hashmap entry */ 49 /** Implementation-specific iterator state */ 51 /** Key associated with the current entry */ 52 uint64_t key; member 70 return it->pos < it->size; in sys_hashmap_iterator_has_next() 87 * @brief In-place iterator constructor for @ref sys_hashmap 102 * @param key Key corresponding to @p value 103 * @param value Value corresponding to @p key 104 * @param cookie User-specified variable [all …]
|
D | hash_map.h | 4 * SPDX-License-Identifier: Apache-2.0 37 * entries and does not interact with any user-provided keys or values. 45 * @param ... Variant-specific details for @p _config_type. 65 * entries and does not interact with any user-provided keys or values. 73 * @param ... Variant-specific details for @p _config_type. 143 * @param cookie User-specified variable 150 for (map->api->iter(map, &it); sys_hashmap_iterator_has_next(&it);) { in sys_hashmap_foreach() 152 cb(it.key, it.value, cookie); in sys_hashmap_foreach() 163 * @param cookie User-specified variable 168 map->api->clear(map, cb, cookie); in sys_hashmap_clear() [all …]
|
/Zephyr-latest/modules/trusted-firmware-m/ |
D | Kconfig.tfm | 1 # Configuration for the TF-M Module 5 # Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com> 6 # SPDX-License-Identifier: Apache-2.0 25 default "${ZEPHYR_BASE}/modules/trusted-firmware-m/nordic/nrf9160" if SOC_NRF9160 26 default "${ZEPHYR_BASE}/modules/trusted-firmware-m/nordic/nrf9120" if SOC_NRF9120 27 default "${ZEPHYR_BASE}/modules/trusted-firmware-m/nordic/nrf5340_cpuapp" if SOC_NRF5340_CPUAPP 33 bool "Build with TF-M as the Secure Execution Environment" 44 additionally generate a TF-M image for the Secure Execution 46 itself is to be executed in the Non-Secure Processing Environment. 48 ensures that the Zephyr image is built as a Non-Secure image. Both [all …]
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/ |
D | provisioning.rst | 25 Provisioning is a five-step process, involving the following steps: 29 * Public key exchange 44 Of Band information, such as the device's public key or an authentication 50 --------------------------- 54 encoded as a single utf-8 data point, or the special ``none`` scheme, encoded 56 <https://www.bluetooth.com/specifications/assigned-numbers/>`_. 60 .. list-table:: URI encoding examples 62 * - URI 63 - Encoded 64 * - ``http://example.com`` [all …]
|
D | proxy.rst | 9 and the initial value can be set with :c:member:`bt_mesh_cfg_srv.gatt_proxy`. 37 Solicitation PDUs are non-mesh, non-connectable, undirected advertising messages containing Proxy 38 Solicitation UUID, encrypted with the network key of the subnet that the legacy device wants to 53 the Solicitation PDU RPL Configuration Client and Server is encrypted using the application key, 59 advertisement can be configured by the On-Demand Private Proxy Client model.
|
/Zephyr-latest/drivers/timer/ |
D | arm_arch_timer.c | 4 * SPDX-License-Identifier: Apache-2.0 24 /* When interactively debugging, the cycle diff can overflow 32-bit variable */ 78 k_spinlock_key_t key = k_spin_lock(&lock); in arm_arch_timer_compare_isr() local 82 * Workaround required for Cortex-A9 MPCore erratum 740657 in arm_arch_timer_compare_isr() 83 * comp. ARM Cortex-A9 processors Software Developers Errata Notice, in arm_arch_timer_compare_isr() 93 k_spin_unlock(&lock, key); in arm_arch_timer_compare_isr() 99 uint64_t delta_cycles = curr_cycle - last_cycle; in arm_arch_timer_compare_isr() 128 * check performed upon entry of the ISR -> the event flag is not set, in arm_arch_timer_compare_isr() 136 k_spin_unlock(&lock, key); 151 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout() local [all …]
|
D | mcux_gpt_timer.c | 4 * SPDX-License-Identifier: Apache-2.0 27 #define MAX_TICKS ((COUNTER_MAX / CYC_PER_TICK) - 1) 59 GPT_SetOutputCompareValue(base, kGPT_OutputCompare_Channel2, next - 1); in gpt_set_safe() 70 if (unlikely(((int32_t)(next - now)) <= 1)) { in gpt_set_safe() 78 kGPT_OutputCompare_Channel2, next - 1); in gpt_set_safe() 80 } while ((((int32_t)(next - now)) <= 1) && (next < MAX_CYCLES)); in gpt_set_safe() 88 k_spinlock_key_t key; in mcux_imx_gpt_isr() local 91 key = k_spin_lock(&lock); in mcux_imx_gpt_isr() 107 tick_delta += (MAX_CYCLES - announced_cycles) / CYC_PER_TICK; in mcux_imx_gpt_isr() 114 tick_delta += (now - announced_cycles) / CYC_PER_TICK; in mcux_imx_gpt_isr() [all …]
|
D | arcv2_timer0.c | 2 * Copyright (c) 2014-2015 Wind River Systems, Inc. 5 * SPDX-License-Identifier: Apache-2.0 51 #define MAX_TICKS ((COUNTER_MAX / CYC_PER_TICK) - 1) 168 * - reprogramming of LIMIT must be clearing the COUNT 169 * - ISR must be clearing the 'overflow_cycles' counter. 170 * - no more than one counter-wrap has occurred between 171 * - the timer reset or the last time the function was called 172 * - and until the current call of the function is completed. 173 * - the function is invoked with interrupts disabled. 218 k_spinlock_key_t key; in timer_int_handler() local [all …]
|
/Zephyr-latest/arch/posix/core/ |
D | thread.c | 2 * Copyright (c) 2010-2015 Wind River Systems, Inc. 5 * SPDX-License-Identifier: Apache-2.0 40 * "initial stack frame" in arch_new_thread() 45 thread_status->entry_point = entry; in arch_new_thread() 46 thread_status->arg1 = p1; in arch_new_thread() 47 thread_status->arg2 = p2; in arch_new_thread() 48 thread_status->arg3 = p3; in arch_new_thread() 50 thread_status->aborted = 0; in arch_new_thread() 53 thread->callee_saved.thread_status = thread_status; in arch_new_thread() 55 thread_status->thread_idx = posix_new_thread((void *)thread_status); in arch_new_thread() [all …]
|
/Zephyr-latest/tests/benchmarks/sched/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 16 * then sleeps using z_pend_curr(). From this initial 40 static struct k_thread busy_thread[CONFIG_MP_MAX_NUM_CPUS - 1]; 44 static K_THREAD_STACK_ARRAY_DEFINE(busy_thread_stack, CONFIG_MP_MAX_NUM_CPUS - 1, 93 k_spinlock_key_t key = k_spin_lock(&lock); in partner_fn() local 95 z_pend_curr(&lock, key, &waitq, K_FOREVER); in partner_fn() 112 for (uint32_t i = 0; i < CONFIG_MP_MAX_NUM_CPUS - 1; i++) { in main() 123 int partner_prio = main_prio - 1; in main() 136 int key; in main() local 139 key = arch_irq_lock(); in main() [all …]
|
/Zephyr-latest/kernel/ |
D | timer.c | 2 * Copyright (c) 1997-2016 Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 31 k_spinlock_key_t key = k_spin_lock(&lock); in z_timer_expiration_handler() local 46 if (sys_dnode_is_linked(&t->node)) { in z_timer_expiration_handler() 47 k_spin_unlock(&lock, key); in z_timer_expiration_handler() 55 if (!K_TIMEOUT_EQ(timer->period, K_NO_WAIT) && in z_timer_expiration_handler() 56 !K_TIMEOUT_EQ(timer->period, K_FOREVER)) { in z_timer_expiration_handler() 57 k_timeout_t next = timer->period; in z_timer_expiration_handler() 60 next.ticks = MAX(next.ticks - 1, 0); in z_timer_expiration_handler() 76 z_add_timeout(&timer->timeout, z_timer_expiration_handler, in z_timer_expiration_handler() [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_imx.c | 2 * Copyright (c) 2018-2019, NXP 4 * SPDX-License-Identifier: Apache-2.0 39 const struct imx_gpio_config *config = port->config; in imx_gpio_configure() 40 GPIO_Type *base = config->base; in imx_gpio_configure() 43 return -ENOTSUP; in imx_gpio_configure() 45 __ASSERT_NO_MSG(pin < config->mux_count); in imx_gpio_configure() 50 (volatile uint32_t *)config->pin_muxes[pin].config_register; in imx_gpio_configure() 62 return -ENOTSUP; in imx_gpio_configure() 84 __ASSERT_NO_MSG(pin < config->mux_count); in imx_gpio_configure() 86 memcpy(&pin_cfg.pinmux, &config->pin_muxes[pin], sizeof(pin_cfg.pinmux)); in imx_gpio_configure() [all …]
|
/Zephyr-latest/doc/services/tfm/ |
D | overview.rst | 1 Trusted Firmware-M Overview 4 `Trusted Firmware-M (TF-M) <https://tf-m-user-guide.trustedfirmware.org/>`__ 6 `IoT Security Framework <https://www.psacertified.org/what-is-psa-certified/>`__. 10 Zephyr RTOS has been PSA Certified since Zephyr 2.0.0 with TF-M 1.0, and 11 is currently integrated with TF-M 2.1.0. 13 What Does TF-M Offer? 16 Through a set of secure services and by design, TF-M provides: 18 * Isolation of secure and non-secure resources 19 * Embedded-appropriate crypto 22 * Protected off-chip data storage and retrieval [all …]
|
/Zephyr-latest/samples/tfm_integration/psa_crypto/ |
D | README.rst | 1 .. zephyr:code-sample:: tfm_psa_crypto 2 :name: TF-M PSA crypto 8 This TF-M integration example demonstrates how to use the PSA crypto API in 10 this example also demonstrates certain TF-M features that are covered as part 12 as secure storage for config data, initial attestation for device 15 Trusted Firmware (TF-M) Platform Security Architecture (PSA) APIs 17 non-secure processing environment. 20 handle secure TF-M API calls and responses. 22 The sample prints test info to the console either as a single-thread or 23 multi-thread application. [all …]
|
/Zephyr-latest/drivers/mm/ |
D | mm_drv_intel_adsp_mtl_tlb.c | 4 * SPDX-License-Identifier: Apache-2.0 68 * @param vaddr Page-aligned virutal address. 73 return (POINTER_TO_UINT(vaddr) - CONFIG_KERNEL_VM_BASE) / in get_tlb_entry_idx() 85 uint32_t phys_offset = pa - L2_SRAM_BASE; in get_hpsram_bank_idx() 142 return -1; in sys_mm_drv_hpsram_pwr() 145 HPSRAM_REGS(bank_idx)->HSxPGCTL = !enable; in sys_mm_drv_hpsram_pwr() 148 while (HPSRAM_REGS(bank_idx)->HSxPGISTS == enable) { in sys_mm_drv_hpsram_pwr() 173 k_spinlock_key_t key; in sys_mm_drv_map_page() local 190 /* Make sure VA is page-aligned */ in sys_mm_drv_map_page() 192 ret = -EINVAL; in sys_mm_drv_map_page() [all …]
|
/Zephyr-latest/soc/nxp/kinetis/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 35 Set this option to use the oscillator in low-power mode. 40 Set this option to use the oscillator in high-gain mode. 94 Include the 16-byte flash configuration field that stores default 110 backdoor key access, mass erase, factory access, and flash security 146 the SOC requires watchdog configuration before initial expiration
|