Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 161) sorted by relevance

1234567

/hal_espressif-2.7.6/components/esp_gdbstub/xtensa/
Dgdbstub_xtensa.c29 static void init_regfile(esp_gdbstub_gdb_regfile_t *dst) in init_regfile() argument
31 memset(dst, 0, sizeof(*dst)); in init_regfile()
34 static void update_regfile_common(esp_gdbstub_gdb_regfile_t *dst) in update_regfile_common() argument
36 if (dst->a[0] & 0x8000000U) { in update_regfile_common()
37 dst->a[0] = (uint32_t)cpu_ll_pc_to_ptr(dst->a[0]); in update_regfile_common()
39 if (!esp_stack_ptr_is_sane(dst->a[1])) { in update_regfile_common()
40 dst->a[1] = 0xDEADBEEF; in update_regfile_common()
42 dst->windowbase = 0; in update_regfile_common()
43 dst->windowstart = 0x1; in update_regfile_common()
44 RSR(CONFIGID0, dst->configid0); in update_regfile_common()
[all …]
/hal_espressif-2.7.6/components/app_update/test/
Dtest_app_desc.c8 char dst[sha256_hex_len + 2]; variable
22 memset(dst, fill, sizeof(dst));
23 len = sizeof(dst);
24 res = esp_ota_get_app_elf_sha256(dst, len);
25 printf("%d: %s (%d)\n", len, dst, res);
27 TEST_ASSERT_EQUAL(0, memcmp(dst, ref_sha256, res - 1));
28 TEST_ASSERT_EQUAL_HEX(0, dst[sha256_hex_len]);
29 TEST_ASSERT_EQUAL_HEX(fill, dst[sha256_hex_len + 1]);
31 memset(dst, fill, sizeof(dst));
33 res = esp_ota_get_app_elf_sha256(dst, len);
[all …]
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_common/include/
Dmesh_byteorder.h253 static inline void sys_put_be16(uint16_t val, uint8_t dst[2]) in sys_put_be16()
255 dst[0] = val >> 8; in sys_put_be16()
256 dst[1] = val; in sys_put_be16()
268 static inline void sys_put_be24(uint32_t val, uint8_t dst[3]) in sys_put_be24()
270 dst[0] = val >> 16; in sys_put_be24()
271 sys_put_be16(val, &dst[1]); in sys_put_be24()
283 static inline void sys_put_be32(uint32_t val, uint8_t dst[4]) in sys_put_be32()
285 sys_put_be16(val >> 16, dst); in sys_put_be32()
286 sys_put_be16(val, &dst[2]); in sys_put_be32()
298 static inline void sys_put_be48(uint64_t val, uint8_t dst[6]) in sys_put_be48()
[all …]
/hal_espressif-2.7.6/components/freemodbus/common/include/
Desp_modbus_common.h36 #define _XFER_4_RD(dst, src) { \ argument
37 *(uint8_t *)(dst)++ = *(uint8_t*)(src + 1); \
38 *(uint8_t *)(dst)++ = *(uint8_t*)(src + 0); \
39 *(uint8_t *)(dst)++ = *(uint8_t*)(src + 3); \
40 *(uint8_t *)(dst)++ = *(uint8_t*)(src + 2); \
44 #define _XFER_2_RD(dst, src) { \ argument
45 *(uint8_t *)(dst)++ = *(uint8_t *)(src + 1); \
46 *(uint8_t *)(dst)++ = *(uint8_t *)(src + 0); \
50 #define _XFER_4_WR(dst, src) { \ argument
51 *(uint8_t *)(dst + 1) = *(uint8_t *)(src)++; \
[all …]
/hal_espressif-2.7.6/components/esp_gdbstub/riscv/
Dgdbstub_riscv.c23 static void init_regfile(esp_gdbstub_gdb_regfile_t *dst) in init_regfile() argument
25 memset(dst, 0, sizeof(*dst)); in init_regfile()
28 void esp_gdbstub_frame_to_regfile(const esp_gdbstub_frame_t *frame, esp_gdbstub_gdb_regfile_t *dst) in esp_gdbstub_frame_to_regfile() argument
30 init_regfile(dst); in esp_gdbstub_frame_to_regfile()
31 dst->pc = frame->mepc; in esp_gdbstub_frame_to_regfile()
35 memcpy(&(dst->x[1]), &frame->ra, sizeof(uint32_t) * 31); in esp_gdbstub_frame_to_regfile()
47 void esp_gdbstub_tcb_to_regfile(TaskHandle_t tcb, esp_gdbstub_gdb_regfile_t *dst) in esp_gdbstub_tcb_to_regfile() argument
52 esp_gdbstub_frame_to_regfile(frame, dst); in esp_gdbstub_tcb_to_regfile()
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/profile/esp/blufi/
Dblufi_prf.c722 esp_blufi_cb_param_t *dst = (esp_blufi_cb_param_t *) p_dest; in btc_blufi_cb_deep_copy() local
727 dst->sta_ssid.ssid = osi_malloc(src->sta_ssid.ssid_len); in btc_blufi_cb_deep_copy()
728 if (dst->sta_ssid.ssid == NULL) { in btc_blufi_cb_deep_copy()
731 memcpy(dst->sta_ssid.ssid, src->sta_ssid.ssid, src->sta_ssid.ssid_len); in btc_blufi_cb_deep_copy()
734 dst->sta_passwd.passwd = osi_malloc(src->sta_passwd.passwd_len); in btc_blufi_cb_deep_copy()
735 if (dst->sta_passwd.passwd == NULL) { in btc_blufi_cb_deep_copy()
738 memcpy(dst->sta_passwd.passwd, src->sta_passwd.passwd, src->sta_passwd.passwd_len); in btc_blufi_cb_deep_copy()
741 dst->softap_ssid.ssid = osi_malloc(src->softap_ssid.ssid_len); in btc_blufi_cb_deep_copy()
742 if (dst->softap_ssid.ssid == NULL) { in btc_blufi_cb_deep_copy()
745 memcpy(dst->softap_ssid.ssid, src->softap_ssid.ssid, src->softap_ssid.ssid_len); in btc_blufi_cb_deep_copy()
[all …]
/hal_espressif-2.7.6/tools/ci/
Dfind_apps_build_apps.sh159 dst=${OUTPUT_PATH}/${IDF_TARGET}/${build_name}
160 echo "Copying artifacts from ${src} to ${dst}"
162 rm -rf ${dst}
163 mkdir -p ${dst}
164 cp ${src}/{*.bin,*.elf,*.map,sdkconfig,flasher_args.json} ${dst}/
166 mkdir -p ${dst}/bootloader
167 cp ${src}/bootloader/*.bin ${dst}/bootloader/
169 mkdir -p ${dst}/partition_table
170 cp ${src}/partition_table/*.bin ${dst}/partition_table/
/hal_espressif-2.7.6/components/esp-tls/esp-tls-crypto/
Desp_tls_crypto.c43 static int esp_crypto_bas64_encode_mbedtls( unsigned char *dst, size_t dlen, in esp_crypto_bas64_encode_mbedtls() argument
47 return mbedtls_base64_encode(dst, dlen, olen, src, slen); in esp_crypto_bas64_encode_mbedtls()
63 static int esp_crypto_base64_encode_woflSSL(unsigned char *dst, size_t dlen, size_t *olen, in esp_crypto_base64_encode_woflSSL() argument
67 return Base64_Encode((const byte *) src, (word32) slen, (byte *) dst, (word32 *) olen); in esp_crypto_base64_encode_woflSSL()
81 int esp_crypto_base64_encode(unsigned char *dst, size_t dlen, size_t *olen, in esp_crypto_base64_encode() argument
84 return _esp_crypto_base64_encode(dst, dlen, olen, src, slen); in esp_crypto_base64_encode()
/hal_espressif-2.7.6/components/unity/
Dunity_port_esp32.c57 void unity_gets(char *dst, size_t len) in unity_gets() argument
61 memcpy(dst, unity_input_from_gdb, unity_input_from_gdb_len); in unity_gets()
62 dst[unity_input_from_gdb_len] = '\n'; in unity_gets()
63 dst[unity_input_from_gdb_len + 1] = 0; in unity_gets()
76 esp_rom_uart_rx_string((uint8_t *) dst, len); in unity_gets()
/hal_espressif-2.7.6/components/nvs_flash/src/
Dnvs_types.hpp106 void getKey(char* dst, size_t dstSize) in getKey() argument
108 strncpy(dst, key, min(dstSize, sizeof(key))); in getKey()
109 dst[dstSize-1] = 0; in getKey()
113 void getValue(T& dst) in getValue() argument
115 assert(itemTypeOf(dst) == datatype); in getValue()
116 dst = *reinterpret_cast<T*>(data); in getValue()
Dnvs_partition.cpp34 esp_err_t NVSPartition::read_raw(size_t src_offset, void* dst, size_t size) in read_raw() argument
36 return esp_partition_read_raw(mESPPartition, src_offset, dst, size); in read_raw()
39 esp_err_t NVSPartition::read(size_t src_offset, void* dst, size_t size) in read() argument
45 return esp_partition_read(mESPPartition, src_offset, dst, size); in read()
/hal_espressif-2.7.6/components/vfs/test/
Dtest_vfs_uart.c92 char* dst = buf; variable
95 size_t rb = fread(dst, 1, 5, stdin); // read first 5
97 dst += rb;
99 rb = fread(dst, 1, 6, stdin); // ask for 6
103 dst += rb;
105 rb = fread(dst, 1, 2, stdin); // any more characters?
111 rb = fread(dst, 1, 2, stdin); // try to get somthing
116 rb = fread(dst, 1, 2, stdin); // try again
118 TEST_ASSERT_EQUAL_UINT8_ARRAY("\r1", dst, 2);
119 dst += rb;
[all …]
/hal_espressif-2.7.6/components/app_update/
Desp_app_desc.c86 int IRAM_ATTR esp_ota_get_app_elf_sha256(char* dst, size_t size) in esp_ota_get_app_elf_sha256() argument
100 if (dst == NULL || size == 0) { in esp_ota_get_app_elf_sha256()
105 dst[2*i] = to_hex_digit(s_app_elf_sha256[i] >> 4); in esp_ota_get_app_elf_sha256()
106 dst[2*i + 1] = to_hex_digit(s_app_elf_sha256[i] & 0xf); in esp_ota_get_app_elf_sha256()
108 dst[2*n] = 0; in esp_ota_get_app_elf_sha256()
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_models/server/
Dserver_common.c208 uint8_t tid, uint16_t src, uint16_t dst, int64_t *now) in bt_mesh_is_server_recv_last_msg() argument
213 if (!BLE_MESH_ADDR_IS_UNICAST(dst)) { in bt_mesh_is_server_recv_last_msg()
217 if (last->tid == tid && last->src == src && last->dst == dst && in bt_mesh_is_server_recv_last_msg()
226 uint8_t tid, uint16_t src, uint16_t dst, int64_t *now) in bt_mesh_server_update_last_msg() argument
229 if (!BLE_MESH_ADDR_IS_UNICAST(dst)) { in bt_mesh_server_update_last_msg()
235 last->dst = dst; in bt_mesh_server_update_last_msg()
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_sensor_model.c38 btc_ble_mesh_sensor_client_args_t *dst = (btc_ble_mesh_sensor_client_args_t *)p_dest; in btc_ble_mesh_sensor_client_arg_deep_copy() local
42 if (!msg || !dst || !src) { in btc_ble_mesh_sensor_client_arg_deep_copy()
49dst->sensor_client_get_state.params = (esp_ble_mesh_client_common_param_t *)bt_mesh_malloc(sizeof(… in btc_ble_mesh_sensor_client_arg_deep_copy()
50dst->sensor_client_get_state.get_state = (esp_ble_mesh_sensor_client_get_state_t *)bt_mesh_malloc(… in btc_ble_mesh_sensor_client_arg_deep_copy()
51 if (dst->sensor_client_get_state.params && dst->sensor_client_get_state.get_state) { in btc_ble_mesh_sensor_client_arg_deep_copy()
52 memcpy(dst->sensor_client_get_state.params, src->sensor_client_get_state.params, in btc_ble_mesh_sensor_client_arg_deep_copy()
54 memcpy(dst->sensor_client_get_state.get_state, src->sensor_client_get_state.get_state, in btc_ble_mesh_sensor_client_arg_deep_copy()
61dst->sensor_client_get_state.get_state->column_get.raw_value_x = bt_mesh_alloc_buf(length); in btc_ble_mesh_sensor_client_arg_deep_copy()
62 if (!dst->sensor_client_get_state.get_state->column_get.raw_value_x) { in btc_ble_mesh_sensor_client_arg_deep_copy()
66 … net_buf_simple_add_mem(dst->sensor_client_get_state.get_state->column_get.raw_value_x, in btc_ble_mesh_sensor_client_arg_deep_copy()
[all …]
Dbtc_ble_mesh_time_scene_model.c38 btc_ble_mesh_time_scene_client_args_t *dst = (btc_ble_mesh_time_scene_client_args_t *)p_dest; in btc_ble_mesh_time_scene_client_arg_deep_copy() local
41 if (!msg || !dst || !src) { in btc_ble_mesh_time_scene_client_arg_deep_copy()
48dst->time_scene_client_get_state.params = (esp_ble_mesh_client_common_param_t *)bt_mesh_malloc(siz… in btc_ble_mesh_time_scene_client_arg_deep_copy()
49 if (dst->time_scene_client_get_state.params) { in btc_ble_mesh_time_scene_client_arg_deep_copy()
50 memcpy(dst->time_scene_client_get_state.params, src->time_scene_client_get_state.params, in btc_ble_mesh_time_scene_client_arg_deep_copy()
57dst->time_scene_client_get_state.get_state = (esp_ble_mesh_time_scene_client_get_state_t *)bt_mesh… in btc_ble_mesh_time_scene_client_arg_deep_copy()
58 if (dst->time_scene_client_get_state.get_state) { in btc_ble_mesh_time_scene_client_arg_deep_copy()
59 … memcpy(dst->time_scene_client_get_state.get_state, src->time_scene_client_get_state.get_state, in btc_ble_mesh_time_scene_client_arg_deep_copy()
68dst->time_scene_client_set_state.params = (esp_ble_mesh_client_common_param_t *)bt_mesh_malloc(siz… in btc_ble_mesh_time_scene_client_arg_deep_copy()
69dst->time_scene_client_set_state.set_state = (esp_ble_mesh_time_scene_client_set_state_t *)bt_mesh… in btc_ble_mesh_time_scene_client_arg_deep_copy()
[all …]
Dbtc_ble_mesh_generic_model.c38 btc_ble_mesh_generic_client_args_t *dst = (btc_ble_mesh_generic_client_args_t *)p_dest; in btc_ble_mesh_generic_client_arg_deep_copy() local
42 if (!msg || !dst || !src) { in btc_ble_mesh_generic_client_arg_deep_copy()
49dst->generic_client_get_state.params = (esp_ble_mesh_client_common_param_t *)bt_mesh_malloc(sizeof… in btc_ble_mesh_generic_client_arg_deep_copy()
50 if (dst->generic_client_get_state.params) { in btc_ble_mesh_generic_client_arg_deep_copy()
51 memcpy(dst->generic_client_get_state.params, src->generic_client_get_state.params, in btc_ble_mesh_generic_client_arg_deep_copy()
58dst->generic_client_get_state.get_state = (esp_ble_mesh_generic_client_get_state_t *)bt_mesh_mallo… in btc_ble_mesh_generic_client_arg_deep_copy()
59 if (dst->generic_client_get_state.get_state) { in btc_ble_mesh_generic_client_arg_deep_copy()
60 … memcpy(dst->generic_client_get_state.get_state, src->generic_client_get_state.get_state, in btc_ble_mesh_generic_client_arg_deep_copy()
69dst->generic_client_set_state.params = (esp_ble_mesh_client_common_param_t *)bt_mesh_malloc(sizeof… in btc_ble_mesh_generic_client_arg_deep_copy()
70dst->generic_client_set_state.set_state = (esp_ble_mesh_generic_client_set_state_t *)bt_mesh_mallo… in btc_ble_mesh_generic_client_arg_deep_copy()
[all …]
Dbtc_ble_mesh_health_model.c39 btc_ble_mesh_health_client_args_t *dst = (btc_ble_mesh_health_client_args_t *)p_dest; in btc_ble_mesh_health_client_arg_deep_copy() local
42 if (!msg || !dst || !src) { in btc_ble_mesh_health_client_arg_deep_copy()
49dst->health_client_get_state.params = (esp_ble_mesh_client_common_param_t *)bt_mesh_malloc(sizeof(… in btc_ble_mesh_health_client_arg_deep_copy()
50 if (dst->health_client_get_state.params) { in btc_ble_mesh_health_client_arg_deep_copy()
51 memcpy(dst->health_client_get_state.params, src->health_client_get_state.params, in btc_ble_mesh_health_client_arg_deep_copy()
58dst->health_client_get_state.get_state = (esp_ble_mesh_health_client_get_state_t *)bt_mesh_malloc(… in btc_ble_mesh_health_client_arg_deep_copy()
59 if (dst->health_client_get_state.get_state) { in btc_ble_mesh_health_client_arg_deep_copy()
60 … memcpy(dst->health_client_get_state.get_state, src->health_client_get_state.get_state, in btc_ble_mesh_health_client_arg_deep_copy()
69dst->health_client_set_state.params = (esp_ble_mesh_client_common_param_t *)bt_mesh_malloc(sizeof(… in btc_ble_mesh_health_client_arg_deep_copy()
70dst->health_client_set_state.set_state = (esp_ble_mesh_health_client_set_state_t *)bt_mesh_malloc(… in btc_ble_mesh_health_client_arg_deep_copy()
[all …]
Dbtc_ble_mesh_lighting_model.c38 btc_ble_mesh_lighting_client_args_t *dst = (btc_ble_mesh_lighting_client_args_t *)p_dest; in btc_ble_mesh_lighting_client_arg_deep_copy() local
41 if (!msg || !dst || !src) { in btc_ble_mesh_lighting_client_arg_deep_copy()
48dst->light_client_get_state.params = (esp_ble_mesh_client_common_param_t *)bt_mesh_malloc(sizeof(e… in btc_ble_mesh_lighting_client_arg_deep_copy()
49 if (dst->light_client_get_state.params) { in btc_ble_mesh_lighting_client_arg_deep_copy()
50 memcpy(dst->light_client_get_state.params, src->light_client_get_state.params, in btc_ble_mesh_lighting_client_arg_deep_copy()
57dst->light_client_get_state.get_state = (esp_ble_mesh_light_client_get_state_t *)bt_mesh_malloc(si… in btc_ble_mesh_lighting_client_arg_deep_copy()
58 if (dst->light_client_get_state.get_state) { in btc_ble_mesh_lighting_client_arg_deep_copy()
59 memcpy(dst->light_client_get_state.get_state, src->light_client_get_state.get_state, in btc_ble_mesh_lighting_client_arg_deep_copy()
68dst->light_client_set_state.params = (esp_ble_mesh_client_common_param_t *)bt_mesh_malloc(sizeof(e… in btc_ble_mesh_lighting_client_arg_deep_copy()
69dst->light_client_set_state.set_state = (esp_ble_mesh_light_client_set_state_t *)bt_mesh_malloc(si… in btc_ble_mesh_lighting_client_arg_deep_copy()
[all …]
/hal_espressif-2.7.6/components/esp_rom/esp32s2/
Dusb_descriptors.c65 uint16_t* dst = s_str_serial_descr.bString; in rom_usb_cdc_set_descriptor_patch() local
68 *dst++ = nibble_to_hex_u16(b >> 4); in rom_usb_cdc_set_descriptor_patch()
69 *dst++ = nibble_to_hex_u16(b & 0xf); in rom_usb_cdc_set_descriptor_patch()
70 dst++; in rom_usb_cdc_set_descriptor_patch()
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_core/
Dprovisioner_main.c759 bool bt_mesh_provisioner_check_msg_dst(uint16_t dst) in bt_mesh_provisioner_check_msg_dst() argument
766 if (!BLE_MESH_ADDR_IS_UNICAST(dst)) { in bt_mesh_provisioner_check_msg_dst()
772 if (node && dst >= node->unicast_addr && in bt_mesh_provisioner_check_msg_dst()
773 dst < node->unicast_addr + node->element_num) { in bt_mesh_provisioner_check_msg_dst()
781 const uint8_t *bt_mesh_provisioner_dev_key_get(uint16_t dst) in bt_mesh_provisioner_dev_key_get() argument
792 if (!BLE_MESH_ADDR_IS_UNICAST(dst)) { in bt_mesh_provisioner_dev_key_get()
793 BT_ERR("Invalid unicast address 0x%04x", dst); in bt_mesh_provisioner_dev_key_get()
799 if (node && node->unicast_addr == dst) { in bt_mesh_provisioner_dev_key_get()
1566 uint16_t dst; /* Heartbeat destination address (unicast address or group address) */ member
1601 static inline uint8_t get_filter_addr_type(uint16_t src, uint16_t dst) in get_filter_addr_type() argument
[all …]
Dfast_prov.c33 const uint8_t *bt_mesh_fast_prov_dev_key_get(uint16_t dst) in bt_mesh_fast_prov_dev_key_get() argument
35 if (!BLE_MESH_ADDR_IS_UNICAST(dst)) { in bt_mesh_fast_prov_dev_key_get()
36 BT_ERR("Invalid unicast address 0x%04x", dst); in bt_mesh_fast_prov_dev_key_get()
40 if (dst == bt_mesh_primary_addr()) { in bt_mesh_fast_prov_dev_key_get()
44 return bt_mesh_provisioner_dev_key_get(dst); in bt_mesh_fast_prov_dev_key_get()
/hal_espressif-2.7.6/components/espcoredump/src/
Dcore_dump_uart.c32 static void esp_core_dump_b64_encode(const uint8_t *src, uint32_t src_len, uint8_t *dst) { in esp_core_dump_b64_encode() argument
42 dst[j++] = b64[a >> 2]; in esp_core_dump_b64_encode()
43 dst[j++] = b64[((a & 3) << 4) | (b >> 4)]; in esp_core_dump_b64_encode()
45 dst[j++] = b64[(b & 0x0F) << 2 | (c >> 6)]; in esp_core_dump_b64_encode()
48 dst[j++] = b64[c & 0x3F]; in esp_core_dump_b64_encode()
52 dst[j++] = '='; in esp_core_dump_b64_encode()
54 dst[j++] = '\0'; in esp_core_dump_b64_encode()
/hal_espressif-2.7.6/components/vfs/include/
Desp_vfs.h112 …ssize_t (*read_p)(void* ctx, int fd, void * dst, size_t size); /*!< …
113 …ssize_t (*read)(int fd, void * dst, size_t size); /*!< …
116 …ssize_t (*pread_p)(void *ctx, int fd, void * dst, size_t size, off_t offset); /*!< …
117 …ssize_t (*pread)(int fd, void * dst, size_t size, off_t offset); /*!< …
149 …int (*rename_p)(void* ctx, const char *src, const char *dst); /*!< r…
150 …int (*rename)(const char *src, const char *dst); /*!< r…
360 ssize_t esp_vfs_read(struct _reent *r, int fd, void * dst, size_t size);
367 int esp_vfs_rename(struct _reent *r, const char *src, const char *dst);
430 ssize_t esp_vfs_pread(int fd, void *dst, size_t size, off_t offset);
/hal_espressif-2.7.6/components/wpa_supplicant/src/common/
Dbss.c91 static void wpa_bss_copy_res(struct wpa_bss *dst, struct wpa_scan_res *src, in wpa_bss_copy_res() argument
94 dst->flags = src->flags; in wpa_bss_copy_res()
95 os_memcpy(dst->bssid, src->bssid, ETH_ALEN); in wpa_bss_copy_res()
96 dst->channel = src->chan; in wpa_bss_copy_res()
97 dst->beacon_int = src->beacon_int; in wpa_bss_copy_res()
98 dst->caps = src->caps; in wpa_bss_copy_res()
99 dst->noise = src->noise; in wpa_bss_copy_res()
100 dst->level = src->level; in wpa_bss_copy_res()
101 dst->tsf = src->tsf; in wpa_bss_copy_res()
102 dst->parent_tsf = src->parent_tsf; in wpa_bss_copy_res()
[all …]

1234567