Lines Matching refs:s_hdl
140 gatt_cb.last_service_handle = el.s_hdl; in gatt_update_last_srv_info()
172 uint16_t s_hdl = 0; in GATTS_AddService() local
189 s_hdl = gatt_cb.hdl_cfg.gatt_start_hdl; in GATTS_AddService()
191 s_hdl = gatt_cb.hdl_cfg.gap_start_hdl; in GATTS_AddService()
194 s_hdl = gatt_cb.hdl_list_info->front().asgn_range.e_handle + 1; in GATTS_AddService()
197 if (s_hdl < gatt_cb.hdl_cfg.app_start_hdl) in GATTS_AddService()
198 s_hdl = gatt_cb.hdl_cfg.app_start_hdl; in GATTS_AddService()
204 if (num_handles > (0xFFFF - s_hdl + 1)) { in GATTS_AddService()
205 LOG(ERROR) << __func__ << ": no handles, s_hdl=" << +s_hdl in GATTS_AddService()
210 tGATT_HDL_LIST_ELEM& list = gatt_add_an_item_to_list(s_hdl); in GATTS_AddService()
213 list.asgn_range.s_handle = s_hdl; in GATTS_AddService()
214 list.asgn_range.e_handle = s_hdl + num_handles - 1; in GATTS_AddService()
222 gatts_init_service_db(list.svc_db, svc_uuid, is_pri, s_hdl, num_handles); in GATTS_AddService()
230 service->attribute_handle = s_hdl; in GATTS_AddService()
296 if (list.asgn_range.s_handle < it->s_hdl) break; in GATTS_AddService()
302 elem.s_hdl = list.asgn_range.s_handle; in GATTS_AddService()
313 elem.sdp_handle = gatt_add_sdp_record(*p_uuid, elem.s_hdl, elem.e_hdl); in GATTS_AddService()
320 VLOG(1) << __func__ << ": allocated el s_hdl=" << loghex(elem.s_hdl) in GATTS_AddService()
336 *p_svc_uuid == *p_this_uuid && (start_handle == info.s_hdl)) { in is_active_service()
1061 GATTS_StopService(it++->s_hdl); in GATT_Deregister()