Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/media/pci/cx18/
Dcx18-fileops.c375 size_t tot_written = 0; in cx18_copy_mdl_to_user() local
398 rc = cx18_copy_buf_to_user(s, mdl->curr_buf, ubuf + tot_written, in cx18_copy_mdl_to_user()
399 ucount - tot_written, &stop); in cx18_copy_mdl_to_user()
403 tot_written += rc; in cx18_copy_mdl_to_user()
406 tot_written >= ucount || /* Reader request statisfied */ in cx18_copy_mdl_to_user()
411 return tot_written; in cx18_copy_mdl_to_user()
418 size_t tot_written = 0; in cx18_read() local
442 if (tot_written) in cx18_read()
454 rc = cx18_copy_mdl_to_user(s, mdl, ubuf + tot_written, in cx18_read()
455 tot_count - tot_written); in cx18_read()
[all …]
/Linux-v4.19/fs/ubifs/
Dtnc_commit.c235 int lnum, dirt = 0, gap_start, gap_end, err, written, tot_written; in layout_leb_in_gaps() local
237 tot_written = 0; in layout_leb_in_gaps()
289 tot_written += written; in layout_leb_in_gaps()
300 tot_written += written; in layout_leb_in_gaps()
301 if (tot_written == 0) { in layout_leb_in_gaps()
304 dbg_gc("LEB %d wrote %d index nodes", lnum, tot_written); in layout_leb_in_gaps()
328 dbg_gc("LEB %d wrote %d index nodes", lnum, tot_written); in layout_leb_in_gaps()
329 return tot_written; in layout_leb_in_gaps()
/Linux-v4.19/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()
/Linux-v4.19/drivers/hv/
Dvmbus_drv.c453 int buf_size = PAGE_SIZE, n_written, tot_written; in channel_vp_mapping_show() local
459 tot_written = snprintf(buf, buf_size, "%u:%u\n", in channel_vp_mapping_show()
465 if (tot_written >= buf_size - 1) in channel_vp_mapping_show()
469 n_written = scnprintf(buf + tot_written, in channel_vp_mapping_show()
470 buf_size - tot_written, in channel_vp_mapping_show()
474 tot_written += n_written; in channel_vp_mapping_show()
479 return tot_written; in channel_vp_mapping_show()