Lines Matching refs:s_hdl
146 UINT16 s_hdl=0; in GATTS_CreateService() local
165 s_hdl = p_list->asgn_range.s_handle; in GATTS_CreateService()
172 s_hdl= gatt_cb.hdl_cfg.gatt_start_hdl; in GATTS_CreateService()
176 s_hdl= gatt_cb.hdl_cfg.gap_start_hdl; in GATTS_CreateService()
184 s_hdl = p_list->asgn_range.e_handle + 1; in GATTS_CreateService()
187 if (s_hdl < gatt_cb.hdl_cfg.app_start_hdl) in GATTS_CreateService()
190 s_hdl= gatt_cb.hdl_cfg.app_start_hdl; in GATTS_CreateService()
196 if (num_handles > (0xFFFF - s_hdl + 1)) in GATTS_CreateService()
198 … GATT_TRACE_ERROR ("GATTS_ReserveHandles: no handles, s_hdl: %u needed: %u", s_hdl, num_handles); in GATTS_CreateService()
212 p_list->asgn_range.s_handle = s_hdl; in GATTS_CreateService()
213 p_list->asgn_range.e_handle = s_hdl+num_handles-1; in GATTS_CreateService()
240 if (!gatts_init_service_db(&p_list->svc_db, p_svc_uuid, is_pri, s_hdl , num_handles)) in GATTS_CreateService()
260 return(s_hdl); in GATTS_CreateService()
434 GATTS_StopService(gatt_cb.sr_reg[i_sreg].s_hdl); in GATTS_DeleteService()
516 p_sreg->sdp_handle = gatt_add_sdp_record(p_uuid, p_sreg->s_hdl, p_sreg->e_hdl); in GATTS_StartService()
523 gatts_update_srv_list_elem(i_sreg, p_sreg->s_hdl, in GATTS_StartService()
531 p_sreg->s_hdl,p_sreg->e_hdl, in GATTS_StartService()
1264 GATTS_StopService(p_sreg->s_hdl); in GATT_Deregister()