Home
last modified time | relevance | path

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

12

/packages/modules/Bluetooth/system/stack/btm/
Dbtm_sec.cc108 tBTM_SEC_CALLBACK* p_callback,
127 tBTM_SEC_CALLBACK* p_callback,
270 bool BTM_SecAddRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback) { in BTM_SecAddRmtNameNotifyCallback() argument
275 btm_cb.p_rmt_name_callback[i] = p_callback; in BTM_SecAddRmtNameNotifyCallback()
293 bool BTM_SecDeleteRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback) { in BTM_SecDeleteRmtNameNotifyCallback() argument
297 if (btm_cb.p_rmt_name_callback[i] == p_callback) { in BTM_SecDeleteRmtNameNotifyCallback()
1051 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data, in BTM_SetEncryption() argument
1054 return bluetooth::shim::BTM_SetEncryption(bd_addr, transport, p_callback, in BTM_SetEncryption()
1071 if (p_callback) in BTM_SetEncryption()
1072 (*p_callback)(&bd_addr, transport, p_ref_data, BTM_WRONG_MODE); in BTM_SetEncryption()
[all …]
Dbtm_sec.h69 bool BTM_SecAddRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback);
81 bool BTM_SecDeleteRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback);
286 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data,
398 tBTM_SEC_CALLBACK* p_callback,
404 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data);
431 tBTM_SEC_CALLBACK* p_callback,
Dsecurity_device_record.h217 tBTM_SEC_CALLBACK* p_callback; member
358 tBTM_SEC_CALLBACK* p_callback,
363 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data);
367 tBTM_SEC_CALLBACK* p_callback,
/packages/modules/Bluetooth/system/stack/rfcomm/
Dport_rfc.cc163 if ((p_port->p_callback != NULL) && events) in port_start_close()
164 p_port->p_callback(events, p_port->handle); in port_start_close()
220 if (p_port->p_callback && (p_port->ev_mask & PORT_EV_CONNECT_ERR)) { in PORT_StartCnf()
221 (p_port->p_callback)(PORT_EV_CONNECT_ERR, p_port->handle); in PORT_StartCnf()
457 if (p_port->p_callback && (p_port->ev_mask & PORT_EV_CONNECTED)) in PORT_DlcEstablishInd()
458 (p_port->p_callback)(PORT_EV_CONNECTED, p_port->handle); in PORT_DlcEstablishInd()
504 if (p_port->p_callback && (p_port->ev_mask & PORT_EV_CONNECTED)) in PORT_DlcEstablishCnf()
505 (p_port->p_callback)(PORT_EV_CONNECTED, p_port->handle); in PORT_DlcEstablishCnf()
636 if (event && p_port->p_callback) (p_port->p_callback)(event, p_port->handle); in PORT_ControlInd()
676 if (event && p_port->p_callback) (p_port->p_callback)(event, p_port->handle); in PORT_ControlCnf()
[all …]
Dport_api.cc335 p_port->p_callback = p_port_cb; in PORT_SetEventCallback()
666 if (p_port->p_callback && events) { in PORT_FlowControl_MaxCredit()
667 p_port->p_callback(events, p_port->handle); in PORT_FlowControl_MaxCredit()
811 if ((p_port->p_callback != NULL) && (p_port->ev_mask & PORT_EV_ERR)) in port_write()
812 p_port->p_callback(PORT_EV_ERR, p_port->handle); in port_write()
987 if (p_port->p_callback && event) (p_port->p_callback)(event, p_port->handle); in PORT_WriteDataCO()
1102 if (p_port->p_callback && event) (p_port->p_callback)(event, p_port->handle); in PORT_WriteData()
Dport_int.h52 tPORT_CALLBACK* p_callback; /* Address of the callback function */ member
175 tPORT_CALLBACK* p_callback; /* Pointer to users callback function */ member
Dport_utils.cc107 p_port->p_callback = nullptr; in port_set_defaults()
250 tPORT_CALLBACK* p_port_cb = p_port->p_callback; in port_release_port()
257 p_port->p_callback = p_port_cb; in port_release_port()
/packages/modules/Bluetooth/system/test/mock/
Dmock_stack_btm_sec.cc90 bool BTM_SecAddRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback) { in BTM_SecAddRmtNameNotifyCallback() argument
94 bool BTM_SecDeleteRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback) { in BTM_SecDeleteRmtNameNotifyCallback() argument
162 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data, in BTM_SetEncryption() argument
167 bd_addr, transport, p_callback, p_ref_data, sec_act); in BTM_SetEncryption()
189 tBTM_SEC_CALLBACK* p_callback, in btm_sec_l2cap_access_req() argument
196 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data) { in btm_sec_l2cap_access_req_by_requirement() argument
203 tBTM_SEC_CALLBACK* p_callback, in btm_sec_mx_access_request() argument
Dmock_stack_btm_sec.h29 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data,
33 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data, in operator()
35 return body(bd_addr, transport, p_callback, p_ref_data, sec_act); in operator()
Dmock_stack_l2cap_ble.h282 tL2CAP_SEC_CBACK* p_callback, void* p_ref_data)>
284 tL2CAP_SEC_CBACK* p_callback,
288 tL2CAP_SEC_CBACK* p_callback, in operator()
290 return body(bd_addr, psm, is_originator, p_callback, p_ref_data); in operator()
Dmock_bta_dm_api.h395 tBTA_DM_ENCRYPT_CBACK* p_callback,
398 tBTA_DM_ENCRYPT_CBACK* p_callback, tBTM_BLE_SEC_ACT sec_act) {}};
400 tBTA_DM_ENCRYPT_CBACK* p_callback, tBTM_BLE_SEC_ACT sec_act) { in operator()
401 body(bd_addr, transport, p_callback, sec_act); in operator()
Dmock_main_shim_btm_api.cc98 tBTM_RMT_NAME_CALLBACK* p_callback) { in BTM_SecAddRmtNameNotifyCallback() argument
107 tBTM_RMT_NAME_CALLBACK* p_callback) { in BTM_SecDeleteRmtNameNotifyCallback() argument
209 tBTM_SEC_CALLBACK* p_callback, in BTM_SetEncryption() argument
226 uint16_t security_requirement, tBTM_SEC_CALLBACK* p_callback, in btm_sec_mx_access_request() argument
Dmock_bta_dm_act.h743 tBTA_DM_ENCRYPT_CBACK* p_callback,
746 tBTA_DM_ENCRYPT_CBACK* p_callback, tBTM_BLE_SEC_ACT sec_act) {}};
748 tBTA_DM_ENCRYPT_CBACK* p_callback, tBTM_BLE_SEC_ACT sec_act) { in operator()
749 body(bd_addr, transport, p_callback, sec_act); in operator()
Dmock_stack_l2cap_ble.cc184 tL2CAP_SEC_CBACK* p_callback, in l2ble_sec_access_req() argument
188 bd_addr, psm, is_originator, p_callback, p_ref_data); in l2ble_sec_access_req()
/packages/modules/Bluetooth/system/stack/gap/
Dgap_conn.cc68 tGAP_CONN_CALLBACK* p_callback; /* Users callback function */ member
225 p_ccb->p_callback = p_cb; in GAP_ConnOpen()
588 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_TX_EMPTY, nullptr); in gap_tx_complete_ind()
669 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_CONN_OPENED, nullptr); in gap_checks_con_flags()
694 if (p_ccb->p_callback) in gap_on_l2cap_error()
695 (*p_ccb->p_callback)(p_ccb->gap_handle, GAP_EVT_CONN_CLOSED, nullptr); in gap_on_l2cap_error()
827 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_CONN_CLOSED, nullptr); in gap_disconnect_ind()
859 p_ccb->p_callback(p_ccb->gap_handle, GAP_EVT_CONN_DATA_AVAIL, nullptr); in gap_data_ind()
882 p_ccb->p_callback( in gap_congestion_ind()
/packages/modules/Bluetooth/system/stack/l2cap/
Dl2c_ble.cc56 tBTM_SEC_CALLBACK* p_callback,
1527 (*(p_buf->p_callback))(p_bda, BT_TRANSPORT_LE, p_buf->p_ref_data, status); in l2cble_sec_comp()
1532 (*(p_buf->p_callback))(p_bda, BT_TRANSPORT_LE, p_buf->p_ref_data, in l2cble_sec_comp()
1536 (*(p_buf->p_callback))(p_bda, BT_TRANSPORT_LE, p_buf->p_ref_data, in l2cble_sec_comp()
1543 (*(p_buf->p_callback))(p_bda, BT_TRANSPORT_LE, p_buf->p_ref_data, in l2cble_sec_comp()
1558 (*(p_buf->p_callback))(p_bda, BT_TRANSPORT_LE, p_buf->p_ref_data, status); in l2cble_sec_comp()
1563 p_buf->p_callback, p_buf->p_ref_data); in l2cble_sec_comp()
1583 tL2CAP_SEC_CBACK* p_callback, in l2ble_sec_access_req() argument
1588 if (!p_callback) { in l2ble_sec_access_req()
1597 p_callback(bd_addr, BT_TRANSPORT_LE, p_ref_data, BTM_UNKNOWN_ADDR); in l2ble_sec_access_req()
[all …]
/packages/modules/Bluetooth/system/stack/include/
Dbtm_client_interface.h126 bool (*BTM_SecAddRmtNameNotifyCallback)(tBTM_RMT_NAME_CALLBACK* p_callback);
129 tBTM_RMT_NAME_CALLBACK* p_callback);
153 tBTM_RMT_NAME_CALLBACK* p_callback);
156 tBTM_SEC_CALLBACK* p_callback,
/packages/modules/Bluetooth/system/stack/test/common/
Dmock_btm_layer.h34 uint32_t mx_proto_id, uint32_t mx_chan_id, tBTM_SEC_CALLBACK* p_callback,
45 uint32_t mx_chan_id, tBTM_SEC_CALLBACK* p_callback,
Dmock_btm_layer.cc39 tBTM_SEC_CALLBACK* p_callback, in btm_sec_mx_access_request() argument
43 p_callback, p_ref_data); in btm_sec_mx_access_request()
/packages/modules/Bluetooth/system/main/shim/
Dbtm_api.h1305 bool BTM_SecAddRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback);
1317 bool BTM_SecDeleteRmtNameNotifyCallback(tBTM_RMT_NAME_CALLBACK* p_callback);
1515 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data,
1858 tBTM_SEC_CALLBACK* p_callback,
Dbtm_api.cc1276 uint16_t security_requirement, tBTM_SEC_CALLBACK* p_callback, in btm_sec_mx_access_request() argument
1282 if (p_callback) { in btm_sec_mx_access_request()
1283 (*p_callback)(&bd_addr, false, p_ref_data, BTM_SUCCESS); in btm_sec_mx_access_request()
1290 tBTM_SEC_CALLBACK* p_callback, in BTM_SetEncryption() argument
1294 (*p_callback)(&bd_addr, transport, p_ref_data, BTM_SUCCESS); in BTM_SetEncryption()
1311 tBTM_RMT_NAME_CALLBACK* p_callback) { in BTM_SecAddRmtNameNotifyCallback() argument
1318 tBTM_RMT_NAME_CALLBACK* p_callback) { in BTM_SecDeleteRmtNameNotifyCallback() argument
/packages/modules/Bluetooth/system/stack/smp/
Dsmp_utils.cc884 tSMP_CALLBACK* p_callback = p_cb->p_callback; in smp_cb_cleanup() local
894 p_cb->p_callback = p_callback; in smp_cb_cleanup()
957 tSMP_CALLBACK* p_callback = p_cb->p_callback; in smp_proc_pairing_cmpl() local
1011 if (p_callback) (*p_callback)(SMP_COMPLT_EVT, pairing_bda, &evt_data); in smp_proc_pairing_cmpl()
/packages/modules/Bluetooth/system/bta/test/common/
Dbtm_api_mock.cc48 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data, in BTM_SetEncryption() argument
50 return btm_interface->SetEncryption(bd_addr, transport, p_callback, in BTM_SetEncryption()
Dbtm_api_mock.h39 tBTM_SEC_CALLBACK* p_callback,
74 tBTM_SEC_CALLBACK* p_callback, void* p_ref_data,
/packages/modules/Bluetooth/system/stack/test/btm/
Dstack_btm_test.cc381 tBTM_SEC_CALLBACK* p_callback{nullptr}; in TEST_F() local
385 ASSERT_EQ(BTM_WRONG_MODE, BTM_SetEncryption(bd_addr, transport, p_callback, in TEST_F()
394 ASSERT_EQ(BTM_WRONG_MODE, BTM_SetEncryption(bd_addr, transport, p_callback, in TEST_F()

12