Lines Matching refs:el

105   btgatt_db_element_t* el = service;  in compute_service_size()  local
107 for (int i = 0; i < count; i++, el++) in compute_service_size()
108 if (el->type == BTGATT_DB_PRIMARY_SERVICE || in compute_service_size()
109 el->type == BTGATT_DB_SECONDARY_SERVICE || in compute_service_size()
110 el->type == BTGATT_DB_DESCRIPTOR || in compute_service_size()
111 el->type == BTGATT_DB_INCLUDED_SERVICE) { in compute_service_size()
113 } else if (el->type == BTGATT_DB_CHARACTERISTIC) { in compute_service_size()
117 if (el->properties & GATT_CHAR_PROP_BIT_EXT_PROP) db_size++; in compute_service_size()
119 LOG(ERROR) << __func__ << ": Unknown element type: " << el->type; in compute_service_size()
139 for (tGATT_SRV_LIST_ELEM& el : *gatt_cb.srv_list_info) { in gatt_update_last_srv_info()
140 gatt_cb.last_service_handle = el.s_hdl; in gatt_update_last_srv_info()
232 btgatt_db_element_t* el = service + 1; in GATTS_AddService() local
233 for (int i = 0; i < count - 1; i++, el++) { in GATTS_AddService()
234 const Uuid& uuid = el->uuid; in GATTS_AddService()
236 if (el->type == BTGATT_DB_CHARACTERISTIC) { in GATTS_AddService()
238 if (((el->properties & GATT_CHAR_PROP_BIT_AUTH) && in GATTS_AddService()
239 !(el->permissions & GATT_WRITE_SIGNED_PERM)) || in GATTS_AddService()
240 ((el->permissions & GATT_WRITE_SIGNED_PERM) && in GATTS_AddService()
241 !(el->properties & GATT_CHAR_PROP_BIT_AUTH))) { in GATTS_AddService()
242 VLOG(1) << "Invalid configuration property=" << loghex(el->properties) in GATTS_AddService()
243 << ", perm=" << loghex(el->permissions); in GATTS_AddService()
255 el->attribute_handle = gatts_add_characteristic( in GATTS_AddService()
256 list.svc_db, el->permissions, el->properties, uuid); in GATTS_AddService()
259 if (el->properties & GATT_CHAR_PROP_BIT_EXT_PROP) { in GATTS_AddService()
260 gatts_add_char_ext_prop_descr(list.svc_db, el->extended_properties); in GATTS_AddService()
263 } else if (el->type == BTGATT_DB_DESCRIPTOR) { in GATTS_AddService()
272 el->attribute_handle = in GATTS_AddService()
273 gatts_add_char_descr(list.svc_db, el->permissions, uuid); in GATTS_AddService()
274 } else if (el->type == BTGATT_DB_INCLUDED_SERVICE) { in GATTS_AddService()
276 p_incl_decl = gatt_find_hdl_buffer_by_handle(el->attribute_handle); in GATTS_AddService()
282 el->attribute_handle = gatts_add_included_service( in GATTS_AddService()