Searched refs:erase_value (Results 1 – 6 of 6) sorted by relevance
/littlefs-3.5.0-3.4.0/bd/ |
D | lfs_rambd.c | 21 (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()
|
D | lfs_filebd.c | 30 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()
|
D | lfs_testbd.c | 28 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()
|
D | lfs_filebd.h | 32 int32_t erase_value; member
|
D | lfs_rambd.h | 31 int32_t erase_value; member
|
D | lfs_testbd.h | 53 int32_t erase_value; member
|