/Zephyr-latest/samples/psa/its/src/ |
D | main.c | 40 const size_t data_offset = SAMPLE_DATA_SIZE / 2; in write_and_read_data() local 45 ret = psa_its_get(SAMPLE_DATA_UID, data_offset, sizeof(p_data_read), p_data_read, in write_and_read_data() 52 if (p_data_length != SAMPLE_DATA_SIZE - data_offset) { in write_and_read_data() 54 p_data_length, SAMPLE_DATA_SIZE - data_offset); in write_and_read_data() 58 if (memcmp(p_data_write + data_offset, p_data_read, p_data_length)) { in write_and_read_data() 59 LOG_HEXDUMP_INF(p_data_write + data_offset, p_data_length, "Data written:"); in write_and_read_data()
|
/Zephyr-latest/subsys/shell/modules/ |
D | devmem_service.c | 46 size_t data_offset; in memory_dump() local 61 for (data_offset = 0; in memory_dump() 62 size >= vsize && data_offset + vsize <= SHELL_HEXDUMP_BYTES_IN_LINE; in memory_dump() 63 data_offset += vsize) { in memory_dump() 66 value = sys_read8(addr + data_offset); in memory_dump() 67 hex_data[data_offset] = value; in memory_dump() 70 value = sys_le16_to_cpu(sys_read16(addr + data_offset)); in memory_dump() 71 hex_data[data_offset] = (uint8_t)value; in memory_dump() 73 hex_data[data_offset + 1] = (uint8_t)value; in memory_dump() 76 value = sys_le32_to_cpu(sys_read32(addr + data_offset)); in memory_dump() [all …]
|
/Zephyr-latest/subsys/secure_storage/include/psa/ |
D | protected_storage.h | 82 psa_status_t psa_ps_get(psa_storage_uid_t uid, size_t data_offset, in psa_ps_get() argument 86 return secure_storage_its_get(ITS_UID, data_offset, data_size, p_data, p_data_length); in psa_ps_get() 88 return secure_storage_ps_get(uid, data_offset, data_size, p_data, p_data_length); in psa_ps_get() 210 psa_status_t psa_ps_set_extended(psa_storage_uid_t uid, size_t data_offset, 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 | 76 psa_status_t psa_its_get(psa_storage_uid_t uid, size_t data_offset, in psa_its_get() argument 79 return secure_storage_its_get(ITS_UID, data_offset, data_size, p_data, p_data_length); in psa_its_get()
|
/Zephyr-latest/subsys/secure_storage/include/internal/zephyr/secure_storage/ |
D | ps.h | 21 psa_status_t secure_storage_ps_get(const psa_storage_uid_t uid, size_t data_offset, 36 psa_status_t secure_storage_ps_set_extended(psa_storage_uid_t uid, size_t data_offset,
|
D | its.h | 21 psa_status_t secure_storage_its_get(secure_storage_its_uid_t uid, size_t data_offset,
|
/Zephyr-latest/subsys/secure_storage/src/its/ |
D | implementation.c | 145 psa_status_t secure_storage_its_get(secure_storage_its_uid_t uid, size_t data_offset, in secure_storage_its_get() argument 164 if (data_offset == 0 in secure_storage_its_get() 176 if (data_offset > data_len) { in secure_storage_its_get() 178 data_offset, data_len); in secure_storage_its_get() 181 *p_data_length = MIN(data_size, data_len - data_offset); in secure_storage_its_get() 182 memcpy(p_data, data + data_offset, *p_data_length); in secure_storage_its_get()
|
/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 134 if (data_offset > p_pst_item->size) { in psa_its_get() 138 *p_data_length = MIN(p_pst_item->size - data_offset, data_length); in psa_its_get() 139 memcpy(p_data, p_pst_item->data + data_offset, *p_data_length); in psa_its_get()
|
/Zephyr-latest/drivers/wifi/esp_at/ |
D | esp_offload.c | 485 int *data_offset, int *data_len, char *ip_str, in cmd_ciprecvdata_parse() argument 534 *data_offset = (endptr - cmd_buf) + 1; in cmd_ciprecvdata_parse() 537 if (*data_offset + *data_len > frags_len) { in cmd_ciprecvdata_parse() 551 int data_offset, data_len; in MODEM_CMD_DIRECT_DEFINE() local 558 err = cmd_ciprecvdata_parse(sock, data->rx_buf, len, &data_offset, in MODEM_CMD_DIRECT_DEFINE() 561 err = cmd_ciprecvdata_parse(sock, data->rx_buf, len, &data_offset, in MODEM_CMD_DIRECT_DEFINE() 597 esp_socket_rx(sock, data->rx_buf, data_offset, data_len); in MODEM_CMD_DIRECT_DEFINE() 599 return data_offset + data_len; in MODEM_CMD_DIRECT_DEFINE()
|
D | esp.c | 764 int *data_offset, long *data_len) in cmd_ipd_parse_hdr() argument 817 *data_offset = (str - ipd_buf); in cmd_ipd_parse_hdr() 857 *data_offset = (str - ipd_buf); in cmd_ipd_parse_hdr() 872 int data_offset; in MODEM_CMD_DIRECT_DEFINE() local 878 &data_offset, &data_len); in MODEM_CMD_DIRECT_DEFINE() 893 ret = data_offset; in MODEM_CMD_DIRECT_DEFINE() 898 if (data_offset + data_len > net_buf_frags_len(data->rx_buf)) { in MODEM_CMD_DIRECT_DEFINE() 903 esp_socket_rx(sock, data->rx_buf, data_offset, data_len); in MODEM_CMD_DIRECT_DEFINE() 905 ret = data_offset + data_len; in MODEM_CMD_DIRECT_DEFINE()
|