Home
last modified time | relevance | path

Searched refs:p_cback (Results 1 – 25 of 104) sorted by relevance

12345

/system/bt/bta/jv/
Dbta_jv_api.c60 tBTA_JV_STATUS BTA_JvEnable(tBTA_JV_DM_CBACK *p_cback) in BTA_JvEnable() argument
66 if(p_cback && FALSE == bta_sys_is_register(BTA_ID_JV)) in BTA_JvEnable()
78 if (p_cback) { in BTA_JvEnable()
82 p_buf->p_cback = p_cback; in BTA_JvEnable()
312 BD_ADDR peer_bd_addr, tBTA_JV_L2CAP_CBACK *p_cback, void *user_data) in BTA_JvL2capConnectLE() argument
316 if (p_cback == NULL) in BTA_JvL2capConnectLE()
339 p_msg->p_cback = p_cback; in BTA_JvL2capConnectLE()
365 BD_ADDR peer_bd_addr, tBTA_JV_L2CAP_CBACK *p_cback, void *user_data) in BTA_JvL2capConnect() argument
369 if (p_cback == NULL) in BTA_JvL2capConnect()
393 p_msg->p_cback = p_cback; in BTA_JvL2capConnect()
[all …]
Dbta_jv_act.c59 tBTA_JV_L2CAP_CBACK *p_cback; member
364 p_cb->p_cback = NULL; in bta_jv_free_rfc_cb()
398 p_cb->p_cback = NULL; in bta_jv_free_l2c_cb()
477 if (hi < BTA_JV_MAX_RFC_CONN && bta_jv_cb.rfc_cb[hi].p_cback && si in bta_jv_free_set_pm_profile_cb()
664 bta_jv_cb.p_dm_cback = p_data->enable.p_cback; in bta_jv_enable()
993 if (gap_handle >= BTA_JV_MAX_L2C_CONN && !p_cb->p_cback) in bta_jv_l2cap_client_cback()
1006 p_cb->p_cback(BTA_JV_L2CAP_OPEN_EVT, &evt_data, p_cb->user_data); in bta_jv_l2cap_client_cback()
1013 p_cb->p_cback(BTA_JV_L2CAP_CLOSE_EVT, &evt_data, p_cb->user_data); in bta_jv_l2cap_client_cback()
1014 p_cb->p_cback = NULL; in bta_jv_l2cap_client_cback()
1021 p_cb->p_cback(BTA_JV_L2CAP_DATA_IND_EVT, &evt_data, p_cb->user_data); in bta_jv_l2cap_client_cback()
[all …]
Dbta_jv_int.h76 tBTA_JV_DM_CBACK *p_cback; member
122 tBTA_JV_L2CAP_CBACK *p_cback; /* the callback function */ member
153 tBTA_JV_RFCOMM_CBACK *p_cback; /* the callback function */ member
179 tBTA_JV_L2CAP_CBACK *p_cback; member
199 tBTA_JV_L2CAP_CBACK *p_cback; member
217 tBTA_JV_L2CAP_CBACK *p_cback; member
242 tBTA_JV_L2CAP_CBACK *p_cback; member
256 tBTA_JV_RFCOMM_CBACK *p_cback; member
269 tBTA_JV_RFCOMM_CBACK *p_cback; member
/system/bt/bta/sys/
Dbta_sys_conn.c42 void bta_sys_rm_register(tBTA_SYS_CONN_CBACK * p_cback) in bta_sys_rm_register() argument
44 bta_sys_cb.prm_cb = p_cback; in bta_sys_rm_register()
58 void bta_sys_policy_register(tBTA_SYS_CONN_CBACK * p_cback) in bta_sys_policy_register() argument
60 bta_sys_cb.p_policy_cb = p_cback; in bta_sys_policy_register()
73 void bta_sys_role_chg_register(tBTA_SYS_CONN_CBACK * p_cback) in bta_sys_role_chg_register() argument
75 bta_sys_cb.p_role_cb = p_cback; in bta_sys_role_chg_register()
88 void bta_sys_ssr_cfg_register(tBTA_SYS_SSR_CFG_CBACK * p_cback) in bta_sys_ssr_cfg_register() argument
90 bta_sys_cb.p_ssr_cb = p_cback; in bta_sys_ssr_cfg_register()
121 void bta_sys_collision_register(UINT8 bta_id, tBTA_SYS_CONN_CBACK *p_cback) in bta_sys_collision_register() argument
131 bta_sys_cb.colli_reg.p_coll_cback[index] = p_cback; in bta_sys_collision_register()
[all …]
Dbta_sys.h239 extern void bta_sys_rm_register(tBTA_SYS_CONN_CBACK * p_cback);
240 extern void bta_sys_pm_register(tBTA_SYS_CONN_CBACK * p_cback);
242 extern void bta_sys_policy_register(tBTA_SYS_CONN_CBACK * p_cback);
243 extern void bta_sys_sco_register(tBTA_SYS_CONN_CBACK * p_cback);
258 extern void bta_sys_ssr_cfg_register(tBTA_SYS_SSR_CFG_CBACK * p_cback);
262 extern void bta_sys_role_chg_register(tBTA_SYS_CONN_CBACK * p_cback);
264 extern void bta_sys_collision_register(UINT8 bta_id, tBTA_SYS_CONN_CBACK *p_cback);
268 extern void bta_sys_eir_register(tBTA_SYS_EIR_CBACK * p_cback);
/system/bt/bta/gatt/
Dbta_gatts_act.c225 p_cb->rcb[first_unuse].p_cback = p_msg->api_reg.p_cback; in bta_gatts_register()
246 if (p_msg->api_reg.p_cback) in bta_gatts_register()
247 (*p_msg->api_reg.p_cback)(BTA_GATTS_REG_EVT, &cb_data); in bta_gatts_register()
286 tBTA_GATTS_CBACK *p_cback = NULL; in bta_gatts_deregister() local
297 p_cback = p_cb->rcb[i].p_cback; in bta_gatts_deregister()
310 if (p_cback) in bta_gatts_deregister()
312 (*p_cback)(BTA_GATTS_DEREG_EVT, &cb_data); in bta_gatts_deregister()
374 if (p_cb->rcb[rcb_idx].p_cback) in bta_gatts_create_srvc()
375 (* p_cb->rcb[rcb_idx].p_cback)(BTA_GATTS_CREATE_EVT, &cb_data); in bta_gatts_create_srvc()
413 if (p_rcb->p_cback) in bta_gatts_add_include_srvc()
[all …]
Dbta_gattc_act.c214 p_cb->cl_rcb[i].p_cback = p_data->api_reg.p_cback; in bta_gattc_register()
233 if (p_data->api_reg.p_cback) in bta_gattc_register()
239 (*p_data->api_reg.p_cback)(BTA_GATTC_REG_EVT, (tBTA_GATTC *)&cb_data); in bta_gattc_register()
399 if (p_clreg && p_clreg->p_cback) in bta_gattc_process_api_open_cancel()
402 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_process_api_open_cancel()
430 if (p_clreg && p_clreg->p_cback) in bta_gattc_process_enc_cmpl()
437 (*p_clreg->p_cback)(BTA_GATTC_ENC_CMPL_CB_EVT, &cb_data); in bta_gattc_process_enc_cmpl()
457 if ( p_clcb && p_clcb->p_rcb && p_clcb->p_rcb->p_cback ) in bta_gattc_cancel_open_error()
458 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_error()
628 if (p_clreg && p_clreg->p_cback) in bta_gattc_cancel_bk_conn()
[all …]
/system/bt/bta/mce/
Dbta_mce_api.c60 tBTA_MCE_STATUS BTA_MceEnable(tBTA_MCE_DM_CBACK *p_cback) in BTA_MceEnable() argument
66 if (p_cback && FALSE == bta_sys_is_register(BTA_ID_MCE)) { in BTA_MceEnable()
72 if (p_cback) { in BTA_MceEnable()
76 p_buf->p_cback = p_cback; in BTA_MceEnable()
/system/bt/bta/sdp/
Dbta_sdp_api.c58 tBTA_SDP_STATUS BTA_SdpEnable(tBTA_SDP_DM_CBACK *p_cback) in BTA_SdpEnable() argument
63 if(p_cback && FALSE == bta_sys_is_register(BTA_ID_SDP)) in BTA_SdpEnable()
70 if (p_cback) { in BTA_SdpEnable()
74 p_buf->p_cback = p_cback; in BTA_SdpEnable()
/system/bt/stack/gap/
Dgap_ble.c158 if (p_q->p_cback != NULL) in gap_ble_dealloc_clcb()
159 (*p_q->p_cback)(FALSE, p_clcb->bda, 0, NULL); in gap_ble_dealloc_clcb()
177 BOOLEAN gap_ble_enqueue_request (tGAP_CLCB *p_clcb, UINT16 uuid, tGAP_BLE_CMPL_CBACK *p_cback) in gap_ble_enqueue_request() argument
181 p_q->p_cback = p_cback; in gap_ble_enqueue_request()
197 BOOLEAN gap_ble_dequeue_request (tGAP_CLCB *p_clcb, UINT16 * p_uuid, tGAP_BLE_CMPL_CBACK **p_cback) in gap_ble_dequeue_request() argument
203 *p_cback = p_q->p_cback; in gap_ble_dequeue_request()
516 if (gap_ble_dequeue_request(p_clcb, &uuid, &p_clcb->p_cback)) in gap_ble_send_cl_read_request()
547 tGAP_BLE_CMPL_CBACK *p_cback = p_clcb->p_cback; in gap_ble_cl_op_cmpl() local
553 p_clcb->p_cback=NULL; in gap_ble_cl_op_cmpl()
555 if (p_cback && op) in gap_ble_cl_op_cmpl()
[all …]
Dgap_int.h43 tGAP_CALLBACK *p_cback; member
122 tGAP_BLE_CMPL_CBACK *p_cback; member
128 tGAP_BLE_CMPL_CBACK *p_cback; member
/system/bt/bta/hf_client/
Dbta_hf_client_act.c84 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_REGISTER_EVT, &evt); in bta_hf_client_register()
229 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_OPEN_EVT, &evt); in bta_hf_client_cback_open()
406 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_CLOSE_EVT, NULL); in bta_hf_client_rfc_close()
553 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_CONN_EVT, &evt); in bta_hf_client_svc_conn_open()
575 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_IND_EVT, &evt); in bta_hf_client_ind()
597 (*bta_hf_client_cb.p_cback)(type, &evt); in bta_hf_client_evt_val()
619 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_OPERATOR_NAME_EVT, &evt); in bta_hf_client_operator_name()
642 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_CLIP_EVT, &evt); in bta_hf_client_clip()
664 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_CCWA_EVT, &evt); in bta_hf_client_ccwa()
686 (*bta_hf_client_cb.p_cback)(BTA_HF_CLIENT_AT_RESULT_EVT, &evt); in bta_hf_client_at_result()
[all …]
/system/bt/bta/hl/
Dbta_hl_main.c541 if (p_data->api_enable.p_cback) in bta_hl_api_enable()
542 p_data->api_enable.p_cback(BTA_HL_CTRL_ENABLE_CFM_EVT, (tBTA_HL_CTRL *) &evt_data); in bta_hl_api_enable()
550 p_cb->p_ctrl_cback = p_data->api_enable.p_cback; in bta_hl_api_enable()
552 if (p_data->api_enable.p_cback) in bta_hl_api_enable()
553 p_data->api_enable.p_cback(BTA_HL_CTRL_ENABLE_CFM_EVT, (tBTA_HL_CTRL *) &evt_data); in bta_hl_api_enable()
621 if (p_acb->p_cback) in bta_hl_api_update()
623 p_acb->p_cback(BTA_HL_DEREGISTER_CFM_EVT, (tBTA_HL *) &evt_data); in bta_hl_api_update()
651 if (p_data->api_reg.p_cback) in bta_hl_api_update()
653 p_data->api_reg.p_cback(BTA_HL_REGISTER_CFM_EVT, (tBTA_HL *) &evt_data); in bta_hl_api_update()
664 if (p_data->api_reg.p_cback) in bta_hl_api_update()
[all …]
Dbta_hl_api.c69 p_buf->p_cback = p_ctrl_cback; in BTA_HlEnable()
108 BOOLEAN is_register, tBTA_HL_CBACK *p_cback) in BTA_HlUpdate() argument
121 p_buf->p_cback = p_cback; in BTA_HlUpdate()
157 tBTA_HL_CBACK *p_cback) in BTA_HlRegister() argument
165 p_buf->p_cback = p_cback; in BTA_HlRegister()
/system/bt/bta/pan/
Dbta_pan_api.c57 void BTA_PanEnable(tBTA_PAN_CBACK p_cback) in BTA_PanEnable() argument
66 p_buf->p_cback = p_cback; in BTA_PanEnable()
192 void BTA_PanEnable(tBTA_PAN_CBACK p_cback) in BTA_PanEnable() argument
194 UNUSED(p_cback); in BTA_PanEnable()
/system/bt/stack/btm/
Dbtm_ble_addr.c149 tBTM_BLE_ADDR_CBACK *p_cback = p_cb->p_generate_cback; in btm_gen_non_resolve_paddr_cmpl() local
166 if (p_cback) in btm_gen_non_resolve_paddr_cmpl()
167 (* p_cback)(static_random, p_data); in btm_gen_non_resolve_paddr_cmpl()
172 if (p_cback) in btm_gen_non_resolve_paddr_cmpl()
173 (* p_cback)(NULL, p_data); in btm_gen_non_resolve_paddr_cmpl()
186 void btm_gen_non_resolvable_private_addr (tBTM_BLE_ADDR_CBACK *p_cback, void *p) in btm_gen_non_resolvable_private_addr() argument
195 p_mgnt_cb->p_generate_cback = p_cback; in btm_gen_non_resolvable_private_addr()
359 void btm_ble_resolve_random_addr(BD_ADDR random_bda, tBTM_BLE_RESOLVE_CBACK * p_cback, void *p) in btm_ble_resolve_random_addr() argument
377 (*p_cback)(p_dev_rec, p); in btm_ble_resolve_random_addr()
379 (*p_cback)(NULL, p); in btm_ble_resolve_random_addr()
/system/bt/bta/hh/
Dbta_hh_act.c84 bta_hh_cb.p_cback = p_data->api_enable.p_cback; in bta_hh_api_enable()
108 (* bta_hh_cb.p_cback)(BTA_HH_ENABLE_EVT, (tBTA_HH *)&status); in bta_hh_api_enable()
125 if (bta_hh_cb.p_cback == NULL) in bta_hh_api_disable()
490 (* bta_hh_cb.p_cback)(BTA_HH_OPEN_EVT, (tBTA_HH *)&conn_dat); in bta_hh_sdp_cmpl()
536 (* bta_hh_cb.p_cback)(BTA_HH_CLOSE_EVT, (tBTA_HH *)&disc_dat); in bta_hh_api_disc_act()
594 (* bta_hh_cb.p_cback)(BTA_HH_OPEN_EVT, (tBTA_HH *)&conn); in bta_hh_open_cmpl_act()
603 (* bta_hh_cb.p_cback)(BTA_HH_OPEN_EVT, (tBTA_HH *)&conn); in bta_hh_open_cmpl_act()
711 (* bta_hh_cb.p_cback)(p_cb->w4_evt, (tBTA_HH *)&hs_data); in bta_hh_handsk_act()
721 (* bta_hh_cb.p_cback)(p_cb->w4_evt, (tBTA_HH *)&cback_data); in bta_hh_handsk_act()
730 (* bta_hh_cb.p_cback)(p_cb->w4_evt, (tBTA_HH *)&conn); in bta_hh_handsk_act()
[all …]
/system/bt/bta/include/
Dbta_jv_api.h419 tBTA_JV_STATUS BTA_JvEnable(tBTA_JV_DM_CBACK *p_cback);
540 BD_ADDR peer_bd_addr, tBTA_JV_L2CAP_CBACK *p_cback, void *user_data);
560 BD_ADDR peer_bd_addr, tBTA_JV_L2CAP_CBACK *p_cback, void *user_data);
604 tBTA_JV_L2CAP_CBACK *p_cback, void *user_data);
624 tBTA_JV_L2CAP_CBACK *p_cback, void *user_data);
711 tBTA_JV_L2CAP_CBACK *p_cback,
731 tBTA_JV_RFCOMM_CBACK *p_cback, void *user_data);
762 tBTA_JV_RFCOMM_CBACK *p_cback, void *user_data);
/system/bt/stack/avdt/
Davdt_api.c91 void AVDT_Register(tAVDT_REG *p_reg, tAVDT_CTRL_CBACK *p_cback) in AVDT_Register() argument
123 avdt_cb.p_conn_cback = p_cback; in AVDT_Register()
313 UINT8 max_seps, tAVDT_CTRL_CBACK *p_cback) in AVDT_DiscoverReq() argument
341 evt.discover.p_cback = p_cback; in AVDT_DiscoverReq()
419 UINT16 AVDT_GetCapReq(BD_ADDR bd_addr, UINT8 seid, tAVDT_CFG *p_cfg, tAVDT_CTRL_CBACK *p_cback) in AVDT_GetCapReq() argument
426 getcap.p_cback = p_cback; in AVDT_GetCapReq()
454 UINT16 AVDT_GetAllCapReq(BD_ADDR bd_addr, UINT8 seid, tAVDT_CFG *p_cfg, tAVDT_CTRL_CBACK *p_cback) in AVDT_GetAllCapReq() argument
461 getcap.p_cback = p_cback; in AVDT_GetAllCapReq()
1005 UINT16 AVDT_ConnectReq(BD_ADDR bd_addr, UINT8 sec_mask, tAVDT_CTRL_CBACK *p_cback) in AVDT_ConnectReq() argument
1031 evt.connect.p_cback = p_cback; in AVDT_ConnectReq()
[all …]
Davdt_ccb_act.c415 p_ccb->proc_cback = p_data->discover.p_cback; in avdt_ccb_snd_discover_cmd()
462 p_ccb->proc_cback = p_data->getcap.p_cback; in avdt_ccb_snd_getcap_cmd()
1004 p_ccb->p_conn_cback = p_data->connect.p_cback; in avdt_ccb_set_conn()
1028 if (p_data->disconnect.p_cback) in avdt_ccb_set_disconn()
1029 p_ccb->p_conn_cback = p_data->disconnect.p_cback; in avdt_ccb_set_disconn()
1065 tAVDT_CTRL_CBACK *p_cback; in avdt_ccb_ll_closed() local
1074 p_cback = p_ccb->p_conn_cback; in avdt_ccb_ll_closed()
1075 if (!p_cback) in avdt_ccb_ll_closed()
1076 p_cback = avdt_cb.p_conn_cback; in avdt_ccb_ll_closed()
1083 if (p_cback) in avdt_ccb_ll_closed()
[all …]
/system/bt/bta/dm/
Dbta_dm_api.c62 tBTA_STATUS BTA_EnableBluetooth(tBTA_DM_SEC_CBACK *p_cback) in BTA_EnableBluetooth() argument
79 p_msg->p_sec_cback = p_cback; in BTA_EnableBluetooth()
207 void BTA_DmSearch(tBTA_DM_INQ *p_dm_inq, tBTA_SERVICE_MASK services, tBTA_DM_SEARCH_CBACK *p_cback) in BTA_DmSearch() argument
215 p_msg->p_cback = p_cback; in BTA_DmSearch()
251 tBTA_DM_SEARCH_CBACK *p_cback, BOOLEAN sdp_search) in BTA_DmDiscover() argument
259 p_msg->p_cback = p_cback; in BTA_DmDiscover()
277 tBTA_DM_SEARCH_CBACK *p_cback, BOOLEAN sdp_search) in BTA_DmDiscoverUUID() argument
285 p_msg->p_cback = p_cback; in BTA_DmDiscoverUUID()
1182 tBTA_DM_SEARCH_CBACK *p_cback, BOOLEAN sdp_search, in bta_dm_discover_send_msg() argument
1192 p_msg->p_cback = p_cback; in bta_dm_discover_send_msg()
[all …]
/system/bt/stack/a2dp/
Da2d_api.c118 if (a2d_cb.find.p_cback != NULL) in a2d_sdp_cback()
120 (*a2d_cb.find.p_cback)(found, &a2d_svc); in a2d_sdp_cback()
271 tA2D_SDP_DB_PARAMS *p_db, tA2D_FIND_CBACK *p_cback) in A2D_FindService() argument
284 p_db == NULL || p_cback == NULL) in A2D_FindService()
311 a2d_cb.find.p_cback = p_cback; in A2D_FindService()
/system/bt/stack/avrc/
Davrc_sdp.c68 (*avrc_cb.p_cback) (status); in avrc_sdp_cback()
111 tAVRC_SDP_DB_PARAMS *p_db, tAVRC_FIND_CBACK *p_cback) in AVRC_FindService() argument
124 p_db == NULL || p_db->p_db == NULL || p_cback == NULL) in AVRC_FindService()
150 avrc_cb.p_cback = p_cback; in AVRC_FindService()
/system/bt/stack/include/
Davdt_api.h383 …NT16 (tAVDT_GETCAP_REQ) (BD_ADDR bd_addr, UINT8 seid, tAVDT_CFG *p_cfg, tAVDT_CTRL_CBACK *p_cback);
435 extern void AVDT_Register(tAVDT_REG *p_reg, tAVDT_CTRL_CBACK *p_cback);
552 UINT8 max_seps, tAVDT_CTRL_CBACK *p_cback);
580 tAVDT_CTRL_CBACK *p_cback);
607 tAVDT_CTRL_CBACK *p_cback);
859 tAVDT_CTRL_CBACK *p_cback);
873 extern UINT16 AVDT_DisconnectReq(BD_ADDR bd_addr, tAVDT_CTRL_CBACK *p_cback);
/system/bt/stack/srvc/
Dsrvc_battery.c88 if (p_inst->p_cback) in battery_s_write_attr_value()
96 (* p_inst->p_cback)(p_inst->app_id, BA_WRITE_CLT_CFG_REQ, &cfg); in battery_s_write_attr_value()
131 if (p_inst->p_cback) in battery_s_read_attr_value()
142 (* p_inst->p_cback)(p_inst->app_id, p_inst->pending_evt, NULL); in battery_s_read_attr_value()
229 p_inst->p_cback = p_reg_info->p_cback; in Battery_Instantiate()

12345