/Zephyr-Core-3.7.0/subsys/bluetooth/host/classic/ |
D | keys_br.c | 38 struct bt_keys_link_key *key; in bt_keys_find_link_key() local 44 key = &key_pool[i]; in bt_keys_find_link_key() 46 if (bt_addr_eq(&key->addr, addr)) { in bt_keys_find_link_key() 47 return key; in bt_keys_find_link_key() 56 struct bt_keys_link_key *key; in bt_keys_get_link_key() local 58 key = bt_keys_find_link_key(addr); in bt_keys_get_link_key() 59 if (key) { in bt_keys_get_link_key() 60 return key; in bt_keys_get_link_key() 63 key = bt_keys_find_link_key(BT_ADDR_ANY); in bt_keys_get_link_key() 65 if (!key) { in bt_keys_get_link_key() [all …]
|
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/ |
D | ecb.c | 153 uint8_t *key; in ecb_ut() local 156 ecb_encrypt(ltk_le, skd_le, key = key_le, NULL); in ecb_ut() 158 if (memcmp(key_ref_le, key, 16)) { in ecb_ut() 165 key[0], key[1], key[2], key[3], in ecb_ut() 166 key[4], key[5], key[6], key[7], in ecb_ut() 167 key[8], key[9], key[10], key[11], in ecb_ut() 168 key[12], key[13], key[14], key[15]); in ecb_ut()
|
/Zephyr-Core-3.7.0/lib/posix/options/ |
D | key.c | 43 static inline size_t to_posix_key_idx(pthread_key_t key) in to_posix_key_idx() argument 45 return mark_pthread_obj_uninitialized(key); in to_posix_key_idx() 48 static pthread_key_obj *get_posix_key(pthread_key_t key) in get_posix_key() argument 51 size_t bit = to_posix_key_idx(key); in get_posix_key() 54 if (!is_pthread_obj_initialized(key)) { in get_posix_key() 55 LOG_DBG("Key is uninitialized (%x)", key); in get_posix_key() 61 LOG_DBG("Key is invalid (%x)", key); in get_posix_key() 67 LOG_DBG("Key claims to be initialized (%x)", key); in get_posix_key() 74 static pthread_key_obj *to_posix_key(pthread_key_t *key) in to_posix_key() argument 79 if (*key != PTHREAD_KEY_INITIALIZER) { in to_posix_key() [all …]
|
/Zephyr-Core-3.7.0/kernel/ |
D | atomic_c.c | 84 k_spinlock_key_t key; in z_impl_atomic_cas() local 95 key = k_spin_lock(&lock); in z_impl_atomic_cas() 102 k_spin_unlock(&lock, key); in z_impl_atomic_cas() 121 k_spinlock_key_t key; in z_impl_atomic_ptr_cas() local 124 key = k_spin_lock(&lock); in z_impl_atomic_ptr_cas() 131 k_spin_unlock(&lock, key); in z_impl_atomic_ptr_cas() 163 k_spinlock_key_t key; in z_impl_atomic_add() local 166 key = k_spin_lock(&lock); in z_impl_atomic_add() 171 k_spin_unlock(&lock, key); in z_impl_atomic_add() 193 k_spinlock_key_t key; in z_impl_atomic_sub() local [all …]
|
D | thread_monitor.c | 17 k_spinlock_key_t key = k_spin_lock(&z_thread_monitor_lock); in z_thread_monitor_exit() local 34 k_spin_unlock(&z_thread_monitor_lock, key); in z_thread_monitor_exit() 41 k_spinlock_key_t key; in k_thread_foreach() local 51 key = k_spin_lock(&z_thread_monitor_lock); in k_thread_foreach() 61 k_spin_unlock(&z_thread_monitor_lock, key); in k_thread_foreach() 67 k_spinlock_key_t key; in k_thread_foreach_unlocked() local 71 key = k_spin_lock(&z_thread_monitor_lock); in k_thread_foreach_unlocked() 76 k_spin_unlock(&z_thread_monitor_lock, key); in k_thread_foreach_unlocked() 78 key = k_spin_lock(&z_thread_monitor_lock); in k_thread_foreach_unlocked() 83 k_spin_unlock(&z_thread_monitor_lock, key); in k_thread_foreach_unlocked() [all …]
|
D | usage.c | 77 k_spinlock_key_t key; in z_sched_usage_start() local 79 key = k_spin_lock(&usage_lock); in z_sched_usage_start() 88 k_spin_unlock(&usage_lock, key); in z_sched_usage_start() 124 k_spinlock_key_t key; in z_sched_cpu_usage() local 127 key = k_spin_lock(&usage_lock); in z_sched_cpu_usage() 169 k_spin_unlock(&usage_lock, key); in z_sched_cpu_usage() 177 k_spinlock_key_t key; in z_sched_thread_usage() local 179 key = k_spin_lock(&usage_lock); in z_sched_thread_usage() 224 k_spin_unlock(&usage_lock, key); in z_sched_thread_usage() 230 k_spinlock_key_t key; in k_thread_runtime_stats_enable() local [all …]
|
D | obj_core.c | 36 k_spinlock_key_t key = k_spin_lock(&lock); in k_obj_core_link() local 40 k_spin_unlock(&lock, key); in k_obj_core_link() 52 k_spinlock_key_t key = k_spin_lock(&lock); in k_obj_core_unlink() local 56 k_spin_unlock(&lock, key); in k_obj_core_unlink() 65 k_spinlock_key_t key = k_spin_lock(&lock); in k_obj_type_find() local 75 k_spin_unlock(&lock, key); in k_obj_type_find() 84 k_spinlock_key_t key; in k_obj_type_walk_locked() local 89 key = k_spin_lock(&lock); in k_obj_type_walk_locked() 99 k_spin_unlock(&lock, key); in k_obj_type_walk_locked() 129 k_spinlock_key_t key = k_spin_lock(&lock); in k_obj_core_stats_register() local [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/arm/ |
D | asm_inline_gcc.h | 46 unsigned int key; in arch_irq_lock() local 50 key = __get_PRIMASK(); in arch_irq_lock() 56 key = __get_BASEPRI(); in arch_irq_lock() 65 : "=r" (key) in arch_irq_lock() 72 return key; in arch_irq_lock() 80 static ALWAYS_INLINE void arch_irq_unlock(unsigned int key) in arch_irq_unlock() argument 83 if (key != 0U) { in arch_irq_unlock() 89 __set_BASEPRI(key); in arch_irq_unlock() 93 if (key != 0U) { in arch_irq_unlock() 102 static ALWAYS_INLINE bool arch_irq_unlocked(unsigned int key) in arch_irq_unlocked() argument [all …]
|
/Zephyr-Core-3.7.0/modules/lvgl/ |
D | lvgl_mem.c | 25 k_spinlock_key_t key; in lvgl_malloc() local 28 key = k_spin_lock(&lvgl_heap_lock); in lvgl_malloc() 30 k_spin_unlock(&lvgl_heap_lock, key); in lvgl_malloc() 37 k_spinlock_key_t key; in lvgl_realloc() local 40 key = k_spin_lock(&lvgl_heap_lock); in lvgl_realloc() 42 k_spin_unlock(&lvgl_heap_lock, key); in lvgl_realloc() 49 k_spinlock_key_t key; in lvgl_free() local 51 key = k_spin_lock(&lvgl_heap_lock); in lvgl_free() 53 k_spin_unlock(&lvgl_heap_lock, key); in lvgl_free() 58 k_spinlock_key_t key; in lvgl_print_heap_info() local [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/arc/v2/ |
D | arcv2_irq_unit.h | 54 unsigned int key = arch_irq_lock(); in z_arc_v2_irq_unit_irq_enable_set() local 59 arch_irq_unlock(key); in z_arc_v2_irq_unit_irq_enable_set() 98 unsigned int key = arch_irq_lock(); in z_arc_v2_irq_unit_int_enabled() local 103 arch_irq_unlock(key); in z_arc_v2_irq_unit_int_enabled() 119 unsigned int key = arch_irq_lock(); in z_arc_v2_irq_unit_prio_set() local 129 arch_irq_unlock(key); in z_arc_v2_irq_unit_prio_set() 141 unsigned int key = arch_irq_lock(); in z_arc_v2_irq_uinit_secure_set() local 155 arch_irq_unlock(key); in z_arc_v2_irq_uinit_secure_set() 171 unsigned int key = arch_irq_lock(); in z_arc_v2_irq_unit_sensitivity_set() local 176 arch_irq_unlock(key); in z_arc_v2_irq_unit_sensitivity_set() [all …]
|
/Zephyr-Core-3.7.0/lib/libc/common/source/thrd/ |
D | tss.c | 13 int tss_create(tss_t *key, tss_dtor_t destructor) in tss_create() argument 15 switch (pthread_key_create(key, destructor)) { in tss_create() 27 void *tss_get(tss_t key) in tss_get() argument 29 return pthread_getspecific(key); in tss_get() 32 int tss_set(tss_t key, void *val) in tss_set() argument 34 switch (pthread_setspecific(key, val)) { in tss_set() 44 void tss_delete(tss_t key) in tss_delete() argument 46 (void)pthread_key_delete(key); in tss_delete()
|
/Zephyr-Core-3.7.0/subsys/mgmt/mcumgr/util/src/ |
D | zcbor_bulk.c | 29 struct zcbor_string key; in zcbor_map_decode_bulk() local 33 ok = zcbor_tstr_decode(zsd, &key); in zcbor_map_decode_bulk() 40 if (key.len == dptr->key.len && in zcbor_map_decode_bulk() 41 memcmp(key.value, dptr->key.value, key.len) == 0) { in zcbor_map_decode_bulk() 75 const char *key) in zcbor_map_decode_bulk_key_found() argument 84 if (dptr->key.value == (const uint8_t *)key) { in zcbor_map_decode_bulk_key_found() 91 key_len = strlen(key); in zcbor_map_decode_bulk_key_found() 95 if (dptr->key.len == key_len && in zcbor_map_decode_bulk_key_found() 96 memcmp(key, dptr->key.value, key_len) == 0) { in zcbor_map_decode_bulk_key_found()
|
/Zephyr-Core-3.7.0/include/zephyr/arch/arm64/ |
D | asm_inline_gcc.h | 28 unsigned int key; in arch_irq_lock() local 34 key = read_daif(); in arch_irq_lock() 37 return key; in arch_irq_lock() 40 static ALWAYS_INLINE void arch_irq_unlock(unsigned int key) in arch_irq_unlock() argument 42 write_daif(key); in arch_irq_unlock() 45 static ALWAYS_INLINE bool arch_irq_unlocked(unsigned int key) in arch_irq_unlocked() argument 48 return (key & DAIF_IRQ_BIT) == 0; in arch_irq_unlocked()
|
/Zephyr-Core-3.7.0/tests/crypto/tinycrypt/src/ |
D | hmac.c | 70 const uint8_t key[20] = { in ZTEST() local 88 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST() 101 const uint8_t key[4] = { in ZTEST() local 121 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST() 135 const uint8_t key[20] = { in ZTEST() local 161 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST() 175 const uint8_t key[25] = { in ZTEST() local 203 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST() 217 const uint8_t key[20] = { in ZTEST() local 237 (void)tc_hmac_set_key(&h, key, sizeof(key)); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/tests/kernel/fatal/no-multithreading/src/ |
D | main.c | 54 unsigned int key; in entry_oops() local 59 key = irq_lock(); in entry_oops() 61 irq_unlock(key); in entry_oops() 66 unsigned int key; in entry_panic() local 71 key = irq_lock(); in entry_panic() 73 irq_unlock(key); in entry_panic() 86 unsigned int key; in entry_arbitrary_reason() local 91 key = irq_lock(); in entry_arbitrary_reason() 93 irq_unlock(key); in entry_arbitrary_reason() 98 unsigned int key; in entry_arbitrary_reason_negative() local [all …]
|
/Zephyr-Core-3.7.0/include/zephyr/arch/nios2/ |
D | arch.h | 50 unsigned int key, tmp; in arch_irq_lock() local 57 : [key] "=r" (key), [tmp] "=r" (tmp) in arch_irq_lock() 60 return key; in arch_irq_lock() 63 static ALWAYS_INLINE void arch_irq_unlock(unsigned int key) in arch_irq_unlock() argument 85 : [key] "+r" (key) in arch_irq_unlock() 90 : : [key] "r" (key) in arch_irq_unlock() 95 static ALWAYS_INLINE bool arch_irq_unlocked(unsigned int key) in arch_irq_unlocked() argument 97 return key & 1; in arch_irq_unlocked()
|
/Zephyr-Core-3.7.0/tests/posix/common/src/ |
D | key.c | 16 static pthread_key_t key; variable 28 zassert_ok(pthread_setspecific(key, value), "pthread_setspecific failed"); in thread_top() 29 zassert_equal(pthread_getspecific(key), value, "set and retrieved values are different"); in thread_top() 53 zassert_ok(pthread_key_create(&key, NULL), "insufficient memory to create key"); in make_key() 77 ZTEST(key, test_key_1toN_thread) in ZTEST() argument 95 zassert_ok(pthread_key_delete(key), "attempt to delete key failed"); in ZTEST() 98 ZTEST(key, test_key_Nto1_thread) in ZTEST() argument 116 ZTEST(key, test_key_resource_leak) in ZTEST() argument 118 pthread_key_t key; in ZTEST() local 121 zassert_ok(pthread_key_create(&key, NULL), "failed to create key %zu", i); in ZTEST() [all …]
|
/Zephyr-Core-3.7.0/samples/subsys/tracing/src/ |
D | tracing_user.c | 13 unsigned int key = irq_lock(); in sys_trace_thread_switched_in_user() local 19 irq_unlock(key); in sys_trace_thread_switched_in_user() 24 unsigned int key = irq_lock(); in sys_trace_thread_switched_out_user() local 30 irq_unlock(key); in sys_trace_thread_switched_out_user() 35 unsigned int key = irq_lock(); in sys_trace_isr_enter_user() local 41 irq_unlock(key); in sys_trace_isr_enter_user() 46 unsigned int key = irq_lock(); in sys_trace_isr_exit_user() local 52 irq_unlock(key); in sys_trace_isr_exit_user()
|
/Zephyr-Core-3.7.0/tests/bluetooth/bt_crypto_ccm/src/ |
D | test_vectors.h | 13 const uint8_t key[16]; member 217 .key = {0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 229 .key = {0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 241 .key = {0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 253 .key = {0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 265 .key = {0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 277 .key = {0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 289 .key = {0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 301 .key = {0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 313 .key = {0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, [all …]
|
/Zephyr-Core-3.7.0/subsys/bluetooth/mesh/ |
D | crypto_tc.c | 36 int bt_mesh_encrypt(const struct bt_mesh_key *key, const uint8_t plaintext[16], in bt_mesh_encrypt() argument 39 return bt_encrypt_be(key->key, plaintext, enc_data); in bt_mesh_encrypt() 42 int bt_mesh_ccm_encrypt(const struct bt_mesh_key *key, uint8_t nonce[13], const uint8_t *plaintext, in bt_mesh_ccm_encrypt() argument 46 return bt_ccm_encrypt(key->key, nonce, plaintext, len, aad, aad_len, enc_data, mic_size); in bt_mesh_ccm_encrypt() 49 int bt_mesh_ccm_decrypt(const struct bt_mesh_key *key, uint8_t nonce[13], const uint8_t *enc_data, in bt_mesh_ccm_decrypt() argument 53 return bt_ccm_decrypt(key->key, nonce, enc_data, len, aad, aad_len, plaintext, mic_size); in bt_mesh_ccm_decrypt() 56 int bt_mesh_aes_cmac_raw_key(const uint8_t key[16], struct bt_mesh_sg *sg, size_t sg_len, in bt_mesh_aes_cmac_raw_key() 62 if (tc_cmac_setup(&state, key, &sched) == TC_CRYPTO_FAIL) { in bt_mesh_aes_cmac_raw_key() 79 int bt_mesh_aes_cmac_mesh_key(const struct bt_mesh_key *key, struct bt_mesh_sg *sg, in bt_mesh_aes_cmac_mesh_key() argument 82 return bt_mesh_aes_cmac_raw_key(key->key, sg, sg_len, mac); in bt_mesh_aes_cmac_mesh_key() [all …]
|
/Zephyr-Core-3.7.0/tests/drivers/rtc/rtc_api/src/ |
D | test_update_callback.c | 20 k_spinlock_key_t key = k_spin_lock(&lock); in test_rtc_update_callback_handler() local 25 k_spin_unlock(&lock, key); in test_rtc_update_callback_handler() 31 k_spinlock_key_t key; in ZTEST() local 39 key = k_spin_lock(&lock); in ZTEST() 44 k_spin_unlock(&lock, key); in ZTEST() 48 key = k_spin_lock(&lock); in ZTEST() 52 k_spin_unlock(&lock, key); in ZTEST() 62 key = k_spin_lock(&lock); in ZTEST() 67 k_spin_unlock(&lock, key); in ZTEST()
|
/Zephyr-Core-3.7.0/drivers/gpio/ |
D | gpio_mmio32.c | 51 unsigned int key; in gpio_mmio32_config() local 54 key = irq_lock(); in gpio_mmio32_config() 60 irq_unlock(key); in gpio_mmio32_config() 83 unsigned int key; in gpio_mmio32_port_set_masked_raw() local 89 key = irq_lock(); in gpio_mmio32_port_set_masked_raw() 91 irq_unlock(key); in gpio_mmio32_port_set_masked_raw() 102 unsigned int key; in gpio_mmio32_port_set_bits_raw() local 107 key = irq_lock(); in gpio_mmio32_port_set_bits_raw() 109 irq_unlock(key); in gpio_mmio32_port_set_bits_raw() 120 unsigned int key; in gpio_mmio32_port_clear_bits_raw() local [all …]
|
/Zephyr-Core-3.7.0/kernel/include/ |
D | kswap.h | 77 static ALWAYS_INLINE unsigned int do_swap(unsigned int key, in do_swap() argument 99 __ASSERT(arch_irq_unlocked(key) || in do_swap() 173 arch_irq_unlock(key); in do_swap() 175 irq_unlock(key); in do_swap() 181 static inline int z_swap_irqlock(unsigned int key) in z_swap_irqlock() argument 183 return do_swap(key, NULL, false); in z_swap_irqlock() 186 static inline int z_swap(struct k_spinlock *lock, k_spinlock_key_t key) in z_swap() argument 188 return do_swap(key.key, lock, true); in z_swap() 198 extern int arch_swap(unsigned int key); 205 static inline int z_swap_irqlock(unsigned int key) in z_swap_irqlock() argument [all …]
|
/Zephyr-Core-3.7.0/lib/heap/ |
D | heap_listener.c | 15 k_spinlock_key_t key = k_spin_lock(&heap_listener_lock); in heap_listener_register() local 19 k_spin_unlock(&heap_listener_lock, key); in heap_listener_register() 24 k_spinlock_key_t key = k_spin_lock(&heap_listener_lock); in heap_listener_unregister() local 28 k_spin_unlock(&heap_listener_lock, key); in heap_listener_unregister() 34 k_spinlock_key_t key = k_spin_lock(&heap_listener_lock); in heap_listener_notify_alloc() local 44 k_spin_unlock(&heap_listener_lock, key); in heap_listener_notify_alloc() 50 k_spinlock_key_t key = k_spin_lock(&heap_listener_lock); in heap_listener_notify_free() local 60 k_spin_unlock(&heap_listener_lock, key); in heap_listener_notify_free() 66 k_spinlock_key_t key = k_spin_lock(&heap_listener_lock); in heap_listener_notify_resize() local 76 k_spin_unlock(&heap_listener_lock, key); in heap_listener_notify_resize()
|
/Zephyr-Core-3.7.0/tests/net/lib/tls_credentials/src/ |
D | main.c | 102 struct tls_credential *cert, *key, *temp; in test_credential_internal_iterate() local 105 key = credential_next_get(invalid_tag, NULL); in test_credential_internal_iterate() 106 zassert_is_null(key, "Should have return NULL for unknown credential"); in test_credential_internal_iterate() 112 key = credential_next_get(common_tag, cert); in test_credential_internal_iterate() 113 zassert_not_null(key, "Should have find a credential"); in test_credential_internal_iterate() 119 temp = key; in test_credential_internal_iterate() 120 key = cert; in test_credential_internal_iterate() 132 zassert_equal(key->type, TLS_CREDENTIAL_PRIVATE_KEY, in test_credential_internal_iterate() 134 zassert_equal(key->tag, common_tag, "Invalid tag for key"); in test_credential_internal_iterate() 135 zassert_equal(key->len, sizeof(test_server_key), "Invalid key length"); in test_credential_internal_iterate() [all …]
|