Home
last modified time | relevance | path

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

/drivers/usb/gadget/
Df_mass_storage.c881 ssize_t nwritten; in do_write() local
1011 nwritten = vfs_write(curlun->filp, in do_write()
1015 (unsigned long long)file_offset, (int)nwritten); in do_write()
1019 if (nwritten < 0) { in do_write()
1021 (int)nwritten); in do_write()
1022 nwritten = 0; in do_write()
1023 } else if (nwritten < amount) { in do_write()
1025 (int)nwritten, amount); in do_write()
1026 nwritten = round_down(nwritten, curlun->blksize); in do_write()
1028 file_offset += nwritten; in do_write()
[all …]
Dfile_storage.c1285 ssize_t nwritten; in do_write() local
1406 nwritten = vfs_write(curlun->filp, in do_write()
1411 (int) nwritten); in do_write()
1415 if (nwritten < 0) { in do_write()
1417 (int) nwritten); in do_write()
1418 nwritten = 0; in do_write()
1419 } else if (nwritten < amount) { in do_write()
1421 (int) nwritten, amount); in do_write()
1422 nwritten = round_down(nwritten, curlun->blksize); in do_write()
1424 file_offset += nwritten; in do_write()
[all …]