Lines Matching +full:user +full:- +full:defined
1 // SPDX-License-Identifier: GPL-2.0-or-later
14 * copy_to_user_fromio - copy data from mmio-space to user-space
15 * @dst: the destination pointer on user-space
19 * Copies the data from mmio-space to user-space.
21 * Return: Zero if successful, or non-zero on failure.
25 #if defined(__i386__) || defined(CONFIG_SPARC32) in copy_to_user_fromio()
26 return copy_to_user(dst, (const void __force*)src, count) ? -EFAULT : 0; in copy_to_user_fromio()
35 return -EFAULT; in copy_to_user_fromio()
36 count -= c; in copy_to_user_fromio()
46 * copy_from_user_toio - copy data from user-space to mmio-space
47 * @dst: the destination pointer on mmio-space
48 * @src: the source pointer on user-space
51 * Copies the data from user-space to mmio-space.
53 * Return: Zero if successful, or non-zero on failure.
57 #if defined(__i386__) || defined(CONFIG_SPARC32) in copy_from_user_toio()
58 return copy_from_user((void __force *)dst, src, count) ? -EFAULT : 0; in copy_from_user_toio()
66 return -EFAULT; in copy_from_user_toio()
68 count -= c; in copy_from_user_toio()