Home
last modified time | relevance | path

Searched full:attributes (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/Zephyr-latest/modules/openthread/platform/
Dcrypto_psa.c140 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in otPlatCryptoImportKey() local
174 psa_set_key_type(&attributes, toPsaKeyType(aKeyType)); in otPlatCryptoImportKey()
175 psa_set_key_algorithm(&attributes, toPsaAlgorithm(aKeyAlgorithm)); in otPlatCryptoImportKey()
176 psa_set_key_usage_flags(&attributes, toPsaKeyUsage(aKeyUsage)); in otPlatCryptoImportKey()
180 psa_set_key_lifetime(&attributes, PSA_KEY_LIFETIME_PERSISTENT); in otPlatCryptoImportKey()
181 psa_set_key_id(&attributes, *aKeyRef); in otPlatCryptoImportKey()
184 psa_set_key_lifetime(&attributes, PSA_KEY_LIFETIME_VOLATILE); in otPlatCryptoImportKey()
188 status = psa_import_key(&attributes, aKey, aKeyLen, aKeyRef); in otPlatCryptoImportKey()
189 psa_reset_key_attributes(&attributes); in otPlatCryptoImportKey()
211 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in otPlatCryptoHasKey() local
[all …]
/Zephyr-latest/tests/net/lib/wifi_credentials_backend_psa/src/
Dnormalized_crypto.h29 psa_status_t psa_import_key(const psa_key_attributes_t *attributes, const uint8_t *data,
36 void psa_set_key_id(psa_key_attributes_t *attributes, mbedtls_svc_key_id_t key);
37 void psa_set_key_bits(psa_key_attributes_t *attributes, size_t bits);
38 void psa_set_key_type(psa_key_attributes_t *attributes, psa_key_type_t type);
39 void psa_set_key_algorithm(psa_key_attributes_t *attributes, psa_algorithm_t alg);
40 void psa_set_key_lifetime(psa_key_attributes_t *attributes, psa_key_lifetime_t lifetime);
42 void psa_set_key_usage_flags(psa_key_attributes_t *attributes, psa_key_usage_t usage_flags);
Dmain.c84 static void custom_psa_set_key_id(psa_key_attributes_t *attributes, mbedtls_svc_key_id_t key) in custom_psa_set_key_id() argument
89 void custom_psa_set_key_bits(psa_key_attributes_t *attributes, size_t bits) in custom_psa_set_key_bits() argument
94 void custom_psa_set_key_type(psa_key_attributes_t *attributes, psa_key_type_t type) in custom_psa_set_key_type() argument
99 void custom_psa_set_key_algorithm(psa_key_attributes_t *attributes, psa_algorithm_t alg) in custom_psa_set_key_algorithm() argument
104 void custom_psa_set_key_lifetime(psa_key_attributes_t *attributes, psa_key_lifetime_t lifetime) in custom_psa_set_key_lifetime() argument
109 void custom_psa_set_key_usage_flags(psa_key_attributes_t *attributes, psa_key_usage_t usage_flags) in custom_psa_set_key_usage_flags() argument
/Zephyr-latest/drivers/firmware/scmi/
Dclk.c10 /* TODO: if extended attributes are supported this should be moved
17 uint32_t attributes; member
79 /* extended attributes currently not supported */ in scmi_clock_config_set()
80 if (cfg->attributes & SCMI_CLK_CONFIG_EA_MASK) { in scmi_clock_config_set()
84 /* invalid because extended attributes are not supported */ in scmi_clock_config_set()
85 if (SCMI_CLK_CONFIG_ENABLE_DISABLE(cfg->attributes) == 3) { in scmi_clock_config_set()
90 if (SCMI_CLK_CONFIG_ENABLE_DISABLE(cfg->attributes) == 2) { in scmi_clock_config_set()
115 int scmi_clock_protocol_attributes(struct scmi_protocol *proto, uint32_t *attributes) in scmi_clock_protocol_attributes() argument
122 if (!proto || !attributes) { in scmi_clock_protocol_attributes()
149 *attributes = reply_buffer.attributes; in scmi_clock_protocol_attributes()
/Zephyr-latest/include/zephyr/mem_mgmt/
Dmem_attr.h54 * marked with memory attributes.
63 /** Memory region attributes */
80 * @brief Check if a buffer has correct size and attributes.
83 * attributes fully match a memory region in terms of size and attributes.
85 * This is usually used to verify that a buffer has the expected attributes
89 * The expected set of attributes for the buffer is and-matched against the
90 * full set of attributes for the memory region it belongs to (bitmask). So the
91 * buffer is considered matching when at least that set of attributes are valid
93 * attributes besides the one passed as parameter).
102 * @retval -EINVAL if the buffer has the wrong set of attributes.
/Zephyr-latest/doc/hardware/peripherals/sensor/
Dattributes.rst3 Sensor Attributes
6 :dfn:`Attributes`, enumerated in :c:enum:`sensor_attribute`, are immutable and
9 Attributes allow for obtaining metadata and changing configuration of a sensor.
12 handling options are very common. Attributes provide a flexible API for
15 Attributes are specified using :c:enum:`sensor_attribute` which can be used with
17 attributes.
/Zephyr-latest/include/zephyr/dt-bindings/memory-attr/
Dmemory-attr.h12 * Generic memory attributes.
14 * Generic memory attributes that should be common to all architectures.
28 * Software specific memory attributes.
30 * Software can define their own memory attributes if needed using the
39 * Architecture specific memory attributes.
41 * Architectures can define their own memory attributes if needed using the
/Zephyr-latest/doc/services/mem_mgmt/
Dindex.rst3 Memory Attributes
6 It is possible in the devicetree to mark the memory regions with attributes by
11 The set of general attributes that can be specified in the property are defined
34 architecture-specific and software-specific custom attributes that can be
53 marked with attributes is by using the provided ``mem-attr`` helper library by
55 list of memory regions and their attributes are compiled in a user-accessible
57 and act on regions and attributes (see next section for more details).
92 Memory Attributes Heap Allocator
97 memory from with certain attributes / capabilities.
100 with one of the memory attributes listed in
[all …]
/Zephyr-latest/subsys/mem_mgmt/
DKconfig5 bool "Memory Attributes management library"
15 bool "Memory Attributes heap allocator"
18 Enable an heap allocator based on memory attributes to dynamically
/Zephyr-latest/drivers/clock_control/
Dclock_control_arm_scmi.c37 cfg.attributes = SCMI_CLK_CONFIG_ENABLE_DISABLE(on); in scmi_clock_on_off()
82 uint32_t attributes; in scmi_clock_init() local
87 ret = scmi_clock_protocol_attributes(proto, &attributes); in scmi_clock_init()
89 LOG_ERR("failed to fetch clock attributes: %d", ret); in scmi_clock_init()
93 data->clk_num = SCMI_CLK_ATTRIBUTES_CLK_NUM(attributes); in scmi_clock_init()
/Zephyr-latest/subsys/net/lib/coap/
Dcoap_link_format.c134 static bool match_attributes(const char * const *attributes, in match_attributes() argument
143 for (attr = attributes; attr && *attr; attr++) { in match_attributes()
163 const char * const *attributes = NULL; in match_queries_resource() local
170 if (meta && meta->attributes) { in match_queries_resource()
171 attributes = meta->attributes; in match_queries_resource()
174 if (!attributes) { in match_queries_resource()
187 return match_attributes(attributes, query); in match_queries_resource()
323 static int format_attributes(const char * const *attributes, in format_attributes() argument
331 if (!attributes) { in format_attributes()
336 for (attr = attributes; *attr; attr++) { in format_attributes()
[all …]
/Zephyr-latest/samples/subsys/profiling/perf/images/
Dgraph_example.svg66 if (el && el.attributes && el.attributes.y && el.attributes._orig_x) {
68 params.x = el.attributes._orig_x.value;
69 params.y = el.attributes.y.value;
137 if (e.attributes["_orig_" + attr] != undefined) return;
138 if (e.attributes[attr] == undefined) return;
139 if (val == undefined) val = e.attributes[attr].value;
143 if (e.attributes["_orig_"+attr] == undefined) return;
144 e.attributes[attr].value = e.attributes["_orig_" + attr].value;
160 var w = parseFloat(r.attributes.width.value) -3;
162 t.attributes.x.value = parseFloat(r.attributes.x.value) + 3;
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dcrypto_psa.c183 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in bt_mesh_sha256_hmac_raw_key() local
190 psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_SIGN_MESSAGE); in bt_mesh_sha256_hmac_raw_key()
191 psa_set_key_lifetime(&attributes, PSA_KEY_LIFETIME_VOLATILE); in bt_mesh_sha256_hmac_raw_key()
192 psa_set_key_algorithm(&attributes, PSA_ALG_HMAC(PSA_ALG_SHA_256)); in bt_mesh_sha256_hmac_raw_key()
193 psa_set_key_type(&attributes, PSA_KEY_TYPE_HMAC); in bt_mesh_sha256_hmac_raw_key()
194 psa_set_key_bits(&attributes, 256); in bt_mesh_sha256_hmac_raw_key()
196 status = psa_import_key(&attributes, key, 32, &key_id); in bt_mesh_sha256_hmac_raw_key()
202 psa_reset_key_attributes(&attributes); in bt_mesh_sha256_hmac_raw_key()
305 psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; in bt_mesh_dhkey_gen() local
308 psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_DERIVE); in bt_mesh_dhkey_gen()
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/api/
Dgatt.rst12 attributes the service contains. The helper macro :c:macro:`BT_GATT_SERVICE()`
15 Attributes can be declared using the :c:struct:`bt_gatt_attr` struct or using
71 field only attributes which matches will be discovered, in contrast setting it
72 to NULL allows all attributes to be discovered.
75 Caching discovered attributes is not supported.
79 more attributes can be set, though setting multiple handles requires the option:
/Zephyr-latest/include/zephyr/drivers/firmware/scmi/
Dclk.h31 uint32_t attributes; member
62 * @param attributes pointer to attributes to be set via
69 uint32_t *attributes);
Dpinctrl.h29 #define SCMI_PINCTRL_ATTRIBUTES_CONFIG_NUM(attributes)\ argument
30 (((attributes) & GENMASK(9, 2)) >> 2)
89 uint32_t attributes; member
/Zephyr-latest/include/zephyr/arch/arc/v2/mpu/
Darc_core_mpu.h16 * attributes.
18 * Each MPU is different and has a different set of attributes, hence instead
19 * of having the attributes at this level the arc_mpu_core defines the intent
22 * of operations and attributes for each MPU and it is responsibility of the
/Zephyr-latest/doc/kernel/memory_management/
Dshared_multi_heap.rst8 attributes (cacheable, non-cacheable, etc...).
62 correct set of attributes for the needed memory. The framework will take
75 Adding new attributes
78 The API does not enforce any attributes, but at least it defines the two most
/Zephyr-latest/scripts/footprint/
Dsize_report82 if 'DW_AT_location' in die.attributes:
83 loc_attr = die.attributes['DW_AT_location']
96 if 'DW_AT_low_pc' in die.attributes:
97 low = die.attributes['DW_AT_low_pc'].value
99 high_pc = die.attributes['DW_AT_high_pc']
267 file_index = die.attributes['DW_AT_decl_file'].value
328 if 'DW_AT_location' in die.attributes:
334 if ('DW_AT_abstract_origin' in die.attributes) or (
335 'DW_AT_specification' in die.attributes):
340 elif 'DW_AT_low_pc' in die.attributes:
[all …]
/Zephyr-latest/scripts/generate_usb_vif/constants/
Dother_constants.py11 ATTRIBUTES = "attributes" variable
/Zephyr-latest/include/zephyr/arch/arm/mpu/
Dnxp_mpu.h61 /* Super User Attributes */
129 /* NXP MPU region access permission attributes */
147 /* Read-Write access permission attributes */
161 /* Execution-allowed attributes */
176 * MPU attributes to be checked against write-ability.
198 * MPU attributes to be checked against execution
224 /* Region Attributes */
Darm_mpu_v7m.h153 /* Attributes belonging to RASR (including the encoded region size) */
164 /* Read-Write access permission attributes */
172 /* Execution-allowed attributes */
186 /* Read-Write access permission attributes (default cache-ability) */
206 /* Execution-allowed attributes (default-cacheability) */
223 * MPU attributes to be checked against write-ability.
246 * MPU attributes to be checked against execution
252 /* Attributes for no-cache enabling (share-ability is selected by default) */
/Zephyr-latest/scripts/generate_usb_vif/
Dgenerate_vif.py45 def add_attributes_to_xml_element(xml_ele, attributes): argument
46 for key, value in attributes.items():
50 def add_element_to_xml(xml_ele, name, text=None, attributes=None): argument
54 if attributes:
55 add_attributes_to_xml_element(new_xml_ele, attributes)
62 attributes = elements[element_name].get(other_constants.ATTRIBUTES,
65 attributes)
/Zephyr-latest/dts/bindings/base/
Dzephyr,memory-common.yaml18 Set attributes such as read-only or executable for the linker script
32 Attribute or set of attributes (bitmask) for the memory region. See
/Zephyr-latest/include/zephyr/net/
Dcoap_link_format.h68 * In case you want to add attributes to the resources included in the
73 /** List of attributes to add */
74 const char * const *attributes; member

12345678910>>...14