Lines Matching refs:p_callback
87 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()
1167 if (*p_callback) in BTM_SetEncryption()
1168 (*p_callback)(&bd_addr, transport, p_ref_data, BTM_SUCCESS); in BTM_SetEncryption()
1174 if (p_dev_rec->p_callback || (p_dev_rec->sec_state != BTM_SEC_STATE_IDLE)) { in BTM_SetEncryption()
1178 if (btm_sec_queue_encrypt_request(bd_addr, transport, p_callback, in BTM_SetEncryption()
1182 if (p_callback) in BTM_SetEncryption()
1183 (*p_callback)(&bd_addr, transport, p_ref_data, BTM_NO_RESOURCES); in BTM_SetEncryption()
1188 p_dev_rec->p_callback = p_callback; in BTM_SetEncryption()
1198 p_dev_rec->security_required, p_dev_rec, p_callback); in BTM_SetEncryption()
1214 if (p_callback) { in BTM_SetEncryption()
1218 __func__, p_callback, p_dev_rec, transport, in BTM_SetEncryption()
1220 p_dev_rec->p_callback = NULL; in BTM_SetEncryption()
1221 (*p_callback)(&bd_addr, transport, p_dev_rec->p_ref_data, rc); in BTM_SetEncryption()
1675 tBTM_SEC_CALLBACK* p_callback, in btm_sec_l2cap_access_req() argument
1704 (*p_callback)(&bd_addr, transport, p_ref_data, BTM_MODE_UNSUPPORTED); in btm_sec_l2cap_access_req()
1711 (*p_callback)(&bd_addr, transport, p_ref_data, BTM_SUCCESS_NO_SECURITY); in btm_sec_l2cap_access_req()
1736 if (p_callback) in btm_sec_l2cap_access_req()
1737 (*p_callback)(&bd_addr, transport, (void*)p_ref_data, in btm_sec_l2cap_access_req()
1747 if ((p_dev_rec->p_callback) || in btm_sec_l2cap_access_req()
1817 if (p_callback) in btm_sec_l2cap_access_req()
1818 (*p_callback)(&bd_addr, transport, (void*)p_ref_data, BTM_SUCCESS); in btm_sec_l2cap_access_req()
1881 (*p_callback)(&bd_addr, transport, p_ref_data, BTM_SUCCESS); in btm_sec_l2cap_access_req()
1905 (*p_callback)(&bd_addr, transport, p_ref_data, BTM_SUCCESS); in btm_sec_l2cap_access_req()
1930 p_dev_rec->p_callback = p_callback; in btm_sec_l2cap_access_req()
1932 (*p_callback)(&bd_addr, transport, p_ref_data, rc); in btm_sec_l2cap_access_req()
1938 p_dev_rec->p_callback = p_callback; in btm_sec_l2cap_access_req()
1978 __func__, p_dev_rec, p_dev_rec->p_callback); in btm_sec_l2cap_access_req()
1979 p_dev_rec->p_callback = NULL; in btm_sec_l2cap_access_req()
1980 (*p_callback)(&bd_addr, transport, p_dev_rec->p_ref_data, (uint8_t)rc); in btm_sec_l2cap_access_req()
2012 tBTM_SEC_CALLBACK* p_callback, in btm_sec_mx_access_request() argument
2022 bd_addr, psm, is_originator, mx_proto_id, mx_chan_id, p_callback, in btm_sec_mx_access_request()
2037 if (p_callback) in btm_sec_mx_access_request()
2038 (*p_callback)(&bd_addr, transport, p_ref_data, BTM_MODE_UNSUPPORTED); in btm_sec_mx_access_request()
2057 if ((p_dev_rec->p_callback) || in btm_sec_mx_access_request()
2144 mx_chan_id, p_callback, p_ref_data); in btm_sec_mx_access_request()
2148 if (p_callback) { in btm_sec_mx_access_request()
2149 (*p_callback)(&bd_addr, transport, p_ref_data, (uint8_t)rc); in btm_sec_mx_access_request()
2171 if (p_callback) in btm_sec_mx_access_request()
2172 (*p_callback)(&bd_addr, transport, (void*)p_ref_data, in btm_sec_mx_access_request()
2207 p_dev_rec->p_callback = p_callback; in btm_sec_mx_access_request()
2225 if (p_callback) { in btm_sec_mx_access_request()
2226 p_dev_rec->p_callback = NULL; in btm_sec_mx_access_request()
2227 (*p_callback)(&bd_addr, transport, p_ref_data, (uint8_t)rc); in btm_sec_mx_access_request()
2422 p_e->p_callback, p_e->p_ref_data); in btm_sec_check_pending_reqs()
2424 BTM_SetEncryption(p_e->bd_addr, p_e->transport, p_e->p_callback, in btm_sec_check_pending_reqs()
2512 __func__, p_dev_rec, p_dev_rec->p_callback); in btm_sec_abort_access_req()
2513 p_dev_rec->p_callback = NULL; in btm_sec_abort_access_req()
3802 __func__, p_dev_rec, p_dev_rec->p_callback); in btm_sec_encrypt_change()
3803 p_dev_rec->p_callback = NULL; in btm_sec_encrypt_change()
4213 tBTM_SEC_CALLBACK* p_callback = NULL; in btm_sec_disconnected() local
4323 p_callback = p_dev_rec->p_callback; in btm_sec_disconnected()
4326 if (p_callback) { in btm_sec_disconnected()
4328 __func__, p_dev_rec, p_dev_rec->p_callback); in btm_sec_disconnected()
4329 p_dev_rec->p_callback = in btm_sec_disconnected()
4332 (*p_callback)(&p_dev_rec->bd_addr, transport, p_dev_rec->p_ref_data, in btm_sec_disconnected()
5321 tBTM_SEC_CALLBACK* p_callback = p_dev_rec->p_callback; in btm_sec_dev_rec_cback_event() local
5324 __func__, p_dev_rec->p_callback, is_le_transport, res, in btm_sec_dev_rec_cback_event()
5327 if (p_dev_rec->p_callback) { in btm_sec_dev_rec_cback_event()
5328 p_dev_rec->p_callback = NULL; in btm_sec_dev_rec_cback_event()
5331 (*p_callback)(&p_dev_rec->ble.pseudo_addr, BT_TRANSPORT_LE, in btm_sec_dev_rec_cback_event()
5334 (*p_callback)(&p_dev_rec->bd_addr, BT_TRANSPORT_BR_EDR, in btm_sec_dev_rec_cback_event()
5351 tBTM_SEC_CALLBACK* p_callback, in btm_sec_queue_mx_request() argument
5358 p_e->p_callback = p_callback; in btm_sec_queue_mx_request()
5456 tBTM_SEC_CALLBACK* p_callback, in btm_sec_queue_encrypt_request() argument
5463 p_e->p_callback = p_callback; in btm_sec_queue_encrypt_request()
5556 if (p_e->p_callback) in btm_sec_check_pending_enc_req()
5557 (*p_e->p_callback)(&p_dev_rec->bd_addr, transport, p_e->p_ref_data, in btm_sec_check_pending_enc_req()