Home
last modified time | relevance | path

Searched refs:tot_written (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/drivers/media/pci/cx18/
Dcx18-fileops.c381 size_t tot_written = 0; in cx18_copy_mdl_to_user() local
404 rc = cx18_copy_buf_to_user(s, mdl->curr_buf, ubuf + tot_written, in cx18_copy_mdl_to_user()
405 ucount - tot_written, &stop); in cx18_copy_mdl_to_user()
409 tot_written += rc; in cx18_copy_mdl_to_user()
412 tot_written >= ucount || /* Reader request statisfied */ in cx18_copy_mdl_to_user()
417 return tot_written; in cx18_copy_mdl_to_user()
424 size_t tot_written = 0; in cx18_read() local
448 if (tot_written) in cx18_read()
460 rc = cx18_copy_mdl_to_user(s, mdl, ubuf + tot_written, in cx18_read()
461 tot_count - tot_written); in cx18_read()
[all …]
/linux-4.1.27/fs/ubifs/
Dtnc_commit.c233 int lnum, dirt = 0, gap_start, gap_end, err, written, tot_written; in layout_leb_in_gaps() local
235 tot_written = 0; in layout_leb_in_gaps()
287 tot_written += written; in layout_leb_in_gaps()
298 tot_written += written; in layout_leb_in_gaps()
299 if (tot_written == 0) { in layout_leb_in_gaps()
302 dbg_gc("LEB %d wrote %d index nodes", lnum, tot_written); in layout_leb_in_gaps()
326 dbg_gc("LEB %d wrote %d index nodes", lnum, tot_written); in layout_leb_in_gaps()
327 return tot_written; in layout_leb_in_gaps()
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-fileops.c361 size_t tot_written = 0; in ivtv_read() local
384 if (tot_written) in ivtv_read()
395 rc = ivtv_copy_buf_to_user(s, buf, ubuf + tot_written, tot_count - tot_written); in ivtv_read()
407 tot_written += rc; in ivtv_read()
409 if (tot_written == tot_count || single_frame) in ivtv_read()
412 return tot_written; in ivtv_read()