Home
last modified time | relevance | path

Searched refs:p_callback (Results 1 – 25 of 27) sorted by relevance

12

/system/bt/stack/rfcomm/
Dport_rfc.cc161 if ((p_port->p_callback != NULL) && events) in port_start_close()
162 p_port->p_callback(events, p_port->handle); in port_start_close()
214 if (p_port->p_callback && (p_port->ev_mask & PORT_EV_CONNECT_ERR)) { in PORT_StartCnf()
215 (p_port->p_callback)(PORT_EV_CONNECT_ERR, p_port->handle); in PORT_StartCnf()
449 if (p_port->p_callback && (p_port->ev_mask & PORT_EV_CONNECTED)) in PORT_DlcEstablishInd()
450 (p_port->p_callback)(PORT_EV_CONNECTED, p_port->handle); in PORT_DlcEstablishInd()
489 if (p_port->p_callback && (p_port->ev_mask & PORT_EV_CONNECTED)) in PORT_DlcEstablishCnf()
490 (p_port->p_callback)(PORT_EV_CONNECTED, p_port->handle); in PORT_DlcEstablishCnf()
616 if (event && p_port->p_callback) (p_port->p_callback)(event, p_port->handle); in PORT_ControlInd()
656 if (event && p_port->p_callback) (p_port->p_callback)(event, p_port->handle); in PORT_ControlCnf()
[all …]
Dport_api.cc331 p_port->p_callback = p_port_cb; in PORT_SetEventCallback()
655 if (p_port->p_callback && events) { in PORT_FlowControl_MaxCredit()
656 p_port->p_callback(events, p_port->handle); in PORT_FlowControl_MaxCredit()
793 if ((p_port->p_callback != NULL) && (p_port->ev_mask & PORT_EV_ERR)) in port_write()
794 p_port->p_callback(PORT_EV_ERR, p_port->handle); in port_write()
969 if (p_port->p_callback && event) (p_port->p_callback)(event, p_port->handle); in PORT_WriteDataCO()
1080 if (p_port->p_callback && event) (p_port->p_callback)(event, p_port->handle); in PORT_WriteData()
Dport_int.h50 tPORT_CALLBACK* p_callback; /* Address of the callback function */ member
172 tPORT_CALLBACK* p_callback; /* Pointer to users callback function */ member
Dport_utils.cc107 p_port->p_callback = nullptr; in port_set_defaults()
249 tPORT_CALLBACK* p_port_cb = p_port->p_callback; in port_release_port()
256 p_port->p_callback = p_port_cb; in port_release_port()
/system/bt/stack/test/common/
Dmock_btm_layer.cc36 tBTM_SEC_CALLBACK* p_callback, in btm_sec_mx_access_request() argument
39 bd_addr, psm, is_originator, mx_proto_id, mx_chan_id, p_callback, in btm_sec_mx_access_request()
Dmock_btm_layer.h32 uint32_t mx_proto_id, uint32_t mx_chan_id, tBTM_SEC_CALLBACK* p_callback,
43 uint32_t mx_chan_id, tBTM_SEC_CALLBACK* p_callback,
/system/bt/stack/btm/
Dbtm_sec.cc87 tBTM_SEC_CALLBACK* p_callback,
112 tBTM_SEC_CALLBACK* p_callback,
267 bool BTM_SecAddRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback) { in BTM_SecAddRmtNameNotifyCallback() argument
272 btm_cb.p_rmt_name_callback[i] = p_callback; in BTM_SecAddRmtNameNotifyCallback()
290 bool BTM_SecDeleteRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback) { in BTM_SecDeleteRmtNameNotifyCallback() argument
294 if (btm_cb.p_rmt_name_callback[i] == p_callback) { in BTM_SecDeleteRmtNameNotifyCallback()
1139 tBTM_SEC_CBACK* p_callback, void* p_ref_data, in BTM_SetEncryption() argument
1142 return bluetooth::shim::BTM_SetEncryption(bd_addr, transport, p_callback, in BTM_SetEncryption()
1157 if (p_callback) in BTM_SetEncryption()
1158 (*p_callback)(&bd_addr, transport, p_ref_data, BTM_WRONG_MODE); in BTM_SetEncryption()
[all …]
Dbtm_int.h218 tBTM_SEC_CALLBACK* p_callback,
224 tBTM_SEC_CALLBACK* p_callback,
269 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data);
Dbtm_int_types.h451 tBTM_SEC_CALLBACK* p_callback; member
672 tBTM_SEC_CALLBACK* p_callback; member
Dbtm_ble.cc1064 tBTM_SEC_CALLBACK* p_callback, in btm_ble_start_sec_check() argument
1073 (*p_callback)(&bd_addr, BT_TRANSPORT_LE, p_ref_data, BTM_MODE_UNSUPPORTED); in btm_ble_start_sec_check()
1111 p_callback(&bd_addr, BT_TRANSPORT_LE, p_ref_data, BTM_SUCCESS); in btm_ble_start_sec_check()
1139 BTM_SetEncryption(bd_addr, BT_TRANSPORT_LE, p_callback, p_ref_data, in btm_ble_start_sec_check()
1682 if (p_dev_rec->p_callback && enc_cback) { in btm_ble_link_encrypted()
/system/bt/stack/gap/
Dgap_conn.cc66 tGAP_CONN_CALLBACK* p_callback; /* Users callback function */ member
228 p_ccb->p_callback = p_cb; in GAP_ConnOpen()
692 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_TX_EMPTY, nullptr); in gap_tx_complete_ind()
703 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_LE_COC_CREDITS, &data); in gap_credits_received_cb()
791 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_CONN_OPENED, nullptr); in gap_checks_con_flags()
872 if (p_ccb->p_callback) in gap_connect_cfm()
873 (*p_ccb->p_callback)(p_ccb->gap_handle, GAP_EVT_CONN_CLOSED, nullptr); in gap_connect_cfm()
950 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_CONN_CLOSED, nullptr); in gap_config_cfm()
976 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_CONN_CLOSED, nullptr); in gap_disconnect_ind()
1008 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_CONN_DATA_AVAIL, nullptr); in gap_data_ind()
[all …]
/system/bt/stack/l2cap/
Dl2c_ble.cc1173 (*(p_buf->p_callback))(p_bda, BT_TRANSPORT_LE, p_buf->p_ref_data, status); in l2cble_sec_comp()
1178 (*(p_buf->p_callback))(p_bda, BT_TRANSPORT_LE, p_buf->p_ref_data, in l2cble_sec_comp()
1182 (*(p_buf->p_callback))(p_bda, BT_TRANSPORT_LE, p_buf->p_ref_data, in l2cble_sec_comp()
1189 (*(p_buf->p_callback))(p_bda, BT_TRANSPORT_LE, p_buf->p_ref_data, in l2cble_sec_comp()
1204 (*(p_buf->p_callback))(p_bda, BT_TRANSPORT_LE, p_buf->p_ref_data, status); in l2cble_sec_comp()
1207 p_buf->p_callback, p_buf->p_ref_data); in l2cble_sec_comp()
1225 tL2CAP_SEC_CBACK* p_callback, in l2ble_sec_access_req() argument
1231 if (!p_callback) { in l2ble_sec_access_req()
1240 p_callback(bd_addr, BT_TRANSPORT_LE, p_ref_data, BTM_UNKNOWN_ADDR); in l2ble_sec_access_req()
1247 p_callback(bd_addr, BT_TRANSPORT_LE, p_ref_data, BTM_NO_RESOURCES); in l2ble_sec_access_req()
[all …]
Dl2c_int.h262 tL2CAP_SEC_CBACK* p_callback; member
805 tL2CAP_SEC_CBACK* p_callback,
/system/bt/stack/include/
Dbtm_api.h966 extern bool BTM_SecAddRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback);
979 tBTM_RMT_NAME_CALLBACK* p_callback);
1243 tBTM_SEC_CBACK* p_callback,
/system/bt/stack/smp/
Dsmp_utils.cc858 tSMP_CALLBACK* p_callback = p_cb->p_callback; in smp_cb_cleanup() local
868 p_cb->p_callback = p_callback; in smp_cb_cleanup()
932 tSMP_CALLBACK* p_callback = p_cb->p_callback; in smp_proc_pairing_cmpl() local
953 if (p_callback) (*p_callback)(SMP_COMPLT_EVT, pairing_bda, &evt_data); in smp_proc_pairing_cmpl()
Dsmp_api.cc122 if (smp_cb.p_callback != NULL) { in SMP_Register()
125 smp_cb.p_callback = p_cback; in SMP_Register()
Dsmp_keys.cc127 if (p_cb->p_callback) { in smp_proc_passkey()
130 (*p_cb->p_callback)(SMP_PASSKEY_NOTIF_EVT, p_cb->pairing_bda, in smp_proc_passkey()
Dsmp_int.h255 tSMP_CALLBACK* p_callback; member
Dsmp_act.cc106 if (p_cb->p_callback && p_cb->cb_evt != 0) { in smp_send_app_cback()
142 (*p_cb->p_callback)(p_cb->cb_evt, p_cb->pairing_bda, &cb_data); in smp_send_app_cback()
/system/bt/main/shim/
Dbtm_api.h1524 bool BTM_SecAddRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback);
1536 bool BTM_SecDeleteRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback);
1791 tBTM_SEC_CBACK* p_callback, void* p_ref_data,
2188 tBTM_SEC_CBACK* p_callback,
Dbtm_api.cc1101 uint32_t mx_proto_id, uint32_t mx_chan_id, tBTM_SEC_CBACK* p_callback, in btm_sec_mx_access_request() argument
1107 if (p_callback) { in btm_sec_mx_access_request()
1108 (*p_callback)(&bd_addr, false, p_ref_data, BTM_SUCCESS); in btm_sec_mx_access_request()
1115 tBTM_SEC_CBACK* p_callback, in BTM_SetEncryption() argument
1119 (*p_callback)(&bd_addr, transport, p_ref_data, BTM_SUCCESS); in BTM_SetEncryption()
/system/bt/bta/dm/
Dbta_dm_api.cc702 tBTA_DM_ENCRYPT_CBACK* p_callback, in BTA_DmSetEncryption() argument
706 transport, p_callback, sec_act)); in BTA_DmSetEncryption()
Dbta_dm_act.cc3620 tBTA_DM_ENCRYPT_CBACK* p_callback = NULL; in bta_dm_encrypt_cback() local
3630 p_callback = bta_dm_cb.device_list.peer_device[i].p_encrypt_cback; in bta_dm_encrypt_cback()
3652 bta_status, p_callback); in bta_dm_encrypt_cback()
3654 if (p_callback) { in bta_dm_encrypt_cback()
3655 (*p_callback)(*bd_addr, transport, bta_status); in bta_dm_encrypt_cback()
3661 tBTA_DM_ENCRYPT_CBACK* p_callback, in bta_dm_set_encryption() argument
3666 if (!p_callback) { in bta_dm_set_encryption()
3678 (*p_callback)(bd_addr, transport, BTA_BUSY); in bta_dm_set_encryption()
3684 bta_dm_cb.device_list.peer_device[i].p_encrypt_cback = p_callback; in bta_dm_set_encryption()
/system/nfc/src/gki/common/
Dgki_time.cc568 void GKI_timer_queue_register_callback(SYSTEM_TICK_CBACK* p_callback) { in GKI_timer_queue_register_callback() argument
569 gki_cb.com.p_tick_cb = p_callback; in GKI_timer_queue_register_callback()
/system/bt/bta/include/
Dbta_api.h1504 tBTA_DM_ENCRYPT_CBACK* p_callback,

12