Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/accel/ivpu/
Divpu_ms.c104 void __user *user_ptr, u64 user_size, u64 *user_bytes_copied) in copy_leftover_bytes() argument
109 copy_bytes = min(user_size - *user_bytes_copied, ms->leftover_bytes); in copy_leftover_bytes()
110 if (copy_to_user(user_ptr + *user_bytes_copied, ms->leftover_addr, copy_bytes)) in copy_leftover_bytes()
115 *user_bytes_copied += copy_bytes; in copy_leftover_bytes()
123 void __user *user_ptr, u64 user_size, u64 *user_bytes_copied) in copy_samples_to_user() argument
128 *user_bytes_copied = 0; in copy_samples_to_user()
130 ret = copy_leftover_bytes(ms, user_ptr, user_size, user_bytes_copied); in copy_samples_to_user()
134 if (*user_bytes_copied == user_size) in copy_samples_to_user()
148 return copy_leftover_bytes(ms, user_ptr, user_size, user_bytes_copied); in copy_samples_to_user()