Home
last modified time | relevance | path

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

/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()
/drivers/usb/gadget/function/
Df_mass_storage.c741 ssize_t nwritten; in do_write() local
875 nwritten = kernel_write(curlun->filp, bh->buf, amount, in do_write()
878 (unsigned long long)file_offset, (int)nwritten); in do_write()
882 if (nwritten < 0) { in do_write()
884 (int) nwritten); in do_write()
885 nwritten = 0; in do_write()
886 } else if (nwritten < amount) { in do_write()
888 (int) nwritten, amount); in do_write()
889 nwritten = round_down(nwritten, curlun->blksize); in do_write()
891 file_offset += nwritten; in do_write()
[all …]