Lines Matching +full:byte +full:- +full:len
1 // SPDX-License-Identifier: GPL-2.0
4 * stuff - it would probably be preferable on PCs too, but there people
16 unsigned long, off, unsigned long, len, void __user *, buf) in SYSCALL_DEFINE5() argument
19 u8 byte; in SYSCALL_DEFINE5() local
24 err = -EPERM; in SYSCALL_DEFINE5()
29 err = -ENODEV; in SYSCALL_DEFINE5()
34 switch (len) { in SYSCALL_DEFINE5()
36 cfg_ret = pci_user_read_config_byte(dev, off, &byte); in SYSCALL_DEFINE5()
45 err = -EINVAL; in SYSCALL_DEFINE5()
49 err = -EIO; in SYSCALL_DEFINE5()
53 switch (len) { in SYSCALL_DEFINE5()
55 err = put_user(byte, (u8 __user *)buf); in SYSCALL_DEFINE5()
71 switch (len) { in SYSCALL_DEFINE5()
73 put_user(-1, (u8 __user *)buf); in SYSCALL_DEFINE5()
76 put_user(-1, (u16 __user *)buf); in SYSCALL_DEFINE5()
79 put_user(-1, (u32 __user *)buf); in SYSCALL_DEFINE5()
87 unsigned long, off, unsigned long, len, void __user *, buf) in SYSCALL_DEFINE5() argument
90 u8 byte; in SYSCALL_DEFINE5() local
97 return -EPERM; in SYSCALL_DEFINE5()
101 return -ENODEV; in SYSCALL_DEFINE5()
103 switch (len) { in SYSCALL_DEFINE5()
105 err = get_user(byte, (u8 __user *)buf); in SYSCALL_DEFINE5()
108 err = pci_user_write_config_byte(dev, off, byte); in SYSCALL_DEFINE5()
110 err = -EIO; in SYSCALL_DEFINE5()
119 err = -EIO; in SYSCALL_DEFINE5()
128 err = -EIO; in SYSCALL_DEFINE5()
132 err = -EINVAL; in SYSCALL_DEFINE5()