Lines Matching full:path
43 char path[OT_SETTINGS_MAX_PATH_LEN]; in ot_setting_delete_cb() local
60 ret = snprintk(path, sizeof(path), "%s%s%s", ctx->subtree, in ot_setting_delete_cb()
62 __ASSERT(ret < sizeof(path), "Setting path buffer too small."); in ot_setting_delete_cb()
64 LOG_DBG("Removing: %s", path); in ot_setting_delete_cb()
66 ret = settings_delete(path); in ot_setting_delete_cb()
68 LOG_ERR("Failed to remove setting %s, ret %d", path, in ot_setting_delete_cb()
103 __ASSERT(ret < sizeof(subtree), "Setting path buffer too small."); in ot_setting_delete_subtree()
132 static bool ot_setting_exists(const char *path) in ot_setting_exists() argument
136 (void)settings_load_subtree_direct(path, ot_setting_exists_cb, &exists); in ot_setting_exists()
224 char path[OT_SETTINGS_MAX_PATH_LEN]; in otPlatSettingsGet() local
236 ret = snprintk(path, sizeof(path), "%s/%x", OT_SETTINGS_ROOT_KEY, aKey); in otPlatSettingsGet()
237 __ASSERT(ret < sizeof(path), "Setting path buffer too small."); in otPlatSettingsGet()
239 ret = settings_load_subtree_direct(path, ot_setting_read_cb, &read_ctx); in otPlatSettingsGet()
257 char path[OT_SETTINGS_MAX_PATH_LEN]; in otPlatSettingsSet() local
265 ret = snprintk(path, sizeof(path), "%s/%x", OT_SETTINGS_ROOT_KEY, aKey); in otPlatSettingsSet()
266 __ASSERT(ret < sizeof(path), "Setting path buffer too small."); in otPlatSettingsSet()
268 ret = settings_save_one(path, aValue, aValueLength); in otPlatSettingsSet()
281 char path[OT_SETTINGS_MAX_PATH_LEN]; in otPlatSettingsAdd() local
288 ret = snprintk(path, sizeof(path), "%s/%x/%08x", in otPlatSettingsAdd()
290 __ASSERT(ret < sizeof(path), "Setting path buffer too small."); in otPlatSettingsAdd()
291 } while (ot_setting_exists(path)); in otPlatSettingsAdd()
293 ret = settings_save_one(path, aValue, aValueLength); in otPlatSettingsAdd()