| /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 48 res = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_dev_info() 91 static ssize_t lbs_sleepparams_read(struct file *file, char __user *userbuf, in lbs_sleepparams_read() argument 111 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_sleepparams_read() 160 static ssize_t lbs_host_sleep_read(struct file *file, char __user *userbuf, in lbs_host_sleep_read() argument 172 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_host_sleep_read() 215 struct file *file, char __user *userbuf, in lbs_threshold_read() argument 255 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_threshold_read() 268 const char __user *userbuf, size_t count, in lbs_threshold_write() argument 279 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/gpu/drm/xe/ |
| H A D | xe_gt_debugfs.c | 251 static ssize_t write_to_gt_call(const char __user *userbuf, size_t count, loff_t *ppos, in write_to_gt_call() argument 259 ret = kstrtobool_from_user(userbuf, count, &yes); in write_to_gt_call() 267 static ssize_t stats_write(struct file *file, const char __user *userbuf, in stats_write() argument 273 return write_to_gt_call(userbuf, count, ppos, xe_gt_stats_clear, gt); in stats_write() 294 const char __user *userbuf, in force_reset_write() argument 300 return write_to_gt_call(userbuf, count, ppos, force_reset, gt); in force_reset_write() 321 const char __user *userbuf, in force_reset_sync_write() argument 327 return write_to_gt_call(userbuf, count, ppos, force_reset_sync, gt); in force_reset_sync_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/net/mac80211/ |
| H A D | debugfs.c | 20 int mac80211_format_buffer(char __user *userbuf, size_t count, in mac80211_format_buffer() argument 31 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in mac80211_format_buffer() 35 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 40 return mac80211_format_buffer(userbuf, count, ppos, \ 593 char __user *userbuf, in format_devstat_counter() argument 608 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in format_devstat_counter() 618 char __user *userbuf, \ 622 userbuf, \
|
| H A D | debugfs.h | 9 int __printf(4, 5) mac80211_format_buffer(char __user *userbuf, size_t count,
|
| /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/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 237 ret = simple_read_from_buffer(userbuf, count, ppos, in b43legacy_debugfs_read() 252 const char __user *userbuf, in b43legacy_debugfs_write() argument 285 if (copy_from_user(buf, userbuf, count)) { in b43legacy_debugfs_write()
|
| /linux/drivers/iio/dac/ |
| H A D | ad3552r-hs.c | 512 static ssize_t ad3552r_hs_show_data_source(struct file *f, char __user *userbuf, in ad3552r_hs_show_data_source() argument 536 return simple_read_from_buffer(userbuf, count, ppos, in ad3552r_hs_show_data_source() 542 const char __user *userbuf, in ad3552r_hs_write_data_source() argument 554 ret = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, userbuf, in ad3552r_hs_write_data_source() 585 char __user *userbuf, in ad3552r_hs_show_data_source_avail() argument 598 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in ad3552r_hs_show_data_source_avail()
|
| /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 535 ret = simple_read_from_buffer(userbuf, count, ppos, in b43_debugfs_read() 550 const char __user *userbuf, in b43_debugfs_write() argument 583 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()
|
| /linux/drivers/net/wireless/ath/carl9170/ |
| H A D | debug.c | 61 static ssize_t carl9170_debugfs_read(struct file *file, char __user *userbuf, in carl9170_debugfs_read() argument 98 err = simple_read_from_buffer(userbuf, count, ppos, in carl9170_debugfs_read() 112 const char __user *userbuf, size_t count, loff_t *ppos) in carl9170_debugfs_write() argument 138 if (copy_from_user(buf, userbuf, count)) { in carl9170_debugfs_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 | 292 char __user *userbuf, in adis16550_show_firmware_revision() argument 307 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16550_show_firmware_revision() 318 char __user *userbuf, in adis16550_show_firmware_date() argument 334 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16550_show_firmware_date()
|