/Zephyr-latest/tests/cmake/yaml/ |
D | CMakeLists.txt | 1 # SPDX-License-Identifier: Apache-2.0 43 yaml_get(actual NAME yaml-test KEY cmake test key-string) 46 COMMENT "yaml key value does not match expectation." 52 yaml_length(actual NAME yaml-test KEY cmake test key-list-string) 54 COMMENT "yaml list length does not match expectation." 57 set(expected "a" "list" "of" "strings") 58 yaml_get(actual NAME yaml-test KEY cmake test key-list-string) 62 COMMENT "list values mismatch." 69 yaml_get(actual NAME yaml-test KEY cmake test key-int) 72 COMMENT "yaml key value does not match expectation." [all …]
|
D | test.yaml | 3 key-string: "Simple string" 4 key-int: 42 5 key-list-int: 6 - 4 7 - 10 8 - 2 9 key-list-string: 10 - "a" 11 - "list" 12 - "of" [all …]
|
/Zephyr-latest/lib/posix/options/ |
D | key.c | 5 * SPDX-License-Identifier: Apache-2.0 20 /* This is non-standard (i.e. an implementation detail) */ 21 #define PTHREAD_KEY_INITIALIZER (-1) 36 return k - posix_key_pool; in posix_key_to_offset() 39 static inline size_t to_posix_key_idx(pthread_key_t key) in to_posix_key_idx() argument 41 return mark_pthread_obj_uninitialized(key); in to_posix_key_idx() 44 static pthread_key_obj *get_posix_key(pthread_key_t key) in get_posix_key() argument 46 int actually_initialized; in get_posix_key() 47 size_t bit = to_posix_key_idx(key); in get_posix_key() 50 if (!is_pthread_obj_initialized(key)) { in get_posix_key() [all …]
|
D | posix_internal.h | 4 * SPDX-License-Identifier: Apache-2.0 27 /* the following two bitfields should combine to be 32-bits in size */ 47 /* List nodes for pthread_cleanup_push() / pthread_cleanup_pop() */ 50 /* List node for ready_q, run_q, or done_q */ 53 /* List of keys that thread has called pthread_setspecific() on */ 65 /* Queue ID (internal-only) */ 70 /* List of pthread_key_data objects that contain thread 71 * specific data for the key 82 /* Key and thread specific data passed to pthread_setspecific() */ 83 pthread_key_obj *key; member [all …]
|
/Zephyr-latest/lib/hash/ |
D | hash_map_sc.c | 4 * SPDX-License-Identifier: Apache-2.0 20 uint64_t key; member 25 static void sys_hashmap_sc_entry_init(struct sys_hashmap_sc_entry *entry, uint64_t key, in sys_hashmap_sc_entry_init() argument 28 entry->key = key; in sys_hashmap_sc_entry_init() 29 entry->value = value; in sys_hashmap_sc_entry_init() 30 sys_dnode_init(&entry->node); in sys_hashmap_sc_entry_init() 35 sys_dlist_t *buckets = map->data->buckets; in sys_hashmap_sc_insert_entry() 36 uint32_t hash = map->hash_func(&entry->key, sizeof(entry->key)); in sys_hashmap_sc_insert_entry() 38 sys_dlist_append(&buckets[hash % map->data->n_buckets], &entry->node); in sys_hashmap_sc_insert_entry() 39 ++map->data->size; in sys_hashmap_sc_insert_entry() [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_get_type/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 20 /* This LUT contains different combinations of ID, Address and key type. 21 * Item in this list will be used to fill keys pool. 32 /* This list will hold returned references while filling keys pool */ 50 int rv = fill_key_pool_by_id_addr_type( in full_list_ts_setup() 53 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in full_list_ts_setup() 61 * Test getting a non-existing key reference with type, ID and Address while the list isn't full. 64 * - Keys pool list isn't full 65 * - ID and address pair used doesn't exist in the keys pool list 68 * - A key slot is reserved and data type, ID and Address are stored [all …]
|
/Zephyr-latest/kernel/ |
D | obj_core.c | 4 * SPDX-License-Identifier: Apache-2.0 17 sys_slist_init(&type->list); in z_obj_type_init() 18 sys_slist_append(&z_obj_type_list, &type->node); in z_obj_type_init() 19 type->id = id; in z_obj_type_init() 20 type->obj_core_offset = off; in z_obj_type_init() 27 obj_core->node.next = NULL; in k_obj_core_init() 28 obj_core->type = type; in k_obj_core_init() 30 obj_core->stats = NULL; in k_obj_core_init() 36 k_spinlock_key_t key = k_spin_lock(&lock); in k_obj_core_link() local 38 sys_slist_append(&obj_core->type->list, &obj_core->node); in k_obj_core_link() [all …]
|
D | pipes.c | 4 * SPDX-License-Identifier: Apache-2.0 25 sys_dlist_t *list; member 30 static int pipe_get_internal(k_spinlock_key_t key, struct k_pipe *pipe, 41 pipe->buffer = buffer; in k_pipe_init() 42 pipe->size = size; in k_pipe_init() 43 pipe->bytes_used = 0U; in k_pipe_init() 44 pipe->read_index = 0U; in k_pipe_init() 45 pipe->write_index = 0U; in k_pipe_init() 46 pipe->lock = (struct k_spinlock){}; in k_pipe_init() 47 z_waitq_init(&pipe->wait_q.writers); in k_pipe_init() [all …]
|
D | queue.c | 2 * Copyright (c) 2010-2016 Wind River Systems, Inc. 4 * SPDX-License-Identifier: Apache-2.0 10 * @brief dynamic-size QUEUE object. 36 * did a behind-the scenes memory allocation of an alloc_node in z_queue_node_peek() 43 ret = anode->data; in z_queue_node_peek() 49 * reserved for the linked list. User mode isn't allowed to in z_queue_node_peek() 60 sys_sflist_init(&queue->data_q); in z_impl_k_queue_init() 61 queue->lock = (struct k_spinlock) {}; in z_impl_k_queue_init() 62 z_waitq_init(&queue->wait_q); in z_impl_k_queue_init() 64 sys_dlist_init(&queue->poll_events); in z_impl_k_queue_init() [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_update_usage/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 19 /* This LUT contains different combinations of ID, Address and key type. 20 * Item in this list will be used to fill keys pool. 34 /* This list will hold returned references while filling keys pool */ 37 /* Holds the last key reference updated */ 46 int rv = fill_key_pool_by_id_addr(testing_id_addr_pair_lut, in tc_setup() 49 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in tc_setup() 51 last_keys_updated = returned_keys_refs[CONFIG_BT_MAX_PAIRED - 1]; in tc_setup() 57 * Request updating non-existing item in the keys pool list 60 * - Keys pool list is filled with items that are different from the testing ID and address pair [all …]
|
D | test_suite_save_aging_counter.c | 4 * SPDX-License-Identifier: Apache-2.0 22 /* This list holds returned references while filling keys pool. 32 int rv = fill_key_pool_by_id_addr(testing_id_addr_pair_lut, in tc_setup() 35 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in tc_setup() 44 * - Keys pool list is filled with items 45 * - ID and address used exist in the keys pool list 46 * - CONFIG_BT_KEYS_SAVE_AGING_COUNTER_ON_PAIRING is enabled 49 * - Last updated key reference matches the last updated key reference 50 * - bt_keys_store() is called once with the correct parameters 62 id = params_vector->id; in ZTEST() [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_get_addr/src/ |
D | test_suite_full_list_overwrite_oldest.c | 4 * SPDX-License-Identifier: Apache-2.0 19 /* This list holds returned references while filling keys pool */ 25 static int bt_unpair_custom_fake(uint8_t id, const bt_addr_le_t *addr) in bt_unpair_custom_fake() 29 /* Find the key slot with matched id and address */ in bt_unpair_custom_fake() 36 expect_single_call_bt_unpair(oldest_params_vector->id, oldest_params_vector->addr); in bt_unpair_custom_fake() 41 static int bt_unpair_unreachable_custom_fake(uint8_t id, const bt_addr_le_t *addr) in bt_unpair_unreachable_custom_fake() 59 /* This will make the effect as if there is a connection with no key */ in bt_conn_foreach_key_slot_0_in_use_custom_fake() 66 /* This will make the effect as if key at slot 0 is in use with a connection */ in bt_conn_foreach_key_slot_0_in_use_custom_fake() 79 /* This will make the effect as if key at slot 'x' is in use with a connection */ in bt_conn_foreach_all_keys_in_use_custom_fake() 94 /* This will make the effect as if key at slot 'x' is in use with a connection */ in bt_conn_foreach_no_keys_in_use_custom_fake() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | cfg.h | 8 * SPDX-License-Identifier: Apache-2.0 39 /* Key Refresh Phase */ 94 * @retval -ENOTSUP The Mesh Private beacon feature is not supported. 95 * @retval -EINVAL Invalid parameter. 96 * @retval -EALREADY Already in the given state. 98 int bt_mesh_priv_beacon_set(enum bt_mesh_feat_state priv_beacon); 138 * @retval -EINVAL Invalid TTL value. 140 int bt_mesh_default_ttl_set(uint8_t default_ttl); 148 /** @brief Get the current Mesh On-Demand Private Proxy state. 150 * @retval 0 or positive value represents On-Demand Private Proxy feature state [all …]
|
D | cfg_cli.h | 8 * SPDX-License-Identifier: Apache-2.0 82 /** @brief Optional callback for Model Sub list messages. 84 * Handles received Model Sub list messages from a server. 88 * as @c buf->len is greater than or equal to 2. 190 /** @brief Optional callback for Netkey list messages. 192 * Handles received Netkey list messages from a server. 199 * @param buf Message buffer containing key indexes. 218 /** @brief Optional callback for Appkey list messages. 220 * Handles received Appkey list messages from a server. 229 * @param buf Message buffer containing key indexes. [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_foreach_type/src/ |
D | test_suite_foreach_type_invalid_inputs.c | 4 * SPDX-License-Identifier: Apache-2.0 13 /* This LUT contains different combinations of ID, Address and key type. 29 * - Any key type can be used 30 * - Callback function pointer is set to NULL 33 * - An assertion fails and execution stops 48 * Test empty keys pool list with no key type set and a NULL value for the user data. 51 * - Empty keys pool list 52 * - Valid value is used for the key type 53 * - NULL value is used for the user data 54 * - Valid callback is passed to bt_keys_foreach_type() [all …]
|
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 17 /* This LUT contains different combinations of ID, Address with no key type */ 28 /* This LUT contains different combinations of ID, Address and key type */ 39 /* This list will hold returned references while filling keys pool */ 50 int rv = fill_key_pool_by_id_addr_type(testing_id_addr_type_no_type_lut, in type_not_set_ts_setup() 54 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in type_not_set_ts_setup() 68 * Test calling bt_keys_foreach_type() with a valid key type while the keys type isn't set 71 * - Keys pool has been filled 72 * - Keys type isn't set 75 * - Callback should never be called [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | ecc.h | 1 /* ecc.h - ECDH helpers */ 6 * SPDX-License-Identifier: Apache-2.0 9 /** Key size used in Bluetooth's ECC domain. */ 11 /** Length of a Bluetooth ECC public key coordinate. */ 13 /** Length of a Bluetooth ECC public key. */ 15 /** Length of a Bluetooth ECC private key. */ 17 /** Length of a Bluetooth Diffie-Hellman key. */ 20 /* @brief Container for public key callback */ 22 /** @brief Callback type for Public Key generation. 24 * Used to notify of the local public key or that the local key is not [all …]
|
/Zephyr-latest/lib/utils/ |
D | onoff.c | 5 * SPDX-License-Identifier: Apache-2.0 48 * process_events() must re-check the overall state to confirm no 61 /* No-op event: used to process deferred changes. 71 * state (TO-ON, TO-OFF, or RESETTING). 82 * The client list can change while the manager lock is 92 * This is synthesized from EVT_RECHECK in a non-nested 94 * non-empty client (request) list. 100 * This is synthesized from EVT_RECHECK in a non-nested 108 * This is synthesized from EVT_RECHECK in a non-nested 110 * non-empty client (reset) list. [all …]
|
/Zephyr-latest/subsys/mgmt/osdp/ |
D | Kconfig.cp | 4 # SPDX-License-Identifier: Apache-2.0 8 int "Number of connected Peripheral Devices" 16 string "List of connected Peripheral Device addresses" 23 int "OSDP Peripheral Device command queue size" 31 int "Retry wait time in seconds after a command error" 38 int "Number Peripheral Device POLL commands per second" 48 string "Secure Channel Master Key" 52 master Key. This is a mandatory key when secure channel is enabled.
|
/Zephyr-latest/subsys/mgmt/mcumgr/util/include/mgmt/mcumgr/util/ |
D | zcbor_bulk.h | 2 * Copyright (c) 2022-2023 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 18 struct zcbor_string key; /* Map key string */ member 19 zcbor_decoder_t *decoder; /* Key corresponding decoder */ 24 /** @brief Define single key-decoder mapping 28 * @param k key is "" enclosed string representing key; 32 * @param vp non-NULL pointer for result of decoding; should correspond 39 .len = sizeof(k) - 1, \ 46 /** @brief Define single key-value decode mapping 54 * @param k key; the @p k will be stringified so should be given [all …]
|
/Zephyr-latest/subsys/tracing/ |
D | tracing_tracking.c | 4 * SPDX-License-Identifier: Apache-2.0 47 #define SYS_TRACK_LIST_PREPEND(list, obj) \ argument 49 k_spinlock_key_t key = k_spin_lock(&list ## _lock); \ 50 obj->_obj_track_next = list; \ 51 list = obj; \ 52 k_spin_unlock(&list ## _lock, key); \ 129 void sys_track_socket_init(int sock, int family, int type, int proto) in sys_track_socket_init() 138 static int sys_track_static_init(void) in sys_track_static_init()
|
/Zephyr-latest/subsys/settings/src/ |
D | settings_shell.c | 4 * SPDX-License-Identifier: Apache-2.0 20 static int settings_list_callback(const char *key, in settings_list_callback() argument 32 if (params->subtree != NULL) { in settings_list_callback() 33 shell_print(params->shell_ptr, "%s/%s", params->subtree, key); in settings_list_callback() 35 shell_print(params->shell_ptr, "%s", key); in settings_list_callback() 41 static int cmd_list(const struct shell *shell_ptr, size_t argc, char *argv[]) in cmd_list() 43 int err; in cmd_list() 70 static int settings_read_callback(const char *key, in settings_read_callback() argument 81 if (settings_name_next(key, NULL) != 0) { in settings_read_callback() 85 params->value_found = true; in settings_read_callback() [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_find_irk/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 19 /* This LUT contains different combinations of ID, Address and key type. 20 * Item in this list will be used to fill keys pool. 45 /* This list will hold returned references while filling keys pool */ 52 #define BT_ADDR_IS_RPA(a) (((a)->val[5] & 0xc0) == 0x40) 56 if (addr->type != BT_ADDR_LE_RANDOM) { in check_if_addr_is_rpa() 60 return BT_ADDR_IS_RPA(&addr->a); in check_if_addr_is_rpa() 71 if (irk[0] != (params_it) && bt_addr_eq(¤t_params_vector->addr->a, addr)) { in bt_rpa_irk_matches_custom_fake() 88 * Find a non-existing key reference for ID and Address of type 'BT_KEYS_IRK' 91 * - Empty keys pool list [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | dfu_slot.c | 4 * SPDX-License-Identifier: Apache-2.0 21 #define DFU_SLOT_SETTINGS_PATH "bt/mesh-dfu/slot" 29 static sys_slist_t list; variable 51 return (slot->fwid_len == fwid_len) && in slot_eq() 52 !memcmp(fwid, slot->fwid, fwid_len); in slot_eq() 59 SYS_SLIST_FOR_EACH_CONTAINER(&list, s, n) { in is_slot_committed() 68 static int slot_store(const struct slot *slot_to_store) in slot_store() 72 int err; in slot_store() 81 slot_to_store->slot.fwid, slot_to_store->slot.fwid_len); in slot_store() 88 slot_to_store->slot.metadata, slot_to_store->slot.metadata_len); in slot_store() [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_find_addr/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 19 /* This LUT contains different combinations of ID, Address and key type. 20 * Item in this list will be used to fill keys pool. 34 /* This list will hold returned references while filling keys pool */ 50 * Find a non-existing key reference for ID and Address pair 53 * - Empty keys pool list 56 * - A NULL value is returned 63 uint8_t id = params_vector->id; in ZTEST() 64 const bt_addr_le_t *addr = params_vector->addr; in ZTEST() 68 zassert_true(returned_ref == NULL, "bt_keys_find() returned a non-NULL reference"); in ZTEST() [all …]
|