Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/vsock/
Dutil.c224 ssize_t nwritten; in send_byte() local
228 nwritten = send(fd, &byte, sizeof(byte), flags); in send_byte()
230 } while (nwritten < 0 && errno == EINTR); in send_byte()
234 if (nwritten != -1) { in send_byte()
236 nwritten); in send_byte()
246 if (nwritten < 0) { in send_byte()
250 if (nwritten == 0) { in send_byte()
257 if (nwritten != sizeof(byte)) { in send_byte()
258 fprintf(stderr, "bogus send(2) return value %zd\n", nwritten); in send_byte()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/fs/vboxsf/
Dfile.c315 u32 nwritten = len; in vboxsf_write_end() local
325 pos, &nwritten, buf + from); in vboxsf_write_end()
329 nwritten = 0; in vboxsf_write_end()
336 if (!PageUptodate(page) && nwritten == PAGE_SIZE) in vboxsf_write_end()
339 pos += nwritten; in vboxsf_write_end()
347 return nwritten; in vboxsf_write_end()
/linux-6.1.9/drivers/char/ipmi/
Dbt-bmc.c247 ssize_t nwritten; in bt_bmc_write() local
277 nwritten = min_t(ssize_t, count, sizeof(kbuffer)); in bt_bmc_write()
278 if (copy_from_user(&kbuffer, buf, nwritten)) { in bt_bmc_write()
283 bt_writen(bt_bmc, kbuffer, nwritten); in bt_bmc_write()
285 count -= nwritten; in bt_bmc_write()
286 buf += nwritten; in bt_bmc_write()
287 ret += nwritten; in bt_bmc_write()
/linux-6.1.9/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()
1179 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()
/linux-6.1.9/drivers/usb/gadget/function/
Df_mass_storage.c729 ssize_t nwritten; in do_write() local
866 nwritten = kernel_write(curlun->filp, bh->buf, amount, in do_write()
869 (unsigned long long)file_offset, (int)nwritten); in do_write()
873 if (nwritten < 0) { in do_write()
875 (int) nwritten); in do_write()
876 nwritten = 0; in do_write()
877 } else if (nwritten < amount) { in do_write()
879 (int) nwritten, amount); in do_write()
880 nwritten = round_down(nwritten, curlun->blksize); in do_write()
882 file_offset += nwritten; in do_write()
[all …]
/linux-6.1.9/fs/f2fs/
Dcheckpoint.c394 long nwritten = 0; in f2fs_sync_meta_pages() local
440 nwritten++; in f2fs_sync_meta_pages()
442 if (unlikely(nwritten >= nr_to_write)) in f2fs_sync_meta_pages()
449 if (nwritten) in f2fs_sync_meta_pages()
454 return nwritten; in f2fs_sync_meta_pages()
Dnode.c1736 int nwritten = 0; in f2fs_fsync_node_pages() local
1814 nwritten++; in f2fs_fsync_node_pages()
1839 if (nwritten) in f2fs_fsync_node_pages()
1937 int nwritten = 0; in f2fs_sync_node_pages() local
2021 nwritten++; in f2fs_sync_node_pages()
2043 if (nwritten) in f2fs_sync_node_pages()
Ddata.c2968 int nwritten = 0; in f2fs_write_cache_pages() local
3105 nwritten += submitted; in f2fs_write_cache_pages()
3146 nwritten += submitted; in f2fs_write_cache_pages()
3166 if (nwritten) in f2fs_write_cache_pages()
/linux-6.1.9/include/linux/
Dmpi.h103 size_t buflen, size_t *nwritten, MPI a);
Dnfs_xdr.h1311 unsigned int nwritten; member