Lines Matching refs:len
199 unsigned len, struct cpumask *new_mask) in compat_get_user_cpu_mask() argument
203 if (len < cpumask_size()) in compat_get_user_cpu_mask()
205 else if (len > cpumask_size()) in compat_get_user_cpu_mask()
206 len = cpumask_size(); in compat_get_user_cpu_mask()
209 return compat_get_bitmap(k, user_mask_ptr, len * 8); in compat_get_user_cpu_mask()
213 unsigned int, len, in COMPAT_SYSCALL_DEFINE3() argument
222 retval = compat_get_user_cpu_mask(user_mask_ptr, len, new_mask); in COMPAT_SYSCALL_DEFINE3()
232 COMPAT_SYSCALL_DEFINE3(sched_getaffinity, compat_pid_t, pid, unsigned int, len, in COMPAT_SYSCALL_DEFINE3() argument
238 if ((len * BITS_PER_BYTE) < nr_cpu_ids) in COMPAT_SYSCALL_DEFINE3()
240 if (len & (sizeof(compat_ulong_t)-1)) in COMPAT_SYSCALL_DEFINE3()
248 unsigned int retlen = min(len, cpumask_size()); in COMPAT_SYSCALL_DEFINE3()
365 void __user *compat_alloc_user_space(unsigned long len) in compat_alloc_user_space() argument
370 if (unlikely(len > (((compat_uptr_t)~0) >> 1))) in compat_alloc_user_space()
373 ptr = arch_compat_alloc_user_space(len); in compat_alloc_user_space()
375 if (unlikely(!access_ok(ptr, len))) in compat_alloc_user_space()