Lines Matching refs:cf_nvs
105 rc = nvs_read(&cf->cf_nvs, cf->cache[i].name_id, rdname, len); in settings_nvs_cache_match()
157 rc1 = nvs_read(&cf->cf_nvs, name_id, &name, sizeof(name)); in settings_nvs_load()
158 rc2 = nvs_read(&cf->cf_nvs, name_id + NVS_NAME_ID_OFFSET, in settings_nvs_load()
169 nvs_write(&cf->cf_nvs, NVS_NAMECNT_ID, in settings_nvs_load()
182 nvs_delete(&cf->cf_nvs, name_id); in settings_nvs_load()
183 nvs_delete(&cf->cf_nvs, name_id + NVS_NAME_ID_OFFSET); in settings_nvs_load()
187 nvs_write(&cf->cf_nvs, NVS_NAMECNT_ID, in settings_nvs_load()
196 read_fn_arg.fs = &cf->cf_nvs; in settings_nvs_load()
260 rc = nvs_read(&cf->cf_nvs, name_id, &rdname, sizeof(rdname)); in settings_nvs_save()
290 rc = nvs_delete(&cf->cf_nvs, name_id); in settings_nvs_save()
292 rc = nvs_delete(&cf->cf_nvs, name_id + in settings_nvs_save()
302 rc = nvs_write(&cf->cf_nvs, NVS_NAMECNT_ID, in settings_nvs_save()
323 rc = nvs_write(&cf->cf_nvs, NVS_NAMECNT_ID, &cf->last_name_id, in settings_nvs_save()
331 rc = nvs_write(&cf->cf_nvs, write_name_id + NVS_NAME_ID_OFFSET, in settings_nvs_save()
339 rc = nvs_write(&cf->cf_nvs, write_name_id, name, strlen(name)); in settings_nvs_save()
363 cf->cf_nvs.flash_device = cf->flash_dev; in settings_nvs_backend_init()
364 if (cf->cf_nvs.flash_device == NULL) { in settings_nvs_backend_init()
368 rc = nvs_mount(&cf->cf_nvs); in settings_nvs_backend_init()
373 rc = nvs_read(&cf->cf_nvs, NVS_NAMECNT_ID, &last_name_id, in settings_nvs_backend_init()
422 default_settings_nvs.cf_nvs.sector_size = nvs_sector_size; in settings_backend_init()
423 default_settings_nvs.cf_nvs.sector_count = cnt; in settings_backend_init()
424 default_settings_nvs.cf_nvs.offset = fa->fa_off; in settings_backend_init()
447 return &cf->cf_nvs; in settings_nvs_storage_get()