Home
last modified time | relevance | path

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

/linux-4.4.14/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.4.14/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.4.14/drivers/hv/
Dvmbus_drv.c451 int buf_size = PAGE_SIZE, n_written, tot_written; in channel_vp_mapping_show() local
457 tot_written = snprintf(buf, buf_size, "%u:%u\n", in channel_vp_mapping_show()
463 if (tot_written >= buf_size - 1) in channel_vp_mapping_show()
467 n_written = scnprintf(buf + tot_written, in channel_vp_mapping_show()
468 buf_size - tot_written, in channel_vp_mapping_show()
472 tot_written += n_written; in channel_vp_mapping_show()
477 return tot_written; in channel_vp_mapping_show()
/linux-4.4.14/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()