Lines Matching refs:res
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;
339 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
340 assert(res == (lfs_ssize_t)size || res == LFS_ERR_NOSPC);
341 if (res == LFS_ERR_NOSPC) {
370 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
371 assert(res == (lfs_ssize_t)size || res == LFS_ERR_CORRUPT);
372 if (res == LFS_ERR_CORRUPT) {
385 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
386 assert(res == (lfs_ssize_t)size || res == LFS_ERR_NOSPC);
387 if (res == LFS_ERR_NOSPC) {