/drivers/staging/media/atomisp/pci/ |
D | atomisp_compat_ioctl32.c | 32 get_user(__x, (typeof(*__ptr) __user *)(__ptr)); \ 48 static int get_atomisp_histogram32(struct atomisp_histogram __user *kp, in get_atomisp_histogram32() 49 struct atomisp_histogram32 __user *up) in get_atomisp_histogram32() 62 static int put_atomisp_histogram32(struct atomisp_histogram __user *kp, in put_atomisp_histogram32() 63 struct atomisp_histogram32 __user *up) in put_atomisp_histogram32() 65 void __user *tmp; in put_atomisp_histogram32() 76 static int get_v4l2_framebuffer32(struct v4l2_framebuffer __user *kp, in get_v4l2_framebuffer32() 77 struct v4l2_framebuffer32 __user *up) in get_v4l2_framebuffer32() 92 static int get_atomisp_dis_statistics32(struct atomisp_dis_statistics __user *kp, in get_atomisp_dis_statistics32() 93 struct atomisp_dis_statistics32 __user *up) in get_atomisp_dis_statistics32() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-compat-ioctl32.c | 60 get_user(__x, (typeof(*__ptr) __user *)(__ptr)); \ 153 static int get_v4l2_window32(struct v4l2_window __user *p64, in get_v4l2_window32() 154 struct v4l2_window32 __user *p32, in get_v4l2_window32() 155 void __user *aux_buf, u32 aux_space) in get_v4l2_window32() 157 struct v4l2_clip32 __user *uclips; in get_v4l2_window32() 158 struct v4l2_clip __user *kclips; in get_v4l2_window32() 195 static int put_v4l2_window32(struct v4l2_window __user *p64, in put_v4l2_window32() 196 struct v4l2_window32 __user *p32) in put_v4l2_window32() 198 struct v4l2_clip __user *kclips; in put_v4l2_window32() 199 struct v4l2_clip32 __user *uclips; in put_v4l2_window32() [all …]
|
/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_ioctl.h | 15 enum vchiq_status __user (*callback)(enum vchiq_reason reason, 19 void __user *userdata; 34 const struct vchiq_element __user *elements; 39 void __user *data; 41 void __user *userdata; 47 struct vchiq_header __user *header; 48 void __user *service_userdata; 49 void __user *bulk_userdata; 54 struct vchiq_completion_data __user *buf; 57 void * __user *msgbufs; [all …]
|
/drivers/gpu/drm/ |
D | drm_ioc32.c | 99 if (copy_from_user(&v32, (void __user *)arg, sizeof(v32))) in compat_drm_version() 123 if (copy_to_user((void __user *)arg, &v32, sizeof(v32))) in compat_drm_version() 140 if (copy_from_user(&uq32, (void __user *)arg, sizeof(uq32))) in compat_drm_getunique() 155 if (copy_to_user((void __user *)arg, &uq32, sizeof(uq32))) in compat_drm_getunique() 180 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_getmap() 197 m32.handle = ptr_to_compat((void __user *)map.handle); in compat_drm_getmap() 208 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_addmap() 228 m32.handle = ptr_to_compat((void __user *)map.handle); in compat_drm_addmap() 242 drm_map32_t __user *argp = (void __user *)arg; in compat_drm_rmmap() 266 drm_client32_t __user *argp = (void __user *)arg; in compat_drm_getclient() [all …]
|
/drivers/pci/ |
D | syscall.c | 16 unsigned long, off, unsigned long, len, void __user *, buf) in SYSCALL_DEFINE5() argument 56 err = put_user(byte, (unsigned char __user *)buf); in SYSCALL_DEFINE5() 59 err = put_user(word, (unsigned short __user *)buf); in SYSCALL_DEFINE5() 62 err = put_user(dword, (unsigned int __user *)buf); in SYSCALL_DEFINE5() 74 put_user(-1, (unsigned char __user *)buf); in SYSCALL_DEFINE5() 77 put_user(-1, (unsigned short __user *)buf); in SYSCALL_DEFINE5() 80 put_user(-1, (unsigned int __user *)buf); in SYSCALL_DEFINE5() 88 unsigned long, off, unsigned long, len, void __user *, buf) in SYSCALL_DEFINE5() argument 106 err = get_user(byte, (u8 __user *)buf); in SYSCALL_DEFINE5() 115 err = get_user(word, (u16 __user *)buf); in SYSCALL_DEFINE5() [all …]
|
/drivers/misc/vmw_vmci/ |
D | vmci_host.c | 200 static int drv_cp_harray_to_user(void __user *user_buf_uva, in drv_cp_harray_to_user() 262 unsigned int cmd, void __user *uptr) in vmci_host_get_version() 265 int __user *vptr = uptr; in vmci_host_get_version() 297 void __user *uptr) in vmci_host_do_init_context() 361 void __user *uptr) in vmci_host_do_send_datagram() 387 dg = memdup_user((void __user *)(uintptr_t)send_info.addr, in vmci_host_do_send_datagram() 416 void __user *uptr) in vmci_host_do_receive_datagram() 436 void __user *ubuf = (void __user *)(uintptr_t)recv_info.addr; in vmci_host_do_receive_datagram() 448 void __user *uptr) in vmci_host_do_alloc_queuepair() 452 int __user *retptr; in vmci_host_do_alloc_queuepair() [all …]
|
/drivers/firmware/efi/test/ |
D | efi_test.c | 33 static inline size_t user_ucs2_strsize(efi_char16_t __user *str) in user_ucs2_strsize() 63 copy_ucs2_from_user_len(efi_char16_t **dst, efi_char16_t __user *src, in copy_ucs2_from_user_len() 89 get_ucs2_strsize_from_user(efi_char16_t __user *src, size_t *len) in get_ucs2_strsize_from_user() 111 copy_ucs2_from_user(efi_char16_t **dst, efi_char16_t __user *src) in copy_ucs2_from_user() 131 copy_ucs2_to_user_len(efi_char16_t __user *dst, efi_char16_t *src, size_t len) in copy_ucs2_to_user_len() 141 struct efi_getvariable __user *getvariable_user; in efi_runtime_get_variable() 151 getvariable_user = (struct efi_getvariable __user *)arg; in efi_runtime_get_variable() 231 struct efi_setvariable __user *setvariable_user; in efi_runtime_set_variable() 239 setvariable_user = (struct efi_setvariable __user *)arg; in efi_runtime_set_variable() 279 struct efi_gettime __user *gettime_user; in efi_runtime_get_time() [all …]
|
/drivers/video/fbdev/ |
D | sbuslib.c | 106 struct fbtype __user *f = (struct fbtype __user *) arg; in sbusfb_ioctl_helper() 118 struct fbcmap __user *c = (struct fbcmap __user *) arg; in sbusfb_ioctl_helper() 122 unsigned char __user *ured; in sbusfb_ioctl_helper() 123 unsigned char __user *ugreen; in sbusfb_ioctl_helper() 124 unsigned char __user *ublue; in sbusfb_ioctl_helper() 159 struct fbcmap __user *c = (struct fbcmap __user *) arg; in sbusfb_ioctl_helper() 160 unsigned char __user *ured; in sbusfb_ioctl_helper() 161 unsigned char __user *ugreen; in sbusfb_ioctl_helper() 162 unsigned char __user *ublue; in sbusfb_ioctl_helper() 197 struct fbcmap32 __user *argp = (void __user *)arg; in fbiogetputcmap() [all …]
|
/drivers/misc/habanalabs/common/ |
D | habanalabs_ioctl.c | 31 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in device_status_info() 46 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in hw_ip_info() 90 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in hw_events_info() 106 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in dram_usage_info() 129 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in hw_idle() 192 if (output && copy_to_user((void __user *) (uintptr_t) args->output_ptr, in debug_coresight() 212 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in device_utilization() 235 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in get_clk_rate() 254 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in get_reset_count() 270 void __user *out = (void __user *) (uintptr_t) args->return_pointer; in time_sync_info() [all …]
|
/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-debugfs.c | 124 static ssize_t xgbe_common_read(char __user *buffer, size_t count, in xgbe_common_read() 148 static ssize_t xgbe_common_write(const char __user *buffer, size_t count, in xgbe_common_write() 174 static ssize_t xgmac_reg_addr_read(struct file *filp, char __user *buffer, in xgmac_reg_addr_read() 183 const char __user *buffer, in xgmac_reg_addr_write() 192 static ssize_t xgmac_reg_value_read(struct file *filp, char __user *buffer, in xgmac_reg_value_read() 204 const char __user *buffer, in xgmac_reg_value_write() 234 static ssize_t xpcs_mmd_read(struct file *filp, char __user *buffer, in xpcs_mmd_read() 242 static ssize_t xpcs_mmd_write(struct file *filp, const char __user *buffer, in xpcs_mmd_write() 251 static ssize_t xpcs_reg_addr_read(struct file *filp, char __user *buffer, in xpcs_reg_addr_read() 259 static ssize_t xpcs_reg_addr_write(struct file *filp, const char __user *buffer, in xpcs_reg_addr_write() [all …]
|
/drivers/misc/sgi-gru/ |
D | grukdump.c | 27 static int gru_user_copy_handle(void __user **dp, void *s) in gru_user_copy_handle() 37 void __user *ubuf, int ctxnum, int dsrcnt, in gru_dump_context_data() 68 void __user *ubuf, void __user *ubufend) in gru_dump_tfm() 88 void __user *ubuf, void __user *ubufend) in gru_dump_tgh() 108 void __user *ubuf, void __user *ubufend, char data_opt, in gru_dump_context() 112 struct gru_dump_context_header __user *uhdr = ubuf; in gru_dump_context() 179 void __user *ubuf; in gru_dump_chiplet_request() 180 void __user *ubufend; in gru_dump_chiplet_request() 183 if (copy_from_user(&req, (void __user *)arg, sizeof(req))) in gru_dump_chiplet_request() 217 if (copy_to_user((void __user *)arg, &req, sizeof(req))) in gru_dump_chiplet_request()
|
/drivers/char/agp/ |
D | compat_ioctl.c | 38 static int compat_agpioc_info_wrap(struct agp_file_private *priv, void __user *arg) in compat_agpioc_info_wrap() 61 static int compat_agpioc_reserve_wrap(struct agp_file_private *priv, void __user *arg) in compat_agpioc_reserve_wrap() 115 if (copy_from_user(usegment, (void __user *) ureserve.seg_list, in compat_agpioc_reserve_wrap() 152 static int compat_agpioc_allocate_wrap(struct agp_file_private *priv, void __user *arg) in compat_agpioc_allocate_wrap() 176 static int compat_agpioc_bind_wrap(struct agp_file_private *priv, void __user *arg) in compat_agpioc_bind_wrap() 193 static int compat_agpioc_unbind_wrap(struct agp_file_private *priv, void __user *arg) in compat_agpioc_unbind_wrap() 243 ret_val = compat_agpioc_info_wrap(curr_priv, (void __user *) arg); in compat_agp_ioctl() 255 ret_val = agpioc_setup_wrap(curr_priv, (void __user *) arg); in compat_agp_ioctl() 259 ret_val = compat_agpioc_reserve_wrap(curr_priv, (void __user *) arg); in compat_agp_ioctl() 267 ret_val = compat_agpioc_allocate_wrap(curr_priv, (void __user *) arg); in compat_agp_ioctl() [all …]
|
/drivers/net/wireless/marvell/libertas/ |
D | debugfs.c | 25 static ssize_t write_file_dummy(struct file *file, const char __user *buf, in write_file_dummy() 33 static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, in lbs_dev_info() 56 const char __user *user_buf, size_t count, in lbs_sleepparams_write() 92 static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, in lbs_sleepparams_read() 121 const char __user *user_buf, size_t count, in lbs_host_sleep_write() 162 static ssize_t lbs_host_sleep_read(struct file *file, char __user *userbuf, in lbs_host_sleep_read() 218 struct file *file, char __user *userbuf, in lbs_threshold_read() 271 const char __user *userbuf, size_t count, in lbs_threshold_write() 338 static ssize_t lbs_lowrssi_read(struct file *file, char __user *userbuf, in lbs_lowrssi_read() 346 static ssize_t lbs_lowrssi_write(struct file *file, const char __user *userbuf, in lbs_lowrssi_write() [all …]
|
/drivers/oprofile/ |
D | oprofile_files.c | 30 static ssize_t timeout_read(struct file *file, char __user *buf, in timeout_read() 38 static ssize_t timeout_write(struct file *file, char const __user *buf, in timeout_write() 68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in depth_read() 75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in depth_write() 105 static ssize_t pointer_size_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in pointer_size_read() 117 static ssize_t cpu_type_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in cpu_type_read() 129 static ssize_t enable_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in enable_read() 135 static ssize_t enable_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in enable_write() 166 static ssize_t dump_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in dump_write()
|
/drivers/misc/lkdtm/ |
D | usercopy.c | 90 if (copy_to_user((void __user *)user_addr, good_stack, in do_usercopy_stack() 97 if (copy_to_user((void __user *)user_addr, bad_stack, in do_usercopy_stack() 111 if (copy_from_user(good_stack, (void __user *)user_addr, in do_usercopy_stack() 118 if (copy_from_user(bad_stack, (void __user *)user_addr, in do_usercopy_stack() 137 void __user *test_user_addr; in do_usercopy_heap_size() 159 test_user_addr = (void __user *)(user_addr + 16); in do_usercopy_heap_size() 203 unsigned char __user *user_addr; in do_usercopy_heap_whitelist() 229 user_addr = (void __user *)user_alloc; in do_usercopy_heap_whitelist() 320 if (copy_to_user((void __user *)user_addr, test_text, in lkdtm_USERCOPY_KERNEL() 328 if (copy_to_user((void __user *)user_addr, __va_function(vm_mmap), in lkdtm_USERCOPY_KERNEL()
|
/drivers/char/ |
D | dsp56k.c | 125 static int dsp56k_upload(u_char __user *bin, int len) in dsp56k_upload() 181 static ssize_t dsp56k_read(struct file *file, char __user *buf, size_t count, in dsp56k_read() 207 short __user *data; in dsp56k_read() 210 data = (short __user *) buf; in dsp56k_read() 226 long __user *data; in dsp56k_read() 229 data = (long __user *) buf; in dsp56k_read() 244 static ssize_t dsp56k_write(struct file *file, const char __user *buf, size_t count, in dsp56k_write() 269 const short __user *data; in dsp56k_write() 272 data = (const short __user *)buf; in dsp56k_write() 288 const long __user *data; in dsp56k_write() [all …]
|
/drivers/tty/ |
D | tty_ioctl.c | 363 static int set_termios(struct tty_struct *tty, void __user *arg, int opt) in set_termios() 378 (struct termio __user *)arg)) in set_termios() 383 (struct termios __user *)arg)) in set_termios() 387 (struct termios2 __user *)arg)) in set_termios() 392 (struct termios __user *)arg)) 459 static int get_termio(struct tty_struct *tty, struct termio __user *termio) in get_termio() 492 static int get_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb) in get_sgttyb() 544 static int set_sgttyb(struct tty_struct *tty, struct sgttyb __user *sgttyb) in set_sgttyb() 574 static int get_tchars(struct tty_struct *tty, struct tchars __user *tchars) in get_tchars() 589 static int set_tchars(struct tty_struct *tty, struct tchars __user *tchars) in set_tchars() [all …]
|
/drivers/input/ |
D | evdev.c | 502 static ssize_t evdev_write(struct file *file, const char __user *buffer, in evdev_write() 558 static ssize_t evdev_read(struct file *file, char __user *buffer, in evdev_read() 636 unsigned int maxlen, void __user *p, int compat) in bits_to_user() 646 if (copy_to_user((compat_long_t __user *) p + i, in bits_to_user() 664 unsigned int maxlen, const void __user *p, int compat) in bits_from_user() 679 (compat_long_t __user *) p + i, in bits_from_user() 703 unsigned int maxlen, void __user *p, int compat) in bits_to_user() 716 unsigned int maxlen, const void __user *p, int compat) in bits_from_user() 737 unsigned int maxlen, void __user *p, int compat) in bits_to_user() 748 unsigned int maxlen, const void __user *p, int compat) in bits_from_user() [all …]
|
/drivers/usb/core/ |
D | devio.c | 100 void __user *userbuffer; 101 void __user *userurb; 296 static ssize_t usbdev_read(struct file *file, char __user *buf, size_t nbytes, in usbdev_read() 461 void __user *userurb) in async_getpending() 475 void __user *userurb, int pipe, unsigned length, in snoop_urb() 541 static int copy_urb_data_to_user(u8 __user *userbuffer, struct urb *urb) in copy_urb_data_to_user() 935 struct usbdevfs_streams __user *streams, in parse_usbdevfs_streams() 1195 static int proc_control(struct usb_dev_state *ps, void __user *arg) in proc_control() 1277 static int proc_bulk(struct usb_dev_state *ps, void __user *arg) in proc_bulk() 1300 static int proc_resetep(struct usb_dev_state *ps, void __user *arg) in proc_resetep() [all …]
|
/drivers/sbus/char/ |
D | openprom.c | 60 static int copyin(struct openpromio __user *info, struct openpromio **opp_p) in copyin() 90 static int getstrings(struct openpromio __user *info, struct openpromio **opp_p) in getstrings() 123 static int copyout(void __user *info, struct openpromio *opp, int len) in copyout() 130 static int opromgetprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsi… in opromgetprop() 147 static int opromnxtprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsi… in opromnxtprop() 185 static int opromnext(void __user *argp, unsigned int cmd, struct device_node *dp, struct openpromio… in opromnext() 232 static int oprompci2node(void __user *argp, struct device_node *dp, struct openpromio *op, int bufs… in oprompci2node() 258 static int oprompath2node(void __user *argp, struct device_node *dp, struct openpromio *op, int buf… in oprompath2node() 272 static int opromgetbootargs(void __user *argp, struct openpromio *op, int bufsize) in opromgetbootargs() 297 void __user *argp = (void __user *)arg; in openprom_sunos_ioctl() [all …]
|
/drivers/s390/cio/ |
D | vfio_ccw_ops.c | 213 char __user *buf, size_t count, in vfio_ccw_mdev_read_io_region() 234 char __user *buf, in vfio_ccw_mdev_read() 259 const char __user *buf, in vfio_ccw_mdev_write_io_region() 287 const char __user *buf, in vfio_ccw_mdev_write() 375 if (copy_to_user((void __user *)arg + sizeof(*info), in vfio_ccw_mdev_get_region_info() 408 void __user *data) in vfio_ccw_mdev_set_irqs() 440 if (get_user(trigger, (uint8_t __user *)data)) in vfio_ccw_mdev_set_irqs() 451 if (get_user(fd, (int32_t __user *)data)) in vfio_ccw_mdev_set_irqs() 530 if (copy_from_user(&info, (void __user *)arg, minsz)) in vfio_ccw_mdev_ioctl() 540 return copy_to_user((void __user *)arg, &info, minsz) ? -EFAULT : 0; in vfio_ccw_mdev_ioctl() [all …]
|
/drivers/net/wireless/ti/wlcore/ |
D | debugfs.c | 31 int wl1271_format_buffer(char __user *userbuf, size_t count, in wl1271_format_buffer() 80 static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, in tx_queue_len_read() 129 char __user *user_buf, \ 139 const char __user *user_buf, \ 180 static ssize_t gpio_power_read(struct file *file, char __user *user_buf, in gpio_power_read() 195 const char __user *user_buf, in gpio_power_write() 227 const char __user *user_buf, in start_recovery_write() 245 static ssize_t dynamic_ps_timeout_read(struct file *file, char __user *user_buf, in dynamic_ps_timeout_read() 256 const char __user *user_buf, in dynamic_ps_timeout_write() 312 static ssize_t forced_ps_read(struct file *file, char __user *user_buf, in forced_ps_read() [all …]
|
/drivers/tty/vt/ |
D | vt_ioctl.c | 189 static int vt_event_wait_ioctl(struct vt_event __user *event) in vt_event_wait_ioctl() 287 void __user *up = (void __user *)arg; in vt_k_ioctl() 328 return put_user(KB_101, (char __user *)arg); in vt_k_ioctl() 386 return put_user(vc->vc_mode, (int __user *)arg); in vt_k_ioctl() 406 return put_user(vt_do_kdgkbmode(console), (int __user *)arg); in vt_k_ioctl() 415 return put_user(vt_do_kdgkbmeta(console), (int __user *)arg); in vt_k_ioctl() 489 static inline int do_unimap_ioctl(int cmd, struct unimapdesc __user *user_ud, in do_unimap_ioctl() 510 static int vt_io_ioctl(struct vc_data *vc, unsigned int cmd, void __user *up, in vt_io_ioctl() 591 static int vt_setactivate(struct vt_setactivate __user *sa) in vt_setactivate() 668 static int vt_resizex(struct vc_data *vc, struct vt_consize __user *cs) in vt_resizex() [all …]
|
/drivers/staging/media/atomisp/include/linux/ |
D | atomisp.h | 99 void __user *data; 214 short __user *odd_real; /** real part of the odd coefficients*/ 215 short __user *odd_imag; /** imaginary part of the odd coefficients*/ 216 short __user *even_real;/** real part of the even coefficients*/ 217 short __user *even_imag;/** imaginary part of the even coefficients*/ 225 int __user *odd_real; /** real part of the odd statistics*/ 226 int __user *odd_imag; /** imaginary part of the odd statistics*/ 227 int __user *even_real;/** real part of the even statistics*/ 228 int __user *even_imag;/** imaginary part of the even statistics*/ 272 void __user *data; [all …]
|
/drivers/atm/ |
D | suni.c | 96 static int fetch_stats(struct atm_dev *dev,struct sonet_stats __user *arg,int zero) in fetch_stats() 116 static int change_diag(struct atm_dev *dev,void __user *arg,int set) in change_diag() 120 if (get_user(todo,(int __user *)arg)) return -EFAULT; in change_diag() 129 return put_user(todo,(int __user *)arg) ? -EFAULT : 0; in change_diag() 136 static int get_diag(struct atm_dev *dev,void __user *arg) in get_diag() 149 return put_user(set,(int __user *)arg) ? -EFAULT : 0; in get_diag() 225 static int get_framing(struct atm_dev *dev, void __user *arg) in get_framing() 237 return put_user(framing, (int __user *) arg) ? -EFAULT : 0; in get_framing() 240 static int set_framing(struct atm_dev *dev, void __user *arg) in set_framing() 244 if (get_user(mode, (int __user *) arg)) in set_framing() [all …]
|