Lines Matching refs:gatt_cb

107   GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id,  in gatt_profile_find_conn_id_by_bd_addr()
110 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr()
128 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_find_clcb_by_conn_id()
150 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_find_clcb_by_bd_addr()
177 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_clcb_alloc()
212 if (handle == gatt_cb.handle_sr_supported_feat) { in read_attr_value()
216 UINT8_TO_STREAM(p, gatt_cb.gatt_svr_supported_feat_mask); in read_attr_value()
217 p_value->len = sizeof(gatt_cb.gatt_svr_supported_feat_mask); in read_attr_value()
221 if (handle == gatt_cb.handle_cl_supported_feat) { in read_attr_value()
228 if (handle == gatt_cb.handle_of_database_hash) { in read_attr_value()
235 if (handle == gatt_cb.handle_of_h_r) { in read_attr_value()
260 if (handle == gatt_cb.handle_sr_supported_feat) return GATT_WRITE_NOT_PERMIT; in proc_write_req()
263 if (handle == gatt_cb.handle_cl_supported_feat) in proc_write_req()
267 if (handle == gatt_cb.handle_of_database_hash) return GATT_WRITE_NOT_PERMIT; in proc_write_req()
270 if (handle == gatt_cb.handle_of_h_r) return GATT_WRITE_NOT_PERMIT; in proc_write_req()
375 gatt_cb.gatt_if = GATT_Register(Uuid::From128BitBE(tmp), "GattProfileDb", in gatt_profile_db_init()
377 GATT_StartIf(gatt_cb.gatt_if); in gatt_profile_db_init()
416 GATTS_AddService(gatt_cb.gatt_if, service, in gatt_profile_db_init()
420 gatt_cb.handle_of_h_r = service[1].attribute_handle; in gatt_profile_db_init()
421 gatt_cb.handle_sr_supported_feat = service[2].attribute_handle; in gatt_profile_db_init()
422 gatt_cb.handle_cl_supported_feat = service[3].attribute_handle; in gatt_profile_db_init()
423 gatt_cb.handle_of_database_hash = service[4].attribute_handle; in gatt_profile_db_init()
425 gatt_cb.gatt_svr_supported_feat_mask |= BLE_GATT_SVR_SUP_FEAT_EATT_BITMASK; in gatt_profile_db_init()
426 gatt_cb.gatt_cl_supported_feat_mask |= BLE_GATT_CL_ANDROID_SUP_FEAT; in gatt_profile_db_init()
429 gatt_cb.gatt_cl_supported_feat_mask |= BLE_GATT_CL_SUP_FEAT_CACHING_BITMASK; in gatt_profile_db_init()
431 VLOG(1) << __func__ << ": gatt_if=" << gatt_cb.gatt_if << " EATT supported"; in gatt_profile_db_init()
538 attr.value[0] = gatt_cb.gatt_cl_supported_feat_mask; in gatt_att_write_cl_supp_feat()
586 tGATT_TCB& tcb = gatt_cb.tcb[tcb_idx]; in gatt_cl_op_cmpl_cback()
691 if (GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &p_clcb->conn_id, in GATT_ConfigServiceChangeCCC()
696 GATT_Connect(gatt_cb.gatt_if, remote_bda, true, transport, true); in GATT_ConfigServiceChangeCCC()
745 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, peer_bda, &conn_id, in gatt_cl_read_sr_supp_feat_req()
801 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_get_eatt_support()
809 tGATT_TCB& tcb = gatt_cb.tcb[tcb_idx]; in gatt_profile_get_eatt_support()
874 tcb.is_robust_cache_change_aware = (stored_hash == gatt_cb.database_hash); in gatt_sr_init_cl_status()
901 btif_storage_set_gatt_cl_db_hash(tcb.peer_bda, gatt_cb.database_hash); in gatt_sr_update_cl_status()
919 Octet16& db_hash = gatt_cb.database_hash; in gatt_sr_read_db_hash()
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()
963 tGATT_TCB& tcb = gatt_cb.tcb[tcb_idx]; in gatt_sr_write_cl_supp_feat()