Home
last modified time | relevance | path

Searched refs:userbuf (Results 1 – 25 of 29) sorted by relevance

12

/drivers/net/wireless/marvell/libertas/
Ddebugfs.c32 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
112 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_sleepparams_read()
161 static ssize_t lbs_host_sleep_read(struct file *file, char __user *userbuf, in lbs_host_sleep_read() argument
174 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_host_sleep_read()
217 struct file *file, char __user *userbuf, in lbs_threshold_read() argument
257 ret = simple_read_from_buffer(userbuf, count, ppos, buf, pos); in lbs_threshold_read()
270 const char __user *userbuf, size_t count, in lbs_threshold_write() argument
281 buf = memdup_user_nul(userbuf, min(count, len - 1)); in lbs_threshold_write()
[all …]
/drivers/remoteproc/
Dremoteproc_debugfs.c47 static ssize_t rproc_trace_read(struct file *filp, char __user *userbuf, in rproc_trace_read() argument
53 return simple_read_from_buffer(userbuf, count, ppos, trace->va, len); in rproc_trace_read()
75 static ssize_t rproc_state_read(struct file *filp, char __user *userbuf, in rproc_state_read() argument
88 return simple_read_from_buffer(userbuf, count, ppos, buf, i); in rproc_state_read()
91 static ssize_t rproc_state_write(struct file *filp, const char __user *userbuf, in rproc_state_write() argument
101 ret = copy_from_user(buf, userbuf, count); in rproc_state_write()
132 static ssize_t rproc_name_read(struct file *filp, char __user *userbuf, in rproc_name_read() argument
142 return simple_read_from_buffer(userbuf, count, ppos, buf, i); in rproc_name_read()
152 static ssize_t rproc_recovery_read(struct file *filp, char __user *userbuf, in rproc_recovery_read() argument
158 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in rproc_recovery_read()
/drivers/net/wireless/ti/wlcore/
Ddebugfs.h29 __printf(4, 5) int wl1271_format_buffer(char __user *userbuf, size_t count,
40 static ssize_t name## _read(struct file *file, char __user *userbuf, \
44 return wl1271_format_buffer(userbuf, count, ppos, \
73 char __user *userbuf, \
81 return wl1271_format_buffer(userbuf, count, ppos, fmt "\n", \
93 char __user *userbuf, \
107 return wl1271_format_buffer(userbuf, count, ppos, "%s", buf); \
Ddebugfs.c44 int wl1271_format_buffer(char __user *userbuf, size_t count, in wl1271_format_buffer() argument
55 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in wl1271_format_buffer()
90 static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, in tx_queue_len_read() argument
101 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in tx_queue_len_read()
856 char __user *userbuf, in rx_streaming_interval_read() argument
860 return wl1271_format_buffer(userbuf, count, ppos, in rx_streaming_interval_read()
911 char __user *userbuf, in rx_streaming_always_read() argument
915 return wl1271_format_buffer(userbuf, count, ppos, in rx_streaming_always_read()
964 char __user *userbuf, in fw_stats_raw_read() argument
971 return simple_read_from_buffer(userbuf, count, ppos, in fw_stats_raw_read()
/drivers/video/fbdev/mbx/
Dmbxdebugfs.c30 static ssize_t sysconf_read_file(struct file *file, char __user *userbuf, in sysconf_read_file() argument
41 return simple_read_from_buffer(userbuf, count, ppos, in sysconf_read_file()
46 static ssize_t gsctl_read_file(struct file *file, char __user *userbuf, in gsctl_read_file() argument
70 return simple_read_from_buffer(userbuf, count, ppos, in gsctl_read_file()
74 static ssize_t display_read_file(struct file *file, char __user *userbuf, in display_read_file() argument
110 return simple_read_from_buffer(userbuf, count, ppos, in display_read_file()
114 static ssize_t clock_read_file(struct file *file, char __user *userbuf, in clock_read_file() argument
133 return simple_read_from_buffer(userbuf, count, ppos, in clock_read_file()
137 static ssize_t sdram_read_file(struct file *file, char __user *userbuf, in sdram_read_file() argument
155 return simple_read_from_buffer(userbuf, count, ppos, in sdram_read_file()
[all …]
/drivers/char/
Dps3flash.c105 static ssize_t ps3flash_read(char __user *userbuf, void *kernelbuf, in ps3flash_read() argument
117 __func__, __LINE__, count, *pos, userbuf, kernelbuf); in ps3flash_read()
146 __func__, __LINE__, n, src, userbuf, kernelbuf); in ps3flash_read()
147 if (userbuf) { in ps3flash_read()
148 if (copy_to_user(userbuf, src, n)) { in ps3flash_read()
152 userbuf += n; in ps3flash_read()
174 static ssize_t ps3flash_write(const char __user *userbuf, in ps3flash_write() argument
186 __func__, __LINE__, count, *pos, userbuf, kernelbuf); in ps3flash_write()
218 __func__, __LINE__, n, userbuf, kernelbuf, dst); in ps3flash_write()
219 if (userbuf) { in ps3flash_write()
[all …]
Dpowernv-op-panel.c42 static ssize_t oppanel_read(struct file *filp, char __user *userbuf, size_t len, in oppanel_read() argument
45 return simple_read_from_buffer(userbuf, len, f_pos, oppanel_data, in oppanel_read()
87 static ssize_t oppanel_write(struct file *filp, const char __user *userbuf, in oppanel_write() argument
99 ret = simple_write_to_buffer(oppanel_data, oppanel_size, f_pos, userbuf, in oppanel_write()
/drivers/mailbox/
Dmailbox-test.c45 const char __user *userbuf, in mbox_test_signal_write() argument
69 if (copy_from_user(tdev->signal, userbuf, count)) { in mbox_test_signal_write()
85 const char __user *userbuf, in mbox_test_message_write() argument
108 ret = copy_from_user(tdev->message, userbuf, count); in mbox_test_message_write()
141 static ssize_t mbox_test_message_read(struct file *filp, char __user *userbuf, in mbox_test_message_read() argument
156 ret = simple_read_from_buffer(userbuf, count, ppos, in mbox_test_message_read()
163 ret = simple_read_from_buffer(userbuf, count, ppos, in mbox_test_message_read()
187 ret = simple_read_from_buffer(userbuf, count, ppos, touser, MBOX_HEXDUMP_MAX_LEN); in mbox_test_message_read()
/drivers/bluetooth/
Dbtmrvl_debugfs.c60 static ssize_t btmrvl_hscfgcmd_read(struct file *file, char __user *userbuf, in btmrvl_hscfgcmd_read() argument
70 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscfgcmd_read()
107 static ssize_t btmrvl_pscmd_read(struct file *file, char __user *userbuf, in btmrvl_pscmd_read() argument
116 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_pscmd_read()
151 static ssize_t btmrvl_hscmd_read(struct file *file, char __user *userbuf, in btmrvl_hscmd_read() argument
160 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscmd_read()
/drivers/net/wireless/ti/wl1251/
Ddebugfs.c37 static ssize_t name## _read(struct file *file, char __user *userbuf, \
45 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \
71 char __user *userbuf, \
82 return simple_read_from_buffer(userbuf, count, ppos, buf, res); \
216 static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, in tx_queue_len_read() argument
227 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in tx_queue_len_read()
236 static ssize_t tx_queue_status_read(struct file *file, char __user *userbuf, in tx_queue_status_read() argument
249 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in tx_queue_status_read()
/drivers/net/wireless/ath/ath5k/
Ddebug.c244 const char __user *userbuf, in write_file_beacon() argument
251 if (copy_from_user(buf, userbuf, count)) in write_file_beacon()
277 const char __user *userbuf, in write_file_reset() argument
345 const char __user *userbuf, in write_file_debug() argument
353 if (copy_from_user(buf, userbuf, count)) in write_file_debug()
450 const char __user *userbuf, in write_file_antenna() argument
458 if (copy_from_user(buf, userbuf, count)) in write_file_antenna()
623 const char __user *userbuf, in write_file_frameerrors() argument
631 if (copy_from_user(buf, userbuf, count)) in write_file_frameerrors()
773 const char __user *userbuf, in write_file_ani() argument
[all …]
/drivers/staging/wilc1000/
Dwilc_debugfs.c40 static ssize_t wilc_debug_level_read(struct file *file, char __user *userbuf, size_t count, loff_t … in wilc_debug_level_read() argument
51 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in wilc_debug_level_read()
/drivers/misc/sgi-gru/
Dgruprocfs.c120 static ssize_t statistics_write(struct file *file, const char __user *userbuf, in statistics_write() argument
147 const char __user *userbuf, size_t count, loff_t *data) in mcs_statistics_write() argument
160 static ssize_t options_write(struct file *file, const char __user *userbuf, in options_write() argument
165 ret = kstrtoul_from_user(userbuf, count, 0, &gru_options); in options_write()
/drivers/net/wireless/broadcom/b43legacy/
Ddebugfs.c200 static ssize_t b43legacy_debugfs_read(struct file *file, char __user *userbuf, in b43legacy_debugfs_read() argument
254 ret = simple_read_from_buffer(userbuf, count, ppos, in b43legacy_debugfs_read()
269 const char __user *userbuf, in b43legacy_debugfs_write() argument
303 if (copy_from_user(buf, userbuf, count)) { in b43legacy_debugfs_write()
/drivers/media/pci/ivtv/
Divtv-udma.c103 void __user *userbuf, int size_in_bytes) in ivtv_udma_setup() argument
118 ivtv_udma_get_page_info(&user_dma, (unsigned long)userbuf, size_in_bytes); in ivtv_udma_setup()
Divtv-udma.h29 void __user *userbuf, int size_in_bytes);
/drivers/iommu/
Domap-iommu-debug.c86 static ssize_t debug_read_regs(struct file *file, char __user *userbuf, in debug_read_regs() argument
104 bytes = simple_read_from_buffer(userbuf, count, ppos, buf, bytes); in debug_read_regs()
/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c333 char __user *userbuf, in dynamic_fw_traces_read() argument
337 return wl1271_format_buffer(userbuf, count, ppos, in dynamic_fw_traces_read()
394 char __user *userbuf, in radar_debug_mode_read() argument
399 return wl1271_format_buffer(userbuf, count, ppos, in radar_debug_mode_read()
/drivers/net/wireless/broadcom/b43/
Ddebugfs.c503 static ssize_t b43_debugfs_read(struct file *file, char __user *userbuf, in b43_debugfs_read() argument
552 ret = simple_read_from_buffer(userbuf, count, ppos, in b43_debugfs_read()
567 const char __user *userbuf, in b43_debugfs_write() argument
601 if (copy_from_user(buf, userbuf, count)) { in b43_debugfs_write()
/drivers/iio/imu/
Dadis16480.c128 char __user *userbuf, size_t count, loff_t *ppos) in adis16480_show_firmware_revision() argument
142 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16480_show_firmware_revision()
153 char __user *userbuf, size_t count, loff_t *ppos) in adis16480_show_firmware_date() argument
172 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16480_show_firmware_date()
/drivers/platform/x86/
Dintel_telemetry_debugfs.c731 const char __user *userbuf, in telem_pss_trc_verb_write() argument
737 if (kstrtou32_from_user(userbuf, count, 0, &verbosity)) in telem_pss_trc_verb_write()
779 const char __user *userbuf, in telem_ioss_trc_verb_write() argument
785 if (kstrtou32_from_user(userbuf, count, 0, &verbosity)) in telem_ioss_trc_verb_write()
/drivers/net/wireless/ath/carl9170/
Ddebug.c62 static ssize_t carl9170_debugfs_read(struct file *file, char __user *userbuf, in carl9170_debugfs_read() argument
100 err = simple_read_from_buffer(userbuf, count, ppos, in carl9170_debugfs_read()
114 const char __user *userbuf, size_t count, loff_t *ppos) in carl9170_debugfs_write() argument
141 if (copy_from_user(buf, userbuf, count)) { in carl9170_debugfs_write()
/drivers/char/xillybus/
Dxillybus_core.c669 static ssize_t xillybus_read(struct file *filp, char __user *userbuf, in xillybus_read() argument
759 userbuf, in xillybus_read()
764 userbuf += howmany; in xillybus_read()
1184 static ssize_t xillybus_write(struct file *filp, const char __user *userbuf, in xillybus_write() argument
1307 userbuf, howmany)) in xillybus_write()
1310 userbuf += howmany; in xillybus_write()
/drivers/iio/gyro/
Dadis16136.c74 char __user *userbuf, size_t count, loff_t *ppos) in adis16136_show_serial() argument
102 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16136_show_serial()
/drivers/iio/
Dindustrialio-core.c297 static ssize_t iio_debugfs_read_reg(struct file *file, char __user *userbuf, in iio_debugfs_read_reg() argument
316 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in iio_debugfs_read_reg()
320 const char __user *userbuf, size_t count, loff_t *ppos) in iio_debugfs_write_reg() argument
328 if (copy_from_user(buf, userbuf, count)) in iio_debugfs_write_reg()

12