![]() |
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
Go to the source code of this file.
Functions | |
psa_status_t | its_flash_fs_dblock_compact_block (struct its_flash_fs_ctx_t *fs_ctx, uint32_t lblock, size_t free_size, size_t src_offset, size_t dst_offset, size_t size) |
Compacts block data for the given logical block. More... | |
psa_status_t | its_flash_fs_dblock_read_file (struct its_flash_fs_ctx_t *fs_ctx, const struct its_file_meta_t *file_meta, size_t offset, size_t size, uint8_t *buf) |
Reads the file content. More... | |
psa_status_t | its_flash_fs_dblock_write_file (struct its_flash_fs_ctx_t *fs_ctx, const struct its_block_meta_t *block_meta, const struct its_file_meta_t *file_meta, size_t offset, size_t size, const uint8_t *data) |
Writes scratch data block content with requested data and the rest of the data from the given logical block. More... | |
psa_status_t its_flash_fs_dblock_compact_block | ( | struct its_flash_fs_ctx_t * | fs_ctx, |
uint32_t | lblock, | ||
size_t | free_size, | ||
size_t | src_offset, | ||
size_t | dst_offset, | ||
size_t | size | ||
) |
Compacts block data for the given logical block.
[in,out] | fs_ctx | Filesystem context |
[in] | lblock | Logical data block to compact |
[in] | free_size | Available data size to compact |
[in] | src_offset | Offset in the current data block which points to the data position to reallocate |
[in] | dst_offset | Offset in the scratch block which points to the data position to store the data to be reallocated |
[in] | size | Number of bytes to be reallocated |
Definition at line 34 of file its_flash_fs_dblock.c.
psa_status_t its_flash_fs_dblock_read_file | ( | struct its_flash_fs_ctx_t * | fs_ctx, |
const struct its_file_meta_t * | file_meta, | ||
size_t | offset, | ||
size_t | size, | ||
uint8_t * | buf | ||
) |
Reads the file content.
[in,out] | fs_ctx | Filesystem context |
[in] | file_meta | File metadata |
[in] | offset | Offset in the file |
[in] | size | Size to be read |
[out] | buf | Buffer pointer to store the data |
Definition at line 114 of file its_flash_fs_dblock.c.
psa_status_t its_flash_fs_dblock_write_file | ( | struct its_flash_fs_ctx_t * | fs_ctx, |
const struct its_block_meta_t * | block_meta, | ||
const struct its_file_meta_t * | file_meta, | ||
size_t | offset, | ||
size_t | size, | ||
const uint8_t * | data | ||
) |
Writes scratch data block content with requested data and the rest of the data from the given logical block.
[in,out] | fs_ctx | Filesystem context |
[in] | block_meta | Block metadata |
[in] | file_meta | File metadata |
[in] | offset | Offset in the scratch data block where to start the copy of the incoming data |
[in] | size | Size of the incoming data |
[in] | data | Pointer to data buffer to copy in the scratch data block |
Definition at line 135 of file its_flash_fs_dblock.c.