Home
last modified time | relevance | path

Searched refs:erase_value (Results 1 – 6 of 6) sorted by relevance

/littlefs-3.5.0-3.4.0/bd/
Dlfs_rambd.c21 (void*)bdcfg, bdcfg->erase_value, bdcfg->buffer); in lfs_rambd_createcfg()
37 if (bd->cfg->erase_value != -1) { in lfs_rambd_createcfg()
38 memset(bd->buffer, bd->cfg->erase_value, in lfs_rambd_createcfg()
57 static const struct lfs_rambd_config defaults = {.erase_value=-1}; in lfs_rambd_create()
106 if (bd->cfg->erase_value != -1) { in lfs_rambd_prog()
109 bd->cfg->erase_value); in lfs_rambd_prog()
128 if (bd->cfg->erase_value != -1) { in lfs_rambd_erase()
130 bd->cfg->erase_value, cfg->block_size); in lfs_rambd_erase()
Dlfs_filebd.c30 path, (void*)bdcfg, bdcfg->erase_value); in lfs_filebd_createcfg()
62 static const struct lfs_filebd_config defaults = {.erase_value=-1}; in lfs_filebd_create()
94 if (bd->cfg->erase_value != -1) { in lfs_filebd_read()
95 memset(buffer, bd->cfg->erase_value, size); in lfs_filebd_read()
130 if (bd->cfg->erase_value != -1) { in lfs_filebd_prog()
148 LFS_ASSERT(c == bd->cfg->erase_value); in lfs_filebd_prog()
180 if (bd->cfg->erase_value != -1) { in lfs_filebd_erase()
189 ssize_t res2 = write(bd->fd, &(uint8_t){bd->cfg->erase_value}, 1); in lfs_filebd_erase()
Dlfs_testbd.c28 path, (void*)bdcfg, bdcfg->erase_value, bdcfg->erase_cycles, in lfs_testbd_createcfg()
55 .erase_value = bd->cfg->erase_value, in lfs_testbd_createcfg()
62 .erase_value = bd->cfg->erase_value, in lfs_testbd_createcfg()
82 static const struct lfs_testbd_config defaults = {.erase_value=-1}; in lfs_testbd_create()
Dlfs_filebd.h32 int32_t erase_value; member
Dlfs_rambd.h31 int32_t erase_value; member
Dlfs_testbd.h53 int32_t erase_value; member