Lines Matching refs:capacity
79 uint32_t capacity; member
195 divpow2(file->metadata.capacity, page_size_shift); in find_open_run()
223 result += file->metadata.capacity; in used_space()
235 file->metadata.capacity / file->fs_handle->page_size; in consistency_check()
550 f_toc.metadata.capacity = spifs_args->toc_pages * page_size; in spifs_format()
558 b_toc.metadata.capacity = spifs_args->toc_pages * page_size; in spifs_format()
651 if (file_entry->capacity == 0) { in spifs_mount()
745 uint32_t capacity; in spifs_create() local
747 capacity = spifs->page_size; in spifs_create()
749 capacity = ROUNDUP(len, spifs->page_size); in spifs_create()
752 uint32_t open_run = find_open_run(spifs, capacity); in spifs_create()
767 file->metadata.capacity = capacity; in spifs_create()
772 if (bio_erase(spifs->dev, open_run * spifs->page_size, capacity) != in spifs_create()
773 (ssize_t)capacity) { in spifs_create()
918 if (off + len > file->metadata.capacity) { in spifs_write()
1043 stat->capacity = file->metadata.capacity; in spifs_stat()