Lines Matching refs:length
35 const void __user *, user_buffer, size_t, length) in SYSCALL_DEFINE3() argument
46 if (length <= 0 || PAGE_SIZE - (mmio_addr & ~PAGE_MASK) < length) in SYSCALL_DEFINE3()
48 if (length > 64) { in SYSCALL_DEFINE3()
49 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3()
64 if (copy_from_user(buf, user_buffer, length)) in SYSCALL_DEFINE3()
67 ret = zpci_memcpy_toio(io_addr, buf, length); in SYSCALL_DEFINE3()
75 void __user *, user_buffer, size_t, length) in SYSCALL_DEFINE3() argument
86 if (length <= 0 || PAGE_SIZE - (mmio_addr & ~PAGE_MASK) < length) in SYSCALL_DEFINE3()
88 if (length > 64) { in SYSCALL_DEFINE3()
89 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3()
104 ret = zpci_memcpy_fromio(buf, io_addr, length); in SYSCALL_DEFINE3()
107 if (copy_to_user(user_buffer, buf, length)) in SYSCALL_DEFINE3()