Home
last modified time | relevance | path

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

12

/drivers/net/wireless/marvell/libertas/
Ddebugfs.c33 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 …]
/drivers/net/wireless/ti/wlcore/
Ddebugfs.h15 __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); \
Ddebugfs.c31 int wl1271_format_buffer(char __user *userbuf, size_t count, in wl1271_format_buffer() argument
42 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in wl1271_format_buffer()
80 static ssize_t tx_queue_len_read(struct file *file, char __user *userbuf, in tx_queue_len_read() argument
91 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in tx_queue_len_read()
852 char __user *userbuf, in rx_streaming_interval_read() argument
856 return wl1271_format_buffer(userbuf, count, ppos, in rx_streaming_interval_read()
910 char __user *userbuf, in rx_streaming_always_read() argument
914 return wl1271_format_buffer(userbuf, count, ppos, in rx_streaming_always_read()
966 char __user *userbuf, in fw_stats_raw_read() argument
973 return simple_read_from_buffer(userbuf, count, ppos, in fw_stats_raw_read()
/drivers/char/
Dps3flash.c93 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 …]
Dpowernv-op-panel.c43 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()
88 static ssize_t oppanel_write(struct file *filp, const char __user *userbuf, in oppanel_write() argument
100 ret = simple_write_to_buffer(oppanel_data, oppanel_size, f_pos, userbuf, in oppanel_write()
/drivers/bluetooth/
Dbtmrvl_debugfs.c54 static ssize_t btmrvl_hscfgcmd_read(struct file *file, char __user *userbuf, in btmrvl_hscfgcmd_read() argument
64 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscfgcmd_read()
95 static ssize_t btmrvl_pscmd_read(struct file *file, char __user *userbuf, in btmrvl_pscmd_read() argument
104 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_pscmd_read()
133 static ssize_t btmrvl_hscmd_read(struct file *file, char __user *userbuf, in btmrvl_hscmd_read() argument
142 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscmd_read()
/drivers/remoteproc/
Dremoteproc_debugfs.c42 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()
/drivers/mailbox/
Dmailbox-test.c49 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()
/drivers/net/wireless/ti/wl1251/
Ddebugfs.c23 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()
/drivers/net/wireless/ath/ath5k/
Ddebug.c224 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 …]
/drivers/misc/sgi-gru/
Dgruprocfs.c107 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()
/drivers/net/wireless/broadcom/b43legacy/
Ddebugfs.c187 static ssize_t b43legacy_debugfs_read(struct file *file, char __user *userbuf, in b43legacy_debugfs_read() argument
241 ret = simple_read_from_buffer(userbuf, count, ppos, in b43legacy_debugfs_read()
256 const char __user *userbuf, in b43legacy_debugfs_write() argument
290 if (copy_from_user(buf, userbuf, count)) { in b43legacy_debugfs_write()
/drivers/opp/
Ddebugfs.c35 static ssize_t bw_name_read(struct file *fp, char __user *userbuf, in bw_name_read() argument
44 return simple_read_from_buffer(userbuf, count, ppos, buf, i); in bw_name_read()
/drivers/iommu/
Domap-iommu-debug.c83 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()
/drivers/media/pci/ivtv/
Divtv-udma.c91 void __user *userbuf, int size_in_bytes) in ivtv_udma_setup() argument
106 ivtv_udma_get_page_info(&user_dma, (unsigned long)userbuf, size_in_bytes); in ivtv_udma_setup()
Divtv-udma.h17 void __user *userbuf, int size_in_bytes);
/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c327 char __user *userbuf, in dynamic_fw_traces_read() argument
331 return wl1271_format_buffer(userbuf, count, ppos, in dynamic_fw_traces_read()
391 char __user *userbuf, in radar_debug_mode_read() argument
396 return wl1271_format_buffer(userbuf, count, ppos, in radar_debug_mode_read()
/drivers/net/wireless/broadcom/b43/
Ddebugfs.c490 static ssize_t b43_debugfs_read(struct file *file, char __user *userbuf, in b43_debugfs_read() argument
539 ret = simple_read_from_buffer(userbuf, count, ppos, in b43_debugfs_read()
554 const char __user *userbuf, in b43_debugfs_write() argument
588 if (copy_from_user(buf, userbuf, count)) { in b43_debugfs_write()
/drivers/platform/x86/
Dintel_telemetry_debugfs.c683 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()
/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.c666 static ssize_t xillybus_read(struct file *filp, char __user *userbuf, in xillybus_read() argument
756 userbuf, in xillybus_read()
761 userbuf += howmany; in xillybus_read()
1181 static ssize_t xillybus_write(struct file *filp, const char __user *userbuf, in xillybus_write() argument
1304 userbuf, howmany)) in xillybus_write()
1307 userbuf += howmany; in xillybus_write()
/drivers/iio/imu/
Dadis16475.c122 char __user *userbuf, in adis16475_show_firmware_revision() argument
137 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16475_show_firmware_revision()
148 char __user *userbuf, in adis16475_show_firmware_date() argument
168 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16475_show_firmware_date()
Dadis16480.c176 char __user *userbuf, size_t count, loff_t *ppos) in adis16480_show_firmware_revision() argument
190 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16480_show_firmware_revision()
201 char __user *userbuf, size_t count, loff_t *ppos) in adis16480_show_firmware_date() argument
220 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in adis16480_show_firmware_date()
/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.c325 static ssize_t iio_debugfs_read_reg(struct file *file, char __user *userbuf, in iio_debugfs_read_reg() argument
334 return simple_read_from_buffer(userbuf, count, ppos, in iio_debugfs_read_reg()
350 return simple_read_from_buffer(userbuf, count, ppos, in iio_debugfs_read_reg()
356 const char __user *userbuf, size_t count, loff_t *ppos) in iio_debugfs_write_reg() argument
365 if (copy_from_user(buf, userbuf, count)) in iio_debugfs_write_reg()

12