Lines Matching refs:cb_data
299 tBTA_GATTC cb_data; in bta_gattc_process_api_open_cancel() local
300 cb_data.status = GATT_ERROR; in bta_gattc_process_api_open_cancel()
301 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_process_api_open_cancel()
311 tBTA_GATTC cb_data; in bta_gattc_process_enc_cmpl() local
312 memset(&cb_data, 0, sizeof(tBTA_GATTC)); in bta_gattc_process_enc_cmpl()
314 cb_data.enc_cmpl.client_if = client_if; in bta_gattc_process_enc_cmpl()
315 cb_data.enc_cmpl.remote_bda = bda; in bta_gattc_process_enc_cmpl()
317 (*p_clreg->p_cback)(BTA_GATTC_ENC_CMPL_CB_EVT, &cb_data); in bta_gattc_process_enc_cmpl()
322 tBTA_GATTC cb_data; in bta_gattc_cancel_open_error() local
324 cb_data.status = GATT_ERROR; in bta_gattc_cancel_open_error()
327 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_error()
415 tBTA_GATTC cb_data; in bta_gattc_cancel_bk_conn() local
416 cb_data.status = GATT_ERROR; in bta_gattc_cancel_bk_conn()
421 cb_data.status = GATT_SUCCESS; in bta_gattc_cancel_bk_conn()
429 (*p_clreg->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_bk_conn()
435 tBTA_GATTC cb_data; in bta_gattc_cancel_open_ok() local
438 cb_data.status = GATT_SUCCESS; in bta_gattc_cancel_open_ok()
439 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open_ok()
446 tBTA_GATTC cb_data; in bta_gattc_cancel_open() local
453 cb_data.status = GATT_ERROR; in bta_gattc_cancel_open()
454 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CANCEL_OPEN_EVT, &cb_data); in bta_gattc_cancel_open()
515 tBTA_GATTC cb_data; in bta_gattc_close_fail() local
518 memset(&cb_data, 0, sizeof(tBTA_GATTC)); in bta_gattc_close_fail()
519 cb_data.close.client_if = p_clcb->p_rcb->client_if; in bta_gattc_close_fail()
520 cb_data.close.conn_id = p_data->hdr.layer_specific; in bta_gattc_close_fail()
521 cb_data.close.remote_bda = p_clcb->bda; in bta_gattc_close_fail()
522 cb_data.close.status = GATT_ERROR; in bta_gattc_close_fail()
523 cb_data.close.reason = BTA_GATT_CONN_NONE; in bta_gattc_close_fail()
525 LOG(WARNING) << __func__ << ": conn_id=" << loghex(cb_data.close.conn_id) in bta_gattc_close_fail()
528 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CLOSE_EVT, &cb_data); in bta_gattc_close_fail()
536 tBTA_GATTC cb_data; in bta_gattc_close() local
540 cb_data.close.client_if = p_clcb->p_rcb->client_if; in bta_gattc_close()
541 cb_data.close.conn_id = p_clcb->bta_conn_id; in bta_gattc_close()
542 cb_data.close.reason = p_clcb->reason; in bta_gattc_close()
543 cb_data.close.status = p_clcb->status; in bta_gattc_close()
544 cb_data.close.remote_bda = p_clcb->bda; in bta_gattc_close()
552 cb_data.close.status = GATT_Disconnect(p_data->hdr.layer_specific); in bta_gattc_close()
554 cb_data.close.status = p_data->int_conn.reason; in bta_gattc_close()
555 cb_data.close.reason = p_data->int_conn.reason; in bta_gattc_close()
558 if (p_cback) (*p_cback)(BTA_GATTC_CLOSE_EVT, &cb_data); in bta_gattc_close()
884 tBTA_GATTC cb_data; in bta_gattc_exec_cmpl() local
890 cb_data.exec_cmpl.conn_id = p_clcb->bta_conn_id; in bta_gattc_exec_cmpl()
891 cb_data.exec_cmpl.status = p_data->status; in bta_gattc_exec_cmpl()
893 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_EXEC_EVT, &cb_data); in bta_gattc_exec_cmpl()
899 tBTA_GATTC cb_data; in bta_gattc_cfg_mtu_cmpl() local
908 cb_data.cfg_mtu.conn_id = p_clcb->bta_conn_id; in bta_gattc_cfg_mtu_cmpl()
909 cb_data.cfg_mtu.status = p_data->status; in bta_gattc_cfg_mtu_cmpl()
910 cb_data.cfg_mtu.mtu = p_clcb->p_srcb->mtu; in bta_gattc_cfg_mtu_cmpl()
912 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CFG_MTU_EVT, &cb_data); in bta_gattc_cfg_mtu_cmpl()
987 tBTA_GATTC cb_data; in bta_gattc_search() local
994 cb_data.search_cmpl.status = status; in bta_gattc_search()
995 cb_data.search_cmpl.conn_id = p_clcb->bta_conn_id; in bta_gattc_search()
998 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_SEARCH_CMPL_EVT, &cb_data); in bta_gattc_search()
1018 tBTA_GATTC cb_data; in bta_gattc_deregister_cmpl() local
1021 memset(&cb_data, 0, sizeof(tBTA_GATTC)); in bta_gattc_deregister_cmpl()
1026 cb_data.reg_oper.client_if = client_if; in bta_gattc_deregister_cmpl()
1027 cb_data.reg_oper.status = GATT_SUCCESS; in bta_gattc_deregister_cmpl()
1030 (*p_cback)(BTA_GATTC_DEREG_EVT, &cb_data); in bta_gattc_deregister_cmpl()
1336 tBTA_GATTC cb_data; in bta_gattc_cong_cback() local
1337 cb_data.congest.conn_id = conn_id; in bta_gattc_cong_cback()
1338 cb_data.congest.congested = congested; in bta_gattc_cong_cback()
1340 (*p_clcb->p_rcb->p_cback)(BTA_GATTC_CONGEST_EVT, &cb_data); in bta_gattc_cong_cback()
1353 tBTA_GATTC cb_data; in bta_gattc_phy_update_cback() local
1354 cb_data.phy_update.conn_id = conn_id; in bta_gattc_phy_update_cback()
1355 cb_data.phy_update.server_if = gatt_if; in bta_gattc_phy_update_cback()
1356 cb_data.phy_update.tx_phy = tx_phy; in bta_gattc_phy_update_cback()
1357 cb_data.phy_update.rx_phy = rx_phy; in bta_gattc_phy_update_cback()
1358 cb_data.phy_update.status = status; in bta_gattc_phy_update_cback()
1359 (*p_clreg->p_cback)(BTA_GATTC_PHY_UPDATE_EVT, &cb_data); in bta_gattc_phy_update_cback()
1372 tBTA_GATTC cb_data; in bta_gattc_conn_update_cback() local
1373 cb_data.conn_update.conn_id = conn_id; in bta_gattc_conn_update_cback()
1374 cb_data.conn_update.interval = interval; in bta_gattc_conn_update_cback()
1375 cb_data.conn_update.latency = latency; in bta_gattc_conn_update_cback()
1376 cb_data.conn_update.timeout = timeout; in bta_gattc_conn_update_cback()
1377 cb_data.conn_update.status = status; in bta_gattc_conn_update_cback()
1378 (*p_clreg->p_cback)(BTA_GATTC_CONN_UPDATE_EVT, &cb_data); in bta_gattc_conn_update_cback()