• Home
  • Raw
  • Download

Lines Matching refs:p_scb

78   tBTA_AG_SCB* p_scb = bta_ag_scb_by_idx(idx);  in bta_ag_sdp_cback()  local
79 if (p_scb) { in bta_ag_sdp_cback()
82 if (p_scb->role == BTA_AG_ACP) { in bta_ag_sdp_cback()
211 void bta_ag_create_records(tBTA_AG_SCB* p_scb, const tBTA_AG_DATA& data) { in bta_ag_create_records() argument
215 services = p_scb->reg_services >> BTA_HSP_SERVICE_ID; in bta_ag_create_records()
242 void bta_ag_del_records(tBTA_AG_SCB* p_scb) { in bta_ag_del_records() argument
250 if (p_scb == p) { in bta_ag_del_records()
260 services = p_scb->reg_services >> BTA_HSP_SERVICE_ID; in bta_ag_del_records()
289 bool bta_ag_sdp_find_attr(tBTA_AG_SCB* p_scb, tBTA_SERVICE_MASK service) { in bta_ag_sdp_find_attr() argument
299 if (p_scb->peer_version == HFP_HSP_VERSION_UNKNOWN) { in bta_ag_sdp_find_attr()
300 p_scb->peer_version = HFP_VERSION_1_1; /* Default version */ in bta_ag_sdp_find_attr()
302 } else if (service & BTA_HSP_SERVICE_MASK && p_scb->role == BTA_AG_INT) { in bta_ag_sdp_find_attr()
304 p_scb->peer_version = HSP_VERSION_1_2; /* Default version */ in bta_ag_sdp_find_attr()
307 p_scb->peer_version = HSP_VERSION_1_0; in bta_ag_sdp_find_attr()
313 p_rec = SDP_FindServiceInDb(p_scb->p_disc_db, uuid, p_rec); in bta_ag_sdp_find_attr()
318 p_scb->peer_version = HSP_VERSION_1_0; in bta_ag_sdp_find_attr()
319 p_rec = SDP_FindServiceInDb(p_scb->p_disc_db, uuid, p_rec); in bta_ag_sdp_find_attr()
328 if (p_scb->role == BTA_AG_INT) { in bta_ag_sdp_find_attr()
330 p_scb->peer_scn = (uint8_t)pe.params[0]; in bta_ag_sdp_find_attr()
340 __func__, p_scb->peer_version); in bta_ag_sdp_find_attr()
341 peer_version = p_scb->peer_version; in bta_ag_sdp_find_attr()
346 if (peer_version != p_scb->peer_version) { in bta_ag_sdp_find_attr()
347 p_scb->peer_version = peer_version; in bta_ag_sdp_find_attr()
349 p_scb->peer_addr.ToString(), HFP_VERSION_CONFIG_KEY, in bta_ag_sdp_find_attr()
354 __func__, p_scb->peer_addr.ToString().c_str()); in bta_ag_sdp_find_attr()
365 if (!p_scb->received_at_bac && sdp_wbs_support) { in bta_ag_sdp_find_attr()
370 p_scb->codec_updated = true; in bta_ag_sdp_find_attr()
371 p_scb->peer_codecs = BTA_AG_CODEC_CVSD & BTA_AG_CODEC_MSBC; in bta_ag_sdp_find_attr()
372 p_scb->sco_codec = UUID_CODEC_MSBC; in bta_ag_sdp_find_attr()
374 if (sdp_features != p_scb->peer_sdp_features) { in bta_ag_sdp_find_attr()
375 p_scb->peer_sdp_features = sdp_features; in bta_ag_sdp_find_attr()
377 p_scb->peer_addr.ToString(), HFP_SDP_FEATURES_CONFIG_KEY, in bta_ag_sdp_find_attr()
383 p_scb->peer_addr.ToString().c_str()); in bta_ag_sdp_find_attr()
386 if (p_scb->peer_features == 0) { in bta_ag_sdp_find_attr()
387 p_scb->peer_features = sdp_features & HFP_SDP_BRSF_FEATURES_MASK; in bta_ag_sdp_find_attr()
392 p_scb->peer_version = peer_version; in bta_ag_sdp_find_attr()
399 p_scb->peer_features |= BTA_AG_PEER_FEAT_VOL; in bta_ag_sdp_find_attr()
401 p_scb->peer_features &= ~BTA_AG_PEER_FEAT_VOL; in bta_ag_sdp_find_attr()
422 void bta_ag_do_disc(tBTA_AG_SCB* p_scb, tBTA_SERVICE_MASK service) { in bta_ag_do_disc() argument
429 if (service & BTA_HFP_SERVICE_MASK && p_scb->role == BTA_AG_INT) { in bta_ag_do_disc()
438 else if (service & BTA_HFP_SERVICE_MASK && p_scb->role == BTA_AG_ACP) { in bta_ag_do_disc()
446 else if (service & BTA_HSP_SERVICE_MASK && p_scb->role == BTA_AG_INT) { in bta_ag_do_disc()
456 if (p_scb->hsp_version >= HSP_VERSION_1_2) { in bta_ag_do_disc()
469 if (p_scb->hsp_version >= HSP_VERSION_1_2) { in bta_ag_do_disc()
477 if (p_scb->p_disc_db != nullptr) { in bta_ag_do_disc()
484 p_scb->p_disc_db = (tSDP_DISCOVERY_DB*)osi_malloc(BTA_AG_DISC_BUF_SIZE); in bta_ag_do_disc()
486 if (SDP_InitDiscoveryDb(p_scb->p_disc_db, BTA_AG_DISC_BUF_SIZE, num_uuid, in bta_ag_do_disc()
489 p_scb->peer_addr, p_scb->p_disc_db, in bta_ag_do_disc()
490 bta_ag_sdp_cback_tbl[bta_ag_scb_to_idx(p_scb) - 1])) { in bta_ag_do_disc()
494 << p_scb->peer_addr; in bta_ag_do_disc()
498 << p_scb->peer_addr; in bta_ag_do_disc()
501 bta_ag_free_db(p_scb, tBTA_AG_DATA::kEmpty); in bta_ag_do_disc()
502 bta_ag_sm_execute(p_scb, BTA_AG_DISC_FAIL_EVT, tBTA_AG_DATA::kEmpty); in bta_ag_do_disc()
515 void bta_ag_free_db(tBTA_AG_SCB* p_scb, const tBTA_AG_DATA& data) { in bta_ag_free_db() argument
516 osi_free_and_reset((void**)&p_scb->p_disc_db); in bta_ag_free_db()