Lines Matching refs:srvc_cb
44 if (!p_cb->srvc_cb[i].in_use) { in bta_gatts_alloc_srvc_cb()
45 p_cb->srvc_cb[i].in_use = true; in bta_gatts_alloc_srvc_cb()
46 p_cb->srvc_cb[i].rcb_idx = rcb_idx; in bta_gatts_alloc_srvc_cb()
107 if (p_cb->srvc_cb[i].in_use && p_cb->srvc_cb[i].service_id == service_id) { in bta_gatts_find_srvc_cb_by_srvc_id()
109 return &p_cb->srvc_cb[i]; in bta_gatts_find_srvc_cb_by_srvc_id()
129 (i < (BTA_GATTS_MAX_SRVC_NUM - 1) && p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
130 p_cb->srvc_cb[i + 1].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
131 attr_id >= p_cb->srvc_cb[i].service_id && in bta_gatts_find_srvc_cb_by_attr_id()
132 attr_id < p_cb->srvc_cb[i + 1].service_id) || in bta_gatts_find_srvc_cb_by_attr_id()
134 (i < (BTA_GATTS_MAX_SRVC_NUM - 1) && p_cb->srvc_cb[i].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
135 !p_cb->srvc_cb[i + 1].in_use && in bta_gatts_find_srvc_cb_by_attr_id()
136 attr_id >= p_cb->srvc_cb[i].service_id) || in bta_gatts_find_srvc_cb_by_attr_id()
139 attr_id >= p_cb->srvc_cb[i].service_id)) { in bta_gatts_find_srvc_cb_by_attr_id()
140 return &p_cb->srvc_cb[i]; in bta_gatts_find_srvc_cb_by_attr_id()