Home
last modified time | relevance | path

Searched refs:cb_data (Results 1 – 21 of 21) sorted by relevance

/hal_espressif-3.7.0/components/bt/host/bluedroid/bta/gatt/
Dbta_gatts_act.c175 tBTA_GATTS cb_data; in bta_gatts_register() local
201 cb_data.reg_oper.server_if = BTA_GATTS_INVALID_IF; in bta_gatts_register()
203 memcpy(&cb_data.reg_oper.uuid, &p_msg->api_reg.app_uuid, sizeof(tBT_UUID)); in bta_gatts_register()
211 cb_data.reg_oper.server_if = in bta_gatts_register()
233 cb_data.reg_oper.status = status; in bta_gatts_register()
235 (*p_msg->api_reg.p_cback)(BTA_GATTS_REG_EVT, &cb_data); in bta_gatts_register()
274 tBTA_GATTS cb_data; in bta_gatts_deregister() local
276 cb_data.reg_oper.server_if = p_msg->api_dereg.server_if; in bta_gatts_deregister()
277 cb_data.reg_oper.status = status; in bta_gatts_deregister()
289 cb_data.reg_oper.status = status; in bta_gatts_deregister()
[all …]
Dbta_gattc_act.c191 tBTA_GATTC cb_data; in bta_gattc_register() local
199 memset(&cb_data, 0, sizeof(cb_data)); in bta_gattc_register()
200 cb_data.reg_oper.status = BTA_GATT_NO_RESOURCES; in bta_gattc_register()
218 cb_data.reg_oper.client_if = p_cb->cl_rcb[i].client_if; in bta_gattc_register()
240 memcpy(&(cb_data.reg_oper.app_uuid), p_app_uuid, sizeof(tBT_UUID)); in bta_gattc_register()
242 cb_data.reg_oper.status = status; in bta_gattc_register()
243 (*p_data->api_reg.p_cback)(BTA_GATTC_REG_EVT, (tBTA_GATTC *)&cb_data); in bta_gattc_register()
368 tBTA_GATTC cb_data; in bta_gattc_process_api_open_cancel() local
382 cb_data.status = BTA_GATT_ERROR; in bta_gattc_process_api_open_cancel()
383 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_process_api_open_cancel()
[all …]
Dbta_gattc_utils.c474 tBTA_GATTC cb_data = {0}; in bta_gattc_enqueue() local
485 cb_data.write.status = BTA_GATT_CONGESTED; in bta_gattc_enqueue()
486 cb_data.write.handle = p_data->api_write.handle; in bta_gattc_enqueue()
487 cb_data.write.conn_id = p_clcb->bta_conn_id; in bta_gattc_enqueue()
488 cb_data.write.offset = p_data->api_write.offset; in bta_gattc_enqueue()
491 ( *p_clcb->p_rcb->p_cback)(BTA_GATTC_PREP_WRITE_EVT, (tBTA_GATTC *)&cb_data); in bta_gattc_enqueue()
502 cb_data.status = GATT_BUSY; in bta_gattc_enqueue()
503 cb_data.queue_full.conn_id = p_clcb->bta_conn_id; in bta_gattc_enqueue()
504 cb_data.queue_full.is_full = TRUE; in bta_gattc_enqueue()
507 ( *p_clcb->p_rcb->p_cback)(BTA_GATTC_QUEUE_FULL_EVT, (tBTA_GATTC *)&cb_data); in bta_gattc_enqueue()
[all …]
Dbta_gattc_cache.c630 tBTA_GATTC cb_data; in bta_gattc_explore_srvc() local
631 cb_data.dis_cmpl.status = p_clcb->status; in bta_gattc_explore_srvc()
632 cb_data.dis_cmpl.conn_id = conn_id; in bta_gattc_explore_srvc()
633 ( *p_clcb->p_rcb->p_cback)(BTA_GATTC_DIS_SRVC_CMPL_EVT, &cb_data); in bta_gattc_explore_srvc()
850 tBTA_GATTC_CB_DATA *cb_data = user_data; in bta_gattc_sdp_callback() local
851 tBTA_GATTC_SERV *p_srvc_cb = bta_gattc_find_scb_by_cid(cb_data->sdp_conn_id); in bta_gattc_sdp_callback()
856 p_sdp_rec = SDP_FindServiceInDb(cb_data->p_sdp_db, 0, p_sdp_rec); in bta_gattc_sdp_callback()
892 bta_gattc_explore_srvc(cb_data->sdp_conn_id, p_srvc_cb); in bta_gattc_sdp_callback()
900 osi_free(cb_data->p_sdp_db); in bta_gattc_sdp_callback()
901 osi_free(cb_data); in bta_gattc_sdp_callback()
[all …]
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/
Dadv.c129 void *cb_data) in adv_send_start() argument
132 cb->start(duration, err, cb_data); in adv_send_start()
137 void *cb_data) in adv_send_end() argument
140 cb->end(err, cb_data); in adv_send_end()
149 void *cb_data = BLE_MESH_ADV(buf)->cb_data; in adv_send() local
184 struct ble_adv_tx *tx = cb_data; in adv_send()
213 adv_send_start(duration, err, cb, cb_data); in adv_send()
224 adv_send_end(err, cb, cb_data); in adv_send()
463 void *cb_data) in bt_mesh_adv_send() argument
473 BLE_MESH_ADV(buf)->cb_data = cb_data; in bt_mesh_adv_send()
[all …]
Dadv.h46 void *cb_data; member
76 void *cb_data);
82 void *cb_data, uint16_t src, uint16_t dst);
Dnet.h353 const struct bt_mesh_send_cb *cb, void *cb_data);
357 void *cb_data);
404 void *cb_data) in send_cb_finalize() argument
411 cb->start(0, 0, cb_data); in send_cb_finalize()
415 cb->end(0, cb_data); in send_cb_finalize()
Dtransport.c84 void *cb_data; member
190 const struct bt_mesh_send_cb *cb, void *cb_data) in send_unseg() argument
234 send_cb_finalize(cb, cb_data); in send_unseg()
240 return bt_mesh_net_send(tx, buf, cb, cb_data); in send_unseg()
275 tx->cb_data = NULL; in seg_tx_reset()
306 void *cb_data = tx->cb_data; in seg_tx_complete() local
311 cb->end(err, cb_data); in seg_tx_complete()
335 tx->cb->start(duration, err, tx->cb_data); in seg_first_send_start()
421 const struct bt_mesh_send_cb *cb, void *cb_data) in send_seg() argument
470 tx->cb_data = cb_data; in send_seg()
[all …]
Dtransport.h107 void *cb_data);
110 const struct bt_mesh_send_cb *cb, void *cb_data);
Dnet.c786 void *cb_data) in bt_mesh_net_resend() argument
833 send_cb_finalize(cb, cb_data); in bt_mesh_net_resend()
839 send_cb_finalize(cb, cb_data); in bt_mesh_net_resend()
843 bt_mesh_adv_send(buf, cb, cb_data); in bt_mesh_net_resend()
917 const struct bt_mesh_send_cb *cb, void *cb_data) in bt_mesh_net_send() argument
947 send_cb_finalize(cb, cb_data); in bt_mesh_net_send()
962 send_cb_finalize(cb, cb_data); in bt_mesh_net_send()
974 cb->start(0, 0, cb_data); in bt_mesh_net_send()
978 cb->end(0, cb_data); in bt_mesh_net_send()
987 bt_mesh_adv_send(buf, cb, cb_data); in bt_mesh_net_send()
Daccess.c760 const struct bt_mesh_send_cb *cb, void *cb_data) in model_send() argument
794 return bt_mesh_trans_send(tx, msg, cb, cb_data); in model_send()
800 const struct bt_mesh_send_cb *cb, void *cb_data) in bt_mesh_model_send() argument
827 return model_send(model, &tx, false, msg, cb, cb_data); in bt_mesh_model_send()
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/smp/
Dsmp_act.c116 tSMP_EVT_DATA cb_data; in smp_send_app_cback() local
122 cb_data.io_req.auth_req = p_cb->peer_auth_req; in smp_send_app_cback()
123 cb_data.io_req.oob_data = SMP_OOB_NONE; in smp_send_app_cback()
124 cb_data.io_req.io_cap = SMP_DEFAULT_IO_CAPS; in smp_send_app_cback()
125 cb_data.io_req.max_key_size = SMP_MAX_ENC_KEY_SIZE; in smp_send_app_cback()
126 cb_data.io_req.init_keys = p_cb->local_i_key ; in smp_send_app_cback()
127 cb_data.io_req.resp_keys = p_cb->local_r_key ; in smp_send_app_cback()
128 SMP_TRACE_DEBUG ( "io_cap = %d", cb_data.io_req.io_cap); in smp_send_app_cback()
132 cb_data.passkey = p_data->passkey; in smp_send_app_cback()
135 cb_data.req_oob_type = p_data->req_oob_type; in smp_send_app_cback()
[all …]
/hal_espressif-3.7.0/components/bt/common/osi/
Dalarm.c34 void *cb_data; member
151 arg.cb_data = alarm->cb_data; in alarm_cb_handler()
183 timer_id->cb_data = data; in osi_alarm_new()
/hal_espressif-3.7.0/components/bt/common/btc/include/btc/
Dbtc_alarm.h17 void *cb_data; member
/hal_espressif-3.7.0/components/bt/common/btc/core/
Dbtc_alarm.c18 arg->cb(arg->cb_data); in btc_alarm_handler()
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_core/include/
Dmesh_access.h496 void (*start)(uint16_t duration, int err, void *cb_data);
497 void (*end)(int err, void *cb_data);
523 void *cb_data);
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_models/client/include/
Dclient_common.h76 void *cb_data; /* User defined callback value */ member
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_models/client/
Dclient_common.c225 static void msg_send_start(uint16_t duration, int err, void *cb_data) in msg_send_start() argument
227 bt_mesh_client_node_t *node = cb_data; in msg_send_start()
289 err = bt_mesh_model_send(param->model, &param->ctx, msg, param->cb, param->cb_data); in bt_mesh_client_send_msg()
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/gatt/
Dgatt_utils.c2266 tGATT_CL_COMPLETE cb_data; in gatt_end_operation() local
2277 memset(&cb_data.att_value, 0, sizeof(tGATT_VALUE)); in gatt_end_operation()
2281 cb_data.att_value.handle = p_clcb->s_handle; in gatt_end_operation()
2282 cb_data.att_value.len = p_clcb->counter; in gatt_end_operation()
2285 memcpy (cb_data.att_value.value, p_data, cb_data.att_value.len); in gatt_end_operation()
2290 memset(&cb_data.att_value, 0, sizeof(tGATT_VALUE)); in gatt_end_operation()
2291 cb_data.handle = in gatt_end_operation()
2292 cb_data.att_value.handle = p_clcb->s_handle; in gatt_end_operation()
2295 cb_data.att_value = *((tGATT_VALUE *) p_data); in gatt_end_operation()
2303 cb_data.mtu = p_clcb->p_tcb->payload_size; in gatt_end_operation()
[all …]
/hal_espressif-3.7.0/components/bt/esp_ble_mesh/mesh_common/
Dmesh_timer.c26 void *cb_data; member
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/btm/
Dbtm_ble.c1279 tBTM_LE_EVT_DATA cb_data; in btm_sec_save_le_key() local
1398 cb_data.key.p_key_value = p_keys; in btm_sec_save_le_key()
1399 cb_data.key.key_type = key_type; in btm_sec_save_le_key()
1401 (*btm_cb.api.p_le_callback) (BTM_LE_KEY_EVT, bd_addr, &cb_data); in btm_sec_save_le_key()