Searched refs:res (Results 1 – 6 of 6) sorted by relevance
/littlefs-3.5.0-3.4.0/tests/ |
D | test_exhaustion.toml | 33 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1); 34 assert(res == 1 || res == LFS_ERR_NOSPC); 35 if (res == LFS_ERR_NOSPC) { 115 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1); 116 assert(res == 1 || res == LFS_ERR_NOSPC); 117 if (res == LFS_ERR_NOSPC) { 206 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1); 207 assert(res == 1 || res == LFS_ERR_NOSPC); 208 if (res == LFS_ERR_NOSPC) { 295 lfs_ssize_t res = lfs_file_write(&lfs, &file, &c, 1); [all …]
|
D | test_alloc.toml | 205 lfs_ssize_t res; 207 res = lfs_file_write(&lfs, &file, buffer, size); 208 if (res < 0) { 212 res => size; 214 res => LFS_ERR_NOSPC; 252 lfs_ssize_t res; 254 res = lfs_file_write(&lfs, &file, buffer, size); 255 if (res < 0) { 259 res => size; 261 res => LFS_ERR_NOSPC; [all …]
|
D | test_relocations.toml | 174 int res = lfs_stat(&lfs, full_path, &info); 175 if (res == LFS_ERR_NOENT) { 236 int res = lfs_stat(&lfs, full_path, &info); 237 assert(!res || res == LFS_ERR_NOENT); 238 if (res == LFS_ERR_NOENT) { 265 res = lfs_stat(&lfs, new_path, &info); 266 assert(!res || res == LFS_ERR_NOENT); 267 if (res == LFS_ERR_NOENT) {
|
D | test_orphans.toml | 85 int res = lfs_stat(&lfs, full_path, &info); 86 if (res == LFS_ERR_NOENT) {
|
/littlefs-3.5.0-3.4.0/scripts/ |
D | explode_asserts.py | 306 res = [] 309 res.append(p.m) 311 res.append(pexprs(p)) 313 res.append(p.m) 316 res.append(p.expect(')')) 318 res.append(passert(p)) 320 res.append(p.m) 322 return ''.join(res) 325 res = [] 327 res.append(pexpr(p)) [all …]
|
/littlefs-3.5.0-3.4.0/ |
D | lfs.c | 142 int res = lfs_bd_read(lfs, in lfs_bd_cmp() local 145 if (res) { in lfs_bd_cmp() 146 return res; in lfs_bd_cmp() 149 res = memcmp(dat, data + i, diff); in lfs_bd_cmp() 150 if (res) { in lfs_bd_cmp() 151 return res < 0 ? LFS_CMP_LT : LFS_CMP_GT; in lfs_bd_cmp() 174 int res = lfs_bd_cmp(lfs, in lfs_bd_flush() local 177 if (res < 0) { in lfs_bd_flush() 178 return res; in lfs_bd_flush() 181 if (res != LFS_CMP_EQ) { in lfs_bd_flush() [all …]
|