/hal_espressif-3.5.0/components/bt/esp_ble_mesh/btc/ |
D | btc_ble_mesh_sensor_model.c | 242 …esp_ble_mesh_sensor_client_cb_param_t *p_src_data = (esp_ble_mesh_sensor_client_cb_param_t *)p_src; in btc_ble_mesh_sensor_client_copy_req_data() local 245 if (!msg || !p_src_data || !p_dest_data) { in btc_ble_mesh_sensor_client_copy_req_data() 250 if (p_src_data->params) { in btc_ble_mesh_sensor_client_copy_req_data() 257 memcpy(p_dest_data->params, p_src_data->params, sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_sensor_client_copy_req_data() 264 if (p_src_data->params) { in btc_ble_mesh_sensor_client_copy_req_data() 265 switch (p_src_data->params->opcode) { in btc_ble_mesh_sensor_client_copy_req_data() 268 if (p_src_data->status_cb.descriptor_status.descriptor) { in btc_ble_mesh_sensor_client_copy_req_data() 269 length = p_src_data->status_cb.descriptor_status.descriptor->len; in btc_ble_mesh_sensor_client_copy_req_data() 276 p_src_data->status_cb.descriptor_status.descriptor->data, in btc_ble_mesh_sensor_client_copy_req_data() 277 p_src_data->status_cb.descriptor_status.descriptor->len); in btc_ble_mesh_sensor_client_copy_req_data() [all …]
|
D | btc_ble_mesh_generic_model.c | 158 …esp_ble_mesh_generic_client_cb_param_t *p_src_data = (esp_ble_mesh_generic_client_cb_param_t *)p_s… in btc_ble_mesh_generic_client_copy_req_data() local 161 if (!msg || !p_src_data || !p_dest_data) { in btc_ble_mesh_generic_client_copy_req_data() 166 if (p_src_data->params) { in btc_ble_mesh_generic_client_copy_req_data() 173 memcpy(p_dest_data->params, p_src_data->params, sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_generic_client_copy_req_data() 180 if (p_src_data->params) { in btc_ble_mesh_generic_client_copy_req_data() 181 switch (p_src_data->params->opcode) { in btc_ble_mesh_generic_client_copy_req_data() 184 if (p_src_data->status_cb.user_properties_status.property_ids) { in btc_ble_mesh_generic_client_copy_req_data() 185 length = p_src_data->status_cb.user_properties_status.property_ids->len; in btc_ble_mesh_generic_client_copy_req_data() 192 … p_src_data->status_cb.user_properties_status.property_ids->data, in btc_ble_mesh_generic_client_copy_req_data() 193 … p_src_data->status_cb.user_properties_status.property_ids->len); in btc_ble_mesh_generic_client_copy_req_data() [all …]
|
D | btc_ble_mesh_lighting_model.c | 114 … esp_ble_mesh_light_client_cb_param_t *p_src_data = (esp_ble_mesh_light_client_cb_param_t *)p_src; in btc_ble_mesh_lighting_client_copy_req_data() local 117 if (!msg || !p_src_data || !p_dest_data) { in btc_ble_mesh_lighting_client_copy_req_data() 122 if (p_src_data->params) { in btc_ble_mesh_lighting_client_copy_req_data() 129 memcpy(p_dest_data->params, p_src_data->params, sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_lighting_client_copy_req_data() 136 if (p_src_data->params) { in btc_ble_mesh_lighting_client_copy_req_data() 137 switch (p_src_data->params->opcode) { in btc_ble_mesh_lighting_client_copy_req_data() 141 if (p_src_data->status_cb.lc_property_status.property_value) { in btc_ble_mesh_lighting_client_copy_req_data() 142 length = p_src_data->status_cb.lc_property_status.property_value->len; in btc_ble_mesh_lighting_client_copy_req_data() 149 … p_src_data->status_cb.lc_property_status.property_value->data, in btc_ble_mesh_lighting_client_copy_req_data() 150 … p_src_data->status_cb.lc_property_status.property_value->len); in btc_ble_mesh_lighting_client_copy_req_data() [all …]
|
D | btc_ble_mesh_config_model.c | 122 esp_ble_mesh_cfg_client_cb_param_t *p_src_data = (esp_ble_mesh_cfg_client_cb_param_t *)p_src; in btc_ble_mesh_config_client_copy_req_data() local 125 if (!msg || !p_src_data || !p_dest_data) { in btc_ble_mesh_config_client_copy_req_data() 130 if (p_src_data->params) { in btc_ble_mesh_config_client_copy_req_data() 137 memcpy(p_dest_data->params, p_src_data->params, sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_config_client_copy_req_data() 144 if (p_src_data->params) { in btc_ble_mesh_config_client_copy_req_data() 145 switch (p_src_data->params->opcode) { in btc_ble_mesh_config_client_copy_req_data() 148 if (p_src_data->status_cb.comp_data_status.composition_data) { in btc_ble_mesh_config_client_copy_req_data() 149 length = p_src_data->status_cb.comp_data_status.composition_data->len; in btc_ble_mesh_config_client_copy_req_data() 156 … p_src_data->status_cb.comp_data_status.composition_data->data, in btc_ble_mesh_config_client_copy_req_data() 157 … p_src_data->status_cb.comp_data_status.composition_data->len); in btc_ble_mesh_config_client_copy_req_data() [all …]
|
D | btc_ble_mesh_ble.c | 22 esp_ble_mesh_ble_cb_param_t *p_src_data = (esp_ble_mesh_ble_cb_param_t *)p_src; in btc_ble_mesh_ble_copy_req_data() local 24 if (!msg || !p_src_data || !p_dst_data) { in btc_ble_mesh_ble_copy_req_data() 31 if (p_src_data->scan_ble_adv_pkt.data && p_src_data->scan_ble_adv_pkt.length) { in btc_ble_mesh_ble_copy_req_data() 32 p_dst_data->scan_ble_adv_pkt.length = p_src_data->scan_ble_adv_pkt.length; in btc_ble_mesh_ble_copy_req_data() 33 p_dst_data->scan_ble_adv_pkt.data = bt_mesh_calloc(p_src_data->scan_ble_adv_pkt.length); in btc_ble_mesh_ble_copy_req_data() 35 memcpy(p_dst_data->scan_ble_adv_pkt.data, p_src_data->scan_ble_adv_pkt.data, in btc_ble_mesh_ble_copy_req_data() 36 p_src_data->scan_ble_adv_pkt.length); in btc_ble_mesh_ble_copy_req_data()
|
D | btc_ble_mesh_health_model.c | 115 …esp_ble_mesh_health_client_cb_param_t *p_src_data = (esp_ble_mesh_health_client_cb_param_t *)p_src; in btc_ble_mesh_health_client_copy_req_data() local 118 if (!msg || !p_src_data || !p_dest_data) { in btc_ble_mesh_health_client_copy_req_data() 123 if (p_src_data->params) { in btc_ble_mesh_health_client_copy_req_data() 130 memcpy(p_dest_data->params, p_src_data->params, sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_health_client_copy_req_data() 137 if (p_src_data->params) { in btc_ble_mesh_health_client_copy_req_data() 138 switch (p_src_data->params->opcode) { in btc_ble_mesh_health_client_copy_req_data() 140 if (p_src_data->status_cb.current_status.fault_array) { in btc_ble_mesh_health_client_copy_req_data() 141 length = p_src_data->status_cb.current_status.fault_array->len; in btc_ble_mesh_health_client_copy_req_data() 148 p_src_data->status_cb.current_status.fault_array->data, in btc_ble_mesh_health_client_copy_req_data() 149 p_src_data->status_cb.current_status.fault_array->len); in btc_ble_mesh_health_client_copy_req_data() [all …]
|
D | btc_ble_mesh_time_scene_model.c | 114 …esp_ble_mesh_time_scene_client_cb_param_t *p_src_data = (esp_ble_mesh_time_scene_client_cb_param_t… in btc_ble_mesh_time_scene_client_copy_req_data() local 117 if (!msg || !p_src_data || !p_dest_data) { in btc_ble_mesh_time_scene_client_copy_req_data() 122 if (p_src_data->params) { in btc_ble_mesh_time_scene_client_copy_req_data() 129 memcpy(p_dest_data->params, p_src_data->params, sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_time_scene_client_copy_req_data() 136 if (p_src_data->params) { in btc_ble_mesh_time_scene_client_copy_req_data() 137 switch (p_src_data->params->opcode) { in btc_ble_mesh_time_scene_client_copy_req_data() 142 if (p_src_data->status_cb.scene_register_status.scenes) { in btc_ble_mesh_time_scene_client_copy_req_data() 143 length = p_src_data->status_cb.scene_register_status.scenes->len; in btc_ble_mesh_time_scene_client_copy_req_data() 150 p_src_data->status_cb.scene_register_status.scenes->data, in btc_ble_mesh_time_scene_client_copy_req_data() 151 p_src_data->status_cb.scene_register_status.scenes->len); in btc_ble_mesh_time_scene_client_copy_req_data()
|
D | btc_ble_mesh_prov.c | 235 esp_ble_mesh_model_cb_param_t *p_src_data = (esp_ble_mesh_model_cb_param_t *)p_src; in btc_ble_mesh_model_copy_req_data() local 237 if (!msg || !p_src_data || !p_dest_data) { in btc_ble_mesh_model_copy_req_data() 244 if (p_src_data->model_operation.ctx && p_src_data->model_operation.msg) { in btc_ble_mesh_model_copy_req_data() 246 …p_dest_data->model_operation.msg = p_src_data->model_operation.length ? (uint8_t *)bt_mesh_malloc(… in btc_ble_mesh_model_copy_req_data() 248 …memcpy(p_dest_data->model_operation.ctx, p_src_data->model_operation.ctx, sizeof(esp_ble_mesh_msg_… in btc_ble_mesh_model_copy_req_data() 252 if (p_src_data->model_operation.length) { in btc_ble_mesh_model_copy_req_data() 254 …memcpy(p_dest_data->model_operation.msg, p_src_data->model_operation.msg, p_src_data->model_operat… in btc_ble_mesh_model_copy_req_data() 263 if (p_src_data->client_recv_publish_msg.ctx && p_src_data->client_recv_publish_msg.msg) { in btc_ble_mesh_model_copy_req_data() 265 …data->client_recv_publish_msg.msg = p_src_data->client_recv_publish_msg.length ? (uint8_t *)bt_mes… in btc_ble_mesh_model_copy_req_data() 267 …memcpy(p_dest_data->client_recv_publish_msg.ctx, p_src_data->client_recv_publish_msg.ctx, sizeof(e… in btc_ble_mesh_model_copy_req_data() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/btc/profile/std/gap/ |
D | btc_gap_bt.c | 149 tBTA_DM_SEARCH_PARAM *p_src_data = (tBTA_DM_SEARCH_PARAM *) p_src; in search_devices_copy_cb() local 155 memcpy(p_dest_data->p_data, p_src_data->p_data, p_dest_data->len); in search_devices_copy_cb() 160 if (p_src_data->p_data->inq_res.p_eir) { in search_devices_copy_cb() 162 …memcpy(p_dest_data->p_data->inq_res.p_eir, p_src_data->p_data->inq_res.p_eir, HCI_EXT_INQ_RESPONSE… in search_devices_copy_cb() 168 … if (p_src_data->p_data->disc_res.raw_data_size && p_src_data->p_data->disc_res.p_raw_data) { in search_devices_copy_cb() 171 p_src_data->p_data->disc_res.p_raw_data, in search_devices_copy_cb() 172 p_src_data->p_data->disc_res.raw_data_size); in search_devices_copy_cb() 192 tBTA_DM_SEARCH_PARAM *p_src_data = (tBTA_DM_SEARCH_PARAM *) p_src; in search_service_record_copy_cb() local 199 memcpy(p_dest_data->p_data, p_src_data->p_data, p_dest_data->len); in search_service_record_copy_cb() 203 … if (p_src_data->p_data->disc_res.p_raw_data && p_src_data->p_data->disc_res.raw_data_size > 0) { in search_service_record_copy_cb() [all …]
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/btc/profile/std/hid/ |
D | btc_hd.c | 97 tBTA_HD *p_src_data = (tBTA_HD *)p_src; in bte_hd_arg_deep_copy() local 101 uint8_t *src_data = p_src_data->set_report.p_data; in bte_hd_arg_deep_copy() 103 p_dst_data->set_report.p_data = osi_malloc(p_src_data->set_report.len); in bte_hd_arg_deep_copy() 108 memcpy(p_dst_data->set_report.p_data, src_data, p_src_data->set_report.len); in bte_hd_arg_deep_copy() 113 uint8_t *src_data = p_src_data->intr_data.p_data; in bte_hd_arg_deep_copy() 115 p_dst_data->intr_data.p_data = osi_malloc(p_src_data->intr_data.len); in bte_hd_arg_deep_copy() 120 memcpy(p_dst_data->intr_data.p_data, src_data, p_src_data->intr_data.len); in bte_hd_arg_deep_copy()
|
D | btc_hh.c | 352 tBTA_HH *p_src_data = (tBTA_HH *)p_src; in bte_hh_arg_deep_copy() local 356 BT_HDR *src_hdr = p_src_data->hs_data.rsp_data.p_rpt_data; in bte_hh_arg_deep_copy()
|
/hal_espressif-3.5.0/components/bt/host/bluedroid/btc/profile/std/gatt/ |
D | btc_gattc.c | 115 tBTA_GATTC *p_src_data = (tBTA_GATTC *) p_src; in btc_gattc_copy_req_data() local 117 if (!p_src_data || !p_dest_data || !msg) { in btc_gattc_copy_req_data() 126 if (p_src_data->read.p_value && p_src_data->read.p_value->p_value) { in btc_gattc_copy_req_data() 127 …ead.p_value = (tBTA_GATT_UNFMT *)osi_malloc(sizeof(tBTA_GATT_UNFMT) + p_src_data->read.p_value->l… in btc_gattc_copy_req_data() 130 p_dest_data->read.p_value->len = p_src_data->read.p_value->len; in btc_gattc_copy_req_data() 131 …memcpy(p_dest_data->read.p_value->p_value, p_src_data->read.p_value->p_value, p_src_data->read.p_v… in btc_gattc_copy_req_data() 139 if (p_src_data->get_addr_list.bda_list != NULL) { in btc_gattc_copy_req_data() 140 uint8_t num_addr = p_src_data->get_addr_list.num_addr; in btc_gattc_copy_req_data() 143 …memcpy(p_dest_data->get_addr_list.bda_list, p_src_data->get_addr_list.bda_list, sizeof(BD_ADDR) * … in btc_gattc_copy_req_data()
|
D | btc_gatts.c | 507 tBTA_GATTS *p_src_data = (tBTA_GATTS *) p_src; in btc_gatts_cb_param_copy_req() local 509 if (!p_src_data || !p_dest_data) { in btc_gatts_cb_param_copy_req() 514 memcpy(p_dest_data, p_src_data, sizeof(tBTA_GATTS)); in btc_gatts_cb_param_copy_req() 524 memcpy(p_dest_data->req_data.p_data, p_src_data->req_data.p_data, in btc_gatts_cb_param_copy_req()
|