Home
last modified time | relevance | path

Searched refs:nwritten (Results 1 – 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/vsock/
Dutil.c202 ssize_t nwritten; in send_byte() local
206 nwritten = send(fd, &byte, sizeof(byte), flags); in send_byte()
208 } while (nwritten < 0 && errno == EINTR); in send_byte()
212 if (nwritten != -1) { in send_byte()
214 nwritten); in send_byte()
224 if (nwritten < 0) { in send_byte()
228 if (nwritten == 0) { in send_byte()
235 if (nwritten != sizeof(byte)) { in send_byte()
236 fprintf(stderr, "bogus send(2) return value %zd\n", nwritten); in send_byte()
/kernel/linux/linux-5.10/arch/alpha/boot/tools/
Dobjstrip.c55 size_t nwritten, tocopy, n, mem_size, fil_size, pad = 0; in main() local
250 nwritten = write(ofd, buf, n); in main()
251 if ((ssize_t) nwritten == -1) { in main()
255 n -= nwritten; in main()
275 nwritten = write(ofd, buf, n); in main()
276 if ((ssize_t) nwritten == -1) { in main()
280 tocopy -= nwritten; in main()
/kernel/linux/linux-5.10/lib/mpi/
Dmpicoder.c555 size_t buflen, size_t *nwritten, MPI a) in mpi_print() argument
562 if (!nwritten) in mpi_print()
563 nwritten = &dummy_nwritten; in mpi_print()
577 *nwritten = 0; in mpi_print()
618 *nwritten = n; in mpi_print()
639 *nwritten = n; in mpi_print()
664 *nwritten = n+2; in mpi_print()
706 *nwritten = 4+n; in mpi_print()
742 *nwritten = s - buffer; in mpi_print()
744 *nwritten = 2*n + extra + negative + 1; in mpi_print()
/kernel/linux/linux-5.10/fs/vboxsf/
Dfile.c314 u32 nwritten = len; in vboxsf_write_end() local
324 pos, &nwritten, buf + from); in vboxsf_write_end()
328 nwritten = 0; in vboxsf_write_end()
335 if (!PageUptodate(page) && nwritten == PAGE_SIZE) in vboxsf_write_end()
338 pos += nwritten; in vboxsf_write_end()
346 return nwritten; in vboxsf_write_end()
/kernel/linux/linux-5.10/drivers/char/ipmi/
Dbt-bmc.c265 ssize_t nwritten; in bt_bmc_write() local
295 nwritten = min_t(ssize_t, count, sizeof(kbuffer)); in bt_bmc_write()
296 if (copy_from_user(&kbuffer, buf, nwritten)) { in bt_bmc_write()
301 bt_writen(bt_bmc, kbuffer, nwritten); in bt_bmc_write()
303 count -= nwritten; in bt_bmc_write()
304 buf += nwritten; in bt_bmc_write()
305 ret += nwritten; in bt_bmc_write()
/kernel/linux/linux-5.10/fs/nfs/
Dpnfs_nfs.c85 cinfo->ds->nwritten--; in pnfs_generic_clear_request_commit()
252 cinfo->ds->nwritten -= ret; in pnfs_bucket_scan_ds_commit_list()
310 unsigned int nwritten, ret = 0; in pnfs_bucket_recover_commit_reqs() local
315 nwritten = nfs_scan_commit_list(&b->written, dst, cinfo, 0); in pnfs_bucket_recover_commit_reqs()
316 if (!nwritten) in pnfs_bucket_recover_commit_reqs()
318 ret += nwritten; in pnfs_bucket_recover_commit_reqs()
334 unsigned int nwritten; in pnfs_generic_recover_commit_reqs() local
342 nwritten = pnfs_bucket_recover_commit_reqs(dst, in pnfs_generic_recover_commit_reqs()
348 fl_cinfo->nwritten -= nwritten; in pnfs_generic_recover_commit_reqs()
1188 cinfo->ds->nwritten++; in pnfs_layout_mark_request_commit()
Dpnfs.h544 if (!fl_cinfo || fl_cinfo->nwritten == 0) in pnfs_scan_commit_lists()
554 if (fl_cinfo && fl_cinfo->nwritten != 0) in pnfs_recover_commit_reqs()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_mass_storage.c757 ssize_t nwritten; in do_write() local
891 nwritten = kernel_write(curlun->filp, bh->buf, amount, in do_write()
894 (unsigned long long)file_offset, (int)nwritten); in do_write()
898 if (nwritten < 0) { in do_write()
900 (int) nwritten); in do_write()
901 nwritten = 0; in do_write()
902 } else if (nwritten < amount) { in do_write()
904 (int) nwritten, amount); in do_write()
905 nwritten = round_down(nwritten, curlun->blksize); in do_write()
907 file_offset += nwritten; in do_write()
[all …]
/kernel/linux/linux-5.10/fs/f2fs/
Dcheckpoint.c381 long nwritten = 0; in f2fs_sync_meta_pages() local
427 nwritten++; in f2fs_sync_meta_pages()
429 if (unlikely(nwritten >= nr_to_write)) in f2fs_sync_meta_pages()
436 if (nwritten) in f2fs_sync_meta_pages()
441 return nwritten; in f2fs_sync_meta_pages()
Dnode.c1680 int nwritten = 0; in f2fs_fsync_node_pages() local
1757 nwritten++; in f2fs_fsync_node_pages()
1782 if (nwritten) in f2fs_fsync_node_pages()
1880 int nwritten = 0; in f2fs_sync_node_pages() local
1968 nwritten++; in f2fs_sync_node_pages()
1990 if (nwritten) in f2fs_sync_node_pages()
Ddata.c3006 int nwritten = 0; in f2fs_write_cache_pages() local
3141 nwritten += submitted; in f2fs_write_cache_pages()
3183 nwritten += submitted; in f2fs_write_cache_pages()
3203 if (nwritten) in f2fs_write_cache_pages()
/kernel/linux/linux-5.10/include/linux/
Dmpi.h103 size_t buflen, size_t *nwritten, MPI a);
Dnfs_xdr.h1291 unsigned int nwritten; member