• Home
  • Raw
  • Download

Lines Matching refs:tcb

586       tGATT_TCB& tcb = gatt_cb.tcb[tcb_idx];  in gatt_cl_op_cmpl_cback()  local
590 STREAM_TO_UINT8(tcb.sr_supp_feat, pp); in gatt_cl_op_cmpl_cback()
591 btif_storage_set_gatt_sr_supp_feat(tcb.peer_bda, tcb.sr_supp_feat); in gatt_cl_op_cmpl_cback()
596 .Run(tcb.peer_bda, tcb.sr_supp_feat); in gatt_cl_op_cmpl_cback()
602 if (tcb.sr_supp_feat & BLE_GATT_SVR_SUP_FEAT_EATT_BITMASK) { in gatt_cl_op_cmpl_cback()
717 void gatt_cl_init_sr_status(tGATT_TCB& tcb) { in gatt_cl_init_sr_status() argument
718 tcb.sr_supp_feat = btif_storage_get_sr_supp_feat(tcb.peer_bda); in gatt_cl_init_sr_status()
720 if (tcb.sr_supp_feat & BLE_GATT_SVR_SUP_FEAT_EATT_BITMASK) in gatt_cl_init_sr_status()
721 bluetooth::eatt::EattExtension::AddFromStorage(tcb.peer_bda); in gatt_cl_init_sr_status()
809 tGATT_TCB& tcb = gatt_cb.tcb[tcb_idx]; in gatt_profile_get_eatt_support() local
810 return tcb.sr_supp_feat & BLE_GATT_SVR_SUP_FEAT_EATT_BITMASK; in gatt_profile_get_eatt_support()
835 static bool gatt_sr_is_cl_robust_caching_supported(tGATT_TCB& tcb) { in gatt_sr_is_cl_robust_caching_supported() argument
838 return (tcb.cl_supp_feat & BLE_GATT_CL_SUP_FEAT_CACHING_BITMASK); in gatt_sr_is_cl_robust_caching_supported()
850 bool gatt_sr_is_cl_change_aware(tGATT_TCB& tcb) { in gatt_sr_is_cl_change_aware() argument
852 if (!gatt_sr_is_cl_robust_caching_supported(tcb)) return true; in gatt_sr_is_cl_change_aware()
853 return tcb.is_robust_cache_change_aware; in gatt_sr_is_cl_change_aware()
865 void gatt_sr_init_cl_status(tGATT_TCB& tcb) { in gatt_sr_init_cl_status() argument
866 tcb.cl_supp_feat = btif_storage_get_gatt_cl_supp_feat(tcb.peer_bda); in gatt_sr_init_cl_status()
869 tcb.cl_supp_feat &= ~BLE_GATT_CL_SUP_FEAT_CACHING_BITMASK; in gatt_sr_init_cl_status()
872 if (gatt_sr_is_cl_robust_caching_supported(tcb)) { in gatt_sr_init_cl_status()
873 Octet16 stored_hash = btif_storage_get_gatt_cl_db_hash(tcb.peer_bda); in gatt_sr_init_cl_status()
874 tcb.is_robust_cache_change_aware = (stored_hash == gatt_cb.database_hash); in gatt_sr_init_cl_status()
877 tcb.is_robust_cache_change_aware = true; in gatt_sr_init_cl_status()
880 LOG(INFO) << __func__ << ": bda=" << tcb.peer_bda in gatt_sr_init_cl_status()
881 << ", cl_supp_feat=" << loghex(tcb.cl_supp_feat) in gatt_sr_init_cl_status()
882 << ", aware=" << tcb.is_robust_cache_change_aware; in gatt_sr_init_cl_status()
894 void gatt_sr_update_cl_status(tGATT_TCB& tcb, bool chg_aware) { in gatt_sr_update_cl_status() argument
896 if (!gatt_sr_is_cl_robust_caching_supported(tcb)) return; in gatt_sr_update_cl_status()
900 if (!tcb.is_robust_cache_change_aware && chg_aware) { in gatt_sr_update_cl_status()
901 btif_storage_set_gatt_cl_db_hash(tcb.peer_bda, gatt_cb.database_hash); in gatt_sr_update_cl_status()
905 if (tcb.is_robust_cache_change_aware != chg_aware) { in gatt_sr_update_cl_status()
906 LOG(INFO) << __func__ << ": bda=" << tcb.peer_bda in gatt_sr_update_cl_status()
910 tcb.is_robust_cache_change_aware = chg_aware; in gatt_sr_update_cl_status()
925 gatt_sr_update_cl_status(gatt_cb.tcb[tcb_idx], /* chg_aware= */ true); in gatt_sr_read_db_hash()
934 tGATT_TCB& tcb = gatt_cb.tcb[tcb_idx]; in gatt_sr_read_cl_supp_feat() local
937 UINT8_TO_STREAM(p, tcb.cl_supp_feat); in gatt_sr_read_cl_supp_feat()
963 tGATT_TCB& tcb = gatt_cb.tcb[tcb_idx]; in gatt_sr_write_cl_supp_feat() local
966 feature_list.push_back(tcb.cl_supp_feat); in gatt_sr_write_cl_supp_feat()
971 << ", bda=" << tcb.peer_bda; in gatt_sr_write_cl_supp_feat()
977 << ", bda=" << tcb.peer_bda; in gatt_sr_write_cl_supp_feat()
993 << ", bda=" << tcb.peer_bda; in gatt_sr_write_cl_supp_feat()
999 bool curr_caching_state = gatt_sr_is_cl_robust_caching_supported(tcb); in gatt_sr_write_cl_supp_feat()
1001 tcb.cl_supp_feat = tmp.front(); in gatt_sr_write_cl_supp_feat()
1004 tcb.cl_supp_feat &= ~BLE_GATT_CL_SUP_FEAT_CACHING_BITMASK; in gatt_sr_write_cl_supp_feat()
1007 << ", bda=" << tcb.peer_bda; in gatt_sr_write_cl_supp_feat()
1010 btif_storage_set_gatt_cl_supp_feat(tcb.peer_bda, tcb.cl_supp_feat); in gatt_sr_write_cl_supp_feat()
1013 bool new_caching_state = gatt_sr_is_cl_robust_caching_supported(tcb); in gatt_sr_write_cl_supp_feat()