Home
last modified time | relevance | path

Searched refs:p_dest_data (Results 1 – 10 of 10) sorted by relevance

/hal_espressif-3.6.0/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_sensor_model.c241 …esp_ble_mesh_sensor_client_cb_param_t *p_dest_data = (esp_ble_mesh_sensor_client_cb_param_t *)p_de… 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()
251 p_dest_data->params = bt_mesh_malloc(sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_sensor_client_copy_req_data()
252 if (!p_dest_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()
270 p_dest_data->status_cb.descriptor_status.descriptor = bt_mesh_alloc_buf(length); in btc_ble_mesh_sensor_client_copy_req_data()
271 if (!p_dest_data->status_cb.descriptor_status.descriptor) { in btc_ble_mesh_sensor_client_copy_req_data()
275 net_buf_simple_add_mem(p_dest_data->status_cb.descriptor_status.descriptor, in btc_ble_mesh_sensor_client_copy_req_data()
285p_dest_data->status_cb.cadence_status.sensor_cadence_value = bt_mesh_alloc_buf(length); in btc_ble_mesh_sensor_client_copy_req_data()
286 if (!p_dest_data->status_cb.cadence_status.sensor_cadence_value) { in btc_ble_mesh_sensor_client_copy_req_data()
[all …]
Dbtc_ble_mesh_generic_model.c157 …esp_ble_mesh_generic_client_cb_param_t *p_dest_data = (esp_ble_mesh_generic_client_cb_param_t *)p_… 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()
167 p_dest_data->params = bt_mesh_malloc(sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_generic_client_copy_req_data()
168 if (!p_dest_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()
186p_dest_data->status_cb.user_properties_status.property_ids = bt_mesh_alloc_buf(length); in btc_ble_mesh_generic_client_copy_req_data()
187 if (!p_dest_data->status_cb.user_properties_status.property_ids) { in btc_ble_mesh_generic_client_copy_req_data()
191 … net_buf_simple_add_mem(p_dest_data->status_cb.user_properties_status.property_ids, in btc_ble_mesh_generic_client_copy_req_data()
201p_dest_data->status_cb.user_property_status.property_value = bt_mesh_alloc_buf(length); in btc_ble_mesh_generic_client_copy_req_data()
202 if (!p_dest_data->status_cb.user_property_status.property_value) { in btc_ble_mesh_generic_client_copy_req_data()
[all …]
Dbtc_ble_mesh_lighting_model.c113 …esp_ble_mesh_light_client_cb_param_t *p_dest_data = (esp_ble_mesh_light_client_cb_param_t *)p_dest; 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()
123 p_dest_data->params = bt_mesh_malloc(sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_lighting_client_copy_req_data()
124 if (!p_dest_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()
143p_dest_data->status_cb.lc_property_status.property_value = bt_mesh_alloc_buf(length); in btc_ble_mesh_lighting_client_copy_req_data()
144 if (!p_dest_data->status_cb.lc_property_status.property_value) { in btc_ble_mesh_lighting_client_copy_req_data()
148 net_buf_simple_add_mem(p_dest_data->status_cb.lc_property_status.property_value, in btc_ble_mesh_lighting_client_copy_req_data()
389 …esp_ble_mesh_lighting_server_cb_param_t *p_dest_data = (esp_ble_mesh_lighting_server_cb_param_t *)… in btc_ble_mesh_lighting_server_copy_req_data() local
393 if (!msg || !p_src_data || !p_dest_data) { in btc_ble_mesh_lighting_server_copy_req_data()
[all …]
Dbtc_ble_mesh_config_model.c121 esp_ble_mesh_cfg_client_cb_param_t *p_dest_data = (esp_ble_mesh_cfg_client_cb_param_t *)p_dest; 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()
131 p_dest_data->params = bt_mesh_malloc(sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_config_client_copy_req_data()
132 if (!p_dest_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()
150p_dest_data->status_cb.comp_data_status.composition_data = bt_mesh_alloc_buf(length); in btc_ble_mesh_config_client_copy_req_data()
151 if (!p_dest_data->status_cb.comp_data_status.composition_data) { in btc_ble_mesh_config_client_copy_req_data()
155 net_buf_simple_add_mem(p_dest_data->status_cb.comp_data_status.composition_data, in btc_ble_mesh_config_client_copy_req_data()
166 p_dest_data->status_cb.model_sub_list.sub_addr = bt_mesh_alloc_buf(length); in btc_ble_mesh_config_client_copy_req_data()
167 if (!p_dest_data->status_cb.model_sub_list.sub_addr) { in btc_ble_mesh_config_client_copy_req_data()
[all …]
Dbtc_ble_mesh_health_model.c114 …esp_ble_mesh_health_client_cb_param_t *p_dest_data = (esp_ble_mesh_health_client_cb_param_t *)p_de… 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()
124 p_dest_data->params = bt_mesh_malloc(sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_health_client_copy_req_data()
125 if (!p_dest_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()
142 p_dest_data->status_cb.current_status.fault_array = bt_mesh_alloc_buf(length); in btc_ble_mesh_health_client_copy_req_data()
143 if (!p_dest_data->status_cb.current_status.fault_array) { in btc_ble_mesh_health_client_copy_req_data()
147 net_buf_simple_add_mem(p_dest_data->status_cb.current_status.fault_array, in btc_ble_mesh_health_client_copy_req_data()
158 p_dest_data->status_cb.fault_status.fault_array = bt_mesh_alloc_buf(length); in btc_ble_mesh_health_client_copy_req_data()
159 if (!p_dest_data->status_cb.fault_status.fault_array) { in btc_ble_mesh_health_client_copy_req_data()
[all …]
Dbtc_ble_mesh_time_scene_model.c113 …esp_ble_mesh_time_scene_client_cb_param_t *p_dest_data = (esp_ble_mesh_time_scene_client_cb_param_… 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()
123 p_dest_data->params = bt_mesh_malloc(sizeof(esp_ble_mesh_client_common_param_t)); in btc_ble_mesh_time_scene_client_copy_req_data()
124 if (!p_dest_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()
144 p_dest_data->status_cb.scene_register_status.scenes = bt_mesh_alloc_buf(length); in btc_ble_mesh_time_scene_client_copy_req_data()
145 if (!p_dest_data->status_cb.scene_register_status.scenes) { in btc_ble_mesh_time_scene_client_copy_req_data()
149 net_buf_simple_add_mem(p_dest_data->status_cb.scene_register_status.scenes, in btc_ble_mesh_time_scene_client_copy_req_data()
Dbtc_ble_mesh_prov.c234 esp_ble_mesh_model_cb_param_t *p_dest_data = (esp_ble_mesh_model_cb_param_t *)p_dest; 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()
245 p_dest_data->model_operation.ctx = bt_mesh_malloc(sizeof(esp_ble_mesh_msg_ctx_t)); in btc_ble_mesh_model_copy_req_data()
246p_dest_data->model_operation.msg = p_src_data->model_operation.length ? (uint8_t *)bt_mesh_malloc(… in btc_ble_mesh_model_copy_req_data()
247 if (p_dest_data->model_operation.ctx) { 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()
253 if (p_dest_data->model_operation.msg) { 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()
264p_dest_data->client_recv_publish_msg.ctx = bt_mesh_malloc(sizeof(esp_ble_mesh_msg_ctx_t)); in btc_ble_mesh_model_copy_req_data()
265p_dest_data->client_recv_publish_msg.msg = p_src_data->client_recv_publish_msg.length ? (uint8_t *… in btc_ble_mesh_model_copy_req_data()
[all …]
/hal_espressif-3.6.0/components/bt/host/bluedroid/btc/profile/std/gap/
Dbtc_gap_bt.c148 tBTA_DM_SEARCH_PARAM *p_dest_data = (tBTA_DM_SEARCH_PARAM *) p_dest; in search_devices_copy_cb() local
153 p_dest_data->p_data = (void *)osi_malloc(p_dest_data->len); in search_devices_copy_cb()
154 memset(p_dest_data->p_data, 0x00, p_dest_data->len); in search_devices_copy_cb()
155 memcpy(p_dest_data->p_data, p_src_data->p_data, p_dest_data->len); in search_devices_copy_cb()
157 if ( p_dest_data->len > sizeof(tBTA_DM_SEARCH)){ in search_devices_copy_cb()
158 switch (p_dest_data->event) { in search_devices_copy_cb()
161p_dest_data->p_data->inq_res.p_eir = (UINT8 *)(p_dest_data->p_data) + sizeof(tBTA_DM_SEARCH); 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()
169p_dest_data->p_data->disc_res.p_raw_data = (UINT8 *)(p_dest_data->p_data) + sizeof(tBTA_DM_SEARCH); in search_devices_copy_cb()
170 memcpy(p_dest_data->p_data->disc_res.p_raw_data, in search_devices_copy_cb()
[all …]
/hal_espressif-3.6.0/components/bt/host/bluedroid/btc/profile/std/gatt/
Dbtc_gattc.c114 tBTA_GATTC *p_dest_data = (tBTA_GATTC *) p_dest; in btc_gattc_copy_req_data() local
117 if (!p_src_data || !p_dest_data || !msg) { in btc_gattc_copy_req_data()
127p_dest_data->read.p_value = (tBTA_GATT_UNFMT *)osi_malloc(sizeof(tBTA_GATT_UNFMT) + p_src_data->r… in btc_gattc_copy_req_data()
128 p_dest_data->read.p_value->p_value = (uint8_t *)(p_dest_data->read.p_value + 1); in btc_gattc_copy_req_data()
129 if (p_dest_data->read.p_value && p_dest_data->read.p_value->p_value) { 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()
141p_dest_data->get_addr_list.bda_list = (BD_ADDR *)osi_malloc(sizeof(BD_ADDR) * num_addr); in btc_gattc_copy_req_data()
142 if (p_dest_data->get_addr_list.bda_list) { 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()
Dbtc_gatts.c506 tBTA_GATTS *p_dest_data = (tBTA_GATTS *) p_dest; 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()
522 p_dest_data->req_data.p_data = osi_malloc(sizeof(tBTA_GATTS_REQ_DATA)); in btc_gatts_cb_param_copy_req()
523 if (p_dest_data->req_data.p_data != NULL) { 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()