Searched refs:tocopy (Results 1 – 2 of 2) sorted by relevance
/kernel/ |
D | capability.c | 82 static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy) in cap_validate_magic() argument 92 *tocopy = _LINUX_CAPABILITY_U32S_1; in cap_validate_magic() 98 *tocopy = _LINUX_CAPABILITY_U32S_3; in cap_validate_magic() 152 unsigned tocopy; in SYSCALL_DEFINE2() local 155 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2() 170 for (i = 0; i < tocopy; i++) { in SYSCALL_DEFINE2() 195 if (copy_to_user(dataptr, kdata, tocopy in SYSCALL_DEFINE2() 225 unsigned i, tocopy, copybytes; in SYSCALL_DEFINE2() local 231 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2() 242 copybytes = tocopy * sizeof(struct __user_cap_data_struct); in SYSCALL_DEFINE2() [all …]
|
/kernel/events/ |
D | ring_buffer.c | 578 unsigned long tocopy, remainder, len = 0; in perf_output_copy_aux() local 585 tocopy = PAGE_SIZE - offset_in_page(from); in perf_output_copy_aux() 587 tocopy = min(tocopy, to - from); in perf_output_copy_aux() 588 if (!tocopy) in perf_output_copy_aux() 594 remainder = perf_output_copy(handle, addr, tocopy); in perf_output_copy_aux() 598 len += tocopy; in perf_output_copy_aux() 599 from += tocopy; in perf_output_copy_aux()
|