Lines Matching refs:gatt_cb
90 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr()
93 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_find_conn_id_by_bd_addr()
111 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_find_clcb_by_conn_id()
133 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_find_clcb_by_bd_addr()
160 for (i_clcb = 0, p_clcb = gatt_cb.profile_clcb; i_clcb < GATT_MAX_APPS; in gatt_profile_clcb_alloc()
195 if (handle == gatt_cb.handle_sr_supported_feat) { in read_attr_value()
199 UINT8_TO_STREAM(p, gatt_cb.gatt_svr_supported_feat_mask); in read_attr_value()
200 p_value->len = sizeof(gatt_cb.gatt_svr_supported_feat_mask); in read_attr_value()
204 if (handle == gatt_cb.handle_cl_supported_feat) { in read_attr_value()
217 if (handle == gatt_cb.handle_of_h_r) { in read_attr_value()
238 if (p_data->handle == gatt_cb.handle_sr_supported_feat) in proc_write_req()
245 if (p_data->handle == gatt_cb.handle_cl_supported_feat) return GATT_SUCCESS; in proc_write_req()
248 if (p_data->handle == gatt_cb.handle_of_h_r) return GATT_WRITE_NOT_PERMIT; in proc_write_req()
346 gatt_cb.gatt_if = GATT_Register(Uuid::From128BitBE(tmp), &gatt_profile_cback); in gatt_profile_db_init()
347 GATT_StartIf(gatt_cb.gatt_if); in gatt_profile_db_init()
379 GATTS_AddService(gatt_cb.gatt_if, service, in gatt_profile_db_init()
383 gatt_cb.handle_of_h_r = service[1].attribute_handle; in gatt_profile_db_init()
384 gatt_cb.handle_sr_supported_feat = service[2].attribute_handle; in gatt_profile_db_init()
385 gatt_cb.handle_cl_supported_feat = service[3].attribute_handle; in gatt_profile_db_init()
387 gatt_cb.gatt_svr_supported_feat_mask |= BLE_GATT_SVR_SUP_FEAT_EATT_BITMASK; in gatt_profile_db_init()
388 gatt_cb.gatt_cl_supported_feat_mask |= BLE_GATT_CL_SUP_FEAT_EATT_BITMASK; in gatt_profile_db_init()
390 VLOG(1) << __func__ << ": gatt_if=" << gatt_cb.gatt_if << " EATT supported"; in gatt_profile_db_init()
497 attr.value[0] = gatt_cb.gatt_cl_supported_feat_mask; in gatt_att_write_cl_supp_feat()
647 if (GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &p_clcb->conn_id, in GATT_ConfigServiceChangeCCC()
652 GATT_Connect(gatt_cb.gatt_if, remote_bda, true, transport, true); in GATT_ConfigServiceChangeCCC()
735 GATT_GetConnIdIfConnected(gatt_cb.gatt_if, remote_bda, &conn_id, in gatt_profile_get_eatt_support()