/Zephyr-Core-2.7.6/subsys/bluetooth/host/ |
D | keys_br.c | 36 struct bt_keys_link_key *key; in bt_keys_find_link_key() local 42 key = &key_pool[i]; in bt_keys_find_link_key() 44 if (!bt_addr_cmp(&key->addr, addr)) { in bt_keys_find_link_key() 45 return key; in bt_keys_find_link_key() 54 struct bt_keys_link_key *key; in bt_keys_get_link_key() local 56 key = bt_keys_find_link_key(addr); in bt_keys_get_link_key() 57 if (key) { in bt_keys_get_link_key() 58 return key; in bt_keys_get_link_key() 61 key = bt_keys_find_link_key(BT_ADDR_ANY); in bt_keys_get_link_key() 63 if (!key) { in bt_keys_get_link_key() [all …]
|
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/ |
D | ecb.c | 150 uint8_t *key; in ecb_ut() local 153 ecb_encrypt(ltk_le, skd_le, key = key_le, NULL); in ecb_ut() 155 if (memcmp(key_ref_le, key, 16)) { in ecb_ut() 162 key[0], key[1], key[2], key[3], in ecb_ut() 163 key[4], key[5], key[6], key[7], in ecb_ut() 164 key[8], key[9], key[10], key[11], in ecb_ut() 165 key[12], key[13], key[14], key[15]); in ecb_ut()
|
/Zephyr-Core-2.7.6/kernel/ |
D | atomic_c.c | 84 k_spinlock_key_t key; in z_impl_atomic_cas() local 87 key = k_spin_lock(&lock); in z_impl_atomic_cas() 94 k_spin_unlock(&lock, key); in z_impl_atomic_cas() 113 k_spinlock_key_t key; in z_impl_atomic_ptr_cas() local 116 key = k_spin_lock(&lock); in z_impl_atomic_ptr_cas() 123 k_spin_unlock(&lock, key); in z_impl_atomic_ptr_cas() 155 k_spinlock_key_t key; in z_impl_atomic_add() local 158 key = k_spin_lock(&lock); in z_impl_atomic_add() 163 k_spin_unlock(&lock, key); in z_impl_atomic_add() 185 k_spinlock_key_t key; in z_impl_atomic_sub() local [all …]
|
D | poll.c | 199 k_spinlock_key_t key) in clear_event_registrations() argument 203 k_spin_unlock(&lock, key); in clear_event_registrations() 204 key = k_spin_lock(&lock); in clear_event_registrations() 222 k_spinlock_key_t key; in register_events() local 225 key = k_spin_lock(&lock); in register_events() 239 k_spin_unlock(&lock, key); in register_events() 276 k_spinlock_key_t key; in z_impl_k_poll() local 291 key = k_spin_lock(&lock); in z_impl_k_poll() 299 clear_event_registrations(events, events_registered, key); in z_impl_k_poll() 300 k_spin_unlock(&lock, key); in z_impl_k_poll() [all …]
|
/Zephyr-Core-2.7.6/include/arch/arm/aarch32/ |
D | asm_inline_gcc.h | 45 unsigned int key; in arch_irq_lock() local 50 : "=r" (key) in arch_irq_lock() 61 : "=r"(key), "=r"(tmp) in arch_irq_lock() 69 : "=r" (key) in arch_irq_lock() 76 return key; in arch_irq_lock() 84 static ALWAYS_INLINE void arch_irq_unlock(unsigned int key) in arch_irq_unlock() argument 87 if (key != 0U) { in arch_irq_unlock() 98 : : "r"(key) : "memory"); in arch_irq_unlock() 100 if (key != 0U) { in arch_irq_unlock() 111 static ALWAYS_INLINE bool arch_irq_unlocked(unsigned int key) in arch_irq_unlocked() argument [all …]
|
/Zephyr-Core-2.7.6/include/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() 102 unsigned int key = arch_irq_lock(); in z_arc_v2_irq_unit_int_enabled() local 107 arch_irq_unlock(key); in z_arc_v2_irq_unit_int_enabled() 125 unsigned int key = arch_irq_lock(); in z_arc_v2_irq_unit_prio_set() local 135 arch_irq_unlock(key); in z_arc_v2_irq_unit_prio_set() 149 unsigned int key = arch_irq_lock(); in z_arc_v2_irq_uinit_secure_set() local 163 arch_irq_unlock(key); in z_arc_v2_irq_uinit_secure_set() 181 unsigned int key = arch_irq_lock(); in z_arc_v2_irq_unit_sensitivity_set() local 186 arch_irq_unlock(key); in z_arc_v2_irq_unit_sensitivity_set() [all …]
|
/Zephyr-Core-2.7.6/tests/crypto/tinycrypt/src/ |
D | hmac.c | 71 const uint8_t key[20] = { in test_hmac_1() local 89 (void)tc_hmac_set_key(&h, key, sizeof(key)); in test_hmac_1() 102 const uint8_t key[4] = { in test_hmac_2() local 122 (void)tc_hmac_set_key(&h, key, sizeof(key)); in test_hmac_2() 136 const uint8_t key[20] = { in test_hmac_3() local 162 (void)tc_hmac_set_key(&h, key, sizeof(key)); in test_hmac_3() 176 const uint8_t key[25] = { in test_hmac_4() local 204 (void)tc_hmac_set_key(&h, key, sizeof(key)); in test_hmac_4() 218 const uint8_t key[20] = { in test_hmac_5() local 238 (void)tc_hmac_set_key(&h, key, sizeof(key)); in test_hmac_5() [all …]
|
/Zephyr-Core-2.7.6/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-2.7.6/include/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-2.7.6/kernel/include/ |
D | kswap.h | 61 static ALWAYS_INLINE unsigned int do_swap(unsigned int key, in do_swap() argument 83 __ASSERT(arch_irq_unlocked(key) || in do_swap() 152 arch_irq_unlock(key); in do_swap() 154 irq_unlock(key); in do_swap() 160 static inline int z_swap_irqlock(unsigned int key) in z_swap_irqlock() argument 162 return do_swap(key, NULL, 0); in z_swap_irqlock() 165 static inline int z_swap(struct k_spinlock *lock, k_spinlock_key_t key) in z_swap() argument 167 return do_swap(key.key, lock, 1); in z_swap() 177 extern int arch_swap(unsigned int key); 179 static inline int z_swap_irqlock(unsigned int key) in z_swap_irqlock() argument [all …]
|
/Zephyr-Core-2.7.6/lib/posix/ |
D | pthread_key.c | 19 int pthread_key_create(pthread_key_t *key, in pthread_key_create() argument 24 *key = NULL; in pthread_key_create() 35 *key = (void *)new_key; in pthread_key_create() 45 int pthread_key_delete(pthread_key_t key) in pthread_key_delete() argument 47 pthread_key_obj *key_obj = (pthread_key_obj *)key; in pthread_key_delete() 77 int pthread_setspecific(pthread_key_t key, const void *value) in pthread_setspecific() argument 79 pthread_key_obj *key_obj = (pthread_key_obj *)key; in pthread_setspecific() 96 if (thread_spec_data->key == key_obj) { in pthread_setspecific() 115 key_data->thread_data.key = key; in pthread_setspecific() 139 void *pthread_getspecific(pthread_key_t key) in pthread_getspecific() argument [all …]
|
/Zephyr-Core-2.7.6/subsys/tracing/user/ |
D | tracing_user.c | 21 int key = irq_lock(); in sys_trace_k_thread_switched_in() local 27 irq_unlock(key); in sys_trace_k_thread_switched_in() 32 int key = irq_lock(); in sys_trace_k_thread_switched_out() local 38 irq_unlock(key); in sys_trace_k_thread_switched_out() 43 int key = irq_lock(); in sys_trace_isr_enter() local 49 irq_unlock(key); in sys_trace_isr_enter() 54 int key = irq_lock(); in sys_trace_isr_exit() local 60 irq_unlock(key); in sys_trace_isr_exit()
|
/Zephyr-Core-2.7.6/tests/kernel/spinlock/src/ |
D | main.c | 43 k_spinlock_key_t key; in test_spinlock_basic() local 48 key = k_spin_lock(&l); in test_spinlock_basic() 52 k_spin_unlock(&l, key); in test_spinlock_basic() 60 k_spinlock_key_t key; in bounce_once() local 67 key = k_spin_lock(&bounce_lock); in bounce_once() 74 k_spin_unlock(&bounce_lock, key); in bounce_once() 94 k_spin_unlock(&bounce_lock, key); in bounce_once() 146 k_spinlock_key_t key; in test_spinlock_mutual_exclusion() local 152 key = k_spin_lock(&lock_runtime); in test_spinlock_mutual_exclusion() 157 zassert_true(arch_irq_unlocked(key.key), in test_spinlock_mutual_exclusion() [all …]
|
D | spinlock_error_case.c | 14 static k_spinlock_key_t key; variable 25 k_spin_unlock(&lock, key); in action_after_assert_fail() 77 key = k_spin_lock(&lock); in test_spinlock_no_recursive() 96 key = k_spin_lock(&lock); in test_spinlock_unlock_error() 99 k_spin_unlock(&mylock, key); in test_spinlock_unlock_error() 115 key = k_spin_lock(&lock); in test_spinlock_release_error()
|
/Zephyr-Core-2.7.6/drivers/gpio/ |
D | gpio_mmio32.c | 50 unsigned int key; in gpio_mmio32_config() local 53 key = irq_lock(); in gpio_mmio32_config() 59 irq_unlock(key); in gpio_mmio32_config() 82 unsigned int key; in gpio_mmio32_port_set_masked_raw() local 88 key = irq_lock(); in gpio_mmio32_port_set_masked_raw() 90 irq_unlock(key); in gpio_mmio32_port_set_masked_raw() 101 unsigned int key; in gpio_mmio32_port_set_bits_raw() local 106 key = irq_lock(); in gpio_mmio32_port_set_bits_raw() 108 irq_unlock(key); in gpio_mmio32_port_set_bits_raw() 119 unsigned int key; in gpio_mmio32_port_clear_bits_raw() local [all …]
|
/Zephyr-Core-2.7.6/include/arch/nios2/ |
D | arch.h | 51 unsigned int key, tmp; in arch_irq_lock() local 58 : [key] "=r" (key), [tmp] "=r" (tmp) in arch_irq_lock() 61 return key; in arch_irq_lock() 64 static ALWAYS_INLINE void arch_irq_unlock(unsigned int key) in arch_irq_unlock() argument 86 : [key] "+r" (key) in arch_irq_unlock() 91 : : [key] "r" (key) in arch_irq_unlock() 96 static ALWAYS_INLINE bool arch_irq_unlocked(unsigned int key) in arch_irq_unlocked() argument 98 return key & 1; in arch_irq_unlocked()
|
/Zephyr-Core-2.7.6/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() 131 zassert_equal(key->type, TLS_CREDENTIAL_PRIVATE_KEY, in test_credential_internal_iterate() 133 zassert_equal(key->tag, common_tag, "Invalid tag for key"); in test_credential_internal_iterate() 134 zassert_equal_ptr(key->buf, test_server_key, "Invalid key content"); in test_credential_internal_iterate() [all …]
|
/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/ |
D | cdb.c | 256 struct net_key_val key; in cdb_subnet_set() local 280 err = bt_mesh_settings_set(read_cb, cb_arg, &key, sizeof(key)); in cdb_subnet_set() 289 sub->kr_phase = key.kr_phase; in cdb_subnet_set() 290 memcpy(sub->keys[0].net_key, &key.val[0], 16); in cdb_subnet_set() 291 memcpy(sub->keys[1].net_key, &key.val[1], 16); in cdb_subnet_set() 302 sub->kr_phase = key.kr_phase; in cdb_subnet_set() 303 memcpy(sub->keys[0].net_key, &key.val[0], 16); in cdb_subnet_set() 304 memcpy(sub->keys[1].net_key, &key.val[1], 16); in cdb_subnet_set() 315 struct app_key_val key; in cdb_app_key_set() local 338 err = bt_mesh_settings_set(read_cb, cb_arg, &key, sizeof(key)); in cdb_app_key_set() [all …]
|
/Zephyr-Core-2.7.6/samples/subsys/nvs/src/ |
D | main.c | 71 uint8_t key[8], longarray[128]; in main() local 116 rc = nvs_read(&fs, KEY_ID, &key, sizeof(key)); in main() 120 printk("%x ", key[n]); in main() 125 key[0] = 0xFF; in main() 126 key[1] = 0xFE; in main() 127 key[2] = 0xFD; in main() 128 key[3] = 0xFC; in main() 129 key[4] = 0xFB; in main() 130 key[5] = 0xFA; in main() 131 key[6] = 0xF9; in main() [all …]
|
/Zephyr-Core-2.7.6/subsys/bluetooth/controller/crypto/ |
D | crypto.c | 21 int bt_encrypt_le(const uint8_t key[16], const uint8_t plaintext[16], in bt_encrypt_le() 24 BT_DBG("key %s", bt_hex(key, 16)); in bt_encrypt_le() 27 ecb_encrypt(key, plaintext, enc_data, NULL); in bt_encrypt_le() 34 int bt_encrypt_be(const uint8_t key[16], const uint8_t plaintext[16], in bt_encrypt_be() 37 BT_DBG("key %s", bt_hex(key, 16)); in bt_encrypt_be() 40 ecb_encrypt_be(key, plaintext, enc_data); in bt_encrypt_be()
|
/Zephyr-Core-2.7.6/arch/arm/core/aarch32/mpu/cortex_m/ |
D | arm_mpu_internal.h | 61 unsigned int key; in is_enabled_region() local 64 key = irq_lock(); in is_enabled_region() 67 irq_unlock(key); in is_enabled_region() 82 unsigned int key; in get_region_ap() local 85 key = irq_lock(); in get_region_ap() 88 irq_unlock(key); in get_region_ap() 107 unsigned int key; in is_in_region() local 110 key = irq_lock(); in is_in_region() 114 irq_unlock(key); in is_in_region()
|
/Zephyr-Core-2.7.6/drivers/serial/ |
D | uart_mchp_xec.c | 250 k_spinlock_key_t key = k_spin_lock(&dev_data->lock); in uart_xec_configure() local 336 k_spin_unlock(&dev_data->lock, key); in uart_xec_configure() 401 k_spinlock_key_t key = k_spin_lock(&DEV_DATA(dev)->lock); in uart_xec_poll_in() local 409 k_spin_unlock(&DEV_DATA(dev)->lock, key); in uart_xec_poll_in() 430 k_spinlock_key_t key = k_spin_lock(&DEV_DATA(dev)->lock); in uart_xec_poll_out() local 438 k_spin_unlock(&DEV_DATA(dev)->lock, key); in uart_xec_poll_out() 453 k_spinlock_key_t key = k_spin_lock(&DEV_DATA(dev)->lock); in uart_xec_err_check() local 456 k_spin_unlock(&DEV_DATA(dev)->lock, key); in uart_xec_err_check() 478 k_spinlock_key_t key = k_spin_lock(&DEV_DATA(dev)->lock); in uart_xec_fifo_fill() local 484 k_spin_unlock(&DEV_DATA(dev)->lock, key); in uart_xec_fifo_fill() [all …]
|
/Zephyr-Core-2.7.6/drivers/timer/ |
D | apic_timer.c | 109 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout() local 117 k_spin_unlock(&lock, key); in sys_clock_set_timeout() 125 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_elapsed() local 129 k_spin_unlock(&lock, key); in sys_clock_elapsed() 142 k_spinlock_key_t key = k_spin_lock(&lock); in isr() local 151 k_spin_unlock(&lock, key); in isr() 163 k_spin_unlock(&lock, key); in isr() 173 k_spinlock_key_t key = k_spin_lock(&lock); in isr() local 176 k_spin_unlock(&lock, key); in isr() 206 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_cycle_get_32() local [all …]
|
D | arcv2_timer0.c | 229 k_spinlock_key_t key; in timer_int_handler() local 234 key = k_spin_lock(&lock); in timer_int_handler() 242 k_spin_unlock(&lock, key); in timer_int_handler() 253 uint32_t key; in timer_int_handler() local 255 key = arch_irq_lock(); in timer_int_handler() 261 arch_irq_unlock(key); in timer_int_handler() 335 uint32_t key; in sys_clock_set_timeout() local 346 key = arch_irq_lock(); in sys_clock_set_timeout() 353 arch_irq_unlock(key); in sys_clock_set_timeout() 370 k_spinlock_key_t key = k_spin_lock(&lock); in sys_clock_set_timeout() [all …]
|
/Zephyr-Core-2.7.6/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/ |
D | storage.c | 115 static int ps_set(const char *key, size_t len_rd, in ps_set() argument 122 key_len = settings_name_next(key, &next); in ps_set() 125 if (!strncmp(key, "rc", key_len)) { in ps_set() 130 if (!strncmp(key, "gdtt", key_len)) { in ps_set() 134 if (!strncmp(key, "gpo", key_len)) { in ps_set() 139 if (!strncmp(key, "ld", key_len)) { in ps_set() 144 if (!strncmp(key, "td", key_len)) { in ps_set() 149 if (!strncmp(key, "dd", key_len)) { in ps_set() 154 if (!strncmp(key, "ll", key_len)) { in ps_set() 159 if (!strncmp(key, "llt", key_len)) { in ps_set() [all …]
|