Home
last modified time | relevance | path

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

/drivers/media/pci/cx18/
Dcx18-fileops.c366 size_t tot_written = 0; in cx18_copy_mdl_to_user() local
389 rc = cx18_copy_buf_to_user(s, mdl->curr_buf, ubuf + tot_written, in cx18_copy_mdl_to_user()
390 ucount - tot_written, &stop); in cx18_copy_mdl_to_user()
394 tot_written += rc; in cx18_copy_mdl_to_user()
397 tot_written >= ucount || /* Reader request satisfied */ in cx18_copy_mdl_to_user()
402 return tot_written; in cx18_copy_mdl_to_user()
409 size_t tot_written = 0; in cx18_read() local
433 if (tot_written) in cx18_read()
445 rc = cx18_copy_mdl_to_user(s, mdl, ubuf + tot_written, in cx18_read()
446 tot_count - tot_written); in cx18_read()
[all …]
/drivers/media/pci/ivtv/
Divtv-fileops.c349 size_t tot_written = 0; in ivtv_read() local
372 if (tot_written) in ivtv_read()
383 rc = ivtv_copy_buf_to_user(s, buf, ubuf + tot_written, tot_count - tot_written); in ivtv_read()
395 tot_written += rc; in ivtv_read()
397 if (tot_written == tot_count || single_frame) in ivtv_read()
400 return tot_written; in ivtv_read()
/drivers/hv/
Dvmbus_drv.c483 int buf_size = PAGE_SIZE, n_written, tot_written; in channel_vp_mapping_show() local
491 tot_written = snprintf(buf, buf_size, "%u:%u\n", in channel_vp_mapping_show()
495 if (tot_written >= buf_size - 1) in channel_vp_mapping_show()
499 n_written = scnprintf(buf + tot_written, in channel_vp_mapping_show()
500 buf_size - tot_written, in channel_vp_mapping_show()
504 tot_written += n_written; in channel_vp_mapping_show()
509 return tot_written; in channel_vp_mapping_show()