Lines Matching refs:attrs
258 if (next->attrs[0].handle <= start_handle) { in foreach_attr_type_dyndb()
264 struct bt_gatt_attr *attr = &svc->attrs[i]; in foreach_attr_type_dyndb()
300 if (gatt_foreach_iter(&static_svc->attrs[i], in bt_gatt_foreach_attr_type()
353 if (last_handle == 0 || svc->attrs[0].handle > last_handle) { in gatt_insert()
360 if (tmp->attrs[0].handle > svc->attrs[0].handle) { in gatt_insert()
378 struct bt_gatt_attr *attrs = svc->attrs; in gatt_register() local
388 handle = last->attrs[last->attr_count - 1].handle; in gatt_register()
393 for (; attrs && count; attrs++, count--) { in gatt_register()
394 if (!attrs->handle) { in gatt_register()
396 attrs->handle = ++handle; in gatt_register()
397 } else if (attrs->handle > handle) { in gatt_register()
399 handle = attrs->handle; in gatt_register()
400 } else if (find_attr(attrs->handle)) { in gatt_register()
402 LOG_ERR("Mock: Unable to register handle 0x%04x", attrs->handle); in gatt_register()
406 LOG_DBG("attr %p handle 0x%04x uuid %s perm 0x%02x", attrs, attrs->handle, in gatt_register()
407 bt_uuid_str(attrs->uuid), attrs->perm); in gatt_register()
429 __ASSERT(svc->attrs, "invalid parameters\n"); in bt_gatt_service_register()
436 if (!bt_uuid_cmp(svc->attrs[0].uuid, BT_UUID_GAP) || in bt_gatt_service_register()
437 !bt_uuid_cmp(svc->attrs[0].uuid, BT_UUID_GATT)) { in bt_gatt_service_register()