Searched refs:block_size (Results 1 – 10 of 10) sorted by relevance
/littlefs-3.5.0-3.4.0/bd/ |
D | lfs_rambd.c | 20 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_rambd_createcfg() 29 bd->buffer = lfs_malloc(cfg->block_size * cfg->block_count); in lfs_rambd_createcfg() 39 cfg->block_size * cfg->block_count); in lfs_rambd_createcfg() 41 memset(bd->buffer, 0, cfg->block_size * cfg->block_count); in lfs_rambd_createcfg() 56 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count); in lfs_rambd_create() 87 memcpy(buffer, &bd->buffer[block*cfg->block_size + off], size); in lfs_rambd_read() 108 LFS_ASSERT(bd->buffer[block*cfg->block_size + off + i] == in lfs_rambd_prog() 114 memcpy(&bd->buffer[block*cfg->block_size + off], buffer, size); in lfs_rambd_prog() 129 memset(&bd->buffer[block*cfg->block_size], in lfs_rambd_erase() 130 bd->cfg->erase_value, cfg->block_size); in lfs_rambd_erase()
|
D | lfs_filebd.c | 29 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_filebd_createcfg() 60 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_filebd_create() 100 (off_t)block*cfg->block_size + (off_t)off, SEEK_SET); in lfs_filebd_read() 132 (off_t)block*cfg->block_size + (off_t)off, SEEK_SET); in lfs_filebd_prog() 154 (off_t)block*cfg->block_size + (off_t)off, SEEK_SET); in lfs_filebd_prog() 181 off_t res1 = lseek(bd->fd, (off_t)block*cfg->block_size, SEEK_SET); in lfs_filebd_erase() 188 for (lfs_off_t i = 0; i < cfg->block_size; i++) { in lfs_filebd_erase()
|
D | lfs_testbd.c | 27 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_testbd_createcfg() 80 cfg->read_size, cfg->prog_size, cfg->block_size, cfg->block_count, in lfs_testbd_create()
|
/littlefs-3.5.0-3.4.0/scripts/ |
D | readblock.py | 7 f.seek(args.block * args.block_size) 8 block = (f.read(args.block_size) 9 .ljust(args.block_size, b'\xff'))
|
D | readtree.py | 32 f.seek(block * args.block_size) 33 data.append(f.read(args.block_size) 34 .ljust(args.block_size, b'\xff'))
|
D | readmdir.py | 315 f.seek(block * args.block_size) 316 blocks.append(f.read(args.block_size) 317 .ljust(args.block_size, b'\xff'))
|
/littlefs-3.5.0-3.4.0/tests/ |
D | test_alloc.toml | 495 for (lfs_size_t i = 0; i < cfg.block_size; i += 2) { 498 lfs_file_write(&lfs, &file, buffer, cfg.block_size) => cfg.block_size; 505 i < (cfg.block_count-4)*(cfg.block_size-8); 521 for (lfs_size_t i = 0; i < cfg.block_size; i += 2) { 524 lfs_file_write(&lfs, &file, buffer, 2*cfg.block_size) => LFS_ERR_NOSPC; 544 i < ((cfg.block_count-2)/2)*(cfg.block_size-8); 555 i < ((cfg.block_count-2+1)/2)*(cfg.block_size-8); 572 i < ((cfg.block_count-2)/2)*(cfg.block_size-8); 586 i < ((cfg.block_count-2+1)/2)*(cfg.block_size-8); 609 i < ((cfg.block_count-2)/2)*(cfg.block_size-8); [all …]
|
/littlefs-3.5.0-3.4.0/ |
D | lfs.c | 54 off+size > lfs->cfg->block_size) { in lfs_bd_read() 117 lfs->cfg->block_size) in lfs_bd_read() 216 LFS_ASSERT(off + size <= lfs->cfg->block_size); in lfs_bd_prog() 435 superblock->block_size = lfs_fromle32(superblock->block_size); in lfs_superblock_fromle32() 445 superblock->block_size = lfs_tole32(superblock->block_size); in lfs_superblock_tole32() 685 if (off+size > lfs->cfg->block_size) { in lfs_dir_getread() 1058 NULL, &lfs->rcache, lfs->cfg->block_size, in lfs_dir_fetchmatch() 1077 } else if (off + lfs_tag_dsize(tag) > lfs->cfg->block_size) { in lfs_dir_fetchmatch() 1088 NULL, &lfs->rcache, lfs->cfg->block_size, in lfs_dir_fetchmatch() 1131 NULL, &lfs->rcache, lfs->cfg->block_size, in lfs_dir_fetchmatch() [all …]
|
D | lfs.h | 206 lfs_size_t block_size; member 374 lfs_size_t block_size; member
|
D | README.md | 52 .block_size = 4096,
|