Lines Matching +full:1 +full:db
47 static sys_slist_t db; variable
233 *num_matches -= 1; in gatt_foreach_iter()
252 SYS_SLIST_FOR_EACH_CONTAINER(&db, svc, node) { in foreach_attr_type_dyndb()
290 uint16_t handle = 1; in bt_gatt_foreach_attr_type()
306 LOG_DBG("Returning after searching static DB"); in bt_gatt_foreach_attr_type()
314 /* Iterate over dynamic db */ in bt_gatt_foreach_attr_type()
354 sys_slist_append(&db, &svc->node); in gatt_insert()
358 /* DB shall always have its service in ascending order */ in gatt_insert()
359 SYS_SLIST_FOR_EACH_CONTAINER(&db, tmp, node) { in gatt_insert()
362 sys_slist_insert(&db, &prev->node, &svc->node); in gatt_insert()
364 sys_slist_prepend(&db, &svc->node); in gatt_insert()
381 if (sys_slist_is_empty(&db)) { in gatt_register()
387 last = SYS_SLIST_PEEK_TAIL_CONTAINER(&db, last, node); in gatt_register()
388 handle = last->attrs[last->attr_count - 1].handle; in gatt_register()
417 if (!sys_slist_find_and_remove(&db, &svc->node)) { in gatt_unregister()