Lines Matching refs:res
247 lfs_ssize_t res;
249 res = lfs_file_write(&lfs, &file, buffer, size);
250 if (res < 0) {
254 res => size;
256 res => LFS_ERR_NOSPC;
301 lfs_ssize_t res;
303 res = lfs_file_write(&lfs, &file, buffer, size);
304 if (res < 0) {
308 res => size;
310 res => LFS_ERR_NOSPC;
402 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
403 assert(res == (lfs_ssize_t)size || res == LFS_ERR_NOSPC);
404 if (res == LFS_ERR_NOSPC) {
433 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
434 assert(res == (lfs_ssize_t)size || res == LFS_ERR_CORRUPT);
435 if (res == LFS_ERR_CORRUPT) {
448 lfs_ssize_t res = lfs_file_write(&lfs, &file, buffer, size);
449 assert(res == (lfs_ssize_t)size || res == LFS_ERR_NOSPC);
450 if (res == LFS_ERR_NOSPC) {