Lines Matching defs:block

160     // information to the block device operations
163 // Read a region in a block. Negative error codes are propagated
165 int (*read)(const struct lfs_config *c, lfs_block_t block,
168 // Program a region in a block. The block must have previously
170 // May return LFS_ERR_CORRUPT if the block should be considered bad.
171 int (*prog)(const struct lfs_config *c, lfs_block_t block,
174 // Erase a block. A block must be erased before being programmed.
175 // The state of an erased block is undefined. Negative error codes
177 // May return LFS_ERR_CORRUPT if the block should be considered bad.
178 int (*erase)(const struct lfs_config *c, lfs_block_t block);
180 // Sync the state of the underlying block device. Negative error codes
185 // Lock the underlying block device. Negative error codes
189 // Unlock the underlying block device. Negative error codes
194 // Minimum size of a block read in bytes. All read operations will be a
198 // Minimum size of a block program in bytes. All program operations will be
202 // Size of an erasable block in bytes. This does not impact ram consumption
204 // files take up at minimum one block. Must be a multiple of the read and
212 // the metadata to another block. Suggested values are in the
216 // Set to -1 to disable block-level wear-leveling.
219 // Size of block caches in bytes. Each cache buffers a portion of a block in
223 // read and program sizes, and a factor of the block size.
296 // Size of a logical block in bytes.
352 lfs_block_t block;
394 lfs_block_t block;
456 // Format a block device with the littlefs
708 // The provided callback will be called with each block address that is
718 // the expensive block allocation scan to a less time-critical code path.
741 // block count.