Searched refs:flash_info (Results 1 – 10 of 10) sorted by relevance
| /trusted-services/components/service/secure_storage/backend/secure_flash_store/flash_fs/ |
| A D | sfs_flash_fs_mblock.c | 355 err = fs_ctx->flash_info->erase(fs_ctx->flash_info, in sfs_mblock_erase_scratch_blocks() 395 return fs_ctx->flash_info->write(fs_ctx->flash_info, in sfs_mblock_update_scratch_block_meta() 571 return fs_ctx->flash_info->write(fs_ctx->flash_info, in sfs_mblock_write_scratch_meta_header() 668 err = fs_ctx->flash_info->read(fs_ctx->flash_info, SFS_METADATA_BLOCK0, in sfs_init_get_active_metablock() 785 err = fs_ctx->flash_info->init(fs_ctx->flash_info); in sfs_flash_fs_mblock_init() 816 err = fs_ctx->flash_info->flush(fs_ctx->flash_info); in sfs_flash_fs_mblock_meta_update_finalize() 937 err = fs_ctx->flash_info->erase(fs_ctx->flash_info, in sfs_flash_fs_mblock_reset_metablock() 943 err = fs_ctx->flash_info->erase(fs_ctx->flash_info, in sfs_flash_fs_mblock_reset_metablock() 981 err |= fs_ctx->flash_info->erase(fs_ctx->flash_info, in sfs_flash_fs_mblock_reset_metablock() 1019 err = fs_ctx->flash_info->flush(fs_ctx->flash_info); in sfs_flash_fs_mblock_reset_metablock() [all …]
|
| A D | sfs_flash_fs_dblock.c | 63 err = sfs_flash_block_to_block_move(fs_ctx->flash_info, scratch_id, in sfs_flash_fs_dblock_compact_block() 75 err = sfs_flash_block_to_block_move(fs_ctx->flash_info, scratch_id, in sfs_flash_fs_dblock_compact_block() 108 err = fs_ctx->flash_info->flush(fs_ctx->flash_info); in sfs_flash_fs_dblock_compact_block() 131 return fs_ctx->flash_info->read(fs_ctx->flash_info, phys_block, buf, pos, in sfs_flash_fs_dblock_read_file() 155 err = sfs_flash_block_to_block_move(fs_ctx->flash_info, in sfs_flash_fs_dblock_write_file() 166 err = fs_ctx->flash_info->write(fs_ctx->flash_info, scratch_id, data, pos, in sfs_flash_fs_dblock_write_file() 176 num_bytes = (fs_ctx->flash_info->block_size - block_meta->free_size) - pos; in sfs_flash_fs_dblock_write_file() 179 err = sfs_flash_block_to_block_move(fs_ctx->flash_info, scratch_id, pos, in sfs_flash_fs_dblock_write_file() 190 err = fs_ctx->flash_info->flush(fs_ctx->flash_info); in sfs_flash_fs_dblock_write_file()
|
| A D | sfs_flash_fs.c | 26 if (!SFS_UTILS_IS_ALIGNED(offset, fs_ctx->flash_info->program_unit)) { in sfs_flash_fs_file_write_aligned_data() 31 size = SFS_UTILS_ALIGN(size, fs_ctx->flash_info->program_unit); in sfs_flash_fs_file_write_aligned_data() 50 const struct sfs_flash_info_t *flash_info) in sfs_flash_fs_prepare() argument 53 fs_ctx->flash_info = flash_info; in sfs_flash_fs_prepare() 94 max_size = SFS_UTILS_ALIGN(max_size, fs_ctx->flash_info->program_unit); in sfs_flash_fs_file_create() 98 if (max_size > fs_ctx->flash_info->max_file_size) { in sfs_flash_fs_file_create() 316 size_t src_offset = fs_ctx->flash_info->block_size; in sfs_flash_fs_file_delete() 352 for (idx = 0; idx < fs_ctx->flash_info->max_num_files; idx++) { in sfs_flash_fs_file_delete()
|
| A D | sfs_flash_fs.h | 63 const struct sfs_flash_info_t *flash_info);
|
| A D | sfs_flash_fs_mblock.h | 110 const struct sfs_flash_info_t *flash_info; /**< Info for the flash device */ member
|
| /trusted-services/components/service/secure_storage/backend/secure_flash_store/test/ |
| A D | sfs_block_store_tests.cpp | 25 const struct sfs_flash_info_t *flash_info = NULL; in TEST_GROUP() local 39 &flash_info); in TEST_GROUP() 42 CHECK_TRUE(flash_info); in TEST_GROUP() 44 struct storage_backend *storage_backend = sfs_init(flash_info); in TEST_GROUP()
|
| /trusted-services/components/service/locator/standalone/services/protected-storage/ |
| A D | ps_service_context.cpp | 32 const struct sfs_flash_info_t *flash_info = NULL; in do_init() local 48 &flash_info); in do_init() 52 struct storage_backend *storage_backend = sfs_init(flash_info); in do_init()
|
| /trusted-services/components/service/secure_storage/backend/secure_flash_store/flash/block_store_adapter/ |
| A D | sfs_flash_block_store_adapter.h | 35 struct sfs_flash_info_t flash_info; member 66 const struct sfs_flash_info_t **flash_info);
|
| A D | sfs_flash_block_store_adapter.c | 25 size_t sub_block_size = context->flash_info.sector_size; in calc_sub_block_pos() 66 if (bytes_to_read > context->flash_info.sector_size) in sfs_flash_read() 67 bytes_to_read = context->flash_info.sector_size; in sfs_flash_read() 113 if (bytes_to_write > context->flash_info.sector_size) in sfs_flash_write() 114 bytes_to_write = context->flash_info.sector_size; in sfs_flash_write() 175 const struct sfs_flash_info_t **flash_info) in sfs_flash_block_store_adapter_init() argument 178 struct sfs_flash_info_t *info = &context->flash_info; in sfs_flash_block_store_adapter_init() 181 *flash_info = info; in sfs_flash_block_store_adapter_init()
|
| /trusted-services/components/service/secure_storage/factory/sp/sfs_shared_block_store/ |
| A D | storage_factory.c | 66 const struct sfs_flash_info_t *flash_info = NULL; in storage_factory_create() local 80 &flash_info); in storage_factory_create() 84 storage_backend = sfs_init(flash_info); in storage_factory_create()
|
Completed in 28 milliseconds