Lines Matching full:app
25 /* Tracking of what storage changes are pending for App and Net Keys. We
108 /* We need this so we don't overwrite app-hardcoded values in case FCB
381 struct bt_mesh_app_key *app; in app_key_set() local
394 app = bt_mesh_app_key_find(app_idx); in app_key_set()
395 if (app) { in app_key_set()
396 bt_mesh_app_key_del(app, false); in app_key_set()
420 app = bt_mesh_app_key_find(app_idx); in app_key_set()
421 if (!app) { in app_key_set()
422 app = bt_mesh_app_key_alloc(app_idx); in app_key_set()
425 if (!app) { in app_key_set()
426 BT_ERR("No space for a new app key"); in app_key_set()
430 app->net_idx = key.net_idx; in app_key_set()
431 app->app_idx = app_idx; in app_key_set()
432 app->updated = key.updated; in app_key_set()
433 memcpy(app->keys[0].val, key.val[0], 16); in app_key_set()
434 memcpy(app->keys[1].val, key.val[1], 16); in app_key_set()
436 bt_mesh_app_id(app->keys[0].val, &app->keys[0].id); in app_key_set()
437 bt_mesh_app_id(app->keys[1].val, &app->keys[1].id); in app_key_set()
1129 static void store_app_key(struct bt_mesh_app_key *app) in store_app_key() argument
1136 key.net_idx = app->net_idx; in store_app_key()
1137 key.updated = app->updated; in store_app_key()
1138 memcpy(key.val[0], app->keys[0].val, 16); in store_app_key()
1139 memcpy(key.val[1], app->keys[1].val, 16); in store_app_key()
1147 snprintk(path, sizeof(path), "bt_mesh/AppKey/%x", app->app_idx); in store_app_key()