| /linux/drivers/net/wireless/marvell/libertas/ |
| H A D | debugfs.c | 33 static ssize_t lbs_dev_info(struct file *file, char __user *userbuf, in lbs_dev_info() argument 49 res = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_dev_info() 92 static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, in lbs_sleepparams_read() argument 113 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_sleepparams_read() 162 static ssize_t lbs_host_sleep_read(struct file *file, char __user *userbuf, in lbs_host_sleep_read() argument 175 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_host_sleep_read() 218 struct file *file, char __user *userbuf, in lbs_threshold_read() argument 258 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_threshold_read() 271 const char __user *userbuf, size_t count, in lbs_threshold_write() argument 282 buf = memdup_user_nul(userbuf, min(count, len - 1)); in lbs_threshold_write() [all …]
|
| /linux/drivers/net/wireless/ti/wlcore/ |
| H A D | debugfs.h | 15 __printf(4, 5) int wl1271_format_buffer(char __user *userbuf, size_t count, 26 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 30 return wl1271_format_buffer(userbuf, count, ppos, \ 55 char __user *userbuf, \ 63 return wl1271_format_buffer(userbuf, count, ppos, fmt "\n", \ 75 char __user *userbuf, \ 90 return wl1271_format_buffer(userbuf, count, ppos, "%s", buf); \
|
| /linux/drivers/char/ |
| H A D | ps3flash.c | 93 static ssize_t ps3flash_read(char __user *userbuf, void *kernelbuf, in ps3flash_read() argument 105 __func__, __LINE__, count, *pos, userbuf, kernelbuf); in ps3flash_read() 134 __func__, __LINE__, n, src, userbuf, kernelbuf); in ps3flash_read() 135 if (userbuf) { in ps3flash_read() 136 if (copy_to_user(userbuf, src, n)) { in ps3flash_read() 140 userbuf += n; in ps3flash_read() 162 static ssize_t ps3flash_write(const char __user *userbuf, in ps3flash_write() argument 174 __func__, __LINE__, count, *pos, userbuf, kernelbuf); in ps3flash_write() 206 __func__, __LINE__, n, userbuf, kernelbuf, dst); in ps3flash_write() 207 if (userbuf) { in ps3flash_write() [all …]
|
| H A D | powernv-op-panel.c | 43 static ssize_t oppanel_read(struct file *filp, char __user *userbuf, size_t len, in oppanel_read() argument 46 return simple_read_from_buffer(userbuf, len, f_pos, oppanel_data, in oppanel_read() 89 static ssize_t oppanel_write(struct file *filp, const char __user *userbuf, in oppanel_write() argument 101 ret = simple_write_to_buffer(oppanel_data, oppanel_size, f_pos, userbuf, in oppanel_write()
|
| /linux/fs/efivarfs/ |
| H A D | file.c | 16 const char __user *userbuf, size_t count, loff_t *ppos) in efivarfs_file_write() argument 29 if (copy_from_user(&attributes, userbuf, sizeof(attributes))) in efivarfs_file_write() 35 data = memdup_user(userbuf + sizeof(attributes), datasize); in efivarfs_file_write() 79 static ssize_t efivarfs_file_read(struct file *file, char __user *userbuf, in efivarfs_file_read() argument 114 size = simple_read_from_buffer(userbuf, count, ppos, in efivarfs_file_read()
|
| /linux/drivers/bluetooth/ |
| H A D | btmrvl_debugfs.c | 41 static ssize_t btmrvl_hscfgcmd_read(struct file *file, char __user *userbuf, in btmrvl_hscfgcmd_read() argument 51 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscfgcmd_read() 82 static ssize_t btmrvl_pscmd_read(struct file *file, char __user *userbuf, in btmrvl_pscmd_read() argument 91 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_pscmd_read() 120 static ssize_t btmrvl_hscmd_read(struct file *file, char __user *userbuf, in btmrvl_hscmd_read() argument 129 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscmd_read()
|
| /linux/arch/x86/kernel/ |
| H A D | amd_node.c | 144 static ssize_t smn_node_write(struct file *file, const char __user *userbuf, in smn_node_write() argument 150 ret = kstrtou16_from_user(userbuf, count, 0, &node); in smn_node_write() 167 static ssize_t smn_address_write(struct file *file, const char __user *userbuf, in smn_address_write() argument 172 ret = kstrtouint_from_user(userbuf, count, 0, &debug_address); in smn_address_write() 198 static ssize_t smn_value_write(struct file *file, const char __user *userbuf, in smn_value_write() argument 204 ret = kstrtouint_from_user(userbuf, count, 0, &val); in smn_value_write()
|
| /linux/drivers/remoteproc/ |
| H A D | remoteproc_debugfs.c | 42 static ssize_t rproc_coredump_read(struct file *filp, char __user *userbuf, in rproc_coredump_read() argument 52 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in rproc_coredump_read() 126 static ssize_t rproc_trace_read(struct file *filp, char __user *userbuf, in rproc_trace_read() argument 145 return simple_read_from_buffer(userbuf, count, ppos, va, len); in rproc_trace_read() 155 static ssize_t rproc_name_read(struct file *filp, char __user *userbuf, in rproc_name_read() argument 165 return simple_read_from_buffer(userbuf, count, ppos, buf, i); in rproc_name_read() 175 static ssize_t rproc_recovery_read(struct file *filp, char __user *userbuf, in rproc_recovery_read() argument 181 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in rproc_recovery_read()
|
| /linux/net/wireless/ |
| H A D | debugfs.c | 15 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 23 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \ 33 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 41 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \ in ht_print_chan() 183 char __user *userbuf, size_t count, in wiphy_locked_debugfs_read() 223 return simple_read_from_buffer(userbuf, count, ppos, buf, work.ret); in wiphy_locked_debugfs_write_cancel() 263 const char __user *userbuf, size_t count, in wiphy_locked_debugfs_write() 292 if (copy_from_user(buf, userbuf, count)) 150 wiphy_locked_debugfs_read(struct wiphy * wiphy,struct file * file,char * buf,size_t bufsize,char __user * userbuf,size_t count,loff_t * ppos,ssize_t (* handler)(struct wiphy * wiphy,struct file * file,char * buf,size_t bufsize,void * data),void * data) wiphy_locked_debugfs_read() argument 230 wiphy_locked_debugfs_write(struct wiphy * wiphy,struct file * file,char * buf,size_t bufsize,const char __user * userbuf,size_t count,ssize_t (* handler)(struct wiphy * wiphy,struct file * file,char * buf,size_t count,void * data),void * data) wiphy_locked_debugfs_write() argument
|
| /linux/drivers/mailbox/ |
| H A D | mailbox-test.c | 49 const char __user *userbuf, in mbox_test_signal_write() argument 73 if (copy_from_user(tdev->signal, userbuf, count)) { in mbox_test_signal_write() 96 const char __user *userbuf, in mbox_test_message_write() argument 123 ret = copy_from_user(tdev->message, userbuf, count); in mbox_test_message_write() 170 static ssize_t mbox_test_message_read(struct file *filp, char __user *userbuf, in mbox_test_message_read() argument 187 ret = simple_read_from_buffer(userbuf, count, ppos, in mbox_test_message_read() 233 ret = simple_read_from_buffer(userbuf, count, ppos, touser, MBOX_HEXDUMP_MAX_LEN); in mbox_test_message_read()
|
| /linux/drivers/net/wireless/ti/wl1251/ |
| H A D | debugfs.c | 23 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 31 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \ 52 char __user *userbuf, \ 63 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \ 197 static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, in tx_queue_len_read() argument 208 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in tx_queue_len_read() 217 static ssize_t tx_queue_status_read(struct file *file, char __user *userbuf, in tx_queue_status_read() argument 230 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in tx_queue_status_read()
|
| /linux/drivers/net/wireless/ath/ath5k/ |
| H A D | debug.c | 224 const char __user *userbuf, in write_file_beacon() argument 231 if (copy_from_user(buf, userbuf, count)) in write_file_beacon() 257 const char __user *userbuf, in write_file_reset() argument 325 const char __user *userbuf, in write_file_debug() argument 333 if (copy_from_user(buf, userbuf, count)) in write_file_debug() 430 const char __user *userbuf, in write_file_antenna() argument 438 if (copy_from_user(buf, userbuf, count)) in write_file_antenna() 603 const char __user *userbuf, in write_file_frameerrors() argument 611 if (copy_from_user(buf, userbuf, count)) in write_file_frameerrors() 753 const char __user *userbuf, in write_file_ani() argument [all …]
|
| /linux/drivers/misc/sgi-gru/ |
| H A D | gruprocfs.c | 107 static ssize_t statistics_write(struct file *file, const char __user *userbuf, in statistics_write() argument 134 const char __user *userbuf, size_t count, loff_t *data) in mcs_statistics_write() argument 147 static ssize_t options_write(struct file *file, const char __user *userbuf, in options_write() argument 152 ret = kstrtoul_from_user(userbuf, count, 0, &gru_options); in options_write()
|
| /linux/net/mac80211/ |
| H A D | debugfs.h | 9 int __printf(4, 5) mac80211_format_buffer(char __user *userbuf, size_t count,
|
| /linux/drivers/net/wireless/broadcom/b43legacy/ |
| H A D | debugfs.c | 186 static ssize_t b43legacy_debugfs_read(struct file *file, char __user *userbuf, in b43legacy_debugfs_read() argument 239 ret = simple_read_from_buffer(userbuf, count, ppos, in b43legacy_debugfs_read() 254 const char __user *userbuf, in b43legacy_debugfs_write() argument 287 if (copy_from_user(buf, userbuf, count)) { in b43legacy_debugfs_write()
|
| /linux/drivers/iommu/ |
| H A D | omap-iommu-debug.c | 83 static ssize_t debug_read_regs(struct file *file, char __user *userbuf, in debug_read_regs() argument 103 bytes = simple_read_from_buffer(userbuf, count, ppos, buf, bytes); in debug_read_regs()
|
| /linux/drivers/net/wireless/broadcom/b43/ |
| H A D | debugfs.c | 489 static ssize_t b43_debugfs_read(struct file *file, char __user *userbuf, in b43_debugfs_read() argument 537 ret = simple_read_from_buffer(userbuf, count, ppos, in b43_debugfs_read() 552 const char __user *userbuf, in b43_debugfs_write() argument 585 if (copy_from_user(buf, userbuf, count)) { in b43_debugfs_write()
|
| /linux/drivers/platform/x86/intel/telemetry/ |
| H A D | debugfs.c | 683 const char __user *userbuf, in telem_pss_trc_verb_write() argument 689 err = kstrtou32_from_user(userbuf, count, 0, &verbosity); in telem_pss_trc_verb_write() 731 const char __user *userbuf, in telem_ioss_trc_verb_write() argument 737 err = kstrtou32_from_user(userbuf, count, 0, &verbosity); in telem_ioss_trc_verb_write()
|
| /linux/drivers/char/xillybus/ |
| H A D | xillybus_core.c | 690 static ssize_t xillybus_read(struct file *filp, char __user *userbuf, in xillybus_read() argument 779 userbuf, in xillybus_read() 784 userbuf += howmany; in xillybus_read() 1201 static ssize_t xillybus_write(struct file *filp, const char __user *userbuf, in xillybus_write() argument 1323 userbuf, howmany)) in xillybus_write() 1326 userbuf += howmany; in xillybus_write()
|
| H A D | xillyusb.c | 1431 static ssize_t xillyusb_read(struct file *filp, char __user *userbuf, in xillyusb_read() argument 1459 rc = fifo_read(fifo, (__force void *)userbuf + bytes_done, in xillyusb_read() 1642 static ssize_t xillyusb_write(struct file *filp, const char __user *userbuf, in xillyusb_write() argument 1664 rc = fifo_write(fifo, (__force void *)userbuf, count, in xillyusb_write()
|
| /linux/drivers/iio/gyro/ |
| H A D | adis16136.c | 69 char __user *userbuf, size_t count, loff_t *ppos) in adis16136_show_serial() argument 97 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16136_show_serial()
|
| /linux/drivers/iio/imu/ |
| H A D | adis16550.c | 293 char __user *userbuf, in adis16550_show_firmware_revision() argument 308 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16550_show_firmware_revision() 319 char __user *userbuf, in adis16550_show_firmware_date() argument 335 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16550_show_firmware_date()
|
| H A D | adis16480.c | 197 char __user *userbuf, size_t count, loff_t *ppos) in adis16480_show_firmware_revision() argument 211 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16480_show_firmware_revision() 222 char __user *userbuf, size_t count, loff_t *ppos) in adis16480_show_firmware_date() argument 241 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16480_show_firmware_date()
|
| /linux/sound/core/ |
| H A D | rawmidi.c | 1218 unsigned char __user *userbuf, in snd_rawmidi_kernel_read1() argument 1236 /* update runtime->appl_ptr before unlocking for userbuf */ in snd_rawmidi_kernel_read1() 1244 if (userbuf) { in snd_rawmidi_kernel_read1() 1246 if (copy_to_user(userbuf + result, in snd_rawmidi_kernel_read1() 1266 return snd_rawmidi_kernel_read1(substream, NULL/*userbuf*/, buf, count); in snd_rawmidi_kernel_read() 1519 const unsigned char __user *userbuf, in snd_rawmidi_kernel_write1() argument 1528 if (!kernelbuf && !userbuf) in snd_rawmidi_kernel_write1() 1549 /* update runtime->appl_ptr before unlocking for userbuf */ in snd_rawmidi_kernel_write1() 1558 else if (userbuf) { in snd_rawmidi_kernel_write1() 1561 userbuf in snd_rawmidi_kernel_write1() [all...] |
| /linux/fs/dlm/ |
| H A D | debug_fs.c | 594 static ssize_t waiters_read(struct file *file, char __user *userbuf, in waiters_read() argument 622 rv = simple_read_from_buffer(userbuf, count, ppos, debug_buf, pos); in waiters_read()
|