/Zephyr-latest/tests/subsys/secure_storage/psa/its/src/ |
D | custom_store.c | 11 size_t data_length; member 28 size_t data_length, const void *data) in secure_storage_its_store_set() argument 30 __ASSERT_NO_MSG(data_length <= sizeof(s_its_entries[0].data)); in secure_storage_its_store_set() 46 s_its_entries[index].data_length = data_length; in secure_storage_its_store_set() 47 memcpy(s_its_entries[index].data, data, data_length); in secure_storage_its_store_set() 52 void *data, size_t *data_length) in secure_storage_its_store_get() argument 59 *data_length = MIN(data_size, s_its_entries[index].data_length); in secure_storage_its_store_get() 60 memcpy(data, s_its_entries[index].data, *data_length); in secure_storage_its_store_get()
|
D | main.c | 31 size_t data_length; in ZTEST() local 46 ret = psa_its_get(UID, 0, sizeof(read_data), read_data, &data_length); in ZTEST() 48 zassert_equal(data_length, i); in ZTEST() 49 zassert_mem_equal(read_data, written_data, data_length); in ZTEST() 63 size_t data_length; in ZTEST() local 71 ret = psa_its_get(UID, i, sizeof(read_data) - i, read_data, &data_length); in ZTEST() 73 zassert_equal(data_length, sizeof(read_data) - i); in ZTEST() 75 zassert_mem_equal(read_data, written_data + i, data_length); in ZTEST() 96 size_t data_length; in ZTEST() local 98 ret = psa_its_get(UID + i, 0, sizeof(data), &data, &data_length); in ZTEST()
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | tlv.c | 54 int32_t data_length; in tlv_mgmt_post_recv() local 77 data_length = length; in tlv_mgmt_post_recv() 81 data_length -= sizeof(*clock_desc->type); in tlv_mgmt_post_recv() 82 if (data_length < 0) { in tlv_mgmt_post_recv() 89 data_length -= sizeof(*clock_desc->phy_protocol); in tlv_mgmt_post_recv() 90 if (data_length < 0) { in tlv_mgmt_post_recv() 94 data_length -= clock_desc->phy_protocol->length; in tlv_mgmt_post_recv() 95 if (data_length < 0) { in tlv_mgmt_post_recv() 101 data_length -= sizeof(*clock_desc->phy_addr_len); in tlv_mgmt_post_recv() 102 if (data_length < 0) { in tlv_mgmt_post_recv() [all …]
|
/Zephyr-latest/subsys/secure_storage/src/its/ |
D | implementation.c | 70 static bool keep_stored_entry(secure_storage_its_uid_t uid, size_t data_length, const void *p_data, in keep_stored_entry() argument 88 if (existing_data_len == data_length && in keep_stored_entry() 90 !memcmp(existing_data, p_data, data_length)) { in keep_stored_entry() 92 " (of length %zu) is identical.", uid.caller_id, uid.uid, data_length); in keep_stored_entry() 99 static psa_status_t store_entry(secure_storage_its_uid_t uid, size_t data_length, in store_entry() argument 106 ret = secure_storage_its_transform_to_store(uid, data_length, p_data, create_flags, in store_entry() 120 psa_status_t secure_storage_its_set(secure_storage_its_uid_t uid, size_t data_length, in secure_storage_its_set() argument 125 if (uid.uid == 0 || (p_data == NULL && data_length != 0)) { in secure_storage_its_set() 131 if (data_length > CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE) { in secure_storage_its_set() 133 data_length, CONFIG_SECURE_STORAGE_ITS_MAX_DATA_SIZE); in secure_storage_its_set() [all …]
|
/Zephyr-latest/subsys/secure_storage/include/psa/ |
D | protected_storage.h | 49 psa_status_t psa_ps_set(psa_storage_uid_t uid, size_t data_length, in psa_ps_set() argument 53 return secure_storage_its_set(ITS_UID, data_length, p_data, create_flags); in psa_ps_set() 55 return secure_storage_ps_set(uid, data_length, p_data, create_flags); in psa_ps_set() 211 size_t data_length, const void *p_data) in psa_ps_set_extended() argument 214 return secure_storage_ps_set_extended(uid, data_offset, data_length, p_data); in psa_ps_set_extended()
|
D | internal_trusted_storage.h | 50 psa_status_t psa_its_set(psa_storage_uid_t uid, size_t data_length, in psa_its_set() argument 53 return secure_storage_its_set(ITS_UID, data_length, p_data, create_flags); in psa_its_set()
|
/Zephyr-latest/subsys/secure_storage/src/its/store/ |
D | zms.c | 61 size_t data_length, const void *data) in secure_storage_its_store_set() argument 71 zms_ret = zms_write(&s_zms, zms_id, data, data_length); in secure_storage_its_store_set() 72 if (zms_ret == data_length) { in secure_storage_its_store_set() 80 "Wrote" : "Failed to write", zms_id, data_length, zms_ret); in secure_storage_its_store_set() 85 void *data, size_t *data_length) in secure_storage_its_store_get() argument 97 *data_length = zms_ret; in secure_storage_its_store_get()
|
D | settings.c | 43 size_t data_length, const void *data) in secure_storage_its_store_set() argument 49 ret = settings_save_one(name, data, data_length); in secure_storage_its_store_set() 51 (ret == 0) ? "Saved" : "Failed to save", name, data_length, ret); in secure_storage_its_store_set() 81 void *data, size_t *data_length) in secure_storage_its_store_get() argument 91 *data_length = load_params.ret; in secure_storage_its_store_get()
|
/Zephyr-latest/subsys/secure_storage/include/internal/zephyr/secure_storage/ |
D | ps.h | 17 psa_status_t secure_storage_ps_set(const psa_storage_uid_t uid, size_t data_length, 22 size_t data_length, void *p_data, size_t *p_data_length); 37 size_t data_length, const void *p_data);
|
D | its.h | 17 psa_status_t secure_storage_its_set(secure_storage_its_uid_t uid, size_t data_length,
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | psa_its_emul.c | 119 psa_status_t psa_its_get(psa_storage_uid_t uid, uint32_t data_offset, uint32_t data_length, in psa_its_get() argument 138 *p_data_length = MIN(p_pst_item->size - data_offset, data_length); in psa_its_get() 144 psa_status_t psa_its_set(psa_storage_uid_t uid, uint32_t data_length, const void *p_data, in psa_its_set() argument 152 LOG_DBG("Set uid: %llu, len: %lu", uid, data_length); in psa_its_set() 154 if (data_length > MAX_ITEM_LENGTH) { in psa_its_set() 155 LOG_ERR("Too long item data: %lu > " STRINGIFY(MAX_ITEM_LENGTH), data_length); in psa_its_set() 171 p_pst_item->size = data_length; in psa_its_set() 173 memcpy(p_pst_item->data, p_data, data_length); in psa_its_set()
|
/Zephyr-latest/tests/bluetooth/tester/src/btp/ |
D | btp_gatt.h | 186 uint16_t data_length; member 218 uint16_t data_length; member 230 uint16_t data_length; member 238 uint16_t data_length; member 246 uint16_t data_length; member 254 uint16_t data_length; member 266 uint16_t data_length; member 278 uint16_t data_length; member 347 uint16_t data_length; member 363 uint16_t data_length; member [all …]
|
D | btp_l2cap.h | 120 uint16_t data_length; member
|
/Zephyr-latest/subsys/secure_storage/include/internal/zephyr/secure_storage/its/ |
D | store.h | 25 size_t data_length, const void *data); 38 void *data, size_t *data_length);
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | h4_ifx_cyw43xxx.c | 169 size_t data_length = data[2]; /* data length from firmware image block */ in bt_firmware_download() local 173 buf = bt_hci_cmd_create(op_code, data_length); in bt_firmware_download() 180 net_buf_add_mem(buf, &data[3], data_length); in bt_firmware_download() 193 data += data_length + 3; in bt_firmware_download() 194 remaining_length -= data_length + 3; in bt_firmware_download()
|
D | hci_ifx_cyw208xx.c | 129 size_t data_length = data[2]; /* data length from firmware image block */ in cyw208xx_bt_firmware_download() local 133 buf = bt_hci_cmd_create(op_code, data_length); in cyw208xx_bt_firmware_download() 140 net_buf_add_mem(buf, &data[3], data_length); in cyw208xx_bt_firmware_download() 153 data += data_length + 3; in cyw208xx_bt_firmware_download() 154 remaining_length -= data_length + 3; in cyw208xx_bt_firmware_download()
|
/Zephyr-latest/tests/subsys/secure_storage/psa/crypto/src/ |
D | main.c | 40 size_t data_length; in ZTEST() local 59 ret = psa_its_get(ID, 0, sizeof(data), data, &data_length); in ZTEST() 61 zassert_equal(data_length, sizeof(data)); in ZTEST() 68 ret = psa_ps_get(ID, 0, sizeof(data), data, &data_length); in ZTEST() 70 zassert_equal(data_length, sizeof(data)); in ZTEST()
|
/Zephyr-latest/tests/net/lib/wifi_credentials_backend_psa/src/ |
D | normalized_crypto.h | 30 size_t data_length, mbedtls_svc_key_id_t *key); 33 size_t *data_length);
|
D | main.c | 77 size_t *data_length) in custom_psa_export_key() argument 80 *data_length = data_size; in custom_psa_export_key()
|
/Zephyr-latest/drivers/i3c/ |
D | i3c_shell.c | 221 desc->data_length.mrl, desc->data_length.mwl, in cmd_i3c_info() 222 desc->data_length.max_ibi, in cmd_i3c_info() 267 desc->data_length.mrl, desc->data_length.mwl, in cmd_i3c_info() 268 desc->data_length.max_ibi, desc->getcaps.getcap1, in cmd_i3c_info() 348 char *s_reg_addr, char **data, uint8_t data_length) in i3c_write_from_buffer() argument 383 if (data_length + reg_addr_bytes > MAX_I3C_BYTES) { in i3c_write_from_buffer() 384 data_length = MAX_I3C_BYTES - reg_addr_bytes; in i3c_write_from_buffer() 389 for (i = 0; i < data_length; i++) { in i3c_write_from_buffer() 394 reg_addr_bytes + data_length); in i3c_write_from_buffer() 504 uint8_t data_length; in cmd_i3c_hdr_ddr_write() local [all …]
|
D | i3c_common.c | 529 target->data_length.mrl = mrl.len; in i3c_device_basic_info_get() 530 target->data_length.mwl = mwl.len; in i3c_device_basic_info_get() 531 target->data_length.max_ibi = mrl.ibi_len; in i3c_device_basic_info_get() 834 desc->data_length.mrl, desc->data_length.mwl, in i3c_bus_init() 835 desc->data_length.max_ibi); in i3c_bus_init()
|
/Zephyr-latest/drivers/i2c/ |
D | i2c_shell.c | 124 char **data, uint8_t data_length) in i2c_write_from_buffer() argument 151 if (data_length + reg_addr_bytes > MAX_I2C_BYTES) { in i2c_write_from_buffer() 152 data_length = MAX_I2C_BYTES - reg_addr_bytes; in i2c_write_from_buffer() 157 for (i = 0; i < data_length; i++) { in i2c_write_from_buffer() 164 reg_addr_bytes + data_length, dev_addr); in i2c_write_from_buffer()
|
/Zephyr-latest/drivers/can/ |
D | can_mcan.c | 692 int data_length; in can_mcan_get_message() local 744 data_length = can_dlc_to_bytes(frame.dlc); in can_mcan_get_message() 745 if (data_length <= sizeof(frame.data)) { in can_mcan_get_message() 746 if ((frame.flags & CAN_FRAME_RTR) == 0U && data_length != 0U) { in can_mcan_get_message() 751 ROUND_UP(data_length, sizeof(uint32_t))); in can_mcan_get_message() 910 size_t data_length = can_dlc_to_bytes(frame->dlc); in can_mcan_send() local 929 LOG_DBG("Sending %zu bytes. Id: 0x%x, ID type: %s %s %s %s", data_length, frame->id, in can_mcan_send() 954 if (data_length > sizeof(frame->data)) { in can_mcan_send() 955 LOG_ERR("data length (%zu) > max frame data length (%zu)", data_length, in can_mcan_send() 1017 if ((frame->flags & CAN_FRAME_RTR) == 0U && data_length != 0U) { in can_mcan_send() [all …]
|
/Zephyr-latest/drivers/fpga/ |
D | fpga_altera_agilex_bridge.h | 91 uint32_t data_length : 11; member
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | crypto_psa.c | 468 size_t data_length; in bt_mesh_key_export() local 470 if (psa_export_key(in->key, out, 16, &data_length) != PSA_SUCCESS) { in bt_mesh_key_export() 474 if (data_length != 16) { in bt_mesh_key_export()
|