Lines Matching refs:el

102   btgatt_db_element_t* el = service;  in compute_service_size()  local
104 for (int i = 0; i < count; i++, el++) in compute_service_size()
105 if (el->type == BTGATT_DB_PRIMARY_SERVICE || in compute_service_size()
106 el->type == BTGATT_DB_SECONDARY_SERVICE || in compute_service_size()
107 el->type == BTGATT_DB_DESCRIPTOR || in compute_service_size()
108 el->type == BTGATT_DB_INCLUDED_SERVICE) in compute_service_size()
110 else if (el->type == BTGATT_DB_CHARACTERISTIC) in compute_service_size()
113 LOG(ERROR) << __func__ << ": Unknown element type: " << el->type; in compute_service_size()
132 for (tGATT_SRV_LIST_ELEM& el : *gatt_cb.srv_list_info) { in gatt_update_last_srv_info()
133 gatt_cb.last_service_handle = el.s_hdl; in gatt_update_last_srv_info()
214 btgatt_db_element_t* el = service + 1; in GATTS_AddService() local
215 for (int i = 0; i < count - 1; i++, el++) { in GATTS_AddService()
216 const Uuid& uuid = el->uuid; in GATTS_AddService()
218 if (el->type == BTGATT_DB_CHARACTERISTIC) { in GATTS_AddService()
220 if (((el->properties & GATT_CHAR_PROP_BIT_AUTH) && in GATTS_AddService()
221 !(el->permissions & GATT_WRITE_SIGNED_PERM)) || in GATTS_AddService()
222 ((el->permissions & GATT_WRITE_SIGNED_PERM) && in GATTS_AddService()
223 !(el->properties & GATT_CHAR_PROP_BIT_AUTH))) { in GATTS_AddService()
224 VLOG(1) << "Invalid configuration property=" << loghex(el->properties) in GATTS_AddService()
225 << ", perm=" << loghex(el->permissions); in GATTS_AddService()
237 el->attribute_handle = gatts_add_characteristic( in GATTS_AddService()
238 list.svc_db, el->permissions, el->properties, uuid); in GATTS_AddService()
239 } else if (el->type == BTGATT_DB_DESCRIPTOR) { in GATTS_AddService()
248 el->attribute_handle = in GATTS_AddService()
249 gatts_add_char_descr(list.svc_db, el->permissions, uuid); in GATTS_AddService()
250 } else if (el->type == BTGATT_DB_INCLUDED_SERVICE) { in GATTS_AddService()
252 p_incl_decl = gatt_find_hdl_buffer_by_handle(el->attribute_handle); in GATTS_AddService()
258 el->attribute_handle = gatts_add_included_service( in GATTS_AddService()