Lines Matching refs:cache_size
305 fdp->cache_block = fc_allocate(lfs->cfg->cache_size); in littlefs_open()
780 lfs_size_t cache_size = lcp->cache_size; in littlefs_init_cfg() local
782 if (cache_size == 0) { in littlefs_init_cfg()
783 cache_size = CONFIG_FS_LITTLEFS_CACHE_SIZE; in littlefs_init_cfg()
829 read_size, prog_size, cache_size, lookahead_size); in littlefs_init_cfg()
835 __ASSERT_NO_MSG(cache_size != 0); in littlefs_init_cfg()
841 __ASSERT((block_size % cache_size) == 0, in littlefs_init_cfg()
857 if (cache_size < new_cache_size) { in littlefs_init_cfg()
858 LOG_ERR("Configured cache size is too small: %d < %d", cache_size, in littlefs_init_cfg()
862 lcp->cache_size = new_cache_size; in littlefs_init_cfg()
874 lcp->read_size, lcp->prog_size, lcp->cache_size, in littlefs_init_cfg()
888 lcp->cache_size = cache_size; in littlefs_init_cfg()
1081 read_buffer_##inst[DT_INST_PROP(inst, cache_size)]; \
1083 prog_buffer_##inst[DT_INST_PROP(inst, cache_size)]; \
1088 BUILD_ASSERT(DT_INST_PROP(inst, cache_size) > 0); \
1091 BUILD_ASSERT((DT_INST_PROP(inst, cache_size) \
1093 BUILD_ASSERT((DT_INST_PROP(inst, cache_size) \
1099 .cache_size = DT_INST_PROP(inst, cache_size), \