Lines Matching refs:s_hdl
133 gatt_cb.last_service_handle = el.s_hdl; in gatt_update_last_srv_info()
154 uint16_t s_hdl = 0; in GATTS_AddService() local
171 s_hdl = gatt_cb.hdl_cfg.gatt_start_hdl; in GATTS_AddService()
173 s_hdl = gatt_cb.hdl_cfg.gap_start_hdl; in GATTS_AddService()
176 s_hdl = gatt_cb.hdl_list_info->front().asgn_range.e_handle + 1; in GATTS_AddService()
179 if (s_hdl < gatt_cb.hdl_cfg.app_start_hdl) in GATTS_AddService()
180 s_hdl = gatt_cb.hdl_cfg.app_start_hdl; in GATTS_AddService()
186 if (num_handles > (0xFFFF - s_hdl + 1)) { in GATTS_AddService()
187 LOG(ERROR) << __func__ << ": no handles, s_hdl=" << +s_hdl in GATTS_AddService()
192 tGATT_HDL_LIST_ELEM& list = gatt_add_an_item_to_list(s_hdl); in GATTS_AddService()
195 list.asgn_range.s_handle = s_hdl; in GATTS_AddService()
196 list.asgn_range.e_handle = s_hdl + num_handles - 1; in GATTS_AddService()
204 gatts_init_service_db(list.svc_db, svc_uuid, is_pri, s_hdl, num_handles); in GATTS_AddService()
212 service->attribute_handle = s_hdl; in GATTS_AddService()
272 if (list.asgn_range.s_handle < it->s_hdl) break; in GATTS_AddService()
278 elem.s_hdl = list.asgn_range.s_handle; in GATTS_AddService()
289 elem.sdp_handle = gatt_add_sdp_record(*p_uuid, elem.s_hdl, elem.e_hdl); in GATTS_AddService()
296 VLOG(1) << __func__ << ": allocated el s_hdl=" << loghex(elem.s_hdl) in GATTS_AddService()
311 *p_svc_uuid == *p_this_uuid && (start_handle == info.s_hdl)) { in is_active_service()
1005 GATTS_StopService(it++->s_hdl); in GATT_Deregister()