Lines Matching refs:_efs
96 static esp_spiffs_t * _efs[CONFIG_SPIFFS_MAX_PARTITIONS]; variable
121 p = _efs[i]; in esp_spiffs_by_label()
139 if (_efs[i] == NULL) { in esp_spiffs_get_empty()
270 _efs[index] = efs; in esp_spiffs_init()
280 return (SPIFFS_mounted(_efs[index]->fs)); in esp_spiffs_mounted()
289 SPIFFS_info(_efs[index]->fs, (uint32_t *)total_bytes, (uint32_t *)used_bytes); in esp_spiffs_info()
314 } else if (SPIFFS_mounted(_efs[index]->fs)) { in esp_spiffs_format()
318 SPIFFS_unmount(_efs[index]->fs); in esp_spiffs_format()
320 s32_t res = SPIFFS_format(_efs[index]->fs); in esp_spiffs_format()
322 ESP_LOGE(TAG, "format failed, %i", SPIFFS_errno(_efs[index]->fs)); in esp_spiffs_format()
323 SPIFFS_clearerr(_efs[index]->fs); in esp_spiffs_format()
329 esp_spiffs_free(&_efs[index]); in esp_spiffs_format()
335 res = SPIFFS_mount(_efs[index]->fs, &_efs[index]->cfg, _efs[index]->work, in esp_spiffs_format()
336 _efs[index]->fds, _efs[index]->fds_sz, _efs[index]->cache, in esp_spiffs_format()
337 _efs[index]->cache_sz, spiffs_api_check); in esp_spiffs_format()
339 ESP_LOGE(TAG, "mount failed, %i", SPIFFS_errno(_efs[index]->fs)); in esp_spiffs_format()
340 SPIFFS_clearerr(_efs[index]->fs); in esp_spiffs_format()
344 esp_spiffs_free(&_efs[index]); in esp_spiffs_format()
391 strlcat(_efs[index]->base_path, conf->base_path, ESP_VFS_PATH_MAX + 1); in esp_vfs_spiffs_register()
392 err = esp_vfs_register(conf->base_path, &vfs, _efs[index]); in esp_vfs_spiffs_register()
394 esp_spiffs_free(&_efs[index]); in esp_vfs_spiffs_register()
407 esp_err_t err = esp_vfs_unregister(_efs[index]->base_path); in esp_vfs_spiffs_unregister()
411 esp_spiffs_free(&_efs[index]); in esp_vfs_spiffs_unregister()